/* Gallery Gardener — the app's palette, from DesignSystem/Theme.swift.
   Light-pinned to match the app (ADR-019). No build step, no dependencies, no fonts to fetch. */
:root {
  --paper: #FBF8F3;
  --sand: #F3EDE3;
  --sand-deep: #E8DFD1;
  --ink: #2A2721;
  --ink-secondary: #6B6459;
  --ink-tertiary: #968E80;
  --green: #4E7A4E;
  --green-tint: #E4EDDD;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  padding: 0 20px 80px;
}

main { max-width: 640px; margin: 0 auto; }

header { padding: 56px 0 8px; }

/* The app icon beside the name. The icon art is drawn on the same paper the page uses,
   so it needs the rounded mask and a hairline to read as an icon rather than as a leaf
   floating in the margin. 22.37% is iOS's own corner ratio. */
.wordmark {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 32px;
}
.wordmark img {
  width: 40px;
  height: 40px;
  border-radius: 22.37%;
  border: 1px solid var(--sand-deep);
}
.wordmark:hover { color: var(--ink); }

/* The landing page carries the name as its h1, so the icon sits above it instead. */
.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 22.37%;
  border: 1px solid var(--sand-deep);
  display: block;
  margin-bottom: 18px;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.updated {
  color: var(--ink-tertiary);
  font-size: 14px;
  margin: 0 0 40px;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  margin: 44px 0 10px;
  letter-spacing: -0.005em;
}

p { margin: 0 0 16px; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

/* The lede card — the whole policy in one breath, before anyone scrolls. */
.lede {
  background: var(--sand);
  border-radius: 14px;
  padding: 24px 26px;
  margin: 0 0 8px;
}
.lede p { margin: 0; font-size: 18px; }
.lede p + p { margin-top: 12px; }
.lede strong { font-weight: 600; }

ul { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }

/* Apple's badge, unmodified. Apple asks for clear space of at least a quarter of the badge's
   height on every side, and for it never to be drawn shorter than 40px on screen. */
.store { margin: 0 0 28px; }
.store a { display: inline-block; padding: 12px 0; text-decoration: none; }
.store img { display: block; width: auto; height: 48px; }

/* The listing's header art. It carries the headline, so it is not a decoration: the alt text
   says what it says. The image is 21:9 and its words are centred, so it reads at any width. */
.hero { margin: 0 0 28px; }
.hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.claims { list-style: none; padding: 0; margin: 0 0 8px; }
.claims li {
  background: var(--sand);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 10px;
}
.claims strong { display: block; font-family: var(--serif); font-size: 18px; margin-bottom: 4px; }
.claims span { color: var(--ink-secondary); font-size: 16px; }

.contact {
  background: var(--green-tint);
  border-radius: 14px;
  padding: 22px 26px;
  margin-top: 40px;
}
.contact p { margin: 0; }
.contact p + p { margin-top: 8px; }

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--sand-deep);
  color: var(--ink-tertiary);
  font-size: 14px;
}
footer a { color: var(--ink-tertiary); }

/* ---- Overview page ---------------------------------------------------------------
   The seven-step tour. Each step is a screenshot beside its explanation on a wide
   screen, and stacked on a phone — which is where most people will read this. */

.tour {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 28px 0 0;
}

/* The tour breaks out past the 640px prose column. A phone screenshot is very tall, so
   inside 640 the text beside it is a gutter rather than a column. min() keeps it from
   exceeding the window on a laptop at a narrow width. */
@media (min-width: 900px) {
  .tour {
    width: min(880px, calc(100vw - 48px));
    margin-left: 50%;
    transform: translateX(-50%);
  }
}

.tour > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 40px;
  align-items: start;
  margin: 0 0 12px;
  padding: 28px 0 32px;
  border-top: 1px solid var(--sand-deep);
}
.tour > li:first-child { border-top: none; padding-top: 4px; }

.tour figure { margin: 0; }

/* Each screenshot links to itself, so a reader who wants to look properly gets the
   full-size capture. The link must not inherit the underline prose links carry. */
.tour figure a { display: block; text-decoration: none; }

/* The screenshots are 640px wide captures drawn at 260. The frame is deliberately
   plain — a drawn iPhone bezel would date the page the moment the hardware changes. */
.tour img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--sand-deep);
  box-shadow: 0 8px 28px rgba(42, 39, 33, 0.10);
}

.tour h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
}

/* The step number sits with the heading rather than in a gutter, so it survives
   the single-column stack without a second rule. */
.tour h3::before {
  content: counter(step);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green);
  display: block;
  margin-bottom: 6px;
}

.tour .step p:last-child { margin-bottom: 0; }

.verdicts { margin: 0 0 16px; padding-left: 20px; }
.verdicts li { margin-bottom: 6px; color: var(--ink-secondary); }
.verdicts strong { color: var(--ink); font-weight: 600; }

@media (max-width: 620px) {
  .tour > li {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 28px;
  }
  /* A phone screenshot drawn full width is taller than the phone reading it, so each
     step would need two scrolls before its own words appeared. */
  .tour figure { max-width: 200px; }
  .tour h3 { font-size: 19px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; padding: 0 18px 60px; }
  header { padding-top: 40px; }
  h1 { font-size: 28px; }
  .wordmark { font-size: 18px; gap: 10px; }
  .wordmark img { width: 34px; height: 34px; }
  .app-icon { width: 48px; height: 48px; }
  .lede, .claims li, .contact { padding: 18px 20px; }
}
