/* Hallmark · macrostructure: Workbench (content pages share the home system)
 * theme: custom (vibe: "warm paper, ink serif, quiet purple") · axes: light / roman-serif / cool
 * Shared stylesheet for the content pages (windows, linux, vs-conductor,
   changelog). index.html keeps its own inline styles (it stays self-contained
   for file:// preview); the design tokens below are copied from it verbatim —
   if you change a token here, change it there too. */

:root {
  color-scheme: light dark;
  --bg: #eae8e6;
  --surface: #f1efec;
  --raised: #fdfcfb;
  --border: #d8d5d1;
  --text: #1a1918;
  --muted: #6b6864;
  --faint: #a8a49e;
  --accent: #5344b0;
  --accent-strong: #453a99;
  --btn: #5344b0;
  --btn-hover: #453a99;
  --btn-text: #fdfcfb;
  --accent-soft: rgba(83, 68, 176, 0.14);
  --shadow: 0 1px 3px rgba(26, 25, 24, 0.07), 0 4px 16px rgba(26, 25, 24, 0.05);
  --shadow-lg: 0 2px 6px rgba(26, 25, 24, 0.08), 0 18px 48px rgba(26, 25, 24, 0.12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --surface: #1d1c1b;
    --raised: #242322;
    --border: #343230;
    --text: #eae8e6;
    --muted: #9a968f;
    --faint: #6f6b66;
    --accent: #a49aec;
    --accent-strong: #b3a9f0;
    --btn: #5d4ec4;
    --btn-hover: #6c5dd3;
    --btn-text: #f4f2ef;
    --accent-soft: rgba(130, 113, 232, 0.2);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.35), 0 18px 48px rgba(0, 0, 0, 0.45);
  }
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

::selection {
  background: var(--accent-soft);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--faint);
}
a:hover {
  text-decoration-color: var(--accent);
}

.wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Nav (same chrome as the home page) ---- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--text);
}
@media (max-width: 560px) {
  .nav-links a.hide-sm {
    display: none;
  }
}

/* ---- Page header ---- */
.page-head {
  max-width: 720px;
  margin: 40px auto 8px;
  text-align: center;
}
/* Spec line above the page head — mono metadata, no pill, no caps. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow .dot {
  display: none;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
  min-width: 0;
}
/* Display emphasis is a drawn underline, not italics or a colour swap. */
h1 .accent {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.09em;
  text-decoration-color: var(--accent);
}
.lede {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--muted);
  margin: 0 auto 28px;
}

/* ---- Prose ---- */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0 24px;
}
.prose h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
}
.prose h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin: 26px 0 6px;
}
.prose p,
.prose li {
  font-size: 15.5px;
  color: var(--text);
}
.prose li {
  margin: 5px 0;
}
.prose .muted,
.prose .fine {
  color: var(--muted);
}
.fine {
  font-size: 13px;
  color: var(--muted);
}
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 5px;
}

/* ---- Download button (same as home) ---- */
.download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 6px 0 10px;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--btn);
  color: var(--btn-text);
  padding: 12px 22px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  text-align: left;
  text-decoration: none;
}
.btn-download:hover {
  background: var(--btn-hover);
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-download {
    transition: transform 0.12s var(--ease-out), background 0.15s var(--ease-out);
  }
  .btn-download:hover {
    transform: translateY(-1px);
  }
  .btn-download:active {
    transform: translateY(0);
  }
}
.btn-download svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.btn-download .lbl {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}
.btn-download .lbl b {
  font-size: 16px;
  font-weight: 600;
}
.btn-download .lbl small {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
}
.meta {
  font-size: 13px;
  color: var(--muted);
}
.meta strong {
  color: var(--text);
  font-weight: 500;
}

/* ---- Steps (same as home) ---- */
.steps {
  max-width: 620px;
  margin: 14px auto 0;
  display: grid;
  gap: 14px;
}
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.step .num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--raised);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step .body {
  font-size: 15px;
}
.step .body strong {
  display: block;
  margin-bottom: 2px;
}
.step .body span {
  color: var(--muted);
  font-size: 14px;
}

/* ---- Comparison table ---- */
.compare-wrap {
  overflow-x: auto;
  margin: 18px 0;
}
table.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 15px;
}
table.compare th,
table.compare td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.compare tr:last-child th,
table.compare tr:last-child td {
  border-bottom: none;
}
table.compare thead th {
  background: var(--raised);
  font-size: 14px;
}
table.compare thead th:nth-child(2) {
  color: var(--accent);
}
table.compare tbody th {
  font-weight: 500;
  color: var(--muted);
  width: 34%;
}
.yes {
  color: var(--accent);
  font-weight: 600;
}

/* ---- Changelog ---- */
.release {
  max-width: 720px;
  margin: 0 auto 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
.release h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}
.release h2 .date {
  font-size: 13px;
  font-weight: 400;
  color: var(--faint);
}
.release ul {
  margin: 0;
  padding-left: 20px;
}
.release li {
  font-size: 15px;
  margin: 4px 0;
}

/* ---- FAQ ---- */
.faq {
  max-width: 720px;
  margin: 0 auto;
}
.faq h3 {
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 600;
  margin: 22px 0 4px;
}
.faq p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 15px;
}

/* ---- Footer ---- */
footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding: 26px 0 40px;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--muted);
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}
.foot-brand img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.foot-links a {
  color: var(--muted);
  text-decoration: none;
}
.foot-links a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.foot-meta {
  color: var(--faint);
}

section {
  padding: 26px 0;
}
