:root {
  color-scheme: dark;
  --bg: #101110;
  --panel: #171916;
  --line: #34372f;
  --text: #f0ede5;
  --muted: #b0b2a8;
  --gold: #cdb580;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --gutter: clamp(22px, 6vw, 104px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 15px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
main { flex: 1; min-width: 0; }
::selection { background: var(--gold); color: var(--bg); }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
a:hover { color: var(--gold); }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 20; padding: 12px 20px; background: var(--gold); color: var(--bg); }
.skip-link:focus { top: 12px; }
.nav { min-height: 100px; padding: 18px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); position: relative; }
.brand { display: inline-flex; align-items: center; gap: 16px; flex-shrink: 0; }
.brand-mark { font: 500 34px/1 var(--serif); letter-spacing: -.06em; }
.brand-mark span { color: var(--gold); }
.brand-name { font-size: 10px; letter-spacing: .24em; line-height: 1.7; text-transform: uppercase; border-left: 1px solid var(--line); padding-left: 16px; }
nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 38px); color: var(--muted); font-size: 12px; }
nav a, .nav-link { min-height: 44px; display: inline-flex; align-items: center; }
nav a[aria-current=page] { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); }
nav form { margin: 0; }
.nav-link, .menu-toggle { background: none; border: 0; color: inherit; font: inherit; }
nav .nav-account { border: 1px solid #645b45; padding: 0 18px; color: var(--text); }
.menu-toggle { display: none; min-height: 44px; padding: 8px 0 8px 16px; font-size: 12px; color: var(--gold); }
.hero { max-width: 1600px; margin: auto; padding: clamp(64px, 8vw, 124px) var(--gutter) 64px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 6vw; align-items: center; }
.eyebrow { margin: 0 0 20px; font-size: 10px; font-weight: 500; letter-spacing: .2em; line-height: 1.8; color: var(--gold); text-transform: uppercase; }
.hero h1 { font: 400 clamp(48px, 5.3vw, 82px)/1.13 var(--serif); letter-spacing: -.045em; margin: 24px 0 30px; }
.hero h1 em { color: var(--gold); font-weight: 400; }
.lead { color: var(--muted); line-height: 1.9; max-width: 520px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 26px; min-height: 48px; max-width: 100%; margin: 22px 0 0; padding: 15px 22px; border: 1px solid var(--gold); border-radius: 0; background: var(--gold); color: #14160f; font: 600 11px/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-align: center; transition: background .2s, color .2s, border-color .2s; }
.button:hover { background: #e0cca4; border-color: #e0cca4; color: #14160f; }
.button.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.button.ghost:hover { border-color: var(--gold); color: var(--gold); }
.button.small { padding: 11px 14px; font-size: 10px; min-height: 44px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 48px; font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.hero-note span::before { content: '·'; color: var(--gold); margin-right: 12px; }
.hero-showcase { margin: 0; width: 100%; max-width: 360px; justify-self: end; }
.hero-art { display: block; padding: 20px; border: 1px solid #4a493d; background: #1c1e19; box-shadow: 0 24px 60px #0005; }
.hero-art img { width: 100%; height: 420px; object-fit: contain; background: #121410; }
.hero-showcase figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; font-size: 11px; color: var(--muted); }
.hero-showcase figcaption span { color: var(--gold); white-space: nowrap; }
.hero-seal { min-height: 380px; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, #292a20, transparent 70%); }
.hero-seal strong { font: 400 100px var(--serif); color: var(--gold); }
.hero-seal span { font-size: 10px; letter-spacing: .24em; }
.collection { max-width: 1600px; margin: auto; padding: 72px var(--gutter); }
#collection { border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 38px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2, .collection h2, .detail-info h2 { font: 400 clamp(28px, 3vw, 42px)/1.3 var(--serif); letter-spacing: -.025em; margin: 0 0 12px; }
.section-head > span { flex-shrink: 0; color: var(--muted); font-size: 12px; padding-bottom: 12px; }
.art-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; }
.art-card { min-width: 0; }
.art-image { display: block; aspect-ratio: 9/16; position: relative; background: #191c17 center/contain no-repeat; border: 1px solid var(--line); }
.art-image img { width: 100%; height: 100%; object-fit: contain; }
.art-image:hover { border-color: #807354; }
.edition, .sold { position: absolute; top: 14px; padding: 6px 10px; background: #101110ed; font-size: 9px; letter-spacing: .12em; }
.edition { left: 14px; color: var(--text); }
.sold { right: 14px; color: var(--gold); }
.card-meta { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 20px 0 0; }
.card-meta > div { min-width: 0; }
.card-meta h3 { font: 400 23px/1.35 var(--serif); margin: 0 0 8px; }
.card-meta p { font-size: 10px; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.card-meta strong { font-size: 12px; font-weight: 500; color: var(--gold); white-space: nowrap; padding-top: 5px; }
.spaces { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
.spaces .lead { margin-top: 0; max-width: none; }
.spaces h2 { max-width: 480px; }
.collection > h1 { font: 400 clamp(42px, 6vw, 72px)/1.15 var(--serif); letter-spacing: -.04em; margin: 20px 0 48px; }
.collection > h2 { margin-top: 48px; margin-bottom: 24px; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7vw; max-width: 1440px; margin: auto; padding: 64px var(--gutter) 96px; align-items: start; }
.detail-image { width: 100%; aspect-ratio: 9/16; max-width: 480px; justify-self: center; position: relative; background: #191c17 center/contain no-repeat; border: 1px solid var(--line); }
.detail-info { padding-top: 20px; min-width: 0; }
.detail-info h1 { font: 400 clamp(38px, 4.5vw, 64px)/1.15 var(--serif); letter-spacing: -.035em; margin: 22px 0; }
.price { font: 400 32px/1.4 var(--serif); margin: 30px 0; color: var(--gold); }
.badge { border: 1px solid #675e48; padding: 7px 9px; font-size: 9px; color: var(--gold); display: inline-block; margin: 3px 3px 3px 0; overflow-wrap: anywhere; max-width: 100%; }
.hash, .verify-result code { display: block; color: var(--muted); overflow-wrap: anywhere; font-size: 11px; margin: 16px 0 30px; }
.detail-info h2 { font-size: 28px; margin-top: 40px; }
.timeline { padding-left: 20px; color: var(--muted); font-size: 12px; }
.timeline li { padding: 6px 0 6px 5px; }
.form-wrap { width: 100%; max-width: 580px; margin: 72px auto 96px; padding: 0 26px; }
.form-wrap h1 { font: 400 clamp(38px, 4.8vw, 54px)/1.18 var(--serif); letter-spacing: -.035em; margin: 20px 0 28px; }
.form-wrap > p { color: var(--muted); }
.form-wrap p, .form-wrap strong { overflow-wrap: anywhere; }
.form-intro { margin-bottom: 32px; }
label { display: block; color: var(--muted); font-size: 11px; letter-spacing: .06em; margin: 22px 0; }
input, textarea { display: block; width: 100%; min-width: 0; margin-top: 10px; border-radius: 0; background: var(--panel); border: 1px solid #46493f; color: var(--text); padding: 14px; font: 16px/1.5 var(--sans); }
input::placeholder, textarea::placeholder { color: #93988b; }
input:hover, textarea:hover { border-color: #777965; }
textarea { min-height: 110px; resize: vertical; }
input[type=file] { font-size: 12px; overflow: hidden; }
input::file-selector-button { background: #292e23; color: var(--text); border: 0; padding: 10px; margin-right: 12px; font: inherit; cursor: pointer; }
.form-wrap form .button { margin: 8px 0 24px; }
.form-wrap > a:not(.button) { display: inline-block; min-height: 44px; color: var(--gold); font-size: 12px; }
.check { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0 18px; line-height: 1.7; font-size: 13px; letter-spacing: 0; cursor: pointer; }
.check input[type=checkbox] { flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0; padding: 0; accent-color: var(--gold); }
.check a, .terms-link, .notice a { color: var(--gold); text-decoration: underline; }
.validation-summary-valid { display: none; }
.validation-summary-errors, .field-validation-error { color: #edb2a7; font-size: 13px; }
.validation-summary-errors { border-left: 2px solid #bf8278; padding: 12px 16px; background: #261c19; margin: 12px 0 24px; }
.validation-summary-errors ul { padding-left: 18px; margin: 0; }
.input-validation-error { border-color: #bf8278; }
.verify-result { padding: 24px; border: 1px solid var(--line); margin-top: 32px; background: var(--panel); }
.verify-result h2 { font: 400 30px var(--serif); }
.notice { padding: 18px 20px; background: #252219; color: #dec795; border: 1px solid #514936; margin: 24px var(--gutter); overflow-wrap: anywhere; }
.collection .notice, .form-wrap .notice, .art-card .notice { margin: 20px 0; }
.empty-state { padding: 32px; border: 1px solid var(--line); color: var(--muted); margin: 0 0 24px; }
.empty-state p { margin: 0; }
.empty-state .button { margin-top: 18px; }
.legal-page { max-width: 850px; margin: 72px auto; padding: 0 26px 30px; }
.legal-page h1 { font: 400 clamp(38px, 5vw, 60px)/1.2 var(--serif); letter-spacing: -.03em; margin: 18px 0 32px; }
.legal-page h2 { font: 400 28px/1.4 var(--serif); margin: 36px 0 14px; }
.legal-page p { color: var(--muted); line-height: 1.95; }
.legal-page a { text-decoration: underline; }
.legal-notice { padding: 16px; border: 1px solid #5b5038; background: #252219; color: #e5cf9b; }
.admin-form { max-width: 760px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.admin-form label:nth-child(3), .admin-form label:nth-child(6) { grid-column: span 2; }
.order-list { display: grid; gap: 12px; }
.order-row, .order-item { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); background: var(--panel); }
.order-row { justify-content: space-between; margin-bottom: 12px; }
.order-item .amount { margin-left: auto; }
.status-badge { display: inline-block; padding: 4px 10px; border: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.status-badge.todo { border-color: #675b3f; color: var(--gold); }
.status-badge.wait { border-color: #456174; color: #aad2e5; }
.status-badge.ok { border-color: #4b7152; color: #a9d4ad; }
.status-badge.off { color: var(--muted); }
.link-button { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 4px 0; color: var(--gold); font: inherit; text-align: left; }
.link-button:hover { text-decoration: underline; }
.order-card { border: 1px solid var(--line); background: var(--panel); padding: 20px; margin-bottom: 16px; }
.order-card-head, .order-card-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.order-card-head { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.order-card-art { display: flex; align-items: center; gap: 16px; min-width: 0; }
.order-card-art small, .detail-grid small { display: block; color: var(--muted); font-size: 12px; }
.thumb { flex-shrink: 0; width: 36px; height: 64px; background: center/contain no-repeat; border: 1px solid var(--line); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 20px; margin: 20px 0; }
.detail-grid dt { font-size: 10px; letter-spacing: .08em; color: var(--muted); margin-bottom: 5px; }
.detail-grid dd { margin: 0; overflow-wrap: anywhere; }
.order-card-actions { justify-content: flex-end; padding-top: 16px; border-top: 1px solid var(--line); }
.order-card .button { margin: 0; }
.order-card-actions em { color: var(--muted); font-size: 13px; margin-right: auto; }
.vault-meta { display: block; }
.vault-meta h3 { margin: 0 0 6px; }
.vault-meta .cert-code { margin: 0 0 18px; }
.vault-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vault-actions .button { margin: 0; }
.vault-actions .button:last-child:nth-child(odd) { grid-column: 1/-1; }
.vault-buyback { margin-top: 12px; text-align: center; }
.vault-buyback .link-button, .terms-link { font-size: 12px; }
.terms-link { display: block; text-align: center; padding: 8px; }
.terms-modal { width: min(720px, calc(100% - 32px)); max-height: 86svh; padding: 0; border: 1px solid #57533f; background: var(--panel); color: var(--text); }
.terms-modal::backdrop { background: #000b; backdrop-filter: blur(5px); }
.terms-modal[open] { display: flex; flex-direction: column; }
.terms-modal-head, .terms-modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 22px; flex-shrink: 0; }
.terms-modal-head { border-bottom: 1px solid var(--line); }
.terms-modal-foot { border-top: 1px solid var(--line); justify-content: flex-end; }
.terms-modal-foot .button { margin: 0; }
.terms-modal-body { overflow: auto; overscroll-behavior: contain; padding: 6px 22px 22px; min-height: 0; }
.terms-modal-body .eyebrow, .terms-modal-body h1 { display: none; }
.terms-modal-body h2 { font: 400 24px/1.4 var(--serif); margin: 24px 0 10px; }
.terms-modal-body p { color: var(--muted); font-size: 14px; }
body:has(dialog[open]) { overflow: hidden; }
.money { appearance: textfield; -moz-appearance: textfield; }
.money::-webkit-outer-spin-button, .money::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.order-code { display: block; margin: 10px 0 20px; padding: 16px; font-size: clamp(18px, 4vw, 26px); letter-spacing: .08em; color: var(--gold); background: var(--panel); border: 1px solid var(--line); overflow-wrap: anywhere; user-select: all; }
footer { border-top: 1px solid var(--line); padding: 40px var(--gutter) 24px; }
.footer-top { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-bottom: 32px; }
.footer-top p { font: 400 20px var(--serif); color: var(--muted); margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px 28px; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: 11px; }
.footer-bottom a { display: inline-flex; min-height: 36px; align-items: center; }
.footer-bottom > span { margin-left: auto; align-self: center; }
@media (min-width: 1600px) { .art-grid { gap: 44px; } }
@media (max-width: 1000px) {
  .brand-name { display: none; }
  .hero { gap: 36px; }
  .hero-art { padding: 14px; }
  .hero-art img { height: 350px; }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail { gap: 36px; }
}
@media (max-width: 700px) {
  .nav { min-height: 80px; gap: 16px; flex-wrap: wrap; }
  .brand-name { display: block; }
  nav { width: 100%; flex-wrap: wrap; gap: 10px 24px; }
  .js .menu-toggle { display: inline-flex; align-items: center; }
  .js nav { display: none; }
  .js nav.is-open { display: flex; padding: 16px 0 6px; border-top: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; padding-top: 56px; gap: 48px; }
  .hero h1 { font-size: clamp(44px, 8.2vw, 62px); }
  .hero-showcase { justify-self: center; max-width: 320px; }
  .hero-art img { height: 380px; }
  .hero-note { margin-top: 32px; }
  .collection { padding-top: 48px; padding-bottom: 48px; }
  .section-head { align-items: start; gap: 16px; margin-bottom: 28px; }
  .section-head > span { padding-top: 3px; }
  .spaces, .detail { grid-template-columns: 1fr; gap: 24px; }
  .detail { padding-top: 32px; padding-bottom: 56px; }
  .detail-image { max-width: 380px; }
  .detail-info { padding-top: 12px; }
  .form-wrap, .legal-page { margin-top: 48px; margin-bottom: 64px; }
  .admin-form { display: block; }
  .footer-top { flex-direction: column; align-items: start; }
  .footer-bottom > span { width: 100%; margin-left: 0; }
}
@media (max-width: 480px) {
  .art-grid { grid-template-columns: 1fr; gap: 36px; }
  .section-head h2 { font-size: 28px; }
  .hero h1 br { display: none; }
  .hero h1 em { display: block; }
  .hero-art img { height: 350px; }
  .hero-note { gap: 8px 16px; }
  .order-card { padding: 16px; }
  .order-card-actions { align-items: stretch; }
  .order-card-actions form, .order-card-actions .button { width: 100%; }
  .order-item .amount { width: 100%; margin-left: 0; }
  .terms-modal-head, .terms-modal-foot { padding: 12px 16px; }
  .terms-modal-body { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.field-hint { display: block; margin-top: 8px; font-size: 11px; letter-spacing: 0; color: var(--muted); }
