/* The website — reverbmusic.app (routers/site.py, docs/features/WEBSITE.md).
 *
 * Standalone like share.css beside it: no framework, no imports, only the brand
 * tokens these pages draw, copied from web/src/brand/tokens.css (that file is
 * the truth; web/src/theme/palettes.test.ts holds both blocks below to it).
 *
 * **It follows the phone's light or dark setting, where share.css refuses to.**
 * The share page wears one palette because it has to match the card and the
 * favicon beside it in a message thread, which are one drawing in core dark. No
 * page here sits next to anything, so the reason does not apply, and what is left
 * is the product's own default: a fresh visit opens the phone's way round into
 * the core pair, Chrome or Blackout (DECISIONS.md § CORE_CHROME_BLACKOUT).
 *
 * The brand's rules hold: the accent is a spotlight, not a surface, so the one
 * filled button is the only accent fill; no gradients, no shadows, no glow.
 */

:root {
  color-scheme: light;
  /* Chrome */
  --paper: #FFFFFF;
  --card: #F5F5F5;
  --ink: #111312;
  --muted: #5D5F5A;
  --amber: #111312;
  --gold: #8E9190;
  --hairline: rgba(17, 19, 18, 0.13);
  --onAmber: #FFFFFF;
  --body: #414341;
  --inkA07: rgba(17, 19, 18, 0.07);
  --btnPrimaryBg: var(--ink);
  --btnPrimaryLabel: var(--card);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    /* Blackout */
    --paper: #0B0B0B;
    --card: #171717;
    --ink: #FFFFFF;
    --muted: #FFFFFF;
    --amber: #FFFFFF;
    --gold: #4A4A47;
    --hairline: rgba(255, 255, 255, 0.11);
    --onAmber: #0B0B0B;
    --body: #FFFFFF;
    --inkA07: rgba(242, 240, 235, 0.07);
    /* A dark ground puts the accent on the fill — the one accent-as-surface the
     * brand allows (BRAND_WEB.md rule 3). */
    --btnPrimaryBg: var(--amber);
    --btnPrimaryLabel: var(--onAmber);
  }
}

/* Type. Weight declared per face and synthesis off, as share.css does, so no
 * face is ever invented. */
@font-face {
  font-family: "Archivo Black";
  src: url("/static/fonts/ArchivoBlack-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block; /* a wordmark in a fallback face is a broken logo */
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/static/fonts/BricolageGrotesque-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/static/fonts/BricolageGrotesque-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/static/fonts/SpaceGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/static/fonts/SpaceGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/static/fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-synthesis: none;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--ink);
}
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

strong {
  font-weight: 700;
}

.site {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* --- masthead ------------------------------------------------------------ */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 8px;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 3px; /* the brand Lockup ratio: wordmark size × 5/36 */
  color: var(--ink);
  text-decoration: none;
}

/* The mark and the wordmark, exactly as share.css draws them — that file has
 * the geometry note. */
.spectrum {
  display: block;
}
.spectrum .bar {
  fill: var(--ink);
}
.spectrum .ghost {
  fill: var(--amber);
  fill-opacity: 0.5;
}

.wordmark {
  display: inline-grid;
  /* No fallback family: a wordmark in a substituted face is a broken logo. */
  font-family: "Archivo Black";
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1;
  padding-right: 0.27em;
}
.wordmark > span {
  grid-area: 1 / 1;
}
.wordmark .ghost2 {
  translate: 0.27em 0;
  opacity: 0.22;
}
.wordmark .ghost1 {
  translate: 0.13em 0;
  opacity: 0.40;
}

.masthead-link {
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
.page-support .masthead-link {
  visibility: hidden; /* you are here */
}

/* --- content -------------------------------------------------------------- */

.content {
  flex: 1;
  padding: 40px 0 56px;
}

.display {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 7vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.heading {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
  margin-top: 40px;
  scroll-margin-top: 24px;
}

.eyebrow {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
}

.lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--body);
  margin-top: 16px;
}

.content p,
.content ul,
.content ol {
  color: var(--body);
}
.content p + p {
  margin-top: 12px;
}
.heading + p,
.heading + ul,
.heading + ol {
  margin-top: 10px;
}
.display + .card,
.display + .lede {
  margin-top: 20px;
}

.content ul,
.content ol {
  padding-left: 22px;
  margin-top: 10px;
}
.content li + li {
  margin-top: 8px;
}
.steps li {
  padding-left: 4px;
}

.fine {
  font-size: 14px;
  color: var(--muted);
}
.content p.fine {
  color: var(--muted);
}

/* --- surfaces -------------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 20px;
}

.contact .address {
  font-weight: 700;
  font-size: 19px;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.contact .fine {
  margin-top: 8px;
}

/* --- the homepage ------------------------------------------------------------ */

.hero {
  padding-top: 8px;
}
.hero .lede {
  max-width: 34em;
}

.get {
  margin-top: 28px;
}
.get .fine {
  margin-top: 10px;
}

.btn {
  display: inline-block;
  padding: 15px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  background: var(--btnPrimaryBg);
  color: var(--btnPrimaryLabel);
}

.soon {
  display: inline-block;
  padding: 13px 18px;
  border-radius: 14px;
  background: var(--inkA07);
  color: var(--ink);
  font-weight: 700;
}
.content p.soon {
  color: var(--ink);
}

.triad {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 48px;
}
.triad .card p {
  margin-top: 6px;
  font-size: 15px;
}
@media (min-width: 640px) {
  .triad {
    grid-template-columns: repeat(3, 1fr);
  }
}

.note {
  margin-top: 8px;
}

/* --- footer ------------------------------------------------------------------ */

.colophon {
  border-top: 1px solid var(--hairline);
  padding: 24px 0 40px;
  font-size: 14px;
  color: var(--muted);
}

.colophon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 14px;
}
.colophon-links a {
  font-weight: 500;
  text-decoration: none;
}
.colophon-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--ink);
}

.colophon-line + .colophon-line {
  margin-top: 4px;
}
.colophon-line a {
  color: var(--muted);
  overflow-wrap: anywhere;
}
