/* os.futc.de: the FUTC-OS landing page, in the OS's "System 1" look (1-bit + one red). Fonts: SIL OFL, see fonts/. */
@font-face { font-family: 'Departure Mono'; src: url('fonts/departure-mono.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; src: url('fonts/atkinson-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 700; src: url('fonts/atkinson-700-normal.woff2') format('woff2'); font-display: swap; }

:root {
  --ink: #000; --paper: #fff; --red: #e00000; --muted: #4a4a4a; --faint: #e6e6e6; --shadow-c: #000;
  --font-ui: 'Departure Mono', ui-monospace, Menlo, monospace;
  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 4px 4px 0 var(--shadow-c);
  --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Crect width='1' height='1' fill='%23000' fill-opacity='.18'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23000' fill-opacity='.18'/%3E%3C/svg%3E");
  color-scheme: light;
}
/* dark: when the device says so (unless the switch says Light), or when the switch says Dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink: #f2f2f2; --paper: #000; --red: #ff4545; --muted: #a6a6a6; --faint: #262626; --shadow-c: #3a3a3a;
    --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Crect width='1' height='1' fill='%23fff' fill-opacity='.12'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23fff' fill-opacity='.12'/%3E%3C/svg%3E");
    color-scheme: dark; }
}
:root[data-theme="dark"] { --ink: #f2f2f2; --paper: #000; --red: #ff4545; --muted: #a6a6a6; --faint: #262626; --shadow-c: #3a3a3a;
  --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Crect width='1' height='1' fill='%23fff' fill-opacity='.12'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23fff' fill-opacity='.12'/%3E%3C/svg%3E");
  color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 56px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cursor { animation: none !important; } }
body { margin: 0; background: var(--paper) var(--pat); color: var(--ink); font: 17px/1.55 var(--font-body); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; font: 15px var(--font-ui); background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); padding: 8px 12px; text-decoration: none; }
.skip:focus { top: 8px; }
.hero:focus { outline: none; }

.menubar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px;
  background: var(--paper); border-bottom: 2px solid var(--ink); font-family: var(--font-ui); }
.brand { font-size: 15px; letter-spacing: .04em; }
.logo { display: flex; color: var(--red); }
.logo svg { width: 34px; height: auto; }
.menubar nav { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.menubar nav a { text-decoration: none; font-size: 15px; }
.menubar nav a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.theme { display: flex; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; }
.theme button { display: flex; align-items: center; gap: 6px; font: 13px var(--font-ui); color: var(--ink); background: var(--paper);
  border: 0; min-height: 28px; padding: 3px 9px; cursor: pointer; }
.theme button + button { border-left: 2px solid var(--ink); }
.theme svg { width: 13px; height: 13px; fill: currentColor; }
.theme button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.theme button:focus-visible { outline: 2px solid var(--red); outline-offset: -4px; }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px 64px; }

/* hero: the folding bird from futc.de (js/hero.js) above the sign-up window, glyphs swirling behind both */
.hero { position: relative; display: grid; justify-items: center; align-content: center; min-height: calc(100svh - 44px);
  padding: 16px 16px 56px; overflow: hidden; isolation: isolate; }
.hero-swirl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-stage { position: relative; width: min(52svh, 92vw, 600px); aspect-ratio: 16 / 10; margin-bottom: -8px; }
.hero-bird { width: 100%; height: 100%; image-rendering: pixelated; }
.hero-bird-fallback { position: absolute; inset: 20% 18%; width: 64%; height: auto; }
.hero-stage.has-webgl .hero-bird-fallback { display: none; }
.hero-stage:not(.has-webgl) .hero-bird { display: none; }
.hero-dialog { width: min(100%, 600px); text-align: center; animation: open .45s steps(5) .5s both; }
.hero-dialog .body { padding: 22px 24px 18px; }
.hero-dialog .signup-form { justify-content: center; }
.hero-lede { max-width: 460px; margin: 0 auto 4px !important; }
.scroll-hint { position: absolute; bottom: 16px; font: 14px var(--font-ui); text-decoration: none; color: var(--muted); }
.scroll-hint:hover { color: var(--red); }
@keyframes open { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-dialog { animation: none; } }

h1 { font: 400 clamp(46px, 9vw, 84px)/1 var(--font-ui); margin: 0 0 10px; letter-spacing: -.02em; }
.cursor { color: var(--red); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tagline { font: 400 clamp(19px, 2.8vw, 24px)/1.3 var(--font-ui); margin: 0 auto 18px; max-width: 520px; text-wrap: balance; }
.lede { margin: 0 0 26px; }

.btn { display: inline-block; font: 15px var(--font-ui); color: var(--ink); background: var(--paper); border: 2px solid var(--ink);
  border-radius: 8px; padding: 9px 18px; box-shadow: var(--shadow); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow-c); }
.btn--red { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn--red:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn:disabled { opacity: .6; cursor: wait; }

.story { max-width: 760px; margin: 56px auto 36px; }
.story .lede { font-size: 19px; margin: 0; }

.window { background: var(--paper); border: 2px solid var(--ink); box-shadow: var(--shadow); margin: 0; }
.window-title { position: relative; height: 26px; border-bottom: 2px solid var(--ink); margin: 0; padding: 3px 4px;
  background: repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 3px) content-box; text-align: center; }
.window-title span { position: relative; top: -3px; background: var(--paper); padding: 0 10px; font: 15px/26px var(--font-ui); }
.window .body { padding: 16px 18px 18px; }
.window h2, .window .h2 { font: 400 20px/1.3 var(--font-ui); margin: 0 0 8px; letter-spacing: 0; }
.window p { margin: 0 0 10px; }

.hero-shot { margin-top: 8px; }
.shot img { width: 100%; }

/* connections: each chain is a row of steps joined by red arrows */
.connect { max-width: 760px; margin: 56px auto 0; }
.connect h2 { font: 400 clamp(24px, 4vw, 34px)/1.15 var(--font-ui); margin: 0 0 12px; }
.chains { list-style: none; margin: 20px 0 0; padding: 0; }
.chains li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 0; border-top: 2px solid var(--ink);
  font: 15px/1.45 var(--font-ui); }
.chains li:last-child { border-bottom: 2px solid var(--ink); }
.chains span + span::before { content: "→ "; content: "→ " / ""; color: var(--red); }

/* feature tour: slides stack without JS; with JS (.is-js) they sit side by side on a scroll-snap track */
.tour { margin-top: 56px; }
.tour-track { display: grid; }
.tour.is-js .tour-track { grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none; }
.tour.is-js .tour-track::-webkit-scrollbar { display: none; }
.tour-track:focus-visible { outline-offset: -4px; }
.slide { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; scroll-snap-align: start; }
.slide + .slide { border-top: 2px solid var(--ink); }
.tour.is-js .slide + .slide { border-top: 0; }
.slide img { width: 100%; border-right: 2px solid var(--ink); }
.slide .body { padding: 22px 24px; }
.slide h2 { font-size: 24px; }
.slide.text-only { grid-template-columns: minmax(0, 1fr); align-self: center; }
.slide.text-only .body { max-width: 640px; padding: 28px 24px; }
.slide ul { margin: 0; padding-left: 20px; }
.slide li { margin-bottom: 6px; }
.slide li::marker { color: var(--red); }
.tour-nav { display: none; }
.tour.is-js .tour-nav { display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 2px solid var(--ink); }
.tour-nav .btn { flex: none; padding: 6px 12px; box-shadow: 2px 2px 0 var(--shadow-c); }
.tour-nav .btn:disabled { opacity: .35; cursor: default; background: var(--paper); color: var(--ink); transform: none; }
.tour-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 auto; }
.tour-tabs button { min-height: 32px; padding: 3px 10px; font: 14px var(--font-ui); color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 6px; cursor: pointer; }
.tour-tabs button:hover { border-color: var(--red); }
.tour-tabs button[aria-current="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) {
  .slide { grid-template-columns: minmax(0, 1fr); }
  .slide img { border-right: 0; border-bottom: 2px solid var(--ink); }
  .slide .body { padding: 16px 18px 18px; }
  .slide h2 { font-size: 20px; }
  .tour.is-js .tour-nav { flex-wrap: wrap; justify-content: space-between; }
  .tour-tabs { order: -1; flex-basis: 100%; }
}

.signup { margin: 64px auto 0; max-width: 640px; }
.signup .fine a, .hero-dialog .fine a { text-decoration-color: var(--red); }
.signup .body { padding: 22px 22px 18px; }
.signup h2, .signup .h2 { font-size: 26px; }
.signup-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 8px; }
.field { flex: 1 1 220px; min-width: 0; font: 17px var(--font-ui); color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 0; padding: 10px 12px; }
.field:focus { outline: 2px solid var(--red); outline-offset: 2px; }
.fine { font-size: 14px; color: var(--muted); }
.form-msg { color: var(--red) !important; min-height: 1em; margin: 0 !important; }

.faq { max-width: 760px; margin: 64px auto 0; }
.faq h2 { font: 400 26px var(--font-ui); margin: 0 0 12px; }
.faq details { border-top: 2px solid var(--ink); padding: 12px 0; }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary { cursor: pointer; font: 16px var(--font-ui); list-style: none; }
.faq summary::before { content: "▸ "; color: var(--red); }
.faq details[open] summary::before { content: "▾ "; }
.faq details p { margin: 10px 0 0; }

.status { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 16px; border-top: 2px solid var(--ink);
  background: var(--paper); font: 13px var(--font-ui); }
.status .links { display: flex; gap: 16px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .menubar nav { display: none; }
  .theme { margin-left: auto; }
  .theme span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hero { min-height: 0; padding-top: 8px; }
  .hero-dialog .body { padding: 18px 16px 14px; }
  .scroll-hint { display: none; }
}
