@font-face { font-family: "Newsreader"; src: url("/fonts/Newsreader-Variable.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/Jost-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/fonts/CourierPrime-Regular.ttf") format("truetype"); font-display: swap; }

/* Day and Lamp, the app's two themes. Spines keep their Day inks in both: they're objects, not interface. */
:root {
  --paper: #F3EDE2; --raised: #FAF6EE; --ink: #1F1C18; --muted: #5E574D;
  --rule: #D8CFBF; --rule-strong: #8A847A; --teal: #2E6B66; --vermilion: #A63A26; --on-accent: #FAF6EE;
  --s-teal: #2E6B66; --s-navy: #24384F; --s-red: #A63A26; --s-mustard: #D19A1F; --s-olive: #6F7337; --s-ink: #1F1C18; --s-cream: #E4D9C4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1C1A17; --raised: #26231F; --ink: #EEE6D7; --muted: #A89F90;
    --rule: #3A352E; --rule-strong: #7D766B; --teal: #6FAEA6; --vermilion: #E57A60; --on-accent: #1C1A17;
  }
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 "Jost", Futura, system-ui, sans-serif; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: "Newsreader", Georgia, serif; }
.mono { font-family: "Courier Prime", ui-monospace, monospace; }
.caps { font: 500 12px/1 "Jost", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Header */
header { padding: 28px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.mark .call { font: 11px/13px "Courier Prime", monospace; white-space: pre; padding-right: 10px; border-right: 1.5px solid var(--vermilion); }
.mark .name { font: 400 24px/26px "Newsreader", Georgia, serif; }
header nav { display: flex; gap: 20px; font-size: 15px; }
header nav a { color: var(--muted); text-decoration: none; }
header nav a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: end; padding-top: 48px; padding-bottom: 72px; }
.hero h1 { font: 400 clamp(56px, 9vw, 104px)/.95 "Newsreader", Georgia, serif; letter-spacing: -.01em; margin: 0 0 24px; }
.hero .lede { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 0 0 16px; max-width: 30em; }
.hero .creed { font-size: 18px; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 10px;
  background: var(--teal); color: var(--on-accent); font: 500 16px "Jost", sans-serif; text-decoration: none; }
.button[aria-disabled="true"] { cursor: default; }
.cta small { font: 13px "Courier Prime", monospace; color: var(--muted); }

/* The shelf: flat spines standing on a rule, titles reading top to bottom. */
.shelf { display: flex; align-items: flex-end; gap: 4px; height: 300px; padding: 0 2px; border-bottom: 3px solid var(--rule); }
.spine { position: relative; flex: none; display: flex; align-items: center; justify-content: center; color: #FAF6EE; }
.spine span { writing-mode: vertical-rl; font: 500 11px/1 "Jost", sans-serif; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: calc(100% - 20px); }
.spine.light { color: #1F1C18; }
.spine.desk::before { content: ""; position: absolute; top: -9px; left: 50%; width: 7px; height: 18px; margin-left: -3.5px; background: var(--s-red); }
.spine.lent { background: none !important; border: 1px dashed var(--rule-strong); color: var(--muted); }
@media (prefers-color-scheme: dark) { .spine:not(.lent) { box-shadow: inset 0 0 0 1px rgba(125,118,107,.6); } }

/* Four parts of the app, each filed as a catalog card. */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--rule); margin-bottom: 28px; }
.section-head h2 { font: 400 32px/1.15 "Newsreader", Georgia, serif; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--raised); border: 1px solid var(--rule); padding: 22px 26px 26px; }
.card .top { display: flex; justify-content: space-between; font: 13px "Courier Prime", monospace; color: var(--muted);
  padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); }
.card h3 { font: 400 26px/1.2 "Newsreader", Georgia, serif; margin: 0 0 10px; }
.card p { margin: 0; color: var(--muted); }
.card .line { font: italic 400 19px/1.45 "Newsreader", Georgia, serif; color: var(--ink); margin-top: 16px; }
.card .stats { display: flex; gap: 28px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--rule); }
.card .stats div { font: 14px "Courier Prime", monospace; }
.card .stats .caps { display: block; margin-bottom: 6px; font-size: 11px; }
.card .stats .finished { color: var(--vermilion); }
.card .stats .finished b { font-weight: 400; }
.card .stats .finished b::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--vermilion); margin-right: 6px; }
.sounds { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.sounds span { font-size: 14px; padding: 6px 12px; border: 1px solid var(--rule-strong); border-radius: 999px; }

/* What it won't do */
.nots { padding-top: 88px; padding-bottom: 24px; }
.nots ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.nots li { padding: 16px 0; border-bottom: 1px solid var(--rule); font: 400 22px/1.3 "Newsreader", Georgia, serif; }
.nots li span { display: block; font: 15px/1.5 "Jost", sans-serif; color: var(--muted); margin-top: 4px; }

/* Library card */
.card-offer { margin: 72px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding: 36px 40px;
  background: var(--raised); border: 1px solid var(--rule); }
.card-offer h2 { font: 400 32px/1.15 "Newsreader", Georgia, serif; margin: 8px 0 12px; }
.card-offer p { margin: 0; color: var(--muted); }
.card-offer ul { margin: 0; padding: 0; list-style: none; }
.card-offer li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.card-offer li:last-child { border-bottom: 0; }

footer { margin-top: 88px; padding: 28px 0 48px; border-top: 1px solid var(--rule); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font: 13px "Courier Prime", monospace; color: var(--muted); }
footer a { color: var(--muted); }
footer nav { display: flex; gap: 20px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; padding-bottom: 56px; }
  .shelf { height: 220px; }
  .cards, .card-offer { grid-template-columns: 1fr; }
  .card-offer { padding: 28px 24px; gap: 24px; }
  .nots ul { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  header nav { display: none; }
  .hero .lede { font-size: 18px; }
  .section-head h2, .card-offer h2 { font-size: 28px; }
  .section-head .caps { display: none; }
  .shelf .optional { display: none; }
}

/* Each spine's size, as on a real shelf: no two quite the same. */
.spine:nth-child(1) { width: 30px; height: 84%; }  .spine:nth-child(2) { width: 24px; height: 76%; }
.spine:nth-child(3) { width: 28px; height: 80%; }  .spine:nth-child(4) { width: 20px; height: 68%; }
.spine:nth-child(5) { width: 38px; height: 92%; }  .spine:nth-child(6) { width: 26px; height: 72%; }
.spine:nth-child(7) { width: 32px; height: 88%; }  .spine:nth-child(8) { width: 22px; height: 70%; }
.spine:nth-child(9) { width: 28px; height: 82%; }  .spine:nth-child(10) { width: 18px; height: 64%; }
.ink-olive { background: var(--s-olive); } .ink-navy { background: var(--s-navy); } .ink-cream { background: var(--s-cream); }
.ink-red { background: var(--s-red); } .ink-mustard { background: var(--s-mustard); } .ink-ink { background: var(--s-ink); }
.ink-teal { background: var(--s-teal); }

/* Keyboard focus is always visible. */
a:focus-visible, .button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; padding: 8px 14px; background: var(--raised); color: var(--ink); border: 1px solid var(--rule); z-index: 10; }
.skip:focus { left: 16px; }
/* Footer links big enough to tap. */
footer nav a { display: inline-block; padding: 12px 0; }
