/* Human Seasons · Contemporary Song-Dynasty Scroll & Archival Xuan-Paper Minimalism
   Ink Indigo #172733 / #101C25 · Xuan Paper #F7F2E7 · Brass Gold #C4A974 · Seal #B83024 */

@font-face {
  font-family: "EB Garamond";
  src: url("./assets/fonts/eb-garamond-roman.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("./assets/fonts/eb-garamond-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("./assets/fonts/work-sans-roman.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --surface-ink: #172733;
  --surface-ink-soft: #1F3443;
  --surface-ink-deep: #101C25;
  --surface-ink-now: #274154;
  --paper: #F7F2E7;
  --paper-2: #EFE7D6;
  --card: rgba(252, 248, 238, 0.88);
  --card-solid: #FCF8EE;
  --ink: #18232E;
  --muted: #46515D;
  --ink-light: #F6EFE0;
  --muted-light: rgba(246, 239, 224, 0.82);
  --gold: #C4A974;
  --gold-soft: #D6BE8E;
  --gold-ink: #6E5423;
  --seal: #B83024;
  --line: rgba(24, 35, 46, 0.14);
  --line-light: rgba(246, 239, 224, 0.20);
  --shadow-soft: 0 12px 32px rgba(23, 39, 51, 0.06);
  --shadow-elev: 0 18px 44px rgba(16, 28, 37, 0.11);
  --radius: 12px;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --han: "Songti TC", "Songti SC", "Noto Serif TC", "Noto Serif CJK TC", serif;
  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1144px;
  --tap: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 4.75rem;
  container-type: scroll-state;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: pretty;
  caret-color: var(--surface-ink);
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection {
  background: rgba(23, 39, 51, 0.14);
  color: var(--ink);
}
.band.ink ::selection,
.site-foot ::selection,
.ledger-top ::selection,
.price.featured ::selection,
.unknown-card ::selection,
.bucket.sealed ::selection,
.limits-box ::selection {
  background: rgba(214, 190, 142, 0.28);
  color: var(--ink-light);
}
img, canvas, svg { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.han { font-family: var(--han); font-weight: 400; }
em { font-style: italic; }

.price-fig,
.order-id,
.li,
.facts,
.beats .n,
.toc .no,
#bd-day,
#bd-year {
  font-variant-numeric: tabular-nums;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

:focus-visible { outline: 2.5px solid var(--surface-ink); outline-offset: 3px; }
.band.ink :focus-visible,
.site-foot :focus-visible,
.ledger-top :focus-visible,
.price.featured :focus-visible,
.unknown-card :focus-visible,
.bucket.sealed :focus-visible,
.limits-box :focus-visible,
.dlg-bar :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--card-solid); color: var(--ink); padding: 12px 18px;
  border: 0; border-radius: 999px; box-shadow: var(--shadow-elev);
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.view-pad { padding-block: clamp(32px, 5vw, 72px) clamp(64px, 8vw, 120px); }

/* ---------- Typography ---------- */
.h1, .hero h1 {
  font-family: var(--serif); font-weight: 500; font-synthesis: none;
  font-size: clamp(2.45rem, 1.45rem + 3.2vw, 4.15rem);
  line-height: 1.08; letter-spacing: -0.02em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--serif); font-weight: 500; font-synthesis: none;
  font-size: clamp(1.95rem, 1.25rem + 2.1vw, 2.95rem);
  line-height: 1.12; letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 24ch;
}
.h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.4rem, 1.15rem + 0.75vw, 1.85rem);
  line-height: 1.22;
  text-wrap: balance;
}
.h4 { font-family: var(--sans); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
h1:focus { outline: none; }

.lede {
  font-family: var(--sans);
  font-size: clamp(1.02rem, 0.96rem + 0.25vw, 1.14rem);
  line-height: 1.65; max-width: 60ch; margin-top: 16px; color: var(--muted);
  text-wrap: pretty;
}
.lede.light { color: var(--muted-light); }
.deck {
  font-family: var(--sans);
  font-size: clamp(1.04rem, 0.98rem + 0.25vw, 1.16rem);
  line-height: 1.65; max-width: 52ch; margin-top: 18px; color: var(--muted);
  text-wrap: pretty;
}
.deck.light { color: var(--muted-light); }
.fine { font-size: 0.875rem; color: var(--muted); max-width: 65ch; margin-top: 14px; line-height: 1.6; }
.fine.light { color: var(--muted-light); }
.micro { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }
.loading { color: var(--muted); font-style: italic; }
.band.ink .loading { color: var(--muted-light); }

.tag {
  display: inline-block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid rgba(24, 35, 46, 0.24); border-radius: 999px;
  padding: 2px 10px; vertical-align: 1px; background: rgba(252, 248, 238, 0.8);
  margin-inline-start: 6px; color: var(--ink);
}
.tag.solid {
  background: var(--surface-ink); color: var(--ink-light); border-color: transparent;
  margin: 0 8px 0 0;
}
.req, .opt { font-weight: 400; color: var(--muted); font-size: 0.88em; }

/* ---------- Buttons (Zero 80s Boxes · Zero Red Buttons) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: var(--tap); padding: 11px 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 500; font-size: 0.94rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; line-height: 1.25;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.btn-primary {
  background: var(--surface-ink); color: var(--ink-light); border-color: transparent;
  box-shadow: 0 6px 18px rgba(23, 39, 51, 0.12);
}
.btn-primary:hover {
  background: #22394A; color: var(--ink-light);
  transform: translateY(-1px); box-shadow: 0 10px 26px rgba(23, 39, 51, 0.18);
}
.btn-ghost {
  background: transparent; color: var(--ink); border-color: rgba(24, 35, 46, 0.26);
}
.btn-ghost:hover {
  background: rgba(24, 35, 46, 0.06); border-color: rgba(24, 35, 46, 0.44); color: var(--ink);
}
.btn-link, .btn-link-plain {
  background: none; border: 0; border-radius: 6px; padding: 10px 6px; min-height: 44px; cursor: pointer;
  font-weight: 500; text-decoration: underline; text-underline-offset: 5px;
  text-decoration-thickness: 1px; text-decoration-color: currentColor;
  color: inherit; transition: color 0.2s ease, opacity 0.2s ease;
}
.btn-link:hover, .btn-link-plain:hover { opacity: 0.78; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: progress; transform: none; }

/* Dark Scroll Surface Buttons */
.band.ink .btn-primary,
.ledger-top .btn-primary,
.site-foot .btn-primary,
.price.featured .btn-primary {
  background: var(--ink-light); color: var(--surface-ink); border-color: transparent;
  box-shadow: 0 8px 22px rgba(8, 15, 21, 0.24);
}
.band.ink .btn-primary:hover,
.ledger-top .btn-primary:hover,
.site-foot .btn-primary:hover,
.price.featured .btn-primary:hover {
  background: #EFE2C6; color: var(--surface-ink-deep);
  transform: translateY(-1px); box-shadow: 0 12px 28px rgba(8, 15, 21, 0.34);
}
.band.ink .btn-ghost,
.ledger-top .btn-ghost,
.site-foot .btn-ghost,
.price.featured .btn-ghost,
.dlg-bar .btn-ghost {
  background: transparent; color: var(--ink-light); border-color: rgba(246, 239, 224, 0.38);
}
.band.ink .btn-ghost:hover,
.ledger-top .btn-ghost:hover,
.site-foot .btn-ghost:hover,
.price.featured .btn-ghost:hover,
.dlg-bar .btn-ghost:hover {
  background: rgba(246, 239, 224, 0.12); border-color: rgba(246, 239, 224, 0.65); color: var(--ink-light);
}
.band.ink .btn-link,
.ledger-top .btn-link { color: var(--ink-light); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.actions > .btn { min-width: 0; }

/* ---------- Top Bar ---------- */
.top-bar {
  position: sticky; top: 0; z-index: 30;
  padding-inline: 24px;
  background: rgba(247, 242, 231, 0.90);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  border-bottom: 1px solid rgba(24, 35, 46, 0.10);
  transition: transform 0.25s ease;
}
.top-bar > .wrap { max-width: var(--maxw); padding-inline: 0; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; min-height: 48px; }
.brand-text { display: grid; gap: 2px; min-width: 0; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 500; font-size: 1.62rem; letter-spacing: -0.005em; line-height: 1.1; color: var(--ink); }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); }

.nav-inline { display: none; align-items: center; gap: 4px; }
.nav-inline a, .nav-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--ink); text-decoration: none;
  font-size: 0.88rem; font-weight: 500; background: none; border: 0; cursor: pointer;
  border-radius: 999px; transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.nav-inline a:hover, .nav-btn:hover { color: var(--ink); background: rgba(24, 35, 46, 0.06); }
.nav-inline .nav-cta {
  color: var(--ink);
  border: 1px solid rgba(24, 35, 46, 0.28);
  border-radius: 999px;
  padding: 0 20px;
  margin-inline-start: 10px;
}
.nav-inline .nav-cta:hover {
  background: var(--surface-ink); color: var(--ink-light); border-color: var(--surface-ink);
}

.menu-btn {
  flex: none; white-space: nowrap; min-height: 44px; min-width: 68px; padding: 0 18px;
  background: transparent; color: var(--ink);
  border: 1px solid rgba(24, 35, 46, 0.28); border-radius: 999px;
  font-size: 0.88rem; font-weight: 500; cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.menu-btn:hover { background: rgba(24, 35, 46, 0.06); border-color: rgba(24, 35, 46, 0.44); }
#nav-pop {
  margin: 0; inset: 0 0 0 auto; width: min(320px, 86vw); height: 100dvh; max-height: none; border: 0;
  border-left: 1px solid var(--line);
  background: var(--paper); color: var(--ink); padding: 24px;
}
#nav-pop:popover-open { display: flex; flex-direction: column; gap: 4px; }
#nav-pop::backdrop { background: rgba(24, 35, 46, 0.36); backdrop-filter: blur(4px); }
#nav-pop a, #nav-pop .nav-btn {
  min-height: 54px; padding: 0 4px; font-family: var(--serif); font-weight: 500; font-size: 1.65rem; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--line); border-radius: 0;
  width: 100%; text-align: left; display: flex; align-items: center;
}
#nav-pop a:hover, #nav-pop .nav-btn:hover { color: var(--ink); background: rgba(24, 35, 46, 0.05); }
.menu-close {
  align-self: flex-end; min-height: 44px; padding: 0 18px; background: none;
  border: 1px solid rgba(24, 35, 46, 0.28); border-radius: 999px; color: var(--ink);
  cursor: pointer; margin-bottom: 16px;
}
.menu-close:hover { background: rgba(24, 35, 46, 0.06); }
@media (min-width: 900px) {
  .top-bar { padding-inline: 48px; }
}
@media (min-width: 960px) {
  .nav-inline { display: flex; }
  .menu-btn { display: none; }
}
@media (max-width: 420px) {
  .top-bar { padding-inline: 16px; }
  .brand-name { font-size: 1.4rem; }
  .brand-sub { font-size: 0.72rem; letter-spacing: 0.05em; }
}

@container scroll-state((scrolled: bottom) and (scrollable: top)) {
  .top-bar { transform: translateY(-100%); }
}
.top-bar:focus-within { transform: none; }
.top-bar.is-hidden:not(:focus-within) { transform: translateY(-100%); }

/* ---------- Full-Bleed Sunlit Scroll Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(580px, 80vh, 760px);
  display: flex; align-items: center;
  padding: 56px 24px;
  background: var(--paper) url("./assets/art/hero-scroll-light-bg.png") right center / cover no-repeat;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(247, 242, 231, 0.90) 0%, rgba(247, 242, 231, 0.82) 65%, rgba(247, 242, 231, 0.92) 100%);
}
@media (min-width: 900px) {
  .hero { padding: 80px 48px; }
  .hero::before {
    background: linear-gradient(90deg, rgba(247, 242, 231, 0.94) 0%, rgba(247, 242, 231, 0.78) 44%, rgba(247, 242, 231, 0.06) 74%, transparent 100%);
  }
}
@media (max-width: 899px) {
  .hero { background-position: 70% center; }
}
.hero-grid {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--maxw); min-width: 0;
  padding: 0;
}
.hero-copy { max-width: 600px; min-width: 0; }
.hero .deck { color: #3E4A56; }

/* Floating Frosted Xuan-Paper Date Card */
.date-card {
  margin-top: 30px; max-width: 560px; min-width: 0;
  padding: 22px;
  background: rgba(252, 248, 238, 0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 20px 52px rgba(24, 35, 46, 0.09);
  color: var(--ink);
}
@media (min-width: 900px) {
  .date-card { padding: 26px; }
}
.date-trio { border: 0; padding: 0; margin: 0; min-width: 0; }
.date-trio legend {
  padding: 0; margin-bottom: 12px;
  font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.date-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 10px; min-width: 0;
}
@media (max-width: 420px) {
  .date-fields { gap: 8px; }
  .date-card input[type="text"],
  .date-card select { padding-inline: 10px; }
}
.date-trio .field { min-width: 0; margin-top: 0; }
.date-card .field label {
  color: var(--ink);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.03em;
}
.date-card input[type="text"],
.date-card select {
  background-color: #FFFDF8;
  color: var(--ink);
  border: 1px solid rgba(24, 35, 46, 0.18);
  border-radius: 8px;
}
.date-card input::placeholder { color: #505B67; }
.date-card input[type="text"]:is(:user-invalid, .is-flagged),
.date-card select:is(:user-invalid, .is-flagged) {
  border: 1.5px solid var(--seal);
  background-color: #FAF1E2;
}
.date-card .btn-link { color: var(--ink); font-size: 0.9rem; }
.date-card .micro { color: var(--muted); margin-top: 14px; }
.date-card .form-status {
  background: var(--paper-2);
  border: 1px solid rgba(24, 35, 46, 0.18);
  color: var(--ink);
}
.gift-line { margin-top: 14px; }
.gift-line .btn-link { padding-inline: 0; font-size: 0.9rem; font-weight: 500; color: var(--ink); }

/* ---------- Bands & Xuan Paper Layering ---------- */
.band { padding: 64px 24px; }
@media (min-width: 900px) {
  .band { padding: 96px 48px; }
}
.band > .wrap { max-width: var(--maxw); padding-inline: 0; }
.band > .wrap.narrow { max-width: 760px; }
.band.paper {
  position: relative;
  background-color: var(--paper);
  background-image: url("./assets/art/xuan-paper-bg.png");
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
}
.band.paper::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(247, 242, 231, 0.56) 0%, rgba(247, 242, 231, 0.34) 65%, rgba(247, 242, 231, 0.20) 100%);
}
.band.paper > .wrap { position: relative; z-index: 1; }
.band.paper-alt {
  background: var(--paper-2);
  border-block: 1px solid rgba(24, 35, 46, 0.08);
}
.band.ink {
  background: linear-gradient(180deg, var(--surface-ink) 0%, var(--surface-ink-deep) 100%);
  color: var(--ink-light);
}
.band .h2 + .lede, .band .h2 + .mount { margin-top: 18px; }
.mount { margin-top: 32px; min-width: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(20px, 3vw, 36px);
  margin-top: 40px;
}
.step {
  border-top: 1px solid var(--line);
  padding-top: 22px; min-width: 0;
}
.step-n {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--serif); font-weight: 500; font-size: 1.45rem; color: var(--muted);
}
.step-n .han { font-size: 0.95rem; color: var(--gold-ink); }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; line-height: 1.2; margin: 10px 0 8px; }
.step p { color: var(--muted); max-width: 34ch; }

.card {
  background: var(--card);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  min-width: 0;
}
@media (min-width: 900px) {
  .card { padding: 30px; }
}

/* ---------- Forms & Branded Select Styling ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-top: 20px; border: 0; padding: 0; }
.date-trio .field { margin-top: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.88rem; padding: 0; }
.hint { font-size: 0.84rem; color: var(--muted); }

input[type="text"],
input[type="email"],
input[type="time"],
input[type="search"],
select,
textarea {
  width: 100%; min-width: 0; min-height: var(--tap); padding: 10px 14px;
  font-size: max(1rem, 1em);
  background-color: var(--card-solid);
  color: var(--ink);
  caret-color: var(--surface-ink);
  border: 1px solid rgba(24, 35, 46, 0.22);
  border-radius: 8px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="time"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
  border-color: var(--surface-ink);
}
textarea { min-height: 112px; resize: vertical; }
input::placeholder { color: #505B67; }

/* Customizable Select API (base-select) — crisp picker, high contrast, zero layout shift */
@supports (appearance: base-select) {
  select,
  select::picker(select) {
    appearance: base-select;
  }
  select {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-right: 14px;
    background-image: none;
  }
  select::picker-icon {
    content: "";
    color: var(--ink);
    width: 12px;
    height: 12px;
    flex: none;
    margin-inline-start: auto;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.25 4.25L6 8L9.75 4.25' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.25 4.25L6 8L9.75 4.25' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.2s ease;
  }
  select:open::picker-icon {
    transform: rotate(180deg);
  }
  select::picker(select) {
    background-color: var(--card-solid);
    color: var(--ink);
    border: 1px solid rgba(24, 35, 46, 0.18);
    border-radius: 10px;
    padding: 6px;
    margin-top: 4px;
    box-shadow: 0 18px 44px rgba(16, 28, 37, 0.18);
  }
  select option {
    color: var(--ink);
    background-color: transparent;
    padding: 10px 12px;
    border-radius: 6px;
    gap: 8px;
  }
  select option:hover,
  select option:focus-visible {
    background-color: var(--paper-2);
    color: var(--ink);
  }
  select option:checked {
    background-color: rgba(23, 39, 51, 0.08);
    color: var(--ink);
    font-weight: 600;
  }
  select option::checkmark {
    color: var(--surface-ink);
    font-size: 0.9em;
  }
}

/* Fallback strictly when base-select is unsupported — single SVG chevron, zero macOS double-arrow */
@supports not (appearance: base-select) {
  select {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    min-width: 0;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.25 4.25L6 8L9.75 4.25' stroke='%2318232E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-size: 12px 12px;
    background-repeat: no-repeat;
  }
}

input:is(:user-invalid), select:is(:user-invalid), textarea:is(:user-invalid), .is-flagged {
  border: 1.5px solid var(--seal);
  background-color: #FAF1E2;
}
.error-msg { font-size: 0.84rem; font-weight: 500; color: var(--ink); display: flex; gap: 6px; align-items: flex-start; margin-top: 3px; }
.error-msg .err-ico {
  flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%;
  background: var(--seal); color: var(--card-solid); font-size: 0.75rem; font-weight: 700; line-height: 1; margin-top: 2px;
}
.check, .radio { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; min-height: 48px; cursor: pointer; }
.check input, .radio input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--surface-ink); }
.radio-stack { gap: 0; }
.radio-stack legend { margin-bottom: 4px; }
.radio-stack .hint { margin-bottom: 4px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 520px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

.form-status {
  margin-top: 16px; padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px; font-weight: 500; font-size: 0.9rem;
  background: var(--paper-2); color: var(--ink);
}
.form-status:focus { outline: 2.5px solid var(--surface-ink); }
.form-status.ok { background: var(--card-solid); border-color: var(--gold); }
.mode-panel { margin-top: 6px; }
.unknown-note {
  background: var(--paper-2); padding: 16px 20px;
  border: 1px solid var(--line); border-radius: 10px; margin-top: 14px;
}
.sheet, .docket {
  background: var(--card); border: 0;
  border-radius: 12px; box-shadow: var(--shadow-soft);
  padding: 24px; margin-top: 28px; min-width: 0;
}
@media (min-width: 900px) {
  .sheet, .docket { padding: 40px; }
}
.summary-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.summary-row .k { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-inline-end: 8px; }

/* ---------- Trails & Beats ---------- */
.trail { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 0.86rem; font-weight: 500; letter-spacing: 0.01em; color: var(--muted); margin-bottom: 24px; }
.trail li + li::before { content: "·"; margin: 0 12px; color: var(--gold-ink); }
.trail [aria-current="step"] { color: var(--ink); font-weight: 700; border-bottom: 1.5px solid var(--gold); }

.beats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 36px; }
.beats li { border-top: 2px solid var(--line); padding-top: 10px; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); min-width: 0; }
.beats li .n { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; letter-spacing: 0; text-transform: none; }
.beats li.done { border-top-color: var(--gold); color: var(--ink); }
.beats li[aria-current="step"] { border-top-color: var(--surface-ink); color: var(--ink); font-weight: 700; }
.beats li .t { display: none; }
@media (min-width: 720px) { .beats li .t { display: block; } }
@media (prefers-reduced-motion: no-preference) {
  .beat:not([hidden]) { animation: rise 0.45s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

.choice-grid {
  border: 0; padding: 0; margin: 26px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px; min-width: 0;
}
.choice-grid legend { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; padding: 0; }
.choice {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid rgba(24, 35, 46, 0.14);
  border-radius: var(--radius); padding: 16px 18px; min-height: 64px;
  cursor: pointer; min-width: 0; transition: border-color 0.2s ease, background-color 0.2s ease;
}
.choice:hover { border-color: rgba(24, 35, 46, 0.32); }
.choice input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--surface-ink); }
.choice:has(input:checked) {
  border: 1.5px solid var(--surface-ink);
  background: var(--card-solid);
}
.choice span { min-width: 0; }
.choice small { display: block; color: var(--muted); margin-top: 2px; }

/* ---------- Beat 3 ---------- */
.reveal-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 28px; }
@media (min-width: 900px) { .reveal-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 52px; align-items: start; } }
.plate {
  position: relative; background: var(--card-solid);
  border: 0; border-radius: 12px;
  padding: 12px; max-width: 420px; min-width: 0; box-shadow: var(--shadow-elev);
}
.plate img { width: 100%; height: auto; border-radius: 8px; }
.plate .emblem-box { aspect-ratio: 2 / 3; display: grid; place-items: center; background: var(--card-solid); border-radius: 8px; }
.plate .emblem-box svg { width: 62%; height: auto; stroke: var(--ink); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.stamp {
  position: absolute; right: -8px; bottom: -12px;
  width: clamp(72px, 18vw, 96px); height: clamp(72px, 18vw, 96px);
  border-radius: 6px;
  display: grid; place-items: center;
  background: var(--seal); color: var(--card-solid);
  font-family: var(--han); font-size: clamp(2.4rem, 8vw, 3.5rem);
  outline: 1.5px solid rgba(252, 248, 238, 0.48); outline-offset: -6px;
  line-height: 1; box-shadow: 0 12px 28px rgba(16, 28, 37, 0.22);
}
.dm-name { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.95rem); line-height: 1.08; }
.dm-name .han { color: var(--seal); }
.dm-meta { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
@media (max-width: 640px) { .two-up { grid-template-columns: minmax(0, 1fr); } }
.two-up .card h3 { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--sans); font-weight: 700; margin-bottom: 8px; color: var(--muted); }
.reflect-q {
  margin-top: 22px; padding: 20px 24px;
  border-radius: 10px;
  background: var(--paper-2); font-family: var(--serif); font-size: 1.35rem; line-height: 1.38;
}
.reflect-q small { display: block; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pick-note {
  margin-top: 16px; font-size: 0.92rem;
  background: var(--card); border: 1px dashed rgba(24, 35, 46, 0.28);
  border-radius: 10px; padding: 14px 18px;
}

details.drawer {
  margin-top: 20px; border: 1px solid rgba(24, 35, 46, 0.14);
  border-radius: var(--radius); background: var(--card); overflow: hidden;
}
details.drawer > summary {
  min-height: 50px; padding: 12px 18px; font-weight: 600; font-size: 0.92rem;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  list-style: none;
}
details.drawer > summary::-webkit-details-marker { display: none; }
details.drawer > summary::after { content: "+"; font-weight: 500; font-size: 1.25rem; color: var(--gold-ink); flex: none; }
details.drawer[open] > summary::after { content: "–"; }
details.drawer > div { padding: 4px 18px 18px; display: grid; gap: 12px; }

.tool { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 14px; }
@media (min-width: 760px) { .tool-grid { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 36px; align-items: start; } }
#bp-canvas {
  width: 100%; max-width: 240px; height: auto; aspect-ratio: 9 / 16;
  border: 0; border-radius: 8px;
  background: var(--surface-ink); box-shadow: var(--shadow-elev);
}
.save-card {
  margin-top: 22px; background: var(--card);
  border: 1px solid rgba(24, 35, 46, 0.12); border-radius: var(--radius);
  padding: 20px;
}
.save-card .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
@media (max-width: 520px) { .save-card .row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; direction: ltr; }
.pillar {
  background: var(--card-solid); border: 1px solid rgba(24, 35, 46, 0.12); border-radius: 8px;
  padding: 12px 6px; text-align: center; min-width: 0;
  display: flex; flex-direction: column; gap: 2px; align-items: center;
}
.pillar-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pillar .han { font-size: clamp(1.7rem, 1rem + 2.2vw, 2.5rem); line-height: 1.12; }
.pillar .roman { font-size: 0.75rem; font-weight: 600; margin-top: 4px; }
.pillar .elements { font-size: 0.72rem; color: var(--muted); }
.pillar .role { font-size: 0.72rem; line-height: 1.28; color: var(--muted); max-width: 100%; }
.pillar.is-dm { border: 1.5px solid rgba(184, 48, 36, 0.65); }
.pillar.is-dm .stem { color: var(--seal); }
.pillar.is-hl { border-bottom: 2.5px solid var(--gold); }
.pillars + .pillars-note { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ---------- Double Jia ---------- */
.dj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3.2vw, 40px); }
@media (max-width: 760px) { .dj-grid { grid-template-columns: minmax(0, 1fr); } }
.dj-card { min-width: 0; }
.dj-img {
  aspect-ratio: 887 / 887; width: 100%;
  background-image: url("./assets/art/two-printmakers.jpg");
  background-size: 200% 100%; background-repeat: no-repeat;
  border-radius: 12px;
  border: 0;
  box-shadow: var(--shadow-elev);
}
.dj-img.left { background-position: 0 50%; }
.dj-img.right { background-position: 100% 50%; }
.dj-label { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 16px 0 10px; }
.dj-pattern { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.85rem); line-height: 1.18; margin-top: 16px; }
.dj-sum { color: var(--muted); margin-top: 4px; font-size: 0.95rem; }
.dj-quote {
  font-family: var(--serif); font-style: italic; font-size: 1.22rem; line-height: 1.38;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
}
.dj-note { margin-top: 22px; font-size: 0.85rem; color: var(--muted); max-width: 65ch; }
.dj-meta-toggle { margin-top: 8px; max-width: 65ch; }
.dj-meta-toggle summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  cursor: pointer; font-size: 0.84rem; font-weight: 600; color: var(--muted);
  text-decoration: underline; text-underline-offset: 4px; list-style: none;
}
.dj-meta-toggle summary::-webkit-details-marker { display: none; }
.dj-meta-toggle p { font-size: 0.85rem; color: var(--muted); padding-top: 4px; }

.dim-bar { border: 0; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.dim-bar legend { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; padding: 0; }
.dim-bar label { position: relative; }
.dim-bar input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.dim-bar label span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid rgba(24, 35, 46, 0.22); border-radius: 999px;
  font-weight: 500; font-size: 0.88rem; background: var(--card); color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.dim-bar label:hover span { border-color: rgba(24, 35, 46, 0.44); }
.dim-bar input:checked + span { background: var(--surface-ink); color: var(--ink-light); border-color: var(--surface-ink); }
.dim-bar input:focus-visible + span { outline: 2.5px solid var(--surface-ink); outline-offset: 3px; }
.dim-panel { margin-top: 22px; }
.dim-panel h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.45rem, 1.15rem + 0.9vw, 1.9rem); margin-bottom: 16px; }
.dim-panel .card h4 { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.dj-details { margin-top: 14px; border-top: 1px solid var(--line); }
.dj-details summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; font-size: 0.88rem; color: var(--muted); }
.dj-details p { font-size: 0.88rem; color: var(--muted); padding-bottom: 8px; }

/* ---------- Art Module & Gallery ---------- */
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 900px) { .art-grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 56px; align-items: start; } }
.art-stage {
  position: relative; max-width: 460px; width: 100%;
  background: var(--card-solid);
  border: 0;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(23, 39, 51, 0.09);
}
.art-stage img { width: 100%; height: auto; border-radius: 8px; }
.art-pins { position: absolute; inset: 12px; }
.hotspot {
  position: absolute; width: 46px; height: 46px; transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(16, 28, 37, 0.86); backdrop-filter: blur(6px);
  color: var(--ink-light); border: 1.5px solid rgba(246, 239, 224, 0.90);
  font-weight: 600; font-size: 0.92rem; cursor: pointer; display: grid; place-items: center; padding: 0;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hotspot[aria-pressed="true"] { background: var(--gold); color: var(--surface-ink-deep); border-color: var(--surface-ink-deep); }
@media (prefers-reduced-motion: no-preference) {
  .hotspot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--gold); animation: ping 2.4s ease-out infinite; opacity: 0; }
  .hotspot[aria-pressed="true"]::after { animation: none; }
  @keyframes ping { 0% { transform: scale(0.8); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
}

.pin-list { display: grid; gap: 10px; margin-bottom: 20px; }
.pin-list button {
  display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 10px 18px;
  background: var(--card); border: 1px solid rgba(24, 35, 46, 0.14); border-radius: var(--radius);
  text-align: left; cursor: pointer; font-weight: 600; width: 100%;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pin-list button:hover { border-color: rgba(24, 35, 46, 0.32); }
.pin-list button[aria-pressed="true"] { background: var(--surface-ink); color: var(--ink-light); border-color: var(--surface-ink); }
.pin-list .n { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; width: 1.4rem; flex: none; color: var(--gold-ink); }
.pin-list button[aria-pressed="true"] .n { color: var(--gold-soft); }

.pin-panel {
  background: var(--card); border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px; min-width: 0;
}
@media (min-width: 900px) {
  .pin-panel { padding: 28px; }
}
.pin-panel h3 { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; line-height: 1.16; }
.pin-panel dl { margin-top: 16px; display: grid; gap: 14px; }
.pin-panel dt { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.pin-panel dd { margin-top: 3px; }

.gallery-title { margin-top: clamp(48px, 7vw, 84px); }
.gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 26px); margin-top: 20px;
}
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g-card {
  background: transparent; border: 0; padding: 0; min-width: 0;
}
.g-card .g-frame {
  overflow: hidden; border-radius: 12px;
  border: 0;
  box-shadow: var(--shadow-soft);
  background: var(--card-solid);
}
.g-card img {
  width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; object-position: center 20%;
  transition: transform 0.5s ease;
}
.g-card:hover img { transform: scale(1.025); }
.g-card p { padding: 12px 2px 2px; font-family: var(--serif); font-weight: 500; font-size: 1.18rem; line-height: 1.24; }
.g-card small { display: block; font-family: var(--sans); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.g-card .han { font-size: 1.3rem; margin-inline-end: 5px; color: var(--seal); }

.emblems-wrap { margin-top: 28px; }
.emblems-drawer > div > p { font-size: 0.875rem; color: var(--muted); max-width: 65ch; }
.emblems { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
@media (max-width: 720px) { .emblems { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.emblem {
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--card-solid); padding: 12px 6px; text-align: center; min-width: 0;
}
.emblem svg { width: 52%; margin: 0 auto; stroke: var(--ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.emblem span { display: block; font-size: 0.74rem; color: var(--muted); margin-top: 6px; letter-spacing: 0.04em; }
.emblem .han { display: inline; font-size: 0.95rem; color: var(--ink); }

/* ---------- Seasons ---------- */
.season-tracks { display: grid; gap: 32px; margin-top: 8px; }
.track { min-width: 0; }
.track h3 { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; margin-bottom: 4px; color: var(--ink-light); }
.track p.sub { color: var(--muted-light); font-size: 0.9rem; margin-bottom: 14px; }
.band-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; direction: ltr; }
.season {
  border: 1px solid rgba(246, 239, 224, 0.16); border-radius: 10px;
  padding: 14px 6px; text-align: center;
  background: rgba(252, 248, 238, 0.05); min-width: 0;
}
.season .han { display: block; font-size: clamp(1.3rem, 0.8rem + 2vw, 2.1rem); line-height: 1.15; color: var(--ink-light); }
.season .lab { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-light); margin-top: 6px; }
.season.now {
  border: 1.5px solid var(--gold);
  background: rgba(196, 169, 116, 0.16);
}
.season.now .lab { color: var(--gold-soft); font-weight: 700; }
.season.dim .han { color: rgba(246, 239, 224, 0.76); }
.season.dim .lab { color: rgba(246, 239, 224, 0.72); }
.season-bridge {
  margin-top: 36px; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.32rem, 1.08rem + 0.85vw, 1.72rem); line-height: 1.38;
  max-width: 44ch; border-top: 1px solid rgba(196, 169, 116, 0.45); padding-top: 18px;
  color: var(--ink-light);
}

/* ---------- Commitments ---------- */
.nos {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px; margin-top: 34px;
}
.nos li {
  border-top: 1px solid rgba(24, 35, 46, 0.22);
  padding-top: 16px; display: grid; gap: 6px; align-content: start; min-width: 0;
}
.nos strong { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; line-height: 1.16; }
.nos span { color: var(--muted); font-size: 0.94rem; }

.wont-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 38px; }
@media (max-width: 820px) { .wont-grid { grid-template-columns: minmax(0, 1fr); } }
.unknown-card {
  background: var(--surface-ink); color: var(--ink-light);
  border: 0;
  display: grid; gap: 16px; align-content: start;
  box-shadow: var(--shadow-elev);
}
.unknown-card p { color: var(--muted-light); max-width: 65ch; }
.unknown-card strong { color: var(--ink-light); }
.mini-ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; direction: ltr; }
.mini-ledger span {
  border: 1px solid rgba(246, 239, 224, 0.24); border-radius: 8px;
  padding: 10px 4px; text-align: center; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-light);
  background: rgba(252, 248, 238, 0.05); display: grid; gap: 4px; min-width: 0;
}
.mini-ledger b { font-size: 1.32rem; color: var(--ink-light); font-weight: 400; letter-spacing: 0; text-transform: none; }
.mini-ledger b.open { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold-soft); }

.ticks { display: grid; gap: 10px; margin-top: 14px; }
.ticks li { position: relative; padding-left: 20px; min-width: 0; font-size: 0.94rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 1.5px; background: var(--gold-ink); }
.unknown-card .ticks li::before,
.price.featured .ticks li::before,
.bucket.sealed .ticks li::before,
.limits-box .ticks li::before { background: var(--gold); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 36px; align-items: stretch; }
@media (max-width: 960px) { .price-grid { grid-template-columns: minmax(0, 1fr); } }
.price { display: flex; flex-direction: column; gap: 6px; position: relative; border-radius: 12px; }
.price .ticks { flex: 1; margin-bottom: 24px; }
.price.featured {
  background: linear-gradient(180deg, var(--surface-ink) 0%, var(--surface-ink-deep) 100%);
  color: var(--ink-light);
  border: 0;
  box-shadow: 0 24px 56px rgba(16, 28, 37, 0.22);
}
.price .flag { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; }
.price-fig { font-family: var(--serif); font-weight: 500; font-size: clamp(2.85rem, 1.9rem + 2.5vw, 3.85rem); line-height: 1; margin-top: 8px; }
.price-sub { font-size: 0.86rem; color: var(--muted); }
.price.featured .price-sub { color: var(--muted-light); }
.phase2 { background: var(--paper); border-radius: 10px; padding: 14px 18px; margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 30px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  min-height: 60px; padding: 18px 8px; cursor: pointer;
  font-family: var(--serif); font-weight: 500; font-size: 1.42rem; line-height: 1.24;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.25rem; font-weight: 400; color: var(--gold-ink); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 8px 20px; color: var(--muted); max-width: 65ch; }

/* ---------- Footer ---------- */
.site-foot {
  background: var(--surface-ink-deep); color: var(--ink-light);
  border-top: 1px solid rgba(196, 169, 116, 0.28);
  padding: 52px 24px 64px;
}
@media (min-width: 900px) {
  .site-foot { padding: 56px 48px 68px; }
}
.site-foot > .wrap { max-width: var(--maxw); padding-inline: 0; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 36px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.foot-brand { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; display: flex; align-items: center; }
.foot-sub { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-light); margin-top: 8px; }
.foot-copy { display: grid; gap: 12px; font-size: 0.875rem; color: var(--muted-light); max-width: 58ch; }
.foot-copy strong { color: var(--ink-light); font-weight: 600; }
.foot-copy .legal { font-size: 0.8rem; border-top: 1px solid var(--line-light); padding-top: 14px; }

/* ---------- Redacted Ledger (Beat 5) ---------- */
.ledger-wrap { margin-top: 28px; max-width: 620px; }
.ledger-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; direction: ltr; }
.lcol { display: grid; gap: 8px; min-width: 0; }
.lcol .pillar-label { text-align: center; }
.cell {
  display: grid; place-items: center; aspect-ratio: 1 / 1; min-width: 0; border-radius: 8px;
  font-size: 0.72rem; letter-spacing: 0.16em; font-weight: 700; text-transform: uppercase;
}
.cell.held {
  background: var(--surface-ink); color: var(--gold-soft);
  border: 1px solid rgba(196, 169, 116, 0.30);
}
.cell.shown {
  background: var(--card-solid); border: 1.5px solid var(--seal); color: var(--seal);
  font-family: var(--han); font-size: clamp(2.2rem, 1rem + 5vw, 3.6rem); letter-spacing: 0; line-height: 1;
}
.ledger-cap { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 1.28rem; }
.toc { margin-top: 32px; border-top: 1px solid var(--line); counter-reset: ch; }
.toc li {
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: 8px 12px;
  align-items: baseline; padding: 16px 12px; border-bottom: 1px solid var(--line); min-width: 0;
}
.toc .no { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; color: var(--muted); }
.toc .nm { font-family: var(--serif); font-weight: 500; font-size: 1.38rem; line-height: 1.2; }
.toc .nm small { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.84rem; color: var(--muted); }
.toc .mk {
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  border: 1px solid rgba(24, 35, 46, 0.24); border-radius: 999px; padding: 3px 10px;
}
.toc li.pick { background: var(--card-solid); border-radius: 10px; padding-inline: 16px; }
.toc li.door {
  background: var(--surface-ink); color: var(--ink-light);
  border-bottom: 0; border-radius: 0 0 12px 12px; margin-top: 4px;
}
.toc li.door .no, .toc li.door .nm small { color: var(--muted-light); }
.toc li.door .mk { border-color: rgba(196, 169, 116, 0.55); color: var(--gold-soft); }
@media (max-width: 520px) { .toc li { grid-template-columns: 2rem minmax(0, 1fr); } .toc .mk { grid-column: 2; justify-self: start; } }

/* ---------- Scope Ledger ---------- */
.ledger-top {
  background: linear-gradient(135deg, var(--surface-ink) 0%, var(--surface-ink-deep) 100%);
  color: var(--ink-light); padding: 24px;
  border-radius: 12px; border: 0;
  box-shadow: var(--shadow-elev);
}
@media (min-width: 900px) {
  .ledger-top { padding: 36px; }
}
.ledger-top .strip { font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; color: var(--muted-light); }
.ledger-top .strip strong { color: var(--ink-light); }
.ledger-top .strip span + span::before { content: "·"; margin-right: 14px; color: var(--gold); }
.ledger-top h1 { margin-bottom: 4px; }
.ledger-pillars { margin-top: 32px; max-width: 700px; }
.ledger-pillars h2 { margin-bottom: 14px; }
.lp-cell {
  background: var(--card-solid); border: 1px solid rgba(24, 35, 46, 0.12); border-radius: 10px;
  padding: 14px 6px; text-align: center; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; min-height: 120px; min-width: 0;
}
.lp-cell.is-dm { border: 1.5px solid rgba(184, 48, 36, 0.65); }
.lp-cell .han { font-size: clamp(1.7rem, 1rem + 2.4vw, 2.7rem); line-height: 1.1; }
.lp-cell.is-dm .han:first-of-type { color: var(--seal); }
.lp-cell .raw { font-size: 0.76rem; font-weight: 600; line-height: 1.3; padding: 0 2px; overflow-wrap: anywhere; }
.lp-cell .roman { font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.lp-cell.open { background: transparent; border-style: dashed; border-color: rgba(24, 35, 46, 0.34); }
.lp-cell .open-word { font-family: var(--serif); font-style: italic; font-size: 1.65rem; }

.alert {
  margin-top: 20px; padding: 18px 22px; border-radius: 10px;
  border: 1px solid rgba(196, 169, 116, 0.55);
  background: var(--paper-2); max-width: 65ch;
}
.alert strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin-bottom: 4px; }
.alert.plain { border-color: var(--line); background: var(--paper-2); }
.buckets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
@media (max-width: 820px) { .buckets { grid-template-columns: minmax(0, 1fr); } }
.bucket h2 { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; line-height: 1.18; margin-bottom: 8px; }
.bucket.sealed { background: var(--surface-ink); color: var(--ink-light); border: 0; box-shadow: var(--shadow-elev); }
.bucket.never { border: 1px dashed rgba(24, 35, 46, 0.28); box-shadow: none; }
.bucket .empty { color: var(--muted); font-style: italic; }
.bucket.sealed .empty { color: var(--muted-light); }
.bucket .guarantee { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-light); font-size: 0.92rem; color: var(--muted-light); }
.exit-card {
  margin-top: 32px; background: var(--card);
  border: 0; border-radius: 12px; box-shadow: var(--shadow-soft);
  padding: 22px;
}
@media (min-width: 900px) {
  .exit-card { padding: 30px; }
}
.exit-card .radio-stack { margin-top: 0; }

/* ---------- Order Sheet ---------- */
.preview-banner {
  background: var(--surface-ink); color: var(--ink-light);
  padding: 16px 20px; display: grid; gap: 4px;
  border-radius: 10px;
}
.preview-banner strong { font-size: 0.96rem; letter-spacing: 0.02em; }
.preview-banner span { font-size: 0.86rem; color: var(--muted-light); }
.line-items { margin-top: 24px; border-top: 1px solid rgba(24, 35, 46, 0.22); border-bottom: 1px solid rgba(24, 35, 46, 0.22); }
.li { display: grid; grid-template-columns: minmax(0, 1fr) 3rem 6rem; gap: 8px; padding: 13px 2px; align-items: baseline; border-bottom: 1px dotted var(--line); }
.li > :last-child { text-align: right; }
.li.head { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.li.total { border-bottom: 0; font-weight: 700; font-size: 1.05rem; }
.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 20px; }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 10px; font-size: 0.92rem; }
@media (max-width: 520px) { .facts div { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.facts dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.promise, .reflect {
  margin-top: 24px; border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 20px; background: var(--paper);
}
.promise p, .reflect p { margin-top: 6px; font-size: 0.92rem; color: var(--muted); max-width: 65ch; }

/* ---------- Tracking ---------- */
.order-id { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem); line-height: 1.08; margin-top: 8px; overflow-wrap: anywhere; }
.progress { margin-top: 30px; display: grid; gap: 0; counter-reset: s; }
.progress li { position: relative; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 4px 14px; padding: 0 0 26px; min-width: 0; }
.progress li::before { content: ""; position: absolute; left: 1.05rem; top: 2.2rem; bottom: 0; width: 1.5px; background: var(--line); }
.progress li:last-child::before { display: none; }
.progress li.done::before { background: var(--gold); }
.progress .dot {
  width: 2.2rem; height: 2.2rem; border: 1.5px solid var(--surface-ink); border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; background: var(--paper);
}
.progress li.done .dot { background: var(--surface-ink); color: var(--ink-light); border-color: var(--surface-ink); }
.progress li[aria-current="step"] .dot { background: var(--gold); border-color: var(--gold); color: var(--surface-ink-deep); }
.progress .nm { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.18; padding-top: 2px; }
.progress .st { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-family: var(--sans); margin-inline-start: 8px; }
.progress .sub { grid-column: 2; color: var(--muted); font-size: 0.9rem; }
.progress-bar { height: 6px; border-radius: 999px; overflow: hidden; background: var(--line); margin-top: 24px; }
.progress-bar span { display: block; height: 100%; background: var(--surface-ink); border-radius: 999px; }

/* ---------- Sample Dialog ---------- */
dialog#sample-dialog {
  width: min(960px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 auto; padding: 0; border: 0;
  background: var(--paper); color: var(--ink);
}
dialog#sample-dialog:modal { overscroll-behavior: contain; overflow-y: auto; }
dialog#sample-dialog::backdrop { overflow: hidden; overscroll-behavior: contain; background: rgba(10, 18, 24, 0.84); backdrop-filter: blur(6px); }
@media (min-width: 1000px) {
  dialog#sample-dialog {
    height: calc(100dvh - 48px); max-height: calc(100dvh - 48px); margin: 24px auto;
    border: 0; border-radius: 14px; box-shadow: 0 32px 80px rgba(8, 15, 21, 0.45);
  }
}
@media (prefers-reduced-motion: no-preference) {
  dialog#sample-dialog[open] { animation: dlg-enter 0.22s ease both; }
  @keyframes dlg-enter { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
}
.dlg-bar {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(16, 28, 37, 0.94); backdrop-filter: blur(10px);
  color: var(--ink-light); padding: 12px 24px;
  border-bottom: 1px solid rgba(196, 169, 116, 0.28);
}
.dlg-bar form { margin: 0; }
.dlg-kicker { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-light); min-width: 0; }
.dlg-close { min-height: 42px; padding: 8px 20px; }
.dlg-body { padding: 28px 24px 64px; min-width: 0; }
@media (min-width: 900px) {
  .dlg-bar { padding: 12px 48px; }
  .dlg-body { padding: 48px 48px 64px; }
}
.folio-cover { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 760px) { .folio-cover { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: start; gap: 40px; } }
.folio-cover img {
  width: 100%; max-width: 360px; height: auto;
  border: 0; border-radius: 10px;
  padding: 10px; background: var(--card-solid); box-shadow: var(--shadow-elev);
}
.copyright-page {
  margin-top: 24px; border-top: 1px solid rgba(196, 169, 116, 0.45); border-bottom: 1px solid rgba(196, 169, 116, 0.45);
  padding: 14px 0; font-size: 0.85rem; color: var(--muted); display: grid; gap: 4px;
}
.copyright-page b { color: var(--ink); }
.chapter { margin-top: clamp(40px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); min-width: 0; }
.chapter .no { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--muted); }
.chapter .cat { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.chapter h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.85rem, 1.25rem + 2vw, 2.75rem); line-height: 1.12; margin-top: 6px; text-wrap: balance; }
.chapter .summary { font-style: italic; color: var(--muted); margin-top: 8px; max-width: 60ch; }
.chapter p.body { margin-top: 14px; max-width: 65ch; font-size: 1.02rem; }
.chapter details { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.chapter details summary { min-height: 48px; padding: 10px 16px; cursor: pointer; font-weight: 600; display: flex; align-items: center; }
.chapter details .inner { padding: 4px 16px 16px; display: grid; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.chapter details .src { font-size: 0.76rem; letter-spacing: 0.05em; }
.chapter .refl {
  margin-top: 20px; background: var(--paper-2); border-radius: 10px;
  padding: 18px 22px; font-family: var(--serif); font-size: 1.32rem; line-height: 1.36;
}
.limits-box {
  margin-top: 48px; background: var(--surface-ink); color: var(--ink-light);
  border-radius: 12px; padding: 24px;
}
@media (min-width: 900px) {
  .limits-box { padding: 34px; }
}
.limits-box h2 { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; margin-bottom: 8px; }
.limits-box p { color: var(--muted-light); max-width: 65ch; }
.method-box { margin-top: 28px; }
.method-box details { border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.method-box summary { min-height: 48px; padding: 10px 16px; cursor: pointer; font-weight: 600; display: flex; align-items: center; }
.method-box .inner { padding: 4px 16px 16px; display: grid; gap: 8px; font-size: 0.9rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .top-bar, .btn, .g-card img, select::picker-icon { transition: none; }
}

/* ---------- Print / Forced Colors ---------- */
@media (forced-colors: active) {
  .btn-primary, .stamp { forced-color-adjust: none; }
}

/* Message-match hero eyebrow, gift CTA and plain-commitments list */
.hero-eyebrow { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.hero-gift-cta { margin-top: 18px; }
.plain-list { margin: 8px 0 0; padding-left: 1.25rem; display: grid; gap: 8px; font-size: 0.92rem; color: var(--muted); max-width: 65ch; }
.plain-list strong { color: var(--ink); font-weight: 600; }

/* ---------- Post-purchase radar survey & 14-day self-serve refund ---------- */
.radar-card, .refund-card {
  margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; background: var(--card);
}
.radar-options {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}
.radar-pill { position: relative; cursor: pointer; }
.radar-pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.radar-pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid rgba(24, 35, 46, 0.22); border-radius: 999px;
  font-size: 0.88rem; font-weight: 500; background: var(--card-solid); color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.radar-pill:hover span { border-color: rgba(24, 35, 46, 0.44); }
.radar-pill input:checked + span { background: var(--surface-ink); color: var(--ink-light); border-color: var(--surface-ink); }
.radar-pill input:focus-visible + span { outline: 2.5px solid var(--surface-ink); outline-offset: 3px; }
.refund-confirm {
  margin-top: 14px; padding: 16px; border-radius: 10px;
  background: var(--paper-2); border: 1px solid rgba(196, 169, 116, 0.55);
}
