/* penpost.app: Penpost's counter and paper, its ink and red, the airmail band along the top (as the app has it on an iPad and the icon
   across its top). Georgia for the words that speak, the system's sans for the rest, as in the app. */
:root {
  color-scheme: light dark; /* our own dark colours below, so a browser doesn't darken the page by guesswork (it lost the logo) */
  --counter: #E7E0D2; --panel: #F4EFE4; --paper: #FBF7EC; --ink: #22304B; --ink-soft: #4B5671; --pencil: #635E52; --brand: #B23A2E;
  --line: rgba(34, 48, 75, 0.14); --air-red: #C8333C; --air-blue: #2F4FA2; --air-paper: #FAF7F0;
  --shadow: rgba(58, 42, 26, 0.22); --band-edge: rgba(0, 0, 0, 0.1); --stage-shadow: none;
}
/* Dark: the counter at night, in the ink's own blue; the words in paper, the reds lifted (brand/build.py's NIGHT colours in the app repo,
   each at least 4.5:1). The cards, the stills and the video keep their paper and their light: things lying on the counter. */
@media (prefers-color-scheme: dark) {
  :root {
    --counter: #161D2D; --panel: #1E2639; --paper: #1E2639; --ink: #F1EBDD; --ink-soft: #CFC8B9; --pencil: #A8A193; --brand: #E46F62;
    --line: rgba(241, 235, 221, 0.14); --air-paper: #E9E2D3; --shadow: rgba(0, 0, 0, 0.5); --band-edge: rgba(0, 0, 0, 0.4);
    --stage-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  }
}
* { box-sizing: border-box; }
html { background: var(--counter); }
body { margin: 0; color: var(--ink); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--ink); }
.band {
  height: 9px; position: sticky; top: 0; z-index: 2;
  background: repeating-linear-gradient(-45deg, var(--air-red) 0 7px, var(--air-paper) 7px 14px, var(--air-blue) 14px 21px, var(--air-paper) 21px 28px);
  border-bottom: 0.5px solid var(--band-edge);
}
main { max-width: 820px; margin: 0 auto; padding: 0 20px 40px; }

.hero { text-align: center; padding: 40px 0 24px; }
.lockup { height: 72px; width: auto; }
h1 { font: 700 clamp(28px, 5vw, 42px)/1.15 Georgia, serif; margin: 26px auto 0; max-width: 640px; }
.lede { font: italic clamp(20px, 3.4vw, 26px)/1.3 Georgia, serif; color: var(--brand); margin: 12px 0 0; }
.stage { display: block; width: min(100%, 560px); height: auto; aspect-ratio: 1; margin: 26px auto 0; border-radius: 6px; background: #E7E0D2; box-shadow: var(--stage-shadow); } /* the video's own ground, in either theme */
.soon { color: var(--pencil); margin: 14px 0 0; }

section { padding: 34px 0; border-top: 1px solid var(--line); }
h2 { font: 700 26px/1.2 Georgia, serif; margin: 0 0 12px; scroll-margin-top: 28px; }
section p { margin: 0 0 12px; max-width: 640px; }
.still { display: block; width: min(100%, 560px); height: auto; margin: 22px auto 0; border-radius: 3px; box-shadow: 0 12px 30px var(--shadow); }
.still.card { width: min(70%, 340px); }
.promises ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.promises li { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }

@media (prefers-reduced-motion: reduce) { .stage { display: none; } .hero::after { content: ""; } }

.doc { padding: 34px 0; max-width: 680px; }
.doc .wordmark a { text-decoration: none; }
.doc h1 { text-align: left; margin-top: 18px; }
.doc h2 { font-size: 21px; margin: 28px 0 8px; }
.doc .meta { color: var(--pencil); font-size: 14px; }
.doc .lead { font-size: 18px; }
code { font-size: 0.92em; background: var(--panel); padding: 1px 4px; border-radius: 4px; }

.wordmark { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 24px/1 Georgia, serif; }
.wordmark a { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.wordmark img { border-radius: 7px; }
.wordmark b { color: var(--brand); }

.site-foot { border-top: 1px solid var(--line); padding: 30px 0 10px; margin-top: 10px; }
.site-foot__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.site-foot__brand p:last-child { color: var(--ink-soft); font-size: 15px; margin-top: 10px; }
.site-foot__col { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.site-foot__col a { text-decoration: none; color: var(--ink-soft); }
.site-foot__head { font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pencil); margin: 0 0 4px; }
.site-foot__base { color: var(--pencil); font-size: 13px; margin-top: 26px; }
@media (max-width: 620px) { .site-foot__cols { grid-template-columns: 1fr 1fr; } .site-foot__brand { grid-column: 1 / -1; } }
