@font-face { font-family: Marcellus; src: url(fonts/marcellus.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Cinzel; src: url(fonts/cinzel.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(fonts/ebgaramond.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Libre Caslon Display"; src: url(fonts/caslon.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Archivo; src: url(fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/sourcesans.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/sourcesans-italic.woff2) format("woff2"); font-style: italic; font-weight: 200 900; font-display: swap; }

:root {
  color-scheme: light;
  --wine: #682d38;
  --wine-deep: #4f1f2a;
  --cream: #f5f1e9;
  --paper: #fffcf6;
  --ink: #302d29;
  --ink-soft: #6c645d;
  --line: #cdc3b5;
  --gold: #e0bd78;
  --gold-ink: #8a6a2c;
  --slate: #3f6579;
  --night: #1e1b18;
  --night-soft: #c9beb0;
  --display: Marcellus, Georgia, serif;
  --text: "Source Sans 3", "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 clamp(1.125rem, 1rem + .35vw, 1.3rem)/1.55 var(--text); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--wine); color: var(--cream); }
:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 3px; border-radius: 2px; }
.cover :focus-visible, .close :focus-visible { outline-color: var(--gold); }
html { scrollbar-color: var(--wine) var(--cream); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 9; background: var(--paper); color: var(--ink); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* Passport cover */
.cloth {
  background-color: var(--wine);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .35' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .03 0 0 0 0 .05 0 0 0 .32 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23c)'/%3E%3C/svg%3E");
}
.cover { position: relative; color: var(--cream); min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.top { width: 100%; max-width: 1560px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 22px var(--gutter); position: relative; z-index: 3; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 1.6rem/1 var(--display); text-decoration: none; }
.brand svg { width: 38px; height: 46px; margin-bottom: 11px; }
.lang { display: inline-flex; min-height: 44px; align-items: center; padding: 0 4px; font-weight: 600; }
.hero { flex: 1; width: 100%; max-width: 1560px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 64px); padding: 0 var(--gutter); }
.hero-copy { align-self: center; padding: 24px 0 72px; }
.hero h1 { font-size: clamp(3.2rem, 7.2vw, 6rem); line-height: 1.02; max-width: 8.6em; }
.hero p { margin-top: 1.4rem; max-width: 33em; font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); line-height: 1.45; color: #f3e6dd; }
.soon { display: inline-flex; flex-direction: column; margin-top: 2.2rem; padding: .75rem 1.5rem .8rem; border: 1.5px solid var(--gold); color: var(--gold); transform: rotate(-1.5deg); }
.soon strong { font: 1.55rem/1.15 var(--display); }
.soon span { font-size: 1.02rem; color: #f0dcb4; }
.hero-art { position: relative; align-self: end; height: min(84svh, 800px); min-height: 520px; }
.arch { position: absolute; inset: 0 0 -2px; margin: auto; height: 100%; width: auto; max-width: 100%; fill: none; stroke: var(--gold); stroke-width: 2.5; }
.arch path + path { stroke-width: 1; }
.hero-art .phone { position: absolute; left: 50%; top: 21%; width: min(62%, 340px); translate: -50% 0; }
.passport { position: absolute; width: 138px; padding: 10px 8px 8px; text-align: center; background: var(--cream); color: var(--wine); border: 2.5px solid var(--wine); outline: 1px solid var(--wine); outline-offset: -7px; border-radius: 9px; box-shadow: 0 12px 28px rgb(30 8 14 / .38); }
.passport b { display: block; font: 2.5rem/1 var(--display); }
.passport span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.passport i { display: block; font-size: .85rem; padding-top: 3px; }
.passport.a { left: 2%; top: 44%; rotate: -7deg; }
.passport.b { right: 1%; top: 62%; rotate: 5deg; }

/* Phone */
.phone { margin: 0; padding: 9px; background: #1d1a18; border-radius: 42px; box-shadow: 0 2px 3px rgb(30 20 14 / .3), 0 30px 60px -18px rgb(30 20 14 / .55); }
.phone img { width: 100%; height: auto; aspect-ratio: 720 / 1483; border-radius: 33px; object-fit: cover; background: var(--cream); }

/* Route */
.stages { position: relative; padding: clamp(72px, 10vw, 136px) var(--gutter) clamp(56px, 8vw, 104px); }
.route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.route .dash { fill: none; stroke: var(--wine); stroke-width: 3; stroke-dasharray: 3 13; stroke-linecap: round; }
.route .pilgrim { color: var(--wine); }
.route .pilgrim use { fill: currentColor; stroke: currentColor; }
.route .medal { fill: var(--cream); stroke: var(--wine); stroke-width: 2; filter: drop-shadow(0 4px 8px rgb(40 12 18 / .28)); }
.route .medal-dots { fill: none; stroke: var(--wine); stroke-width: 1.8; stroke-dasharray: .1 4.6; stroke-linecap: round; }
.route .pilgrim.walking .body { animation: sway .52s ease-in-out infinite alternate; transform-origin: 0 24px; }
@keyframes sway { from { rotate: -4deg; } to { rotate: 4deg; translate: 0 -1.2px; } }
.route .cue { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .3s ease-out; }
.route .pilgrim.start .cue { opacity: 1; animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { translate: 0 0; } 45% { translate: 0 6px; } }
.stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 148px minmax(0, 1fr); align-items: center; max-width: 1180px; margin: 0 auto; }
.stage + .stage { margin-top: clamp(64px, 9vw, 128px); }
.stage-text h2 { font-size: clamp(2.2rem, 1.5rem + 2.5vw, 3.5rem); }
.stage-text p { margin-top: 1.1rem; max-width: 30em; color: #4c4640; }
.stage-text small { display: block; margin-top: .9rem; font-size: 1rem; color: var(--ink-soft); }
.stage .phone { width: min(100%, 330px); justify-self: center; position: relative; }
.seal { position: relative; justify-self: center; width: 118px; height: 118px; border-radius: 50%; background: var(--cream); color: var(--c, var(--wine)); rotate: var(--r, -6deg); translate: var(--x, -18px) 0; }
.seal svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.seal .dot { stroke-width: 2.2; stroke-dasharray: .1 6.3; }
.seal .thin { stroke-width: 1.2; }
.stage:nth-of-type(even) .stage-text { grid-column: 3; grid-row: 1; padding-left: 12px; }
.stage:nth-of-type(even) .seal { grid-column: 2; grid-row: 1; --x: 18px; --r: 7deg; }
.stage:nth-of-type(even) .phone { grid-column: 1; grid-row: 1; }
.js .seal { transition: opacity .25s ease-out, scale .55s var(--ease); }
.js .seal:not(.landed) { opacity: 0; scale: 1.7; }

/* Privacy */
.own { background: var(--night); color: #f1e9de; padding: clamp(80px, 12vw, 168px) var(--gutter); }
.own-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 104px); align-items: end; }
.own h2 { font-size: clamp(3.2rem, 8vw, 6rem); line-height: 1; }
.own-mark { width: clamp(64px, 7vw, 88px); height: auto; margin-bottom: 1.6rem; fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.own-mark .thin { stroke-width: 1.2; opacity: .7; }
.own ul { list-style: none; margin: 0; padding: 0; }
.own li { padding: 1.1rem 0; border-top: 1px solid #4b4136; }
.own li b { display: block; font: 400 1.65rem/1.2 var(--display); color: var(--gold); }
.own li span { color: var(--night-soft); }

/* Styles */
.styles { --s-canvas: #f5f1e9; --s-ink: #302d29; --s-soft: #6c645d; --s-line: #cdc3b5; --s-accent: #682d38; --s-display: var(--display); --s-weight: 400; background: var(--s-canvas); color: var(--s-ink); padding: clamp(80px, 11vw, 150px) var(--gutter); transition: background-color .5s ease, color .5s ease; }
.styles[data-style="romanesque"] { --s-canvas: #efe3d3; --s-ink: #2e2420; --s-soft: #6b5a50; --s-line: #d2bca6; --s-accent: #9a4632; --s-display: Cinzel, serif; --s-weight: 500; }
.styles[data-style="renaissance"] { --s-canvas: #f3f0e8; --s-ink: #262b2a; --s-soft: #5c6563; --s-line: #c5cbc8; --s-accent: #55625f; --s-display: "EB Garamond", serif; --s-weight: 500; }
.styles[data-style="baroque"] { --s-canvas: #fbf8f2; --s-ink: #2a2520; --s-soft: #6a6158; --s-line: #e0cfa4; --s-accent: #8c6a1c; --s-display: "Libre Caslon Display", serif; }
.styles[data-style="brutalism"] { --s-canvas: #d9d8d3; --s-ink: #1b1b1a; --s-soft: #4f4f4c; --s-line: #a9a8a3; --s-accent: #262625; --s-display: Archivo, sans-serif; --s-weight: 800; }
.styles-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.styles h2 { font-family: var(--s-display); font-weight: var(--s-weight); font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); }
.styles-copy > p { margin-top: 1.1rem; max-width: 30em; color: var(--s-soft); }
.picker { border: 0; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-width: 620px; }
.picker legend { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.picker label { display: block; cursor: pointer; text-align: center; font-size: 1rem; line-height: 1.2; color: var(--s-soft); }
.picker input { position: absolute; opacity: 0; }
.picker .glyph { display: grid; place-items: center; height: 104px; border: 1.5px solid var(--s-line); border-radius: 8px; margin-bottom: 8px; transition: border-color .2s, background-color .2s; }
.picker svg { width: 42px; height: 66px; fill: var(--s-soft); transition: fill .2s; }
.picker label:hover svg { fill: var(--s-accent); }
.picker input:checked + .glyph { border: 2.5px solid var(--s-accent); background: var(--paper); }
.picker input:checked + .glyph svg { fill: var(--s-accent); }
.picker input:checked ~ span:last-child { color: var(--s-ink); font-weight: 700; }
.picker input:focus-visible + .glyph { outline: 3px solid var(--s-accent); outline-offset: 3px; }
.style-note { margin-top: 1.5rem; min-height: 3.2em; max-width: 32em; font-style: italic; color: var(--s-ink); }
.stack { position: relative; width: min(100%, 340px); justify-self: center; }
.stack .phone { position: relative; }
.stack .phone img { position: absolute; left: 9px; top: 9px; width: calc(100% - 18px); opacity: 0; transition: opacity .4s ease; }
.stack .phone img.spacer { position: static; width: 100%; visibility: hidden; opacity: 0; }
.stack .phone img.on { opacity: 1; }

/* Plans */
.plans { padding: clamp(80px, 11vw, 150px) var(--gutter); background: var(--paper); border-top: 1px solid var(--line); }
.plans-in { max-width: 1040px; margin: 0 auto; }
.plans h2 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); max-width: 15em; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 7vw, 96px); margin-top: clamp(36px, 5vw, 64px); }
.plan h3 { font-size: 2rem; }
.plan > p { color: var(--ink-soft); margin-top: .2rem; }
.plan ul { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.plan li { padding: .62rem 0 .62rem 2rem; border-top: 1px solid var(--line); position: relative; line-height: 1.35; }
.plan li::before { content: ""; position: absolute; left: 4px; top: .78rem; width: 13px; height: 17px; background: var(--wine); clip-path: path("M0 17V7Q0 3 6.5 0Q13 3 13 7V17Z"); }
.plan-foot { margin-top: 2.2rem; max-width: 38em; color: var(--ink-soft); }
.plan-foot + .plan-foot { margin-top: 1rem; }

/* Close */
.close { color: var(--cream); padding: clamp(88px, 13vw, 180px) var(--gutter); text-align: center; }
.close svg { width: 92px; height: 112px; margin: 0 auto 1.8rem; }
.close h2 { font-size: clamp(3rem, 8vw, 6rem); }
.close p { margin: 1.2rem auto 0; max-width: 30em; color: #f3e6dd; }

footer { background: var(--wine-deep); color: #eadcd2; padding: 40px var(--gutter) 48px; font-size: 1.02rem; }
.foot-in { max-width: 1180px; margin: 0 auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 32px; font-weight: 600; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.credits { margin-top: 1rem; font-size: .95rem; line-height: 1.5; color: #d9c6bb; max-width: 62em; }

/* Back to top */
.to-top { position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 5; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--cream); color: var(--wine); border: 2px solid var(--wine); outline: 1.5px dotted var(--wine); outline-offset: -7px; box-shadow: 0 6px 16px rgb(40 12 18 / .22); transition: opacity .3s ease-out, translate .3s var(--ease), background-color .2s; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { background: var(--paper); }
.to-top:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 3px; }
.js .to-top:not(.show) { opacity: 0; translate: 0 12px; pointer-events: none; }

/* Legal pages */
.legal-top { color: var(--cream); }
.legal { max-width: 46rem; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter) 88px; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 1.6rem; }
.legal h2 { font-size: 1.7rem; margin: 2.4rem 0 .6rem; }
.legal p + p { margin-top: .8rem; }

@media (max-width: 860px) {
  .cover { min-height: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-copy { padding: 20px 0 44px; }
  .hero-art { height: 620px; min-height: 0; max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-art .phone { top: 20%; width: min(64%, 300px); }
  .passport { width: 112px; }
  .passport b { font-size: 2rem; }
  .passport span { font-size: .62rem; }
  .route { display: block; }
  .stage, .stage:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); padding-left: 52px; }
  .stage > *, .stage:nth-of-type(even) > * { grid-column: 1 !important; grid-row: auto !important; }
  .stage:nth-of-type(even) .stage-text { padding-left: 0; }
  .seal, .stage:nth-of-type(even) .seal { position: absolute; justify-self: start; left: -52px; top: -6px; width: 64px; height: 64px; translate: 0 0; }
  .stage-text { padding-left: 20px !important; min-height: 64px; }
  .stage .phone { margin-top: 32px; width: min(100%, 290px); }
  .own-in, .styles-in, .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .picker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
  .picker .glyph { height: 86px; }
  .picker svg { width: 34px; height: 54px; }
  .stack { width: min(100%, 300px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .seal:not(.landed) { opacity: 1; scale: 1; }
}

/* Tips on Ko-fi: a plain link, nothing is loaded from Ko-fi. */
.tip-row { margin-top: 1.4rem; }
.tip-btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .55rem 1.3rem; border: 2px solid var(--wine); border-radius: 999px; color: var(--wine); font-weight: 600; text-decoration: none; transition: background-color .2s; }
.tip-btn:hover { background: var(--cream); }
.tip-btn:focus-visible, .tip-float:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 3px; }
.tip-btn svg, .tip-float svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tip-float { position: fixed; left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 5; display: inline-flex; align-items: center; gap: .5rem; height: 52px; padding: 0 1.2rem 0 1rem; border-radius: 999px; background: var(--cream); color: var(--wine); border: 2px solid var(--wine); box-shadow: 0 6px 16px rgb(40 12 18 / .22); font-weight: 600; font-size: 1rem; text-decoration: none; transition: opacity .3s ease-out, translate .3s var(--ease), background-color .2s; }
.tip-float:hover { background: var(--paper); }
.js .tip-float:not(.show) { opacity: 0; translate: 0 12px; pointer-events: none; }
@media (max-width: 560px) {
  .tip-float { width: 52px; padding: 0; justify-content: center; }
  .tip-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
