/* Noir & Gold shared styles for release.html, watchlist.html and reserve.html
   (Sept 23, 2026). index.html and the content pages carry the same tokens
   inline; keep the two in step if the palette ever changes. */
:root {
  --charcoal: #14120f;
  --charcoal-2: #1c1915;
  --charcoal-3: #201c17;
  --panel: #18150f;
  --gold: #cfa365;
  --gold-hover: #e0b87c;
  --parchment: #ece6da;
  --parchment-dim: #b8ae9e;
  --ink-bright: #f3ede2;
  --muted: #a39a8b;
  --faint: #8d8474;
  --hairline: #2a251f;
  --line: #332d25;
  --line-strong: #3a332a;
  --btn-line: #4a4136;
  --ok: #8fc49a;
  --ok-bg: rgba(143, 196, 154, 0.12);
  --good: #8fae86;
  --amber: #d9a05b;
  --warn: #c98d6b;
  --serif: "Cormorant Garamond", Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--charcoal); color: var(--parchment); }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-decoration: none; }
button { font-family: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.page { max-width: 1248px; margin: 0 auto; padding: 0 48px; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--muted); }
.display { font-family: var(--serif); font-weight: 500; color: var(--ink-bright); letter-spacing: -0.01em; }
.display em { font-style: italic; color: var(--gold); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 76px; padding: 0 48px;
  background: rgba(20, 18, 15, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--parchment); flex-shrink: 0; }
.brand-mark { width: 26px; height: 26px; color: var(--gold); }
.brand-word { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 0.28em; }
.site-nav { display: flex; gap: 36px; font-size: 14px; letter-spacing: 0.04em; }
.site-nav a { color: var(--muted); }
.site-nav a[aria-current="page"] { color: var(--parchment); }
.account-actions { display: flex; align-items: center; gap: 12px; }
#header-account { display: flex; align-items: center; gap: 10px; }
.header-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 12px 6px;
  color: var(--parchment); font-size: 14px; font-weight: 500;
}
.header-link.as-button { background: none; border: 0; cursor: pointer; }
.header-reserve {
  display: inline-flex; align-items: center; min-height: 44px; padding: 12px 20px;
  border: 1px solid var(--gold); border-radius: 2px; color: var(--gold);
  font-size: 14px; font-weight: 600;
}
.tier-badge {
  padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.tier-badge.reserve { border-color: var(--gold); color: var(--gold); background: rgba(207, 163, 101, 0.1); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 2px; cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--gold); border: 1px solid var(--gold); color: var(--charcoal); }
.btn-ghost { background: transparent; border: 1px solid var(--btn-line); color: var(--parchment); font-weight: 500; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.chip {
  min-height: 40px; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-strong); color: #d6cebf; font-size: 13px;
}
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--charcoal); font-weight: 600; }
.star-btn {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong); color: var(--muted);
}
.star-btn svg { width: 18px; height: 18px; }
.star-btn[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); background: rgba(207, 163, 101, 0.12); }
.star-btn[aria-pressed="true"] svg { fill: currentColor; }

/* Status pills (same look as the feed) */
.status {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 5px 11px; border-radius: 999px; border: 1px solid transparent;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  justify-self: start; align-self: center; width: max-content;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.in_stock { color: var(--ok); background: var(--ok-bg); }
.status.limited { color: var(--gold); background: rgba(207, 163, 101, 0.12); }
.status.pre_order { color: var(--amber); background: rgba(217, 160, 91, 0.12); }
.status.announced { color: #b39ddb; background: rgba(179, 157, 219, 0.12); }
.status.watch, .status.sold_out { color: var(--faint); border-color: var(--line-strong); }
.status.unconfirmed { color: var(--faint); border: 1px dashed var(--line-strong); }
.status.watch::before, .status.sold_out::before { background: transparent; border: 1px solid currentColor; box-sizing: border-box; }

/* Cards / panels */
.panel { padding: 32px; background: var(--panel); border: 1px solid var(--hairline); }
.panel h2, .panel h3 { margin: 0; }
.panel-gold { background: var(--charcoal-3); border-color: var(--gold); }
.state-msg { padding: 48px 0; font-family: var(--serif); font-size: 22px; color: var(--parchment-dim); }

/* Forms */
.field-label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.field {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 3px;
  background: transparent; border: 1px solid var(--line); color: var(--parchment);
  font-family: var(--sans); font-size: 15px;
}
.field:focus { outline: none; border-color: var(--gold); }
.form-row { display: flex; gap: 10px; }
.form-row .field { flex: 1; }
.form-note { margin: 10px 0 0; min-height: 20px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Age gate */
.age-gate {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: var(--charcoal); text-align: center;
}
.age-gate-card { max-width: 380px; }
.age-gate .age-gate-title { margin: 0 0 14px; font-family: var(--serif); font-size: 34px; font-weight: 500; color: var(--ink-bright); }
.age-gate p { font-size: 14px; line-height: 1.6; color: var(--parchment-dim); margin: 0 0 28px; }
.age-gate-actions { display: flex; gap: 12px; justify-content: center; }
.age-gate-actions button { min-height: 44px; padding: 12px 20px; border-radius: 2px; cursor: pointer; font-size: 14px; font-weight: 600; }
.age-gate-actions .confirm { background: var(--gold); border: 1px solid var(--gold); color: var(--charcoal); }
.age-gate-actions .decline { background: transparent; border: 1px solid var(--btn-line); color: var(--parchment); }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
  margin-top: 96px; padding: 36px 0 48px; border-top: 1px solid var(--hairline);
  font-size: 13px; color: var(--faint);
}
.footer-word { font-family: var(--serif); font-size: 18px; letter-spacing: 0.24em; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--muted); }

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover, .header-link:hover, .footer-links a:hover { color: var(--gold); }
  .header-reserve:hover { background: var(--gold); color: var(--charcoal); }
  .btn-primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
  .btn-ghost:hover, .chip:hover, .star-btn:hover { border-color: var(--gold); color: var(--gold); }
  .chip[aria-pressed="true"]:hover { color: var(--charcoal); }
}
@media (max-width: 1100px) {
    /* Sept 23, 2026 (evening): below 1100px the nav used to be display:none with
       no menu button, so phones lost Calendar/Watchlist/About. It now wraps to a
       second, horizontally scrollable row under the brand. */
    .site-header { flex-wrap: wrap; height: auto; min-height: 64px; row-gap: 0; }
    .site-nav { order: 3; flex: 0 0 100%; display: flex; gap: 22px; overflow-x: auto; white-space: nowrap; padding: 0 0 10px; font-size: 13px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .site-nav::-webkit-scrollbar { display: none; }
    .site-nav a { flex: none; padding: 6px 0; }
}
@media (max-width: 900px) {
  .page { padding: 0 20px; }
  .site-header { height: auto; min-height: 64px; padding: 0 12px 0 20px; }
  .brand-word { font-size: 18px; letter-spacing: 0.24em; }
  .brand-mark { width: 22px; height: 22px; }
  .header-reserve { padding: 10px 14px; font-size: 13px; }
  #header-account .tier-badge { display: none; }
  .panel { padding: 24px; }
  .site-footer { flex-direction: column; align-items: flex-start; margin-top: 64px; }
}
@media (max-width: 420px) {
  .brand-word { font-size: 16px; }
  .account-actions { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Onboarding "star three" card (Sept 23, 2026) */
.star-prompt { border: 1px solid var(--gold); background: linear-gradient(180deg, rgba(207,163,101,0.08), rgba(207,163,101,0.02)); padding: 22px 22px 18px; margin: 0 0 24px; }
.star-prompt-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.star-prompt-head h2 { margin: 4px 0 6px; font-size: 28px; }
.star-prompt-sub { margin: 0; color: var(--parchment-dim); font-size: 14px; line-height: 1.6; max-width: 60ch; }
.star-prompt-close { background: none; border: 0; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.star-prompt-bar { height: 3px; background: var(--hairline); margin: 16px 0; }
.star-prompt-bar span { display: block; height: 100%; background: var(--gold); transition: width .3s ease; }
.star-prompt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.star-pick { display: flex; gap: 10px; align-items: center; text-align: left; background: transparent; border: 1px solid var(--hairline); color: var(--parchment); padding: 12px; cursor: pointer; font: inherit; min-height: 44px; }
.star-pick svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.star-pick.on { border-color: var(--gold); }
.star-pick.on svg { color: var(--gold); fill: currentColor; }
.star-pick-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.star-pick-text strong { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.star-pick-text span { font-size: 12px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .star-pick:hover { border-color: var(--gold); } }

/* Sign-in code step + invite banner (Sept 23, 2026 evening) */
.code-step { margin-top: 18px; }
.code-field { letter-spacing: 0.3em; font-variant-numeric: tabular-nums; max-width: 220px; }
.invite-banner { padding: 12px 48px; background: rgba(207, 163, 101, 0.12); border-bottom: 1px solid var(--gold); color: var(--parchment); font-size: 14px; line-height: 1.5; }
.invite-banner strong { color: var(--gold); }
.invite-banner a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .invite-banner { padding: 12px 20px; } }
