/* The app's own look: cream paper, ink, the brick red, Courier Prime.
   The font is served from this site - no outside requests, no tracking. */
@font-face { font-family: 'Courier Prime'; src: url('/assets/fonts/CourierPrime_400Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('/assets/fonts/CourierPrime_700Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('/assets/fonts/CourierPrime_400Regular_Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #F2EFEA;
  --card: #F6F4F0;
  --ink: #141412;
  --ink-muted: #3A3937;
  --red: #8B3A22;
  --line: rgba(112, 91, 72, 0.25);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--red); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.top, main, .bottom { max-width: 680px; margin: 0 auto; padding: 0 20px; }
.top { padding-top: 28px; }
.top .name { color: var(--ink); font-weight: 700; text-decoration: none; letter-spacing: 0.02em; }

main.page { padding-top: 24px; padding-bottom: 48px; }
main.page h1 { font-size: 30px; line-height: 1.2; margin: 12px 0 6px; letter-spacing: 0.01em; }
main.page .updated { color: var(--ink-muted); font-size: 14px; margin-top: 0; }
main.page h2 { font-size: 20px; margin: 36px 0 8px; color: var(--red); }
main.page h3 { font-size: 17px; margin: 22px 0 4px; }
main.page ul { padding-left: 22px; }
main.page li { margin: 4px 0; }
main.page .short { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
main.page .short p:first-child { margin-top: 0; }
main.page .short p:last-child, main.page .short ul:last-child { margin-bottom: 0; }

main.home { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-top: 40px; padding-bottom: 40px; }
main.home img { width: 96px; height: 96px; border-radius: 22px; }
main.home h1 { font-size: 34px; line-height: 1.15; margin: 24px 0 12px; }
main.home .line { font-size: 18px; margin: 0 0 22px; }
main.home .soon { display: inline-block; background: var(--red); color: #fff; border-radius: 999px; padding: 10px 20px; font-size: 16px; }

.bottom { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 40px; color: var(--ink-muted); font-size: 15px; }
.bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.bottom p { margin: 10px 0 0; overflow-wrap: anywhere; }

@media (max-width: 420px) {
  body { font-size: 16px; }
  main.page h1 { font-size: 26px; }
  main.home h1 { font-size: 28px; }
}
