@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/outfit-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/outfit-latin-800-normal.woff2") format("woff2"); }

/* Layout concept: a calm cream page taken from the Press 0 seal. The opening story reads like a phone menu,
   with keycaps for the options and one amber-lit 0. Black ink, sage and tan bands, amber used only for the 0. */
:root {
  --bg: #FBF7EE;
  --surface: #FFFDF8;
  --fg: #141410;
  --muted: #45423A;
  --line: #8C8672;
  --link: #1B4A2A;
  --link-hover: #0F2F19;
  --tan: #EBD9BC;
  --sage: #D7E4CE;
  --sage-ink: #1B3322;
  --key: #FFFDF6;
  --amber: #F5A623;
  --focus: #141410;
  --current: #141410;
  --font-display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", Verdana, "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14130F; --surface: #1E1C17; --fg: #F5F0E4; --muted: #D2CBBB; --line: #85806F;
    --link: #A9D8B0; --link-hover: #CDEBD2; --tan: #3A3020; --sage: #24342A; --sage-ink: #D3E8D3;
    --key: #2A2720; --focus: #F5A623; --current: #F5A623; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14130F; --surface: #1E1C17; --fg: #F5F0E4; --muted: #D2CBBB; --line: #85806F;
  --link: #A9D8B0; --link-hover: #CDEBD2; --tan: #3A3020; --sage: #24342A; --sage-ink: #D3E8D3;
  --key: #2A2720; --focus: #F5A623; --current: #F5A623; color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 1.125rem; line-height: 1.6; letter-spacing: 0.01em; }
.wrap { max-width: 70rem; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0 0 1rem; letter-spacing: 0; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 8vw, 4.5rem); }
h2 { font-weight: 800; font-size: clamp(1.75rem, 4.5vw, 2.5rem); }
h3 { font-weight: 700; font-size: 1.375rem; }
p { margin: 0 0 1.2em; }
.prose { max-width: 62ch; }
.prose > :last-child { margin-bottom: 0; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 0.1em; text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 0.18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--fg); color: var(--bg); padding: 0.75rem 1rem; border-radius: 0.375rem; font-weight: 700; }
.skip:focus { top: 1rem; }
img { max-width: 100%; height: auto; }

/* Keycap */
.key { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 2.75rem; height: 2.75rem; padding-inline: 0.5rem;
  background: var(--key); color: var(--fg); border: 2px solid var(--fg); border-radius: 0.625rem; box-shadow: 0 4px 0 var(--line);
  font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; line-height: 1; }
.key.hot { box-shadow: 0 4px 0 var(--line), 0 0 0 5px var(--amber); }
.key.sm { min-width: 2.25rem; height: 2.25rem; font-size: 1.125rem; border-radius: 0.5rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 44px; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--fg); text-decoration: none; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.25rem; color: var(--fg); font-weight: 700; }
.nav-list a[aria-current="page"] { text-decoration-thickness: 0.28em; text-decoration-color: var(--current); }

/* Hero */
.hero { padding-block: 3.5rem; }
.hero-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: center; }
.eyebrow { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.9rem; color: var(--muted); margin: 0 0 1rem; }
.lede { font-size: clamp(1.25rem, 3vw, 1.625rem); line-height: 1.4; max-width: 30ch; margin-bottom: 1.75rem; }
.seal { justify-self: center; width: 100%; max-width: 24rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.5rem 1.25rem; border-radius: 0.5rem; font-weight: 700; text-decoration: none; border: 2px solid var(--fg); color: var(--fg); background: transparent; }
.btn:hover { background: var(--fg); color: var(--bg); }
.btn.primary { background: var(--fg); color: var(--bg); }
.btn.primary:hover { background: var(--link); border-color: var(--link); color: var(--bg); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Sections */
section { padding-block: 3.5rem; }
.band-tan { background: var(--tan); }
.band-sage { background: var(--sage); color: var(--sage-ink); }
.band-sage h2, .band-sage h3 { color: var(--sage-ink); }
.band-tan a, .band-sage a { color: inherit; }
.panel { background: var(--surface); border: 2px solid var(--fg); border-radius: 0.75rem; padding: clamp(1.25rem, 4vw, 2.5rem); max-width: 46rem; }

/* Story */
.menu-lines { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.75rem; font-style: italic; }
.menu-lines li { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.press-zero { display: flex; align-items: center; gap: 1.25rem; margin: 0.5rem 0 1.5rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; }
.press-zero .key { min-width: 4rem; height: 4rem; font-size: 2.25rem; }
.belief { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.375rem, 3.2vw, 1.875rem); line-height: 1.3; text-wrap: balance; max-width: 34ch; margin: 0; }
.big-lines { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.2; margin: 1.5rem 0 0; }
.big-lines span { display: block; }

/* Lists */
.principles { margin: 0 0 1.5rem; max-width: 62ch; }
.principles dt { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-top: 1.25rem; }
.principles dd { margin: 0.125rem 0 0; }
.values { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin: 0; }
.values div { border-top: 3px solid var(--fg); padding-top: 0.75rem; min-width: 0; }
.values dt { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.values dd { margin: 0.25rem 0 0; color: var(--muted); }
.two-up { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.two-up > div { min-width: 0; }
.statement { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 2.8vw, 1.625rem); line-height: 1.35; margin: 0; }
.final { padding-block: 4rem; }
.final .prose p { font-size: 1.375rem; }
.signoff { font-family: var(--font-display); font-weight: 800; }

/* Books */
.book { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); align-items: start; }
.book > * { min-width: 0; }
.cover { margin: 0; max-width: 22rem; }
.cover img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 0.25rem; box-shadow: 0 10px 0 var(--tan); }
.chip { display: inline-block; background: var(--surface); border: 2px solid var(--fg); color: var(--fg); font-weight: 700; padding: 0.375rem 0.875rem; border-radius: 999px; margin: 0 0 1rem; }
.book-tag { font-style: italic; margin-bottom: 0.5rem; }
.byline { font-weight: 700; }
.formats { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; padding: 0; }
.formats li { border: 2px solid var(--fg); border-radius: 999px; padding: 0.25rem 1rem; font-weight: 700; }
.callout { background: var(--surface); border: 2px solid var(--line); border-radius: 0.5rem; padding: 1.25rem 1.5rem; max-width: 62ch; margin-bottom: 1.5rem; }
.callout > :last-child { margin-bottom: 0; }
.email { font-weight: 700; overflow-wrap: anywhere; }
.authors { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.authors > div { min-width: 0; }
.slot { border: 2px dashed var(--line); border-radius: 0.75rem; padding: 2rem 1.5rem; max-width: 22rem; display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; min-height: 14rem; }
.slot p { margin: 0; color: var(--muted); }
.slot .key { align-self: flex-start; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 2.5rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; }
.tagline { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
@media (forced-colors: active) { .key, .btn { border: 2px solid CanvasText; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Display settings bar, shared with The Tech It Book page so a saved theme or text size can always be changed */
.settings { background: var(--bg); border-bottom: 1px solid var(--line); padding-block: 0.75rem; }
.settings .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: center; }
.group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.group-label { font-weight: 700; margin-right: 0.25rem; }
button { font: inherit; font-weight: 700; color: var(--fg); background: var(--surface); border: 2px solid var(--line); border-radius: 0.375rem; min-height: 44px; min-width: 44px; padding: 0.5rem 1rem; cursor: pointer; }
button:hover { border-color: var(--fg); }
button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
@media (forced-colors: active) { button[aria-pressed="true"] { border-width: 4px; text-decoration: underline; } }
p, li, dd, dt, h1, h2, h3 { overflow-wrap: break-word; }
.not-found { padding-block: 3.5rem; }
/* Let text beside keycaps wrap at very large text sizes instead of pushing the page sideways */
.menu-lines li > span:not(.key), .press-zero > span:not(.key), .brand > span:not(.key) { min-width: 0; }
.brand { flex-wrap: wrap; }
