/* The app's own fonts and tokens (src/fonts, src/app/globals.css), shared by every direction. */
@font-face { font-family: "Newsreader"; src: url(/site/fonts/Newsreader-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/site/fonts/Newsreader-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/site/fonts/Newsreader-Italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/site/fonts/Newsreader-MediumItalic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url(/site/fonts/Geist-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url(/site/fonts/Geist-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url(/site/fonts/Geist-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/site/fonts/IBMPlexMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/site/fonts/IBMPlexMono-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/site/fonts/IBMPlexMono-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Caveat"; src: url(/site/fonts/Caveat-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #eeebe4;
  --surface: #f4f2ed;
  --card: #fbfaf7;
  --ink: #1d1c1a;
  --muted: #69655d;
  --line: rgb(29 28 26 / 0.1);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Geist", Helvetica, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, monospace;
  --hand: "Caveat", cursive;
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
button { font: inherit; }

/* The "O" mark, as in src/app/icon.svg. */
.mark { display: inline-block; width: 28px; height: 28px; border-radius: 6.2px; background: var(--ink); position: relative; flex: none; }
.mark::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2.4px solid var(--surface); }
.mark.light { background: var(--surface); }
.mark.light::after { border-color: var(--ink); }

.nav { display: flex; align-items: center; gap: 28px; padding: 20px var(--gutter); font-size: 14.5px; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; margin-right: auto; }
.nav a:not(.brand):not(.btn) { text-decoration: none; opacity: 0.72; }
.nav a:not(.brand):not(.btn):hover { opacity: 1; }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 500; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; transition: transform 120ms ease, background-color 150ms ease; }
.btn:active { transform: scale(0.97); }
.btn.small { height: 36px; padding: 0 16px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
