/* make.believe: quiet and type-led, in the manner of dreizehnelf.de. Fonts are self-hosted (fonts/). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-var.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-tight-latin-var.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* palette: https://coolors.co/172121-444554-7f7b82-bfacb5-e5d0cc, tuned: background kept (locked), the light colour
   brighter (#f7edea), slate turned into a dark green-grey (#223231) and mauve (#a8929d) darker.
   darkest = background, lightest = text, mauve = accent (headings, dots, labels),
   slate = full-width section bands, grey = lines and borders only (too faint for small text).
   Contrast on the background: text 14.3, accent 5.7; on a band: text 11.7, accent 4.7. */
:root {
  color-scheme: dark;
  --bg: #172121;
  --band: #223231;
  --muted: #7f7b82;
  --accent: #a8929d;
  --fg: #f7edea;
  --dim: rgba(247, 237, 234, 0.82);
  --line: rgba(127, 123, 130, 0.5);

  --font-head: 'Inter Tight', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --space-3xs: clamp(0.25rem, 0.2vw + 0.2rem, 0.35rem);
  --space-2xs: clamp(0.4rem, 0.3vw + 0.3rem, 0.55rem);
  --space-s:   clamp(0.9rem, 0.5vw + 0.75rem, 1.2rem);
  --space-m:   clamp(1.3rem, 0.8vw + 1.05rem, 1.8rem);
  --space-l:   clamp(1.8rem, 1.4vw + 1.4rem, 2.6rem);
  --space-2xl: clamp(3.6rem, 3.4vw + 2.5rem, 5.6rem);
  --space-3xl: clamp(5rem, 5.5vw + 3.2rem, 8.5rem);

  --text-xs: 0.78rem;
  --text-s:  0.92rem;
  --text-m:  1.1rem;
  --text-l:  1.4rem;
  --text-xl: clamp(1.7rem, 1.6vw + 1.3rem, 2.3rem);
  --text-3xl: clamp(2.9rem, 5vw + 1.8rem, 5.8rem);

  --measure: 62ch;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; margin: 0; line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0; }
h1, h2, h3, h4, h5 { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--space-l); padding-right: var(--space-l); }
.ext { margin-left: 0.35em; font-size: 0.9em; }

/* nav: links left, wordmark right */
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); flex-wrap: wrap; padding-top: var(--space-l); padding-bottom: var(--space-l); }
.nav-links { display: flex; flex-wrap: wrap; gap: var(--space-3xs) var(--space-2xs); font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; }
.nav-links .sep { color: var(--muted); }
.nav-links a:hover { color: var(--accent); }
.wordmark { font-family: var(--font-head); font-weight: 800; font-size: var(--text-l); letter-spacing: -0.02em; margin-left: auto; }
.wordmark i { font-style: normal; color: var(--accent); }

.eyebrow { display: flex; align-items: center; gap: var(--space-2xs); font-family: var(--font-mono); font-weight: 400; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin: 0 0 var(--space-m); line-height: 1.5; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* hero */
.hero { padding-top: var(--space-2xl); padding-bottom: var(--space-3xl); }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); margin-bottom: var(--space-m); }
.more { font-size: var(--text-m); line-height: 1.6; max-width: var(--measure); color: var(--dim); }

/* the photo behind the headline (desk.webp is made by tools/make-believe/hero.py). The text sits on the dark upper
   part of the picture, over a fade, and the desk shows through below; the bottom melts into the page. */
.hero.photo { position: relative; isolation: isolate; display: flex; align-items: flex-start; min-height: min(92svh, 900px); padding-top: var(--space-l); padding-bottom: var(--space-3xl); margin-bottom: 0; }
.hero.photo .wrap { width: 100%; }
/* headline on the left, the idea beside it, so both are on the first screen; one column on narrow screens */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl, var(--space-l)); align-items: start; }
.idea { margin: 0; }
.idea .eyebrow { margin-bottom: var(--space-s); }
.idea p + p { margin-top: var(--space-s); }
.hero.photo .prose, .hero.photo .prose p:not(.statement) { color: var(--fg); text-shadow: 0 1px 12px var(--bg); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-l); } }
.hero.photo::before { content: ''; position: absolute; inset: 2px 0 0 0; z-index: -2; background: url('desk.webp') center bottom / cover no-repeat; }
.hero.photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(180deg, var(--bg) 0%, rgba(23, 33, 33, 0.94) 12%, rgba(23, 33, 33, 0.82) 40%, rgba(23, 33, 33, 0.28) 66%, rgba(23, 33, 33, 0.25) 84%, var(--bg) 100%),
    linear-gradient(90deg, rgba(23, 33, 33, 0.55) 0%, rgba(23, 33, 33, 0) 60%); }
.hero.photo .more { color: var(--fg); text-shadow: 0 1px 12px var(--bg); }
@media (max-width: 700px) {
  .hero.photo { min-height: 100svh; }
  .hero.photo { padding-top: var(--space-2xs); }
  .hero h1 { margin-bottom: var(--space-s); }
  .hero-grid { gap: var(--space-m); }
  .hero.photo .more, .hero.photo .prose p:not(.statement) { font-size: 0.98rem; line-height: 1.5; }
  .hero.photo .prose .statement { font-size: 1.2rem; }
  .hero.photo::before { background-image: url('desk-small.webp'); background-size: auto 62%; background-position: 40% bottom; }
}

/* sections: a hairline, a small label, then the content */
.block { border-top: 1px solid var(--line); padding-top: var(--space-m); margin-bottom: var(--space-2xl); }
.block.band { border-top: 0; background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); padding-top: var(--space-l); padding-bottom: var(--space-l); --line: rgba(247, 237, 234, 0.2); }
.band + .block { border-top: 0; }
.band .eyebrow { color: var(--fg); }
.band .eyebrow::before { background: var(--accent); }
.block h3 { font-size: var(--text-l); margin-bottom: var(--space-s); }
.block p + p { margin-top: var(--space-s); }
.prose { max-width: var(--measure); color: var(--dim); }
.prose .statement { color: var(--accent); font-family: var(--font-head); font-weight: 600; font-size: var(--text-l); line-height: 1.3; margin-bottom: var(--space-s); }

/* the dots */
.tally { display: flex; align-items: baseline; gap: var(--space-s); margin-bottom: var(--space-m); }
.tally b { font-family: var(--font-head); font-weight: 800; font-size: var(--text-3xl); line-height: 0.9; letter-spacing: -0.04em; }
.tally span { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); }
.dots { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--space-m); }
.dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); flex: none; }
a.dot { position: relative; }
a.dot::after { content: ''; position: absolute; inset: -7px; }            /* a bigger touch target */
a.dot:hover, a.dot:focus-visible { background: var(--fg); }
.dot-note { font-size: var(--text-s); color: var(--dim); margin-bottom: var(--space-s); }
.dot-note a { border-bottom: 1px solid var(--muted); color: var(--fg); }
.row-link { display: inline-block; font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid currentColor; }
.row-link:hover { color: var(--accent); }

/* numbered steps */
.steps { max-width: var(--measure); counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem minmax(0, 1fr); padding: var(--space-s) 0; color: var(--dim); }
.steps li + li { border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); padding-top: 0.25em; }
.steps b { color: var(--fg); font-weight: 500; }

/* resources and log: a list of rows */
.rows > li, .rows > section { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: var(--space-m); padding: var(--space-m) 0; }
.rows > li + li, .rows > section + section { border-top: 1px solid var(--line); }
.row-meta { font-family: var(--font-mono); font-weight: 400; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); line-height: 1.8; margin: 0; }
.rows h3 { margin-bottom: var(--space-2xs); }
.rows p { max-width: var(--measure); color: var(--dim); font-size: var(--text-s); }
.links { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-m); margin-top: var(--space-s); }
.sub { max-width: var(--measure); color: var(--dim); margin-bottom: var(--space-s); }
@media (max-width: 640px) { .rows > li, .rows > section { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); } }

/* log entries inside a day */
.entry { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: var(--space-s); scroll-margin-top: var(--space-m); }
.entry + .entry { margin-top: var(--space-m); }
.entry .dot { margin-top: 0.5em; }
.entry h2 { font-size: var(--text-l); margin-bottom: var(--space-3xs); }
.entry .row-meta { margin-bottom: var(--space-3xs); }
.entry:target h2 { color: var(--accent); }

.page { padding-top: var(--space-2xl); padding-bottom: var(--space-3xl); }
.page h1 { font-size: var(--text-3xl); text-transform: uppercase; margin-bottom: var(--space-m); }
.page .sub { margin-bottom: var(--space-l); }
.page .rows { border-top: 1px solid var(--line); margin-bottom: var(--space-l); }

/* legal pages */
.legal { max-width: 74ch; margin-left: 0; padding-top: var(--space-l); padding-bottom: var(--space-3xl); }
@media (min-width: 1240px) { .legal { margin-left: max(0px, calc((100% - 1240px) / 2)); } }
.legal h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem); margin-bottom: var(--space-l); }
.legal h2 { font-size: var(--text-l); margin: var(--space-l) 0 var(--space-2xs); }
.legal p, .legal li, .legal address { font-size: 1rem; line-height: 1.65; margin-bottom: var(--space-2xs); }
.legal address { font-style: normal; }
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal a { border-bottom: 1px solid var(--muted); }
.legal a:hover { color: var(--accent); }
.legal-note-top, .legal-lang, .legal-note { font-size: var(--text-s); color: var(--dim); }

.footer { border-top: 1px solid var(--line); padding-top: var(--space-l); padding-bottom: var(--space-l); }
.footer p { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--dim); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2xs) var(--space-m); margin-top: var(--space-s); }
.footer a:hover { color: var(--accent); }
