/* Shared Strength Movement. Concept: Serena's notebook, strength passed hand to hand.
   Grey page, white ink, one orchid accent, lavender highlighter. No cards, no blobs, no script. */
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-vf.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
/* Fraunces and Caveat: OFL, Google Fonts' official Latin woff2 (licences beside them). */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/assets/fonts/caveat.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #575757;            /* neutral grey (client, 2026-11-28) */
  --ink: #fff;             /* white text on grey: 7.2:1 */
  --muted: #fff;
  --orchid: #f2c4f8;       /* light orchid: 4.8:1 on the grey */
  --highlight: #e6d3f8;    /* lavender marker */
  --bloom: #e9b3f2;        /* accent on plum only */
  --plum: #000;
  --rule: #727272;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", "Comic Neue", cursive;
  --text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 112.5%; }  /* 18 px base: every size +2 px at the root (client) */

body {
  margin: 0;
  font-family: var(--text);
  font-size: clamp(1.125rem, 1rem + 0.35vw, 1.3rem);
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orchid); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orchid); outline-offset: 4px; }
h1, h2 { font-family: var(--display); font-weight: 380; font-variation-settings: "SOFT" 100, "WONK" 1; line-height: 1.04; margin: 0; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.note { font-family: var(--hand); color: var(--orchid); line-height: 1.15; }
.label { font-family: var(--hand); font-size: clamp(2rem, 3.6vw, 2.7rem); color: var(--orchid); letter-spacing: 0; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.6em 1em; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

section { padding: clamp(4rem, 10vw, 9rem) var(--gutter); position: relative; }

/* Header: a small mark at the corner, the way a notebook carries its name inside the cover. */
.top { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem var(--gutter) 0; }
.brand img { width: 4.2rem; }
.top nav { display: flex; gap: clamp(1rem, 3vw, 2.4rem); }
.top nav a { color: var(--ink); text-decoration: none; font-size: 1rem; }
.top nav a:hover { color: var(--orchid); text-decoration: underline; }
@media (max-width: 40rem) { .top nav { display: none; } }

/* Hero: the name set large and off-balance, the hearts drawing themselves beside it. */
.hero { padding-top: clamp(2.5rem, 7vw, 6rem); min-height: min(80vh, 50rem); display: grid; grid-template-columns: repeat(12, 1fr); align-content: center; }
.hero h1 { grid-column: 1 / -1; font-size: clamp(3.4rem, 11vw, 10rem); line-height: 0.86; position: relative; z-index: 1; }
.hero h1 span { display: block; }
.h-strength { margin-left: 8%; }
.h-movement { margin-left: 16%; }
.hearts { position: absolute; right: var(--gutter); top: clamp(1rem, 4vw, 3rem); width: clamp(9rem, 30vw, 26rem); fill: none; stroke: var(--orchid); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-note { grid-column: 2 / span 6; margin: 0.6em 0 0; font-size: clamp(2.1rem, 4vw, 3.3rem); transform: rotate(-5deg); transform-origin: left; }
@media (max-width: 48rem) {
  .hero { min-height: 0; }
  .h-strength { margin-left: 5%; }
  .h-movement { margin-left: 10%; }
  .hero { padding-top: calc(36vw + 1.5rem); }
  .hearts { top: 0.25rem; width: 42vw; }
  .hero-note { grid-column: 1 / -1; margin-top: 1.5rem; }
}

/* Mission: one long sentence, typeset, with the key phrase run through a highlighter. */
.mission { display: grid; grid-template-columns: repeat(12, 1fr); }
.mission .label { grid-column: 2 / span 3; padding-top: 0.6rem; }
.mission .big { grid-column: 4 / span 8; font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 3.1rem); line-height: 1.22; letter-spacing: -0.01em; max-width: 30ch; }
mark { color: inherit; background: linear-gradient(transparent 52%, #7b3a8c 52%, #7b3a8c 92%, transparent 92%) no-repeat 0 0 / 100% 100%; padding: 0 0.08em; }
@media (max-width: 48rem) { .mission .label, .mission .big { grid-column: 1 / -1; } .mission .label { margin-bottom: 1rem; } }


/* The wish list: a notebook page, ruled, with the numbers written in the margin. */
.wish { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.wish-head { position: sticky; top: 2rem; }
.wish h2 { font-size: clamp(2.3rem, 5vw, 4.4rem); }
.ruled { list-style: none; counter-reset: wish; margin: 0; padding: 0 0 0 3.2rem; border-left: 2px solid #ecc3ef;
  background-image: repeating-linear-gradient(transparent 0 calc(2.4rem - 1px), var(--rule) calc(2.4rem - 1px) 2.4rem); line-height: 2.4rem; font-size: 1.3rem; }
.ruled li { counter-increment: wish; position: relative; padding-bottom: 2.4rem; }
.ruled li::before { content: counter(wish); position: absolute; left: -3rem; top: -0.05rem; width: 2rem; text-align: right; font-family: var(--hand); font-size: 2.5rem; color: var(--orchid); line-height: 2.4rem; }
@media (max-width: 52rem) { .wish { grid-template-columns: 1fr; } .wish-head { position: static; } }

/* Serena: a taped photo, and the day her life split into before and after. */
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.polaroid { margin: 0 auto; background: #fffdfa; padding: 0.9rem 0.9rem 2.6rem; width: min(100%, 19rem); transform: rotate(-3.5deg); box-shadow: 0 1px 0 #3f3f3f, 0 18px 40px -24px rgb(0 0 0 / 0.4); position: relative; }
.polaroid::before, .polaroid::after { content: ""; position: absolute; width: 5.5rem; height: 1.6rem; background: rgb(230 211 248 / 0.75); top: -0.7rem; }
.polaroid::before { left: -1.2rem; transform: rotate(-24deg); }
.polaroid::after { right: -1.2rem; transform: rotate(21deg); }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(0.92) contrast(1.03); }
.story h2 { font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: 1.2rem; }
.story-text { max-width: 36rem; }
@media (max-width: 48rem) { .story { grid-template-columns: 1fr; } }

/* You are stronger: the one dark page in the notebook. */
.stronger { background: var(--plum); color: var(--ink); display: grid; grid-template-columns: repeat(12, 1fr); }
.stronger h2 { grid-column: 1 / span 9; font-size: clamp(3rem, 8.5vw, 8rem); line-height: 0.95; margin-bottom: clamp(2rem, 4vw, 3rem); }
.stronger h2 em { display: block; font-family: var(--hand); font-style: normal; color: var(--bloom); font-size: 0.62em; margin-left: 18%; line-height: 1.1; }
.stronger > p { grid-column: 6 / span 6; max-width: 34rem; color: #eadff0; }
.stronger .today { color: var(--bloom); font-size: clamp(1.95rem, 3.4vw, 2.7rem); margin-top: 1rem; }
@media (max-width: 48rem) { .stronger h2, .stronger > p { grid-column: 1 / -1; } }

/* You are not alone: set to the right after the dark page. */
.alone { max-width: calc(44rem + 2 * var(--gutter)); margin-left: auto; }
.alone h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 1rem; }
.alone p { margin: 0; }

/* The gift bag: drawn, with the packing list beside it. */
.bag { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.bag-art svg { width: 100%; max-width: 26rem; margin: 0 auto; display: block; }
.bag-art path { stroke: #000; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.bag-art .bag-body { fill: var(--highlight); }
.bag-art .tissue { stroke: #9b36b8; }
.bag-art .thin { stroke-width: 1.4; }
.bag-art .tag { fill: #9b36b8; stroke: #9b36b8; }
.bag h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: 1rem; }
.intro { color: var(--muted); max-width: 32rem; }
.packing { list-style: none; padding: 0; margin: 2rem 0 0; }
.packing li { position: relative; padding: 0.55rem 0 0.55rem 2.8rem; border-bottom: 1px dashed var(--rule); }
.packing li::before { content: ""; position: absolute; left: 0.2rem; top: 0.7rem; width: 1.7rem; height: 1.7rem; background: var(--orchid); -webkit-mask: url("/assets/img/tick.svg") center / contain no-repeat; mask: url("/assets/img/tick.svg") center / contain no-repeat; }
.packing b { font-weight: 600; color: var(--ink); }
.surprise { font-size: 2.5rem; margin: 1.4rem 0 0 2.8rem; }
@media (max-width: 52rem) { .bag { grid-template-columns: 1fr; } .bag-art svg { max-width: 16rem; } }

/* Follow along: a sign-off, not a row of buttons. */
.connect { max-width: 60rem; padding-left: var(--gutter); }
.connect h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: 1rem; }
.connect > p { max-width: 34rem; }
.connect > .handles { max-width: none; display: flex; flex-wrap: wrap; gap: 1.2rem 3.5rem; font-size: 1.25rem; margin-top: 1.8rem; }
.handles a { color: var(--ink); text-decoration: none; }
.handles a:hover { color: var(--orchid); text-decoration: underline; }
.net { display: block; font-family: var(--hand); color: var(--orchid); font-size: 1.9rem; line-height: 1; }
.signoff { font-size: clamp(3.6rem, 8vw, 6rem); transform: rotate(-4deg); margin: 2rem 0 0 8%; }

/* Footer */
.foot { padding: 2.5rem var(--gutter) 3rem; font-size: 0.98rem; color: var(--muted); border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.foot p { margin: 0; }
.care { font-weight: 600; color: var(--ink); }

/* 404 */
.lost { min-height: 70vh; display: grid; place-content: center; text-align: center; padding: 2rem; }
.lost img { width: 9rem; margin: 0 auto 1.5rem; }
.lost h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 1rem; }

/* Motion: the hearts draw themselves once; the highlighter runs across its phrase as it comes into view. */
@media (prefers-reduced-motion: no-preference) {
  .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s cubic-bezier(.6,.1,.3,1) 0.3s forwards; }
  .d2 { animation-delay: 1.2s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  .hero h1 span { animation: settle 1.1s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 .h-strength { animation-delay: 0.12s; }
  .hero h1 .h-movement { animation-delay: 0.24s; }
  @keyframes settle { from { opacity: 0; transform: translateY(0.18em); } }
  @supports (animation-timeline: view()) {
    mark { background-size: 0% 100%; animation: highlight linear both; animation-timeline: view(); animation-range: entry 70% cover 45%; }
    @keyframes highlight { to { background-size: 100% 100%; } }
  }
}
