:root {
  --ink: #1c1916;
  --ink-soft: rgba(28, 25, 22, .74);
  --muted: rgba(28, 25, 22, .52);
  --paper: #f3efe6;
  --paper-deep: #e7e0d2;
  --brass: #9c7a4a;
  --brass-2: #c6a56d;
  --line: rgba(28, 25, 22, .14);
  --moss: #3e4a3c;
  --ok: #2c4634;
  --danger: #7d3b32;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "PMingLiU", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --latin: "Cormorant Garamond", "Times New Roman", serif;
  --wrap: 1120px;
  --nav: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(156, 122, 74, .09), transparent 55%),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
::selection { background: #e6d3b4; color: var(--ink); }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 90;
  background: #fff;
  padding: 8px 12px;
}
.skip:focus { top: 16px; }

.frame {
  position: fixed;
  inset: 10px;
  border: 1px solid rgba(156, 122, 74, .45);
  pointer-events: none;
  z-index: 40;
}
.spine {
  display: none;
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  letter-spacing: .42em;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--brass);
  z-index: 35;
  margin: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

.kicker {
  margin: 0 0 10px;
  font-family: var(--latin);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
}
.lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.9;
  color: var(--ink-soft);
  max-width: 36em;
}
.variant {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--brass);
}
.note {
  margin: 18px 0;
  padding-left: 16px;
  border-left: 1px solid var(--brass);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
  font-weight: 300;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .14em;
  font-size: 13px;
  transition: background .35s ease, color .35s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-fill { background: var(--ink); color: var(--paper); }
.btn-fill:hover { background: transparent; color: var(--ink); }
.btn:disabled { opacity: .55; cursor: wait; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav);
  background: rgba(243, 239, 230, .9);
  backdrop-filter: blur(14px);
}
.nav.is-scrolled { box-shadow: inset 0 -1px 0 var(--line); }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
  z-index: 90;
}
.logo-seal {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brass);
  color: var(--brass);
  font-family: var(--serif);
  font-size: 16px;
}
.logo-words { display: flex; flex-direction: column; line-height: 1; }
.logo-words strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .18em;
}
.logo-words em {
  margin-top: 5px;
  font-family: var(--latin);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--brass);
}
.nav-toggle {
  display: inline-flex;
  position: relative;
  z-index: 90;
  border: 1px solid var(--line);
  background: transparent;
  min-height: 36px;
  padding: 0 12px;
  letter-spacing: .14em;
  font-size: 13px;
}
.close-label { display: none; }
.nav-menu { display: none; }
.nav-menu a {
  text-decoration: none;
  letter-spacing: .14em;
}
.nav-open { overflow: hidden; }
.nav-open .open-label { display: none; }
.nav-open .close-label { display: inline; }
.nav-open .nav-menu {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 80;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
  padding: 15vh 12vw;
  background: rgba(243, 239, 230, .98);
}
.nav-open .nav-menu a {
  font-family: var(--serif);
  font-size: 36px;
  letter-spacing: .12em;
}
.nav-open .nav-menu a.is-auth {
  border: 0;
  padding: 0;
}

.hero {
  display: grid;
  gap: 28px;
  padding: 8px 0 36px;
}
.hero h1 {
  margin: 8px 0 18px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(64px, 16vw, 108px);
  line-height: 1.02;
}
.hero h1 span { display: block; }
.hero h1 span + span { padding-left: .38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .media { min-height: 460px; }

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--latin);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 14px;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker-track div { padding: 14px 24px; white-space: nowrap; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.pillars {
  display: grid;
  gap: 22px;
  padding: 64px 0;
}
.pillar { border-top: 1px solid var(--ink); padding-top: 16px; }
.num, .step-no {
  font-family: var(--latin);
  color: var(--brass);
  font-size: 22px;
}
.pillar h2, .ritual h3, .chapter h2, .band h2, .invite h2, .ritual-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
  margin: 8px 0 10px;
}
.pillar p, .ritual p { margin: 0; color: var(--ink-soft); font-weight: 300; line-height: 1.9; }

.chapter {
  display: grid;
  gap: 28px;
  padding-bottom: 72px;
}
.chapter .btn { margin-top: 8px; }

.band {
  display: grid;
  gap: 28px;
  margin: 8px 0 72px;
  padding: 32px 22px;
  background: #1c1916;
  color: #f3efe6;
}
.band .lead { color: rgba(243, 239, 230, .78); }
.band .btn { color: #f3efe6; border-color: rgba(243, 239, 230, .55); }
.band .btn:hover { background: #f3efe6; color: #1c1916; }
.band .btn-fill { background: #f3efe6; color: #1c1916; border-color: #f3efe6; }
.band .btn-fill:hover { background: transparent; color: #f3efe6; }
.spec-mini, .specs {
  display: grid;
  gap: 14px;
  margin: 22px 0 26px;
}
.spec-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spec-mini div, .specs div { border-top: 1px solid rgba(243, 239, 230, .22); padding-top: 10px; }
.spec-mini dt, .specs dt {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--brass-2);
}
.spec-mini dd, .specs dd {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 16px;
}
.band .media {
  background: #2a2622;
  color: #f3efe6;
}
.band .media-brief,
.band .media-placeholder pre { color: rgba(243, 239, 230, .78); }
.band .media-placeholder pre { background: rgba(255, 255, 255, .04); }
.band .copy-prompt { color: #f3efe6; border-color: rgba(243, 239, 230, .4); }

.ritual { padding-bottom: 72px; }
.ritual-grid { display: grid; gap: 22px; }
.ritual article { border-top: 1px solid var(--line); padding-top: 16px; }

.invite {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 84px;
  padding: 32px 24px;
  border: 1px solid var(--line);
}
.invite .btn { align-self: flex-start; }

.page-hero { padding: 18px 0 28px; max-width: 760px; }
.page-hero h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 84px);
  line-height: 1.08;
}
.notfound { padding-bottom: 120px; }

.prose { max-width: 40em; }
.prose h2 {
  margin: 42px 0 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
}
.prose p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 16px;
  line-height: 2;
}

.pair { display: grid; gap: 14px; margin: 42px 0 80px; }
.product-layout { display: grid; gap: 28px; }
.product-gallery .pair { margin: 14px 0 0; }
.product-info h2 {
  margin: 34px 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
}
.specs { margin-top: 28px; }
.specs div { border-top-color: var(--line); }
.specs dt { color: var(--brass); }
.ing, .usage { margin: 0; padding: 0; list-style: none; }
.ing li, .usage li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  line-height: 1.7;
}
.ing span {
  font-family: var(--latin);
  color: var(--brass);
}
.usage { counter-reset: use; }
.usage li { counter-increment: use; }
.usage li::before {
  content: counter(use, decimal-leading-zero);
  font-family: var(--latin);
  color: var(--brass);
}
.buy-row { margin-top: 28px; }
.ingredients-block { max-width: 760px; margin: 0 0 84px; }

.auth-panel { max-width: 680px; padding-bottom: 100px; }
.field {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--brass);
}
.auth-panel input[name="code"] {
  width: 100%;
  margin-bottom: 22px;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-family: var(--latin);
  font-size: 32px;
  letter-spacing: .06em;
}
.auth-panel input:focus { outline: none; border-bottom-color: var(--brass); }
.hint { color: var(--muted); font-size: 14px; line-height: 1.8; }
.auth-result {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.auth-result[hidden] { display: none; }
.seal {
  flex: none;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px currentColor;
  font-family: var(--serif);
  letter-spacing: .14em;
  text-indent: .14em;
}
.seal[data-state="valid"] { color: var(--ok); }
.seal[data-state="expired"],
.seal[data-state="revoked"],
.seal[data-state="unknown"],
.seal[data-state="invalid"],
.seal[data-state="error"] { color: var(--danger); }
.auth-status { margin: 0 0 6px; font-family: var(--serif); font-size: 32px; }
.auth-detail { margin: 0; white-space: pre-line; color: var(--ink-soft); }

.contact-grid { display: grid; gap: 36px; padding-bottom: 88px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list span {
  display: block;
  margin-bottom: 4px;
  color: var(--brass);
  font-size: 12px;
  letter-spacing: .16em;
}
.contact-form label {
  display: block;
  margin: 16px 0 6px;
  font-size: 13px;
  letter-spacing: .12em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-bottom-color: var(--brass); }
.contact-form .btn { margin-top: 22px; }
.form-note { min-height: 1.5em; color: var(--moss); }

.media {
  position: relative;
  aspect-ratio: var(--ratio, 4/5);
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(156, 122, 74, .18), transparent 46%),
    #e5ddcf;
  color: var(--ink);
}
.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.media.has-image img { opacity: 1; }
.media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(156, 122, 74, .55) transparent;
}
.media.is-compact:not(.has-image) {
  aspect-ratio: auto;
  min-height: 0;
}
.media.is-compact:not(.has-image) .media-placeholder {
  position: relative;
  inset: auto;
  overflow: visible;
}
.media.is-compact.has-image { aspect-ratio: var(--ratio, 1/1); }
.media-more { margin-top: 4px; }
.media-more summary {
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--brass);
}
.media-more summary::-webkit-details-marker { display: none; }
.media.is-compact .media-more pre {
  max-height: 140px;
  margin-top: 8px;
}
.media.has-image .media-placeholder { display: none; }
.media-kicker {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--brass);
}
.media-placeholder strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
}
.media-file { font-style: normal; font-size: 12px; color: var(--muted); }
.media-brief { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.media-placeholder pre {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 10px 12px;
  overflow: auto;
  background: rgba(255, 255, 255, .38);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.copy-prompt {
  align-self: flex-start;
  border: 1px solid currentColor;
  background: transparent;
  padding: 7px 12px;
  letter-spacing: .12em;
  font-size: 12px;
}

.footer {
  display: grid;
  gap: 28px;
  padding: 36px 0 18px;
  border-top: 1px solid var(--line);
}
.footer-name {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
}
.footer a, .footer-base a { text-decoration: none; }
.footer a { display: block; padding: 3px 0; }
.footer-label {
  margin: 0 0 8px;
  color: var(--brass);
  font-size: 12px;
  letter-spacing: .18em;
}
.footer-base {
  display: grid;
  gap: 6px;
  padding: 8px 0 28px;
  color: var(--muted);
  font-size: 13px;
}
.footer-base p { margin: 0; }

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.simple-page { padding: 12vh 0 20vh; }
.simple-page h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 68px);
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .9s ease forwards;
}
.js .reveal:nth-child(2) { animation-delay: .08s; }
.js .reveal:nth-child(3) { animation-delay: .16s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

:focus-visible {
  outline: 1px solid var(--brass);
  outline-offset: 3px;
}

@media (min-width: 800px) {
  .pillars, .ritual-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .invite { flex-direction: row; justify-content: space-between; align-items: flex-end; padding: 48px; }
  .pair { grid-template-columns: 1.05fr .95fr; }
  .footer { grid-template-columns: 1.4fr .8fr 1fr; }
  .footer-base { grid-template-columns: auto 1fr auto; align-items: baseline; }
}

@media (min-width: 980px) {
  .wrap { width: min(var(--wrap), calc(100% - 128px)); }
  .spine { display: block; left: 26px; }
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .nav-menu a { font-size: 14px; color: var(--ink-soft); }
  .nav-menu a:hover,
  .nav-menu a[aria-current="page"] { color: var(--ink); }
  .nav-menu a.is-auth {
    border: 1px solid var(--ink);
    padding: 8px 14px;
    color: var(--ink);
  }
  .hero {
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: stretch;
    min-height: calc(100vh - 120px);
    min-height: calc(100svh - 120px);
    padding-bottom: 48px;
  }
  .hero-copy { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 8px; }
  .hero .media { height: 100%; min-height: 640px; aspect-ratio: auto; }
  .chapter { grid-template-columns: .92fr 1.08fr; gap: 64px; align-items: center; }
  .band { grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; padding: 56px; }
  .product-layout { grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
  .product-gallery { position: sticky; top: 96px; }
  .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; }
  .specs { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; animation: none; }
}
