/* AudioMe website. Colours and type follow the app (crates/server/ui/app.css):
   dark by default, Valve Amber accent, a serif for headings. */
:root {
  --bg: #111113;
  --bg2: #18181b;
  --surface: rgba(255, 255, 255, .045);
  --line: rgba(255, 255, 255, .09);
  --text: rgba(255, 255, 255, .93);
  --text2: rgba(255, 255, 255, .62);
  --text3: rgba(255, 255, 255, .4);
  --accent: #f2a33a;
  --accent-ink: #1a1205;
  --accent-soft: rgba(242, 163, 58, .12);
  --serif: "New York", ui-serif, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f6f8;
    --bg2: #ececf0;
    --surface: rgba(0, 0, 0, .04);
    --line: rgba(0, 0, 0, .1);
    --text: rgba(0, 0, 0, .88);
    --text2: rgba(0, 0, 0, .62);
    --text3: rgba(0, 0, 0, .42);
    --accent: #a65a00;
    --accent-ink: #fff;
    --accent-soft: rgba(166, 90, 0, .1);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(40px, 6.4vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text2); }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; font-weight: 600; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--bg); padding: 8px 12px; }

/* Beta strip and header */
.beta-strip { background: var(--accent-soft); border-bottom: 1px solid var(--line); font-size: 14px; }
.beta-strip .wrap { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; text-align: center; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); border-radius: 99px; padding: 3px 9px; }
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.admin-bar .top { top: 32px; }
@media (max-width: 782px) { .admin-bar .top { top: 46px; } }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--serif); font-size: 22px; }
.brand:hover { text-decoration: none; }
.clef { width: 11px; height: 27px; background: var(--accent); -webkit-mask: url(../img/clef.png) center / contain no-repeat; mask: url(../img/clef.png) center / contain no-repeat; }
nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
nav a { color: var(--text2); }
nav a:hover { color: var(--text); text-decoration: none; }
nav a[aria-current] { color: var(--accent); }
nav a { white-space: nowrap; }
@media (max-width: 640px) {
  nav { gap: 18px; }
  nav a:not(.btn):first-child { display: none; }
}
@media (max-width: 480px) {
  nav .btn { display: none; }
  .beta-strip { font-size: 13px; }
  .beta-strip .wrap { gap: 4px 10px; padding-top: 8px; padding-bottom: 8px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink) !important; font-weight: 600; border-radius: 99px; padding: 13px 24px; font-size: 16px; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.small { padding: 7px 15px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--text) !important; box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--surface); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding: 96px 0; scroll-margin-top: 64px; }
section + section { border-top: 1px solid var(--line); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text2); max-width: 640px; }
.head { max-width: 720px; margin-bottom: 48px; }

/* Hero */
.hero { padding: 104px 0 64px; overflow: hidden; }
.hero h1 { max-width: 880px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { margin-bottom: 32px; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--text3); }
.wave { margin-top: 72px; height: 120px; display: flex; align-items: center; gap: 3px; }
.wave i { flex: 1; min-width: 2px; background: var(--text3); border-radius: 2px; opacity: .55; }
.wave i.played { background: var(--accent); opacity: 1; }
.wave-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--text3); margin-top: 12px; font-variant-numeric: tabular-nums; }

/* The interface: the whole app window. The picture carries its own window
   shadow on a transparent background. */
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head.center .lead { margin-left: auto; margin-right: auto; }
.interface { padding-bottom: 72px; }

/* Cards and grids */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.1em; color: var(--text2); margin: 0; }
.card li + li { margin-top: 4px; }
.card .muted { font-size: 16px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); margin-bottom: 10px; }
.tag.soon { color: var(--accent); }

/* Streaming callout */
.callout { display: grid; gap: 40px; grid-template-columns: 1.1fr 1fr; align-items: start; }
@media (max-width: 820px) { .callout { grid-template-columns: 1fr; } }
.callout .card { background: var(--accent-soft); border-color: transparent; }

/* Setups table */
.setups { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.setups > div { background: var(--bg); padding: 24px 28px; display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.setups b { font-family: var(--serif); font-weight: 500; font-size: 20px; }
@media (max-width: 700px) { .setups > div { grid-template-columns: 1fr; gap: 6px; } }

/* Player table */
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
td:first-child { font-family: var(--serif); font-size: 19px; }
.yes { color: var(--accent); }
.no, .unknown { color: var(--text3); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap tr:last-child td { border-bottom: 0; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-family: var(--serif); font-size: 21px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-family: var(--sans); }
details[open] summary::after { content: "–"; }
details p { color: var(--text2); margin: 12px 0 0; max-width: 720px; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps .card::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; margin-bottom: 16px; }

/* CTA */
.cta { text-align: center; }
.cta .lead { margin: 0 auto 32px; }
.cta .actions { justify-content: center; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 64px; color: var(--text2); font-size: 15px; }
.foot .brand { margin-bottom: 14px; font-size: 19px; }
.foot .fine { color: var(--text3); font-size: 13px; max-width: 640px; }

/* The interface: the app window cross-fading between its screens. */
.screens { --dur: 6s; }
.screens-stage { display: grid; margin: 0 -12px; }
.screen {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  transform: scale(.985);
  transition: opacity 1.1s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1);
}
.screen.on { opacity: 1; transform: none; }
.screen img { width: 100%; height: auto; display: block; }

.screens-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 28px; margin-top: 18px; }
.screens-tabs button {
  position: relative;
  background: none;
  border: 0;
  padding: 8px 0 10px;
  font: inherit;
  font-size: 15px;
  color: var(--text3);
  cursor: pointer;
  transition: color .3s;
}
.screens-tabs button:hover, .screens-tabs button.on { color: var(--text); }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; opacity: 0; transition: opacity .3s; }
.on .bar { opacity: 1; }
.bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.screens.run .on .bar::after { animation: fill var(--dur) linear forwards; }
.screens.paused .on .bar::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

@media (max-width: 640px) {
  .screens-stage { margin: 0 -8px; }
  .screens-tabs { gap: 4px 18px; }
  .screens-tabs button { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .screen { transition: none; transform: none; }
}

/* Pages written in WordPress, such as the privacy policy. */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; font-size: 30px; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose img { height: auto; border-radius: 10px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
