/*
 * The Owlbum website. Plain CSS, no build step. The colours are the program's
 * dark theme tokens (docs/09-visual-design.md, ui/src/styles/tokens.css).
 * The font is Inter, served from this site (fonts/OFL.txt); nothing is
 * fetched from another host.
 */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  color-scheme: dark;
  --bg: #161618;
  --stage: #111113;
  --panel: #1d1d20;
  --panel-2: #242428;
  --line: #333338;
  --line-soft: #2a2a2f;
  --line-strong: #72727a;
  --text: #ecebe7;
  --muted: #9b988f;
  --accent: #e7a65f;
  --accent-strong: #f2b871;
  --accent-ink: #1b1309;
  --focus: #f2b871;
  --focus-gap: #111113;
  --font: "Inter Variable", system-ui, sans-serif;
  --radius: 6px;
  --radius-lg: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
}

a { color: var(--accent-strong); }
a:hover { color: var(--accent); }

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--focus-gap);
  border-radius: 2px;
}

h1, h2 { line-height: 1.2; }
h1 { font-size: 44px; font-weight: 700; margin: 0 0 12px; }
h2 { font-size: 28px; font-weight: 600; margin: 0 0 24px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow > * { max-width: 760px; }
.muted { color: var(--muted); }

/* Header: icon plus the word, as in the About dialog. */
.top {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--stage);
  border-bottom: 1px solid var(--line);
}
.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 60px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand__word { font-size: 21px; font-weight: 700; }
.top nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--text); }
.top nav a[aria-current="page"] { color: var(--text); }

h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.narrow h3 { margin-top: 32px; }
details { margin-top: 24px; }
summary { cursor: pointer; font-size: 19px; font-weight: 600; margin-bottom: 8px; }
summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 6px;
  font: 600 0.85em/1.6 var(--font);
  text-align: center;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
}
code { overflow-wrap: anywhere; font-size: 0.9em; background: var(--panel-2); padding: 1px 5px; border-radius: 4px; }

/* Hero */
.hero { padding: 64px 0 48px; }
.hero h1 { font-size: 42px; margin-bottom: 16px; max-width: 820px; }
.lead { font-size: 19px; margin: 0 0 24px; max-width: 720px; }
.hero__actions { display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; margin: 0 0 40px; }

/* Sections: a heading, a few paragraphs, then the screenshot. Every
   screenshot is 16:10 and shown at the full width of the column. */
.band { padding: 56px 0; border-top: 1px solid var(--line-soft); }
.band--strong { background: var(--stage); }
.band p, .band li { max-width: 70ch; }

.shot { margin: 28px 0 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.shot--hero { margin: 0; }
.shot figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }

.plain { padding-left: 20px; }
.plain li { margin-bottom: 6px; }

/* Download */
.notice {
  padding: 12px 16px;
  background: var(--panel-2);
  border-radius: var(--radius);
}
.buttons { display: flex; gap: 16px; flex-wrap: wrap; margin: 24px 0; }
.button {
  display: inline-block;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--accent-strong); color: var(--accent-ink); }

.links-row { display: flex; gap: 12px 24px; flex-wrap: wrap; }

/* The manual, search help and changelog pages: a heading, a short lead
   and a list of the page's sections, then one band per section. A section
   that a link opens starts below the sticky header. */
.page-head { padding: 48px 0 32px; }
.page-head h1 { font-size: 38px; }
[id] { scroll-margin-top: 76px; }
.toc__heading { font-size: 19px; margin: 0 0 8px; }
.toc { margin: 0 0 16px; }
.band h3 { margin-top: 28px; }

table {
  width: 100%;
  max-width: 760px;
  margin: 16px 0 24px;
  border-collapse: collapse;
  font-size: 15px;
}
th, td {
  padding: 8px 12px 8px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
th { color: var(--muted); font-weight: 600; }
td kbd, td code { white-space: nowrap; }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--stage); color: var(--muted); }
.foot__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 14px;
}

@media (max-width: 720px) {
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 34px; }
  .lead { font-size: 18px; }
  .band { padding: 48px 0; }
  .top nav { gap: 14px; font-size: 15px; }
  .page-head h1 { font-size: 32px; }
  .top { position: static; }
}
