@font-face { font-family: "MNT Sans"; src: url("fonts/mnt-sans-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "MNT Sans"; src: url("fonts/mnt-sans-400-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "MNT Sans"; src: url("fonts/mnt-sans-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "MNT Sans"; src: url("fonts/mnt-sans-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "MNT Mono"; src: url("fonts/mnt-mono-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* Layout idea: one calm text column with a wider headline (after lapidoth.se), menu in mono with ">" markers,
     dark ground with highlighter bars behind key words (after the Sacher page). */
  --bg: #0f0c15;
  --panel: #18141f;
  --ink: #f1eef4;
  --muted: #a8a1b2;
  --line: #2d2637;
  --coral: #ea7676;
  --coral-bar: rgba(234, 118, 118, 0.42);
  --teal: #19bfb7;
  --display: "MNT Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "MNT Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "MNT Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.06rem;
  line-height: 1.66;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
p { margin: 0 0 1.1rem; }

.wrap { max-width: 56rem; margin: 0 auto; padding: 0 1.25rem; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--coral); color: #17101a; padding: 0.5rem 0.9rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* header */
header.site { border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand img { border-radius: 50%; }
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; font-family: var(--mono); font-size: 1.1rem; }
nav a { color: var(--ink); text-decoration: none; }
nav a::before { content: "> "; color: var(--coral); }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 0.3em; }
nav a.lang { color: var(--muted); }
nav a.lang::before { content: "| "; color: var(--line); }

/* chips: solid coral labels like on the flywheel slide */
.chip {
  display: inline-block;
  background: var(--coral);
  color: #17101a;
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.35;
  padding: 0.12rem 0.55rem;
}
.chip.todo { text-transform: none; letter-spacing: 0.01em; background: transparent; color: var(--coral); border: 1px dashed var(--coral); }

/* hero */
.hero { padding: 3.2rem 0 1.2rem; }
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5.6vw, 3.45rem);
  line-height: 1.22;
  letter-spacing: -0.012em;
  margin: 1.1rem 0 1.4rem;
  text-wrap: balance;
}
.mark {
  background: linear-gradient(to top, transparent 0.06em, var(--coral-bar) 0.06em, var(--coral-bar) 0.5em, transparent 0.5em);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.12em;
}
.lede { font-size: 1.25rem; line-height: 1.5; color: var(--ink); max-width: 38rem; }
.track { display: block; color: var(--teal); margin-top: 1.6rem; max-width: 100%; height: auto; }
.track .summit { fill: var(--coral); }

/* text sections */
.prose { padding-top: 0.6rem; padding-bottom: 1.2rem; }
.prose > * { max-width: 44rem; }
.prose p, .lede { text-wrap: pretty; }
.prose h2 { font-size: 1.75rem; line-height: 1.2; margin: 2.2rem 0 0.8rem; font-weight: 700; text-wrap: balance; }
.prose h3 { font-size: 1.15rem; margin: 0 0 0.25rem; }
.pagehead { padding-top: 2.6rem; }
.pagehead h1 { font-size: clamp(2rem, 5.4vw, 3rem); line-height: 1.15; margin: 0 0 0.9rem; font-weight: 700; }
.aside { color: var(--muted); font-style: italic; }
.mail { margin-top: 0.4rem; }

/* three steps */
.three { list-style: none; margin: 1.2rem 0 1.2rem; padding: 0; display: grid; gap: 1.1rem; }
.three li { border-left: 2px solid var(--line); padding: 0.1rem 0 0.1rem 1rem; }
.three .chip { margin-bottom: 0.45rem; }
.three p { margin: 0; }

/* accordion */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; font-weight: 600; font-size: 1.2rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--coral); font-size: 1.6rem; line-height: 1; flex: none; }
details[open] summary::after { content: "\2013"; }
details p { margin: 0 0 1.1rem; color: var(--ink); max-width: 38rem; }

/* how we begin */
.steps { counter-reset: s; list-style: none; margin: 1rem 0 1.4rem; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: s; padding-left: 2.6rem; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0.05rem; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; font-family: var(--mono); background: var(--coral); color: #17101a; }
.steps p { margin: 0; }
.formats { margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.4rem; }
.formats dt { font-family: var(--mono); color: var(--coral); }
.formats dd { margin: 0; }

/* quote */
blockquote.copy { margin: 0.8rem 0 0.4rem; padding: 1rem 1.2rem; background: var(--panel); border-left: 3px solid var(--teal); }
blockquote.copy p { margin: 0; }

.legal { margin: 0; display: grid; gap: 0.2rem 0; }
.legal dt { font-family: var(--mono); color: var(--muted); margin-top: 1rem; font-size: 1rem; }
.legal dd { margin: 0; }

.links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.links.big { margin-top: 0.4rem; }

/* footer */
footer.site { margin-top: 3rem; border-top: 1px solid var(--line); padding: 1.6rem 0 2.6rem; color: var(--muted); font-family: var(--mono); font-size: 0.98rem; }
footer.site p { margin: 0 0 0.6rem; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--ink); }

@media (max-width: 30rem) {
  body { font-size: 1.08rem; }
  .hero { padding-top: 2.2rem; }
  .formats { grid-template-columns: 1fr; gap: 0.1rem; }
  .formats dd { margin-bottom: 0.8rem; }
}
@media (prefers-reduced-motion: no-preference) {
  summary::after { transition: color 0.15s ease; }
  summary:hover::after { color: var(--ink); }
}
