/* audiomaxxing account pages. Brand tokens first; everything else uses them. */
/* Fonts and their OFL licences are bundled in ./fonts/. */
@font-face {
  font-family: "Jersey 10";
  src: url("./fonts/jersey10.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("./fonts/archivo_regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("./fonts/archivo_semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("./fonts/archivo_bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/plexmono_regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/plexmono_medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --ground: #ffffff;
  --ink: #111111;
  --cream: #f4f3ee;
  --muted: #8a8a84;
  --rule: #d9d9d4;
  --leaf: #98e882;
  --leaf-dark: #4e9a3c;
  --signal: #ff4800;
  --head: "Jersey 10", "Archivo", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
}
a { color: var(--ink); text-decoration-color: var(--leaf-dark); text-underline-offset: 3px; }
a:hover { color: var(--leaf-dark); }
[hidden] { display: none !important; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 64px; }

/* header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 0; border-bottom: 1px solid var(--rule); margin-bottom: 32px;
}
.wordmark { font: 400 30px/1 var(--head); letter-spacing: .01em; text-decoration: none; }
.wordmark span { color: var(--leaf-dark); }
.top nav { display: flex; gap: 16px; }
.top nav a { text-decoration: none; }

/* type */
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1; margin: 0 0 12px; }
h1 { font-size: clamp(40px, 9vw, 60px); }
h2 { font-size: 34px; margin-top: 8px; }
h3 { font-size: 26px; }
p { margin: 0 0 14px; }
.label {
  font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
  margin: 0 0 8px;
}
.lead { font-size: 18px; }
.muted { color: var(--muted); }
.num { color: var(--signal); font-family: var(--mono); }
.mono { font-family: var(--mono); }

/* hand-drawn outlines: the border lives on a pseudo element so only it gets the rough filter */
.rough { position: relative; }
.rough::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 1.5px solid var(--ink); border-radius: 3px; filter: url(#rough);
}

.card { background: var(--cream); padding: 20px; margin: 0 0 18px; }
.card.white { background: var(--ground); }
.stack > * + * { margin-top: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 22px 0; }

/* buttons: black with white uppercase text, leaf-green fill on hover */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 20px; border: 0; border-radius: 3px; cursor: pointer;
  background: var(--ink); color: var(--ground); text-decoration: none;
  font: 600 13px/1 var(--body); letter-spacing: .1em; text-transform: uppercase;
  transition: background .15s, color .15s;
}
.btn:hover, .btn:focus-visible { background: var(--leaf); color: var(--ink); }
.btn:focus-visible { outline: 2px solid var(--leaf-dark); outline-offset: 3px; }
.btn[disabled] { opacity: .5; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--leaf); }
.btn.small { min-height: 36px; padding: 8px 14px; font-size: 11px; }
.btn.block { width: 100%; }

/* fields */
.field { display: block; margin: 0 0 14px; }
.field input {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: 3px;
  background: var(--ground); color: var(--ink); font: 400 17px/1.2 var(--body);
}
.field input:focus { outline: 2px solid var(--leaf-dark); outline-offset: 2px; }

/* messages */
.notice { border-left: 4px solid var(--leaf-dark); background: var(--ground); padding: 12px 14px; margin: 0 0 16px; }
.error { border-left: 4px solid var(--signal); background: var(--ground); padding: 12px 14px; margin: 0 0 16px; }
.error strong { color: var(--signal); }

.pill {
  display: inline-block; padding: 3px 8px; border-radius: 999px;
  font: 500 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  background: var(--leaf); color: var(--ink);
}
.pill.off { background: var(--rule); }
.pill.bad { background: var(--signal); color: var(--ground); }

/* lists of computers and downloads */
.list { list-style: none; margin: 0; padding: 0; }
.list li {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between;
  padding: 12px 0; border-top: 1px solid var(--rule);
}
.list li:first-child { border-top: 0; }
.list .what { min-width: 0; overflow-wrap: anywhere; }

.code {
  font: 500 28px/1 var(--mono); letter-spacing: .12em; color: var(--signal);
}
.machine { font-family: var(--head); font-size: 34px; line-height: 1; overflow-wrap: anywhere; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 18px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 44px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px;
  display: grid; place-items: center; background: var(--leaf); font: 600 14px/1 var(--mono);
  border-radius: 50%;
}

.prices { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .prices { grid-template-columns: 1fr 1fr; } }
.price { font: 400 52px/1 var(--head); color: var(--signal); }

footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }

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