/* ---------- Font: Manrope, served from this site (OFL, see manrope-license.txt) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/manrope-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/manrope-latin.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;
}

/* ---------- Tokens (visuals.md §2) ---------- */
:root {
  --bg: #F6F1E7; --surface: #EDE5D6; --ink: #1F1B16; --muted: #5E5548; --rule: #D8CDBA;
  --accent: #B5361F; --on-accent: #FFFFFF; --tile: #F6F1E7;
  --sans: "Manrope", "Red Hat Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 4px;
  --fs: 16px; --t1: 20px; --t2: 25px; --t3: 31.25px; --t4: 39px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1714; --surface: #26221D; --ink: #EDE5D6; --muted: #A89D8C; --rule: #3A342C;
    --accent: #E8704F; --on-accent: #1A1714; --tile: #26221D; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1A1714; --surface: #26221D; --ink: #EDE5D6; --muted: #A89D8C; --rule: #3A342C;
  --accent: #E8704F; --on-accent: #1A1714; --tile: #26221D; color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: var(--fs); line-height: 1.5; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.mono { font-family: var(--mono); font-size: 0.875em; font-weight: 400; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* Dot list: short items joined by "·". A line never ends or starts with a dot:
   each item carries its dot on its left, and the dot of an item that wraps to a new line is clipped. */
.dots { overflow: hidden; }
.dots > span { display: flex; flex-wrap: wrap; margin-left: -1.25em; }
.dots > span > span { white-space: nowrap; }
.dots > span > span::before { content: "·"; display: inline-block; width: 1.25em; text-align: center; color: var(--muted); }

/* ---------- Buttons and small actions ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
  font: 600 16px/1.25 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.06); }
.link-ink { color: var(--ink); font-weight: 600; }
.copy { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; color: var(--ink);
        font: inherit; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.copy .icon { width: 16px; height: 16px; }

/* ---------- Header with app navigation ---------- */
.top { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 80px; border-bottom: 1px solid var(--rule); }
.home { color: var(--ink); display: block; }
.wordmark { display: block; height: 32px; width: auto; fill: currentColor; }
.nav ul { display: flex; gap: 32px; }
.nav a { display: block; padding: 28px 0 26px; color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav a:hover { border-bottom-color: var(--muted); }
.nav a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--ink); }

/* ---------- Product tile: the theme's tile colour behind the app's symbol ---------- */
.tile { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 22%; background: var(--tile); border: 1px solid var(--rule); }
.tile svg { width: 64%; height: 64%; }

/* ---------- The download block: one component, card and page ---------- */
.get-platform { font-weight: 600; }
.get-meta, .get-sum { color: var(--muted); }
.get-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.get-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

/* ======================= DETAILS PAGE ======================= */
/* Lead: name and download, then What it does, on the left; the whole app window on the right, spanning both */
.lead { display: grid; grid-template-columns: minmax(0, 1fr) 442px; column-gap: 64px; align-items: start; padding-top: 48px; }
.hero-text { grid-column: 1; grid-row: 1; }
.shot { grid-column: 2; grid-row: 1 / span 2; }
.does { grid-column: 1; grid-row: 2; margin-top: 64px; }
.does h2 { font-size: var(--t2); margin-bottom: 24px; }
.title { display: flex; align-items: center; gap: 16px; }
.title .tile { width: 64px; height: 64px; }
.title h1 { font-size: var(--t4); }
.subhead { margin-top: 16px; font-size: var(--t2); line-height: 1.3; font-weight: 500; }
.absences { margin-top: 16px; font-weight: 500; }
.hero-text .get { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); }
.hero-text .get-act { margin-top: 24px; }

/* The whole window, 40px from every edge of its panel */
.shot-frame { padding: 40px; overflow: hidden; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.shot-frame .win { width: 360px; max-width: 100%; margin: 0 auto; }
.shot figcaption { margin-top: 12px; color: var(--muted); }

/* The screenshot is the window itself, cropped at its edges (no shadow margin) */
.win img { display: block; width: 100%; height: auto; border-radius: 10px 10px 5px 5px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.12); }

/* Sections */
.block { margin-top: 80px; }   /* sections are separated by space only; hairlines belong to rows */
.block h2 { font-size: var(--t2); margin-bottom: 24px; }

/* Label + fragment rows (one style for every list on the page) */
.rows > li, .rows > div { padding: 12px 0; border-top: 1px solid var(--rule); }
.rows > :last-child { border-bottom: 1px solid var(--rule); }
.rows b { font-weight: 700; }

/* Notes: the story line on the left (same column as the lead text), Formats and Kept small stacked on the right (same column as the screenshot) */
.notes { display: grid; grid-template-columns: minmax(0, 1fr) 442px; column-gap: 64px; align-items: start; }
.story { font-size: var(--t2); line-height: 1.35; font-weight: 500; }
.side section + section { margin-top: 40px; }
.side h2 { font-size: var(--t1); margin-bottom: 8px; }

/* How to install: a disclosure right under the one Download button */
.howto { margin-top: 16px; }
.howto summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary .icon { width: 16px; height: 16px; transition: transform 0.15s; }
.howto[open] summary .icon { transform: rotate(180deg); }
.howto .steps { margin-top: 16px; }
.steps { counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; padding: 12px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s); font-size: var(--t1); font-weight: 700; line-height: 1.2; color: var(--muted); font-variant-numeric: tabular-nums; }

.log li { display: grid; grid-template-columns: 136px 96px 1fr; gap: 24px; padding: 12px 0; border-top: 1px solid var(--rule); }
.log li:last-child { border-bottom: 1px solid var(--rule); }
.log .when { color: var(--muted); }

/* ======================= CATALOGUE ======================= */
.intro { padding: 48px 0 40px; }
.intro h1 { font-size: var(--t4); }
.intro .line { margin-top: 8px; font-size: var(--t1); font-weight: 700; }
.intro .lede { margin-top: 16px; font-size: var(--t1); max-width: 46ch; color: var(--muted); }

/* Entry: one full-width row per app */
.entries { display: grid; gap: 24px; }
.entry {
  display: grid; grid-template-columns: 192px minmax(0, 1fr); grid-template-areas: "shot text" "shot act";
  gap: 24px 32px; align-items: start;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px;
}
/* Card thumbnail: the whole window, no frame, top level with the tile */
.entry { overflow: hidden; }
.thumb { grid-area: shot; }
.thumb .win { width: 100%; }
.entry .what { max-width: 64ch; text-wrap: balance; }
.entry-text { grid-area: text; display: grid; gap: 16px; }
.entry-head { display: flex; gap: 16px; align-items: center; }
.entry h2 { font-size: var(--t2); }
.entry .get-act { grid-area: act; padding-top: 16px; border-top: 1px solid var(--rule); }

.updates .log li { grid-template-columns: 136px 160px 1fr; }

/* ---------- Footer ---------- */
.foot { margin-top: 80px; border-top: 1px solid var(--rule); background: var(--surface); }
.foot-inner { padding-top: 48px; padding-bottom: 56px; }
.foot .contact { white-space: normal; }
.foot .maker { font-weight: 600; }
.foot p + p { margin-top: 8px; }

[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .lead, .notes { grid-template-columns: 1fr; }
  .side { margin-top: 40px; }
  .hero-text, .shot, .does { grid-column: 1; grid-row: auto; }
  .shot { margin-top: 48px; max-width: 442px; }
}
@media (max-width: 719px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .wordmark { height: 28px; }
  .top { min-height: 64px; }
  .nav ul { gap: 20px; }
  .nav a { padding: 20px 0 18px; }
  .lead { padding-top: 32px; }
  .shot { margin-top: 40px; }
  .does { margin-top: 48px; }
  .title h1 { font-size: var(--t3); }
  .title .tile { width: 56px; height: 56px; }
  .subhead { font-size: var(--t1); }
  .hero-text .btn, .entry .btn { width: 100%; justify-content: center; }
  .shot-frame { padding: 24px; }
  .block { margin-top: 56px; }
  .log li, .updates .log li { grid-template-columns: 1fr; gap: 0; }
  .story { font-size: var(--t1); }
  .intro { padding: 32px 0 32px; }
  .intro h1 { font-size: var(--t3); }
  .entry { grid-template-columns: 1fr; grid-template-areas: "text" "act" "shot"; gap: 20px; padding: 16px; }
  .thumb .win { width: 192px; margin: 0 auto; }
  .foot-inner { padding-top: 40px; padding-bottom: 48px; }
}

/* ---------- Site only ---------- */
.sprite { position: absolute; }
.action .unavailable, .get-act .unavailable { color: var(--muted); }
/* A card without a screenshot is text only */
.entry--plain { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "act"; }
