@font-face {
  font-family: Barlow Condensed;
  src: url('./assets/barlow-condensed-900.woff2') format('woff2');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}
:root {
  --ink: #25211c;
  --night: #191715;
  --paper: #f7efde;
  --white: #fff9ed;
  --amber: #f7ba61;
  --orange: #f5a245;
  --rust: #85451f;
  --line: #d8c8ad;
  --muted: #65594b;
  --dark-muted: #c3b7a2;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --display: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #c47620; outline-offset: 4px; }
section[id] { scroll-margin-top: 74px; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 9; padding: 10px 18px; background: var(--white); transform: translateY(-160%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 5; color: var(--white); background: #191715; border-bottom: 1px solid #42372b; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; gap: 10px; align-items: center; flex-shrink: 0; font-family: var(--display); font-size: 27px; font-weight: 900; letter-spacing: .045em; line-height: 1; }
.navigation { display: flex; align-items: center; gap: clamp(20px, 3.3vw, 43px); font-size: 14px; color: #e5d7c1; }
.navigation a { padding-block: 22px; white-space: nowrap; }
.navigation a:hover, .navigation a[aria-current] { color: var(--amber); }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 10px 22px; border: 1px solid transparent; border-radius: 5px; background: var(--amber); color: #241b12; font-weight: 800; line-height: 1.35; text-align: center; transition: background-color .16s ease, color .16s ease, border-color .16s ease; }
.button:hover { background: #ffd18b; }
.button:disabled { background: #ded1bb; color: #655a4a; }
.header-cta { min-height: 38px; padding: 7px 16px; font-size: 13px; }
.button-light { background: transparent; border-color: #c6b596; }
.button-light:hover { background: #efdfc4; }

.kicker { display: flex; align-items: center; gap: 10px; font: 700 12px/1.5 var(--mono); letter-spacing: .13em; color: var(--rust); }
.kicker span { font-size: 18px; line-height: 1; }

.mint-section { padding: 57px 0 65px; background: radial-gradient(ellipse at 95% 0%, #f8e7c9 0, var(--paper) 58%); }
.mint-grid { display: grid; grid-template-columns: 1fr .93fr; align-items: start; gap: clamp(30px, 6.6vw, 90px); margin-top: 11px; }
h2 { font-size: clamp(33px, 4.2vw, 51px); line-height: 1.12; font-weight: 850; letter-spacing: -.04em; }
.section-intro { margin-top: 15px; color: var(--muted); }
.progress { margin-top: 30px; border-block: 1px solid var(--line); padding: 20px 0; }
.progress-top, .progress-value, .price-row, .total-row, .card-head, .activity-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.progress-top h3, .activity h3 { font-size: 17px; line-height: 1.4; }
.chip { display: inline-flex; align-items: center; flex: none; gap: 6px; border: 1px solid #dbbf97; border-radius: 100px; padding: 4px 9px; color: #664121; background: #f4e0bf; font: 700 11px/1.35 var(--mono); letter-spacing: .04em; white-space: nowrap; }
.chip b { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.progress-value { justify-content: flex-start; align-items: baseline; margin: 7px 0 8px; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress-value strong { font: 900 58px/1 var(--display); color: var(--ink); }
#percent { margin-left: auto; font: 700 13px var(--mono); }
progress { display: block; width: 100%; height: 10px; border: 1px solid #d8bd96; border-radius: 20px; overflow: hidden; background: #ebd8b8; appearance: none; }
progress::-webkit-progress-bar { background: #ebd8b8; }
progress::-webkit-progress-value { background: #ad581d; }
progress::-moz-progress-bar { background: #ad581d; }
.progress-note { margin-top: 13px; font-size: 12px; color: var(--muted); }
.mint-card { background: #fffbf2; border: 1px solid #b9a382; border-radius: 9px; box-shadow: 5px 6px 0 #d9bb8e70; padding: clamp(19px, 3vw, 29px); }
.card-head { align-items: flex-start; margin-bottom: 16px; }
.card-head h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.eyeline { color: var(--rust); font: 700 10px/1.4 var(--mono); letter-spacing: .16em; margin-bottom: 4px; }
.chip-dark { color: var(--amber); background: #30251c; border-color: #30251c; padding: 5px 11px; }
.price-row { font-size: 14px; padding: 6px 0; color: var(--muted); }
.price-row strong { color: var(--ink); }
.quantity-label { display: block; margin: 13px 0 6px; font-size: 13px; font-weight: 750; }
.quantity { display: grid; grid-template-columns: 45px minmax(43px, 1fr) 45px minmax(57px, .37fr); gap: 7px; }
.quantity button, .quantity input { height: 45px; min-width: 0; border: 1px solid #cbb899; border-radius: 5px; color: var(--ink); background: var(--white); text-align: center; font-weight: 750; }
.quantity button { font-size: 22px; }
.quantity button:last-child { font: 800 12px/1 var(--mono); background: #f6e5c7; }
.quantity button:hover:not(:disabled) { background: var(--amber); border-color: #b87432; }
.quantity button:disabled, .quantity input:disabled { color: #827662; background: #eee5d5; }
.quantity input { width: 100%; padding-inline: 4px; appearance: textfield; }
.quantity input::-webkit-inner-spin-button, .quantity input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.total-row { border-top: 1px solid var(--line); margin-top: 15px; padding-block: 12px; font-size: 14px; }
.total-row output { font: 800 18px/1.3 var(--mono); }
.mint-submit { width: 100%; }
.card-note { color: var(--muted); text-align: center; font-size: 12px; margin-top: 8px; }

.activity { margin-top: 35px; border: 1px solid var(--line); border-radius: 7px; background: #fffbf299; }
.activity-head { min-height: 58px; padding: 9px 17px; border-bottom: 1px solid var(--line); }
.text-button { background: none; border: 0; padding: 8px 0; color: #78401b; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.text-button:disabled { color: #756c5c; text-decoration: none; }
.empty { color: var(--muted); padding: 18px 17px; font-size: 14px; }
.activity ol { list-style: none; margin: 0; padding: 0; }
.activity li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 13px; padding: 12px 17px; font-size: 14px; }
.activity li + li { border-top: 1px solid var(--line); }
.activity time { color: var(--muted); font-size: 12px; }
.activity li > span:last-child { text-align: right; font-family: var(--mono); }

.guide { padding: 62px 0 69px; color: #f9ecd6; background: #29231d; border-block: 1px solid #43382d; }
.guide .kicker { color: var(--amber); margin-bottom: 10px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 26px; border: 1px solid #6e5841; }
.steps article { padding: 20px 24px 25px; }
.steps article + article { border-left: 1px solid #6e5841; }
.step-number { color: var(--amber); font: 900 48px/1 var(--display); }
.steps h3 { font-size: 20px; margin-top: 5px; }
.steps p { margin-top: 5px; color: #d5c6b0; font-size: 14px; }
.faq { padding: 64px 0 72px; }
.faq-grid { display: grid; grid-template-columns: .61fr 1fr; gap: 30px; }
.faq .kicker { margin-bottom: 10px; }
.questions { border-top: 1px solid #cbb898; }
.questions details { border-bottom: 1px solid #cbb898; }
.questions summary { position: relative; display: block; list-style: none; cursor: pointer; padding: 16px 35px 16px 0; font-weight: 750; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: '+'; position: absolute; right: 4px; top: 10px; color: var(--rust); font-size: 24px; font-weight: 450; }
.questions details[open] summary::after { content: '−'; }
.questions details p { max-width: 55ch; color: var(--muted); font-size: 14px; padding: 0 15px 15px 0; }
.site-footer { padding: 20px 0; background: var(--night); color: #e6d6bb; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 13px; }
.footer-top { color: var(--amber); }

dialog { width: min(450px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 1px solid #9c764b; border-radius: 9px; color: var(--ink); background: var(--white); box-shadow: 0 18px 80px #100a07a8; }
dialog::backdrop { background: #181311ba; }
.dialog-content { padding: 22px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.close-button { border: 0; background: transparent; font-size: 28px; color: var(--muted); line-height: 1; min-width: 34px; height: 34px; }
.dialog-content h2 { font-size: 28px; }
.dialog-content h2 ~ div > p { color: var(--muted); margin: 12px 0 15px; font-size: 14px; }
.dialog-content dl { background: var(--paper); padding: 10px 13px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 16px; }
.dialog-content dl div { display: flex; justify-content: space-between; padding-block: 5px; gap: 8px; font-size: 14px; }
.dialog-content dd { font-weight: 750; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 9px; }
.dialog-actions .button { padding-inline: 7px; font-size: 14px; }
.dialog-done { width: 100%; }

@media (max-width: 950px) {
  .wrap { width: calc(100% - 60px); }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 61px; justify-content: flex-start; gap: 10px; }
  .header-inner > .brand { margin-right: auto; font-size: 23px; gap: 6px; }
  .header-inner .brand img { width: 32px; height: 32px; }
  .header-cta { order: 1; min-height: 35px; padding-inline: 11px; font-size: 12px; }
  .menu-toggle { display: flex; order: 2; flex: 0 0 42px; height: 42px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: #29221b; color: var(--paper); border: 1px solid #554431; border-radius: 5px; }
  .menu-toggle span { display: block; width: 17px; height: 2px; background: currentColor; }
  .navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--night); border-bottom: 1px solid #554431; padding: 5px 18px 12px; }
  .navigation.is-open { display: grid; gap: 0; }
  .navigation a { padding: 9px 0; }
  section[id] { scroll-margin-top: 63px; }
  .mint-section, .guide, .faq { padding-block: 38px 44px; }
  .mint-grid, .faq-grid { grid-template-columns: 1fr; gap: 22px; }
  .section-intro { margin-top: 10px; }
  .progress { margin-top: 17px; padding-block: 13px; }
  .activity { margin-top: 25px; }
  .activity li { gap: 6px 12px; grid-template-columns: 1fr auto; }
  .activity li > span:last-child { grid-row: 1; grid-column: 2; }
  .steps { grid-template-columns: 1fr; margin-top: 18px; }
  .steps article { display: grid; grid-template-columns: 49px 1fr; gap: 3px 13px; align-items: center; padding: 15px; }
  .steps article + article { border-left: 0; border-top: 1px solid #6e5841; }
  .step-number { grid-row: span 2; font-size: 42px; }
  .steps h3, .steps p { margin: 0; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner .brand { font-size: 22px; }
  .footer-inner .brand img { width: 29px; height: 29px; }
  .footer-inner > span { order: 2; flex-basis: 100%; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
