/* Anne
   A story you scroll through. Parchment and ballpoint blue, with one bit of yellow from her tins.
   Garamond to read, Courier for small labels, her handwriting only for her own words:
   the logo and the wish cards. On a phone everything sits in one column. */

:root {
  --parchment: #ede6d8;
  --paper: #f6f2ea;
  --hairline: #cdbfa8;
  --ink: #1f1b18;
  --muted: #5e554c;
  --blue: #2f3e8e;
  --blue-deep: #26337a;
  --on-blue: #ede6d8;
  --on-blue-muted: rgba(237, 230, 216, 0.74);
  --on-blue-line: rgba(237, 230, 216, 0.24);
  --tape: rgba(214, 200, 172, 0.85);

  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --type: "Courier Prime", "Courier New", Courier, monospace;

  --body: 1.15rem;
  --lead: clamp(1.3rem, 1.12rem + 0.7vw, 1.65rem);
  --big: clamp(1.75rem, 1.3rem + 1.7vw, 2.7rem);
  --huge: clamp(2.1rem, 1.4rem + 3.2vw, 4rem);
  --h1: clamp(3.4rem, 2.2rem + 5vw, 6.4rem);
  --label: 0.8rem;

  --gutter: 22px;
  --wide: 1080px;
  --measure: 34rem;
  --space: clamp(72px, 9vw, 140px);

  --ballpoint: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'><path d='M1 6 C 40 3, 80 8, 120 5 S 180 4, 199 6' fill='none' stroke='%23ede6d8' stroke-width='1.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");
  --squiggle: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16'><path d='M2 9 C 14 2, 22 14, 34 8 S 56 3, 66 9 S 88 14, 98 7 S 112 4, 118 8' fill='none' stroke='%232f3e8e' stroke-width='2' stroke-linecap='round'/></svg>");
  --grain: url("assets/grain.png");
  /* blue bands end in a hand-cut edge instead of a ruler line */
  --edge-top: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 14' preserveAspectRatio='none'><path d='M0 14 L0 7 L6 9.6 L14 9.1 L19 7.6 L27 9.4 L36 9.3 L41 9.1 L50 6.3 L55 8.5 L61 8.5 L67 7.6 L74 8.5 L81 8.7 L86 9.4 L91 8.4 L100 8.6 L106 8.8 L114 8.7 L122 8.3 L126 10 L135 9.1 L141 9.5 L149 6.2 L158 7.5 L164 4.9 L173 6.8 L184 3.4 L188 4 L199 3.5 L210 3.6 L216 5.4 L222 5.6 L228 4.4 L236 4.8 L243 5.8 L252 5.1 L258 6.1 L269 5.9 L277 5.7 L286 6.1 L297 5.9 L306 6.8 L313 7.9 L321 6.5 L329 7.1 L337 8.8 L346 8.6 L352 9.8 L359 8.3 L368 8.4 L377 9.6 L383 8.5 L394 8.3 L400 9.1 L411 6.1 L420 5.9 L429 7.6 L434 7.1 L438 5.4 L444 7.1 L455 7.9 L461 7.6 L469 6.9 L473 5.7 L479 7.9 L484 8 L495 6.9 L501 6.4 L509 6.5 L515 5.7 L523 4.5 L528 3.6 L539 5.4 L546 4.4 L555 3.8 L566 6.1 L572 6 L583 5.5 L589 6.2 L593 8.8 L598 9.1 L600 7 L600 14Z'/></svg>");
  --edge-bottom: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 14' preserveAspectRatio='none'><path d='M0 0 L0 7 L5 7.3 L11 8.5 L15 8 L24 7.1 L33 9.6 L40 7 L44 6.8 L52 6.4 L63 8.4 L69 6.8 L80 7.8 L86 9.5 L92 9.4 L96 12.6 L101 7.4 L112 8 L116 9.9 L127 6.3 L131 8.7 L139 9.5 L146 6.7 L155 7.1 L163 9.1 L171 6.5 L180 6.4 L184 5.8 L189 3.6 L198 4.2 L206 5 L217 4.9 L225 5.3 L230 7.4 L234 5.8 L238 6.1 L245 5.8 L251 6.9 L262 5.1 L270 7.2 L279 6.8 L283 5.7 L294 5.6 L305 6.3 L311 5.4 L317 5.3 L328 6.6 L332 6.1 L343 8.5 L354 9.1 L362 9.2 L371 10 L375 9.5 L383 10.2 L394 7.7 L405 8.2 L411 4.5 L420 8 L431 3.6 L439 6.8 L444 6.8 L450 6.8 L454 7 L461 7.1 L469 7.5 L478 7.2 L482 7.6 L486 5.7 L490 6.7 L494 4.3 L499 5.9 L507 6.2 L511 5.9 L515 5.8 L519 2.1 L523 4.3 L531 4.3 L535 3.8 L539 4.1 L544 5.7 L555 3.5 L564 4.4 L569 7 L573 4.8 L577 5.9 L584 7.3 L595 8.2 L600 7 L600 0Z'/></svg>");
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--grain), var(--parchment); color: var(--ink);
  font-family: var(--serif); font-size: var(--body); line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
.col { max-width: var(--measure); }
.stack > * + * { margin-top: 16px; }
.label { font-family: var(--type); font-size: var(--label); letter-spacing: 0.02em; color: var(--blue); text-transform: lowercase; margin-bottom: 16px; }
.lead { font-size: var(--lead); line-height: 1.42; }
h2 { font-size: var(--big); line-height: 1.15; margin-bottom: 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.more { font-family: var(--type); font-size: 0.9rem; color: var(--blue); }

/* things drift up as you reach them, only when scripts run so nothing is ever hidden without them */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* pen lines that draw themselves (lengths are set by the script, so without it they are simply there) */
.motion svg[data-draw] path { transition: stroke-dashoffset 1.3s cubic-bezier(0.55, 0.1, 0.35, 1) 0.35s; }
.motion svg[data-draw] path:nth-child(2) { transition-delay: 0.5s; }
.motion svg[data-draw] path:nth-child(3) { transition-delay: 1.45s; transition-duration: 0.5s; }
.motion .in svg[data-draw] path, .motion .in[data-draw] path { stroke-dashoffset: 0 !important; }

/* blue paper, cut by hand */
.band { background: var(--grain), var(--blue); color: var(--on-blue);
  -webkit-mask: var(--edge-top) top left / 600px 14px repeat-x, linear-gradient(#000 0 0) center / 100% calc(100% - 26px) no-repeat, var(--edge-bottom) bottom left / 600px 14px repeat-x;
  mask: var(--edge-top) top left / 600px 14px repeat-x, linear-gradient(#000 0 0) center / 100% calc(100% - 26px) no-repeat, var(--edge-bottom) bottom left / 600px 14px repeat-x; }

/* photos pinned with tape, a little crooked */
.frame { background: var(--paper); padding: 10px; box-shadow: 0 3px 14px rgba(31, 27, 24, 0.18); }
.frame img { width: 100%; }
.tilt-l { transform: rotate(-2.2deg); }
.tilt-r { transform: rotate(1.8deg); }
.tape { position: absolute; left: 50%; top: -14px; width: 108px; height: 30px; margin-left: -54px; background: var(--tape); transform: rotate(-3deg); }
figcaption { font-family: var(--type); font-size: var(--label); color: var(--muted); line-height: 1.45; }

/* header: it slips away while you read and comes back when you scroll up */
.site-head { position: sticky; top: 0; z-index: 30; padding-block: 8px; background: var(--grain), var(--parchment); transition: transform 0.35s ease, box-shadow 0.35s ease; }
.site-head.scrolled { box-shadow: 0 1px 0 rgba(31, 27, 24, 0.09); }
.site-head.tucked { transform: translateY(-100%); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-head .logo { display: block; padding: 6px 0; flex: none; }
.site-head .logo img { width: 80px; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; margin-right: -6px; }
.nav a { font-family: var(--type); font-size: 0.76rem; text-decoration: none; padding: 10px 6px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; }
.menu-btn { display: none; align-items: center; gap: 10px; border: 0; background: none; margin-right: -4px; padding: 12px 4px 12px 12px; font-family: var(--type); font-size: 0.84rem; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.menu-lines { position: relative; width: 22px; height: 10px; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; right: 0; height: 1.6px; background: var(--blue); border-radius: 2px; transition: transform 0.3s ease, right 0.3s ease; }
.menu-lines::before { top: 0; transform: rotate(-2deg); }
.menu-lines::after { bottom: 0; right: 6px; transform: rotate(1.5deg); }
.menu-open .menu-lines::before { transform: translateY(4.2px) rotate(38deg); }
.menu-open .menu-lines::after { right: 0; transform: translateY(-4.2px) rotate(-38deg); }
@media (max-width: 859px) { .js .nav { display: none; } .js .menu-btn { display: flex; } }

/* the menu on phones: a quiet page of big links */
.menu { position: fixed; inset: 0; z-index: 25; background: var(--grain), var(--parchment); padding: 104px max(var(--gutter), env(safe-area-inset-left, 0px)) max(36px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.menu nav a { font-size: clamp(2.3rem, 1.7rem + 3vw, 3rem); line-height: 1.2; text-decoration: none; padding: 4px 0; }
.menu nav a[aria-current="page"] { color: var(--blue); }
.menu .menu-join { margin-top: 22px; font-family: var(--type); font-size: 0.95rem; line-height: 1.2; color: var(--on-blue); background: var(--blue); padding: 15px 22px; }
.menu-foot { font-family: var(--type); font-size: var(--label); color: var(--muted); line-height: 1.7; margin-top: 44px; }
.menu-open, .menu-open body { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) nav a { animation: menu-in 0.45s ease both; }
  .menu:not([hidden]) nav a:nth-child(2) { animation-delay: 0.05s; }
  .menu:not([hidden]) nav a:nth-child(3) { animation-delay: 0.1s; }
  .menu:not([hidden]) nav a:nth-child(4) { animation-delay: 0.15s; }
  .menu:not([hidden]) nav a:nth-child(5) { animation-delay: 0.2s; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 479px) { .hero .label { font-size: 0.72rem; letter-spacing: 0; } }
section[id], #wine { scroll-margin-top: 76px; }

/* sign up */
.signup { max-width: 480px; margin-top: 28px; }
.signup .field { display: flex; flex-direction: column; gap: 8px; }
.signup input { width: 100%; min-height: 54px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); padding: 0 16px; font: inherit; font-size: 1.05rem; color: var(--ink); -webkit-appearance: none; appearance: none; }
.signup input::placeholder { color: var(--muted); font-family: var(--type); font-size: 0.9rem; }
.signup button { min-height: 54px; border: 0; border-radius: 0; background: var(--blue); color: var(--on-blue); padding: 0 22px; font-family: var(--type); font-size: 0.92rem; white-space: nowrap; cursor: pointer; -webkit-appearance: none; appearance: none; }
.signup button:hover { background: var(--blue-deep); }
.signup button:disabled { opacity: 0.6; cursor: default; }
.form-note { font-family: var(--type); font-size: 0.76rem; line-height: 1.5; color: var(--muted); margin-top: 10px; }
.signup.done .field { display: none; }
.signup.done .form-note { font-family: var(--serif); font-size: var(--lead); line-height: 1.35; color: var(--blue); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 480px) {
  .signup .field { flex-direction: row; gap: 0; }
  .signup input { flex: 1 1 auto; min-width: 0; border-right: 0; }
}

/* the opening */
.hero { padding: 8px 0 var(--space); }
.hero-grid { display: grid; gap: 0; }
.hero-text { display: contents; }
.hero-text .label { order: 1; }
.hero h1 { order: 2; }
.hero-photo { order: 3; }
.hero .lead { order: 4; margin-top: 52px; }
.hero .signup { order: 5; }
.hero h1 { font-size: var(--h1); line-height: 1; display: flex; align-items: flex-end; flex-wrap: wrap; column-gap: 0.24em; margin-bottom: 26px; }
.hero h1 img { height: 1.12em; width: auto; transform: translateY(0.12em) rotate(-2deg); }
@keyframes write { from { clip-path: inset(-25% 100% -25% 0); } to { clip-path: inset(-25% -2% -25% 0); } }
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 img { animation: write 1.5s cubic-bezier(0.45, 0.05, 0.4, 1) 0.35s both; }
  .js .her:not(.in) svg { opacity: 0; }
}
.hero .lead { max-width: 26ch; }
.hero-photo { position: relative; width: min(74%, 330px); margin: 64px auto 0; transform: rotate(-1.8deg); }
.hero-photo img { aspect-ratio: 617 / 743; object-fit: cover; }
.hero-photo figcaption { margin-top: 14px; color: var(--ink); }
.her { position: absolute; right: -6px; top: -54px; color: var(--blue); display: flex; align-items: flex-start; gap: 2px; transform: rotate(1.8deg); pointer-events: none; }
.motion .her > span { opacity: 0; transition: opacity 0.6s ease 0.2s; }
.motion .her.in > span { opacity: 1; }
.her span { font-family: var(--type); font-size: 0.8rem; margin-top: -2px; white-space: nowrap; }
.her .arrow { width: 74px; height: 58px; margin-top: 8px; }

/* the tins: the tower stands next to the words, and builds itself as you scroll */
.tins-band { padding-block: calc(var(--space) * 0.8); }
.tins-band .label { color: var(--on-blue-muted); }
.tins-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.big { font-size: var(--big); line-height: 1.24; }
.tins-text .big { font-size: clamp(1.45rem, 0.95rem + 2.4vw, 2.6rem); max-width: 20ch; }
.ballpoint { background-image: var(--ballpoint); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 8px; padding-bottom: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tower { --w: 76px; --step: 58px; position: relative; width: calc(var(--w) + 30px); height: calc(6 * var(--step) + 22px); margin: 0 auto; }
.tower img { position: absolute; width: var(--w); left: calc(12px + var(--dx)); bottom: calc(var(--i) * var(--step)); transform: rotate(var(--r)); filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.28)); }
/* with scripts on, the band holds still for a while and the tins land one by one */
.stacking .tins-band { padding-block: 0; }
.stacking .tins-pin { height: calc(100vh + 85vh); height: calc(100svh + 85svh); }
.stacking .tins-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-block: 36px; }
.stacking .tins-stage > .wrap { width: 100%; }
.stacking .tower img { opacity: 0; transform: translateY(-80px) rotate(calc(var(--r) * 3)); transition: transform 0.55s cubic-bezier(0.3, 1.45, 0.5, 1), opacity 0.25s ease; }
.stacking .tower img.on { opacity: 1; transform: rotate(var(--r)); }
.stacking .ph { opacity: 0.3; transition: opacity 0.6s ease; }
.stacking .ph.lit { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .stacking .tower img, .stacking .tower img.on { transform: rotate(var(--r)); transition: opacity 0.4s ease; } }

/* her story, read like a letter, with a photo or a drawing beside some of it */
.story { padding-block: calc(var(--space) * 0.45) calc(var(--space) * 0.6); }
.passage { display: grid; gap: 18px; padding-block: 13px; }
.passage > p { font-size: var(--lead); line-height: 1.5; max-width: 33rem; }
.with-doodle { grid-template-columns: minmax(0, 1fr) 82px; column-gap: 18px; align-items: center; }
.doodle { width: 100%; height: auto; transform: rotate(2deg); }
.with-portrait, .with-photos { padding-top: 26px; }
.pic { margin: 0; }
.bw .loopwrap { position: relative; width: min(52%, 210px); margin: 24px 0 0 22px; }
.bw .loop { position: absolute; left: -16%; top: -12%; width: 132%; height: 121%; color: var(--blue); overflow: visible; pointer-events: none; }
.bw .frame { position: relative; }
.bw figcaption { margin-top: 30px; }
.pair { display: flex; flex-wrap: wrap; gap: 12px; max-width: 340px; }
.pair .frame { width: calc(50% - 6px); padding: 7px; }
.pair .frame img { aspect-ratio: 4 / 5; object-fit: cover; }
.pair figcaption { width: 100%; display: flex; gap: 12px; margin-top: 10px; }
.pair figcaption span { width: calc(50% - 6px); }

/* the turn, and then her wishes */
.wine { padding-block: var(--space); }
.statement { text-align: center; padding-bottom: var(--space); }
.statement .huge { font-size: var(--huge); line-height: 1.14; max-width: 17ch; margin: 0 auto; text-wrap: balance; }
.statement .sig { width: min(56%, 280px); margin: 40px auto 34px; transform: rotate(-2deg); }
.motion .statement .sig { clip-path: inset(-25% 100% -25% 0); transition: clip-path 1.6s cubic-bezier(0.45, 0.05, 0.4, 1) 0.7s; }
.motion .statement.in .sig { clip-path: inset(-25% -2% -25% 0); }
.statement-sub { color: var(--on-blue-muted); font-size: var(--lead); line-height: 1.45; max-width: 30ch; margin: 0 auto; }

/* an evening at anne */
.evening { padding-block: var(--space); }
.evening-head { max-width: 31rem; margin-bottom: 52px; }
.evening-head h2 { margin-bottom: 14px; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px; }
.step { max-width: var(--measure); min-width: 0; }
.step-art { position: relative; height: 236px; display: flex; align-items: center; justify-content: flex-start; margin-bottom: 22px; }
.step-art > img { max-height: 100%; width: auto; max-width: 100%; }
.step h3 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.95rem); line-height: 1.2; margin-bottom: 10px; }
.step p + p { margin-top: 12px; }

/* two: the question discs, the top one goes to the back when you tap */
.discs-art { --d: min(218px, 56vw); flex-direction: column; align-items: flex-start; justify-content: center; height: auto; min-height: 236px; }
.discs { position: relative; display: block; width: calc(var(--d) * 1.42); height: calc(var(--d) * 1.1); max-width: 100%; border: 0; padding: 0; margin: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.qdisc { position: absolute; left: 2px; top: calc(var(--d) * 0.06); width: var(--d); height: var(--d); border-radius: 50%; background: var(--parchment); border: calc(var(--d) * 0.053) solid var(--blue); box-shadow: 0 4px 14px rgba(31, 27, 24, 0.24); font-size: calc(var(--d) * 0.06); transition: transform 0.6s cubic-bezier(0.3, 0.7, 0.25, 1); }
.qdisc::before { content: ""; position: absolute; left: 50%; top: 47%; width: 16%; height: 16%; transform: translate(-50%, -50%); border: 1px dashed #a89a82; border-radius: 50%; }
.qdisc::after { content: ""; position: absolute; left: 58%; top: 47%; right: calc(var(--d) * -0.06); border-top: 1px dashed #a89a82; }
.qdisc .dots { position: absolute; top: 19%; left: 0; right: 0; display: flex; justify-content: center; gap: 0.4em; }
.qdisc .dots i { width: 0.48em; height: 0.48em; border-radius: 50%; background: var(--blue); }
.qdisc .q { position: absolute; left: 15%; right: 15%; top: 61%; font-style: italic; line-height: 1.22; text-align: center; color: var(--ink); text-wrap: balance; }
.qdisc[data-pos="0"] { z-index: 3; transform: rotate(-5deg); }
.qdisc[data-pos="1"] { z-index: 2; transform: translate(22%, -5%) rotate(9deg); }
.qdisc[data-pos="2"] { z-index: 1; transform: translate(38%, 4%) rotate(-11deg); }
.discs:hover .qdisc[data-pos="0"] { transform: translate(-1%, -2%) rotate(-7deg); }
.disc-hint { font-family: var(--type); font-size: var(--label); color: var(--blue); margin-top: 10px; }
.disc-hint .mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .disc-hint .mouse { display: inline; } .disc-hint .touch { display: none; } }

/* three: a blank disc, for a wish */
.gdisc-art { --d: min(214px, 56vw); padding-left: 6px; }
.gdisc { position: relative; width: var(--d); height: var(--d); border-radius: 50%; background: var(--paper); border: 1.5px dashed #a89a82; box-shadow: 0 4px 14px rgba(31, 27, 24, 0.16); transform: rotate(-6deg); font-size: calc(var(--d) * 0.05); }
.gdisc::before { content: ""; position: absolute; left: 50%; top: 47%; width: 15%; height: 15%; transform: translate(-50%, -50%); border: 1px dashed #a89a82; border-radius: 50%; }
.gdisc::after { content: ""; position: absolute; left: 57.5%; top: 47%; right: 0; border-top: 1px dashed #a89a82; }
.gd-title { position: absolute; left: 14%; right: 14%; top: 17%; text-align: center; text-transform: uppercase; letter-spacing: 0.14em; line-height: 1.35; color: var(--blue); }
.gd-line { position: absolute; height: 1px; background: var(--hairline); }
.gd-line.one { left: 12%; right: 12%; top: 66%; }
.gd-line.two { left: 16%; right: 16%; top: 76%; }
.gd-at { position: absolute; left: 25%; top: 79%; font-family: var(--type); font-size: 0.85em; color: var(--blue); }
.gd-handle { position: absolute; left: 0; right: 0; top: 86.5%; text-align: center; font-family: var(--type); font-size: 0.7em; color: var(--muted); }
.gdisc .gd-at::after { content: ""; position: absolute; left: 1.4em; bottom: 0.25em; width: calc(var(--d) * 0.42); height: 1px; background: var(--hairline); }

/* four: the wall card, with a polaroid that hasn't come through yet */
.pass-art { width: min(100%, 360px); }
.pcard { position: relative; width: 84%; background: var(--paper); padding: 6% 6.5% 7%; box-shadow: 0 3px 12px rgba(31, 27, 24, 0.2); transform: rotate(-2deg); display: flex; flex-direction: column; gap: 6px; }
.pc-label { font-family: var(--type); font-size: 0.68rem; color: var(--blue); }
.pc-logo { position: absolute; right: 6.5%; top: 6%; width: 52px; }
.pc-prompt { font-style: italic; font-size: 0.86rem; line-height: 1.3; margin-bottom: 4px; }
.pc-row { display: flex; align-items: flex-end; gap: 8px; font-family: var(--type); font-size: 0.62rem; color: var(--blue); min-height: 22px; }
.pc-row i { flex: 1; height: 1px; background: var(--hairline); margin-bottom: 4px; }
.pc-row span { flex: none; }
.polaroid { position: absolute; right: 0; top: 40%; width: 29%; background: #fbf9f4; padding: 3.2% 3.2% 9%; box-shadow: 0 3px 10px rgba(31, 27, 24, 0.24); transform: rotate(7deg); }
.polaroid span { display: block; aspect-ratio: 1; background: radial-gradient(120% 90% at 30% 25%, #6b6158 0%, #3e3730 55%, #2b2621 100%); }
.pass-art .tape { left: auto; right: 5%; top: calc(40% - 12px); width: 58px; height: 20px; margin: 0; transform: rotate(12deg); }

/* the wine */
.wine .label { color: var(--on-blue-muted); }
.wine-top { display: grid; gap: 34px; align-items: center; }
.felt { position: relative; width: min(72%, 320px); margin: 0 auto; transform: rotate(1.4deg); }
.felt figcaption { color: var(--on-blue-muted); margin-top: 14px; text-align: center; transform: rotate(-1.4deg); }
.wishes { margin-top: calc(var(--space) * 0.75); }
.wishes h2 { margin-bottom: 14px; }
.wishes-intro { color: rgba(237, 230, 216, 0.9); max-width: 34rem; margin-bottom: 28px; }
.pick { display: none; align-items: flex-end; gap: 6px; font-family: var(--type); font-size: var(--label); color: var(--on-blue); margin-bottom: 10px; }
.tabbed .pick { display: flex; }
.pick svg { width: 46px; height: 30px; color: var(--on-blue-muted); flex: none; transform: translateY(8px); }
.pick .mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .pick .mouse { display: inline; } .pick .touch { display: none; } }
.wish-tabs { display: none; }
.tabbed .wish-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.wish-tabs button { border: 0; padding: 0; background: none; color: var(--on-blue-muted); font: inherit; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 7px; -webkit-tap-highlight-color: transparent; }
.wish-tabs img { width: 100%; box-shadow: 0 2px 6px rgba(10, 14, 40, 0.3); opacity: 0.84; transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease; }
.wish-tabs span { font-family: var(--type); font-size: var(--label); }
.wish-tabs button:hover img { opacity: 1; }
.wish-tabs [aria-selected="true"] img { opacity: 1; transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 9px 18px rgba(10, 14, 40, 0.4); }
.wish-tabs [aria-selected="true"] span { color: var(--on-blue); text-decoration: underline; text-underline-offset: 4px; }
.wish-panel { border-top: 1px solid var(--on-blue-line); padding-top: 22px; }
.wish-panel + .wish-panel { margin-top: 30px; }
.tabbed .wish-panel + .wish-panel { margin-top: 0; }
.tabbed .wish-panel:not([hidden]) { animation: panel-in 0.45s ease; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .tabbed .wish-panel:not([hidden]) { animation: none; } }
.panel-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.panel-head img { width: 130px; box-shadow: 0 2px 6px rgba(10, 14, 40, 0.3); }
.tabbed .panel-head img { display: none; }
.for { font-style: italic; font-size: clamp(1.7rem, 1.35rem + 1.2vw, 2.2rem); line-height: 1.1; color: var(--on-blue); }
.bottles { display: grid; gap: 26px; }
.bottle .now { font-family: var(--type); font-size: var(--label); color: var(--on-blue-muted); margin-bottom: 6px; }
.bottle h3 { font-size: 1.38rem; line-height: 1.25; }
.bottle .meta { font-family: var(--type); font-size: var(--label); color: var(--on-blue-muted); margin: 5px 0 8px; }
.bottle .about { color: rgba(237, 230, 216, 0.9); }
.list-note { font-family: var(--type); font-size: var(--label); color: var(--on-blue-muted); margin-top: 30px; }
.by-bottle { border-top: 1px solid var(--on-blue-line); margin-top: 36px; padding-top: 22px; }
.by-bottle .label { margin-bottom: 14px; }
.bottle-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.bottle-list li { display: grid; gap: 3px; }
.b-name { font-size: 1.2rem; line-height: 1.3; color: var(--on-blue); }
.b-meta { font-family: var(--type); font-size: var(--label); color: var(--on-blue-muted); }

/* art, music and talks */
.culture { padding-block: var(--space); }
.culture .label { color: var(--on-blue-muted); }
.culture-grid { display: grid; gap: 40px; align-items: center; }
.culture h2 { margin-bottom: 16px; }
.culture .lead { margin-bottom: 26px; }
.culture .formats { margin-bottom: 30px; }
.culture .formats li { color: rgba(237, 230, 216, 0.92); }
.culture .formats strong { color: var(--on-blue); }
.culture-links { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; color: var(--on-blue-muted); }
.button-line { font-family: var(--type); font-size: 0.92rem; color: var(--on-blue); border: 1px solid var(--on-blue); padding: 13px 20px; text-decoration: none; }
.button-line:hover { background: var(--on-blue); color: var(--blue); }
.culture-art img { width: min(72%, 300px); }

/* take part: for anyone who wants to speak, read, play or perform */
.stage { display: grid; gap: 30px; margin-top: calc(var(--space) * 0.8); padding-top: calc(var(--space) * 0.7); border-top: 1px solid var(--hairline); }
.band .stage { border-top-color: var(--on-blue-line); }
.band .stage .label { color: var(--on-blue-muted); }
.stage-text h2 { margin-bottom: 14px; }
.stage-art { width: min(64%, 260px); margin-top: 30px; }
.stage-form { display: grid; gap: 20px; }
.fields { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field > span, .kinds legend { font-family: var(--type); font-size: var(--label); }
.field input, .field textarea { width: 100%; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); padding: 13px 14px; font: inherit; font-size: 1.05rem; line-height: 1.4; color: var(--ink); -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); font-style: italic; }
.kinds { border: 0; padding: 0; margin: 0; min-width: 0; }
.kinds legend { padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; font-family: var(--type); font-size: 0.82rem; padding: 10px 14px; border: 1px solid currentColor; cursor: pointer; }
.chips input:checked + span { background: var(--blue); color: var(--on-blue); border-color: var(--blue); }
.chips input:focus-visible + span { outline: 2px solid currentColor; outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); flex: none; }
.stage-send { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.stage-send button { min-height: 54px; border: 0; border-radius: 0; background: var(--blue); color: var(--on-blue); padding: 0 26px; font-family: var(--type); font-size: 0.95rem; cursor: pointer; -webkit-appearance: none; appearance: none; }
.stage-send button:disabled { opacity: 0.6; cursor: default; }
.sent-note { font-size: var(--lead); line-height: 1.4; }
.band .stage-form { color: var(--on-blue); }
.band .field input, .band .field textarea { border-color: var(--paper); }
.band .chips input:checked + span { background: var(--on-blue); color: var(--blue); border-color: var(--on-blue); }
.band .check input { accent-color: var(--on-blue); }
.band .stage-send button { background: var(--on-blue); color: var(--blue); }
.band .stage-send button:hover { background: #fff; }
.band .form-note { color: var(--on-blue-muted); }
.band .form-note a { color: var(--on-blue); }
.take-part-page { padding-top: 24px; }
.take-part-page .stage { margin-top: 0; }

/* the door */
.closing { padding-block: var(--space); text-align: center; }
.door { width: min(58%, 250px); margin: 0 auto 36px; }
.closing-text { max-width: 34rem; margin: 0 auto; }
.closing-text .lead { margin-bottom: 44px; }
.closing .signup { margin-inline: auto; text-align: left; }
.closing .form-note { text-align: center; }

/* footer */
.site-foot { background: var(--grain), var(--blue); color: var(--on-blue); padding-block: 64px max(56px, env(safe-area-inset-bottom, 0px));
  -webkit-mask: var(--edge-top) top left / 600px 14px repeat-x, linear-gradient(#000 0 0) bottom / 100% calc(100% - 13px) no-repeat;
  mask: var(--edge-top) top left / 600px 14px repeat-x, linear-gradient(#000 0 0) bottom / 100% calc(100% - 13px) no-repeat; }
.site-foot .wrap { display: grid; gap: 26px; }
.site-foot .label { color: var(--on-blue-muted); margin-bottom: 4px; }
.site-foot p { line-height: 1.5; }
.site-foot .logo img { width: 104px; }

/* what's on page */
.section { padding-block: 72px; }
.section.tight { padding-block: 0 56px; }
.page-head { padding-block: 32px 48px; }
.page-head h1 { font-size: var(--big); line-height: 1.15; margin-bottom: 16px; }
.events { list-style: none; padding: 0; border-top: 1px solid var(--hairline); }
.event { display: grid; gap: 8px; padding-block: 24px; border-bottom: 1px solid var(--hairline); }
.event .date { font-family: var(--type); font-size: 0.9rem; color: var(--blue); }
.event h3 { font-size: 1.4rem; line-height: 1.25; }
.event .who { color: var(--muted); }
.empty { padding-block: 24px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.formats { list-style: none; padding: 0; display: grid; gap: 16px; }
.formats strong { font-weight: 500; }
.closing-plain { border-top: 1px solid var(--hairline); }
.wo-head, .wo-foot { display: grid; gap: 36px; align-items: center; }
.wo-art img { width: min(100%, 360px); }
.wo-art.small img { width: min(80%, 300px); }

/* wider screens */
@media (min-width: 860px) {
  :root { --gutter: 40px; }
  .site-head { padding-block: 16px; }
  .site-head .logo img { width: 100px; }
  .nav a { padding-inline: 11px; font-size: 0.84rem; }
  .nav .nav-join { margin-left: 12px; padding: 9px 15px; border: 1px solid var(--blue); color: var(--blue); }
  .nav .nav-join:hover { background: var(--blue); color: var(--on-blue); text-decoration: none; }
  .menu-btn, .menu { display: none !important; }

  .hero { padding-top: 24px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 80px; min-height: min(78vh, 760px); }
  .hero-text { display: block; }
  .hero .lead { margin-top: 0; max-width: 30ch; }
  .hero-photo { width: min(100%, 420px); margin: 0 0 0 auto; }
  .her { right: -40px; top: -62px; }
  .her .arrow { width: 90px; height: 70px; }

  .tins-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 80px; }
  .tower { --w: 128px; --step: 96px; }

  /* one steady reading column, with the photo and the drawing in the margins */
  .story { padding-block: calc(var(--space) * 0.55) calc(var(--space) * 0.8); }
  .passage { grid-template-columns: 230px minmax(0, 600px) 230px; column-gap: 40px; justify-content: center; align-items: center; padding-block: 16px; }
  .passage > p { grid-column: 2; font-size: 1.55rem; line-height: 1.5; max-width: none; }
  .with-portrait > .pic { grid-column: 1; grid-row: 1; }
  .with-portrait > p { grid-row: 1; }
  .with-doodle { grid-template-columns: 230px minmax(0, 600px) 230px; }
  .with-doodle > .doodle { grid-column: 3; grid-row: 1; width: 118px; justify-self: start; }
  .with-photos > .pic { grid-column: 2; }
  .with-portrait, .with-photos { padding-top: 30px; }
  .bw .loopwrap { width: 186px; margin: 26px auto 0; }
  .bw figcaption { text-align: center; }
  .pair { max-width: 420px; margin-bottom: 8px; }

  /* the three things sit side by side, like things put down on a table */
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 56px; }
  .step-art { height: 280px; }
  .discs-art { --d: 206px; min-height: 280px; }
  .discs { width: calc(var(--d) * 1.5); }
  .qdisc[data-pos="1"] { transform: translate(24%, -7%) rotate(9deg); }
  .qdisc[data-pos="2"] { transform: translate(44%, 5%) rotate(-11deg); }
  .gdisc-art { --d: 214px; }
  .pass-art { width: min(100%, 340px); }
  .door { width: 300px; }

  .culture-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 80px; }
  .stage { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
  .fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .culture-art img { width: 100%; max-width: 340px; margin-left: auto; }

  .wine-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 88px; }
  .felt { width: min(100%, 380px); }
  .tabbed .wish-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
  .bottles { max-width: 42rem; }
  .bottle-list { max-width: 42rem; row-gap: 18px; }

  .site-foot .wrap { grid-template-columns: 1fr 1.4fr 1fr 1fr; align-items: start; }
  .event { grid-template-columns: 180px minmax(0, 1fr); column-gap: 32px; }
  .wo-head, .wo-foot { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 72px; }
  .wo-art img { width: min(100%, 420px); margin-left: auto; }
  .wo-art.small img { width: min(100%, 340px); }
  .event .date { grid-row: span 3; padding-top: 4px; }
}
