/* The home page. One file for the sections, top to bottom:
   the hero with the example box, the video band, the box that waits, the three steps, what you
   get back, one story with its sources, the price, and the closing band.

   Flat style, as everywhere: borders, no shadows, no gradients.

   Dark mode needs no rule here. The two dark bands use "section-ink" from
   site.css, which is "--panel" with "--on-panel". Those two tokens are dark
   with light text in both modes, so the bands keep their contrast. Marigold
   is the same in both modes, and text on it is "--on-marigold".

   The journal page, the photo and the recording are scraps. tokens.css gives
   a scrap the light palette in both modes, so each reads as a picture of a
   real thing. The two drawings are files with their own light colours. */

:root {
  --font-hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
}

.home-band { padding: clamp(56px, 8vw, 104px) 0; }
.home-band h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.08; margin: 0; }
.home-head { display: grid; gap: 12px; margin-bottom: 40px; }
.home-head .eyebrow { margin: 0; }
.home-head h2 { max-width: 22ch; }
.home-more { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; }

/* 1. Hero. */
.home-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); text-align: center; }
.home-hero .container { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.home-hero h1 { margin: 0; max-width: 14ch; font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 1.02; }
/* The measure holds the sub line on two lines at desktop width. */
.home-sub { margin: 0; max-width: 940px; font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.5; text-wrap: balance; }
.home-hero .btn-row { justify-content: center; margin-top: 8px; }
.home-hero .note { margin: 0; }

/* The box that waits. It sits above the three steps and shares their paper, so it has no bottom padding of its own. */
.home-wait { padding-bottom: 0; }
.home-wait-text { display: grid; gap: 20px; }
.home-wait-text p { margin: 0; }
.home-wait-text p:first-child { font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.5; }

/* The example box has a band of its own below the three steps. It runs off the bottom edge into the sage band. */
.home-example { padding: 0; }
.example-box {
  width: 100%; margin: 0; padding: clamp(16px, 3vw, 36px) clamp(16px, 3vw, 36px) 0;
  background: var(--white); border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0;
  text-align: left; display: grid; gap: 24px;
}
.example-who { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.example-who div { flex: 1 1 280px; min-width: 0; display: grid; gap: 8px; }
.example-who p { margin: 0; }
.example-who .eyebrow { color: var(--muted); }
.example-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.05; color: var(--ink); }
.example-motto { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.25; color: var(--sage-dark); }
.example-tiles { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.example-tile { border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; padding: 22px 22px 28px; display: grid; gap: 8px; align-content: start; }
.example-tile p { margin: 0; }
.example-tile.sage { background: var(--sage-tint); border-color: transparent; }
.example-title { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; line-height: 1.15; color: var(--ink); }
.example-quote { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; line-height: 1.3; color: var(--ink); }
@media (max-width: 760px) { .example-tiles { grid-template-columns: 1fr; } .example-tile.sage { border-radius: var(--radius) var(--radius) 0 0; } }

/* 2. Video band. The file loads only after a press on play. */
.home-video { text-align: center; }
.home-video .eyebrow, .home-video h2 { margin-left: auto; margin-right: auto; }
.home-video .eyebrow { color: var(--marigold); margin-bottom: 20px; }
.home-video h2 { max-width: 22ch; }
.promo-video {
  display: block; width: 100%; max-width: 920px; height: auto; aspect-ratio: 16 / 9; margin: 36px auto 0;
  background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 20px;
}

/* 3. Three steps, each under a rule */
.home-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; list-style: none; padding: 0; margin: 0 0 28px; }
.home-steps li { border-top: 2px solid var(--ink); padding-top: 20px; }
.home-steps h3 { font-size: 1.6rem; margin: 12px 0; }
.home-steps p { margin: 0; }
.home-step-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: 2.75rem; line-height: 1; color: var(--marigold); -webkit-text-stroke: 1px var(--ink); }
@media (max-width: 860px) { .home-steps { grid-template-columns: 1fr; } }

/* 4. What you get back: the words on the left, four cards on the right */
.home-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px 64px; align-items: start; }
.home-split-head { display: grid; gap: 16px; }
.home-split-head p { margin: 0; }
.home-aside { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.3; color: var(--sage-dark); }
.get-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.get-card { background: var(--white); border-radius: var(--radius); padding: 24px; }
.get-card h3 { font-size: 1.35rem; line-height: 1.2; margin: 0 0 8px; }
.get-card p { margin: 0; }
@media (max-width: 960px) { .home-split { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .get-grid { grid-template-columns: 1fr; } }

/* The small picture at the top of a card. It shows the idea and is not a
   screenshot. Each one is the same height, so the four headings line up. */
.mini {
  height: 124px; margin-bottom: 20px; padding: 14px; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  font-size: 0.82rem; line-height: 1.35; color: var(--ink-soft);
}
.mini b { color: var(--ink); }
.field-look {
  display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--pill); color: var(--ink); font-weight: 500;
}
.field-look svg { flex: none; }
/* The cursor after the typed word */
.field-look i { width: 1.5px; height: 1.1em; margin-left: -6px; background: var(--ink); }
.home-band mark, .mini mark { background: var(--marigold); color: var(--on-marigold); border-radius: 4px; padding: 0 3px; }
.mini-years { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 16px; }
.mini-years::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; border-top: 2px solid var(--line); }
.mini-years span { position: relative; display: grid; }
.mini-years span::before { content: ""; position: absolute; top: -16px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--sage-dark); }
.mini-years span:nth-child(2)::before { background: var(--marigold); }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-look { padding: 2px 10px; border-radius: var(--pill); background: var(--sage-tint); color: var(--sage-dark); font-weight: 700; white-space: nowrap; }
.pill-look.place { background: var(--marigold-tint); color: var(--warn-text); }
.mini-link { border-left: 2px solid var(--line); padding-left: 10px; }
.mini-ask { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.button-look { flex: none; padding: 6px 14px; border-radius: var(--pill); background: var(--marigold); color: var(--on-marigold); font-weight: 700; }

/* 5. One story with its sources */
.story-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px 48px; align-items: start; }
.story-side { display: grid; gap: 16px; }
.story-side > h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--muted); margin: 0; }
.source-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.source { margin: 0; }
.source figcaption { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.source-mark {
  flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font: 700 0.75rem/1 var(--font-body);
}
/* A source mark stays on the line of the word it follows. */
.keep { white-space: nowrap; }
sup.source-mark { width: 18px; height: 18px; font-size: 0.68rem; vertical-align: 0.5em; margin-left: 2px; }
@media (max-width: 960px) { .story-pair { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .source-pair { grid-template-columns: 1fr; } }

/* The scraps: a journal page, a photo and a recording */
.scrap { background: var(--white); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
/* The ruled lines are a small drawing that repeats, one rule for each line
   of writing. Its hex is the "--line" of the light palette, which a scrap
   has in both modes. */
.scrap-journal {
  position: relative; padding: 17px 22px 34px 48px; font-family: var(--font-hand); font-size: 1.6rem; line-height: 34px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='34'%3E%3Cpath d='M0 33.5h10' stroke='%23E8DFCC'/%3E%3C/svg%3E") 0 8px / 10px 34px;
  transform: rotate(-1deg);
}
.scrap-journal::before { content: ""; position: absolute; top: 0; bottom: 0; left: 34px; border-left: 1px solid var(--live); opacity: 0.5; }
.scrap-journal p { margin: 0; }
.scrap-journal .date { text-align: right; color: var(--ink-soft); }
.scrap-photo { padding: 10px 10px 6px; transform: rotate(1.5deg); }
.scrap-photo img { display: block; width: 100%; height: auto; border-radius: 2px; }
.scrap-photo span { display: block; font-family: var(--font-hand); font-size: 1.25rem; text-align: center; padding-top: 4px; }
.scrap-audio { padding: 16px; background: var(--sage-tint); display: grid; gap: 10px; }
.scrap-audio .wave { display: flex; align-items: center; gap: 10px; }
.scrap-audio .play { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.scrap-audio .bars { flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; gap: 3px; overflow: hidden; }
.scrap-audio .bars i { flex: 1; min-width: 2px; background: var(--sage-dark); border-radius: 2px; }
.scrap-audio p { margin: 0; display: flex; justify-content: space-between; gap: 8px; font-size: 0.9rem; font-weight: 600; }
@media (max-width: 960px) { .scrap-journal, .scrap-photo { transform: none; } }

/* What came back: the search field, then the story as clean type */
.story-search { min-height: 48px; font-size: 1.05rem; }
.story-card { background: var(--marigold-tint); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; }
.story-card h4 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.12; margin: 0; }
.story-card p { margin: 0; }
.story-text { font-size: 1.2rem; line-height: 1.65; color: var(--ink); }
.story-promise { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; line-height: 1.3; color: var(--ink); border-top: 1px solid var(--line); padding-top: 16px; }

/* 6. Price band on the marigold tint */
.home-price { background: var(--marigold-tint); }
.home-price .eyebrow { color: var(--warn-text); margin: 0; }
.price-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; align-items: start; }
.price-pitch { display: grid; gap: 16px; justify-items: start; }
.price-pitch p { margin: 0; }
.price-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 1.2rem; }
.price-big b { font-family: var(--font-display); font-weight: 600; font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: 1; color: var(--ink); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.promise-card { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.promise-card h3 { font-size: 1.6rem; margin: 0 0 18px; }
.promise-card ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 18px; }
.promise-card li { display: grid; gap: 4px; }
.promise-card b { color: var(--ink); }
@media (max-width: 860px) { .price-split { grid-template-columns: 1fr; } }

/* 7. Closing band */
.home-close { padding: clamp(64px, 9vw, 120px) 0; text-align: center; }
.home-close h2 { max-width: 16ch; margin: 0 auto 28px; font-size: clamp(2.4rem, 5.6vw, 4.5rem); line-height: 1.05; }
