/* Goldmute design system: black glass.
   A near-black room lit by soft white light from above, graphite frosted-glass panels with hairline edges,
   rounded pill controls, and one hint of colour: a warm amber-gold that glows where something is cut or
   pressed. Every page links this file and adds only its own layout. */
:root {
  --bg: #050505;
  --text: #f6f5f2;
  --dim: rgba(246, 245, 242, .64);
  --faint: rgba(246, 245, 242, .40);
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .20);
  --well: rgba(255, 255, 255, .06);
  --on-light: #0c0c0d;
  --silver: #e9e9e7;
  --silver-soft: rgba(255, 255, 255, .28);
  --gold: #d6b06a;          /* champagne: the one hint of colour */
  --gold-2: #efd9aa;
  --gold-glow: rgba(214, 176, 106, .38);
  --alert: #ff8574;
  --ok: #6fe3a8;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  --r-lg: 28px;
  --r: 22px;
  --r-sm: 14px;
  --pad: clamp(16px, 3vw, 56px);
  --gap: clamp(12px, 1.1vw, 20px);
  color-scheme: dark;
}
html { font-size: clamp(15px, .36vw + 10.4px, 18px); }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 400 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 760px at 50% -8%, rgba(255, 255, 255, .13), transparent 62%),
    radial-gradient(900px 640px at 100% 30%, rgba(255, 255, 255, .05), transparent 60%),
    radial-gradient(900px 640px at 0% 100%, rgba(255, 255, 255, .045), transparent 60%),
    radial-gradient(820px 520px at 50% 64%, rgba(214, 176, 106, .06), transparent 70%),
    linear-gradient(180deg, #151517 0%, #070708 55%, #050505 100%);
  background-attachment: fixed;
}
p, h1, h2, h3, dl, dd, ol, ul, figure { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.caps { text-transform: uppercase; letter-spacing: .01em; font-weight: 500; line-height: 1.25; }
.small { font-size: .8125rem; line-height: 1.5; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

/* the logo: "Gold" in script, glowing gold; "mute" in the sans */
.mark { display: inline-flex; align-items: baseline; text-decoration: none; line-height: 1; white-space: nowrap; color: var(--text); }
.mark .g { font-family: var(--script); font-size: 1.22em; margin-right: .06em; color: #dcbd82;
  -webkit-text-stroke: .05em currentColor; paint-order: stroke fill; text-shadow: 0 0 .4em rgba(214, 176, 106, .28); }
.mark .m { font-family: var(--sans); font-weight: 600; letter-spacing: -0.035em; }

/* glass */
.card {
  position: relative; border-radius: var(--r); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03));
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 30px 70px -36px rgba(0, 0, 0, .75);
}
.card-pad { padding: clamp(16px, 1.4vw, 24px); }
.card-h { font: 600 1.0625rem/1.2 var(--sans); letter-spacing: -0.01em; }
.card-s { font-size: .78rem; color: var(--faint); margin-top: 3px; }
.big { font: 400 clamp(2.1rem, 2.4vw, 2.8rem)/1 var(--sans); letter-spacing: -0.03em; }

/* pills */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 2.9rem; padding: 0 1.25rem;
  border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text);
  font: 600 .9rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s; }
.pill:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .34); }
.pill.solid { background: #fff; color: var(--on-light); border-color: #fff; padding: 0 .38rem 0 1.25rem; }
.pill.solid:hover { background: #eef1ff; }
.pill .dot { width: 2.15rem; height: 2.15rem; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(180deg, #2a2a2c, #0c0c0d); color: #fff; font-weight: 700; font-size: .95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
/* the accent pill: brushed silver, for the one action that matters on a card (download, fine-tune) */
.pill.gold { border: 1px solid rgba(255, 255, 255, .6); color: var(--on-light); background: linear-gradient(180deg, #ffffff, #d4d4d1);
  box-shadow: 0 10px 28px -14px rgba(255, 255, 255, .5), inset 0 1px 0 #fff; }
.pill.gold:hover { background: linear-gradient(180deg, #ffffff, #e2e2df); }
.pill.big { min-height: 3.4rem; font-size: 1rem; }
.pill.solid.big { padding-left: 1.5rem; }
.pill.solid.big .dot { width: 2.6rem; height: 2.6rem; }
.pill:disabled { opacity: .45; cursor: default; }

/* segmented pill choice built from radio inputs */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--well); border: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: inline-flex; align-items: center; justify-content: center; min-height: 2.3rem; padding: 0 1rem; border-radius: 999px;
  color: var(--dim); font-weight: 600; font-size: .85rem; cursor: pointer; transition: background .15s, color .15s; }
.seg label:hover { color: var(--text); }
.seg input:checked + label { background: #fff; color: var(--on-light); }
.seg input:focus-visible + label { outline: 2px solid var(--gold-2); outline-offset: 2px; }

/* small status chip: a glowing dot and a word */
.chip { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; color: var(--dim); white-space: nowrap; }
.chip::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold-glow); }
.chip.ok::before { background: var(--ok); box-shadow: 0 0 10px rgba(111, 227, 168, .6); }
.chip.bad::before { background: var(--alert); box-shadow: 0 0 10px rgba(255, 133, 116, .6); }

/* striped progress bar */
.stripes { height: 9px; border-radius: 999px; background: var(--well); overflow: hidden; }
.stripes > i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .3s;
  background: repeating-linear-gradient(-45deg, rgba(246, 245, 242, .95) 0 4px, rgba(246, 245, 242, .32) 4px 8px); }
.stripes.gold > i { background: repeating-linear-gradient(-45deg, rgba(239, 217, 170, 1) 0 4px, rgba(214, 176, 106, .4) 4px 8px); }
.stripes.busy > i { width: 100%; background-size: 22px 22px; animation: crawl 1s linear infinite; }
@keyframes crawl { from { background-position: 0 0; } to { background-position: 22px 0; } }

/* top bar shared by every page */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding-block: 18px; }
.topbar .mark { font-size: clamp(26px, 1.6vw, 31px); }
.topbar nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 40px); font-size: .9rem; color: var(--dim); }
.topbar nav a { text-decoration: none; transition: color .15s; }
.topbar nav a:hover, .topbar nav a[aria-current] { color: var(--text); }
.topbar .acts { display: flex; align-items: center; gap: 10px; }
@media (max-width: 860px) { .topbar nav { display: none; } }
@media (max-width: 560px) { .topbar .acts > .pill:not(.solid) { display: none; } .topbar .pill.solid { padding-left: 1rem; } }

/* footer shared by every page */
.foot-bar { margin-top: clamp(48px, 5vw, 96px); padding: clamp(22px, 2vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px 40px; }
.foot-bar .mark { font-size: clamp(30px, 2.4vw, 44px); }
.foot-bar h2 { font: 600 1rem/1.2 var(--sans); color: var(--gold-2); }
.foot-bar p { font-size: .82rem; color: var(--dim); margin-top: 6px; max-width: 46em; }
.foot-bar .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 16px;
  border-top: 1px solid var(--line); font-size: .78rem; color: var(--faint); }
.foot-bar .legal nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-bar .legal a { text-decoration: none; }
.foot-bar .legal a:hover { color: var(--text); }
@media (max-width: 760px) { .foot-bar { grid-template-columns: minmax(0, 1fr); } }

.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 10px);
  display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 999px; max-width: calc(100% - 32px);
  background: rgba(24, 24, 26, .92); border: 1px solid var(--line-2); color: var(--text); font-size: .875rem; text-align: center;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast .pill { min-height: 2.2rem; padding: 0 .9rem; font-size: .8rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
