/* Mostly Asleep prototype: tokens, fonts, the frame (header, menu, footer) and shared type. */

@font-face { font-family: "Google Sans Flex"; src: url("../../_fonts/google-sans-flex.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../../_fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../../_fonts/geist-mono.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
/* Fallbacks sized so the swap moves nothing (measured in Chromium on Windows). */
@font-face { font-family: "Sans fallback"; src: local("Arial"); size-adjust: 98%; }
@font-face { font-family: "Serif fallback"; src: local("Georgia Italic"); font-style: italic; size-adjust: 80%; }

:root {
  color-scheme: light dark;
  --ground: light-dark(#E6ECE9, #10151D);
  --surface: light-dark(#F4F7F5, #1A212C);
  --text: light-dark(#18202B, #E6ECE9);
  --muted: light-dark(#46535E, #A9B5B8);
  --edge: light-dark(#5F6F75, #7C8A93);
  --accent: light-dark(#A81C4E, #F0719A);
  --on-accent: light-dark(#FFFFFF, #10151D);
  --rest: light-dark(#14262A, #7FA39A);
  --on-rest: light-dark(#E6ECE9, #10151D);
  --play: light-dark(#4A3F2A, #E8E6B8);
  --on-play: light-dark(#FFFFFF, #10151D);
  --sans: "Google Sans Flex", "Sans fallback", Arial, sans-serif;
  --serif: "Instrument Serif", "Serif fallback", Georgia, serif;
  --mono: "Geist Mono", "Courier New", monospace;
  --rond: 100;
  --wrap: 960px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 16px/25px var(--sans);
  font-variation-settings: "ROND" 0;
}
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono { font: 500 12px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 16px; }
.wordmark { color: var(--text); font-weight: 650; font-size: 17px; line-height: 44px; letter-spacing: -.01em; text-decoration: none; font-variation-settings: "ROND" var(--rond); }
.menu-btn { height: 44px; min-width: 44px; padding: 0 0 0 12px; border: 0; background: none; color: var(--text); font: 600 14px/20px var(--sans); cursor: pointer; }
#menu { inset: 48px 12px auto auto; margin: 0; min-width: 200px; padding: 6px; border: 1px solid var(--edge); border-radius: 10px; background: var(--surface); color: var(--text); }
#menu ul { margin: 0; padding: 0; list-style: none; }
#menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 6px; color: var(--text); font-weight: 600; text-decoration: none; }
#menu a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Footer */
.foot { margin-top: 72px; padding: 20px 16px 40px; border-top: 1px solid var(--edge); font-size: 14px; line-height: 20px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.foot a { display: inline-block; padding: 12px 0; color: var(--text); font-weight: 600; }
.foot p { margin: 8px 0 0; color: var(--muted); }

@media (min-width: 1024px) {
  .top { max-width: var(--wrap); margin: 0 auto; min-height: 64px; padding: 0 32px; box-sizing: content-box; }
  .wordmark { font-size: 18px; line-height: 48px; }
  .menu-btn { display: none; }
  #menu { display: block; position: static; inset: auto; min-width: 0; padding: 0; border: 0; background: none; }
  #menu ul { display: flex; gap: 4px; }
  #menu a { padding: 0 12px; font-size: 15px; }
  .foot { padding: 24px 32px 56px; }
  .foot-in { max-width: var(--wrap); margin: 0 auto; }
}
@media (min-width: 1440px) { :root { --wrap: 1200px; } }
