/* aeon.sk — V6 Hybrid (literárny kostrec + zemitá paleta) */

/* ─── Tokens ───────────────────────────────────────────── */
:root {
  --bg: #ece3d3;
  --paper: #f5ecda;
  --ink: #2a2218;
  --muted: #6e5e48;
  --rule: rgba(42, 34, 24, 0.13);
  --rule-strong: rgba(42, 34, 24, 0.28);
  --accent: #a44832;
  --accent-2: #5a6034;
  --bg-on-accent: #ece3d3;

  --f-display: "Cormorant Garamond", "EB Garamond", "Garamond", serif;
  --f-text: "Source Serif 4", Georgia, serif;
  --f-ui: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad-x: 56px;
  --max-content: 1280px;
}

/* ─── Reset + base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.skip-link {
  position: absolute; left: -9999px; top: 0; padding: 8px 14px;
  background: var(--ink); color: var(--bg); z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ─── Header / nav ─────────────────────────────────────── */
.site-header {
  background: var(--bg);
  border-bottom: 0.5px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}
.hdr-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink);
}
.brand-logo { height: 40px; width: auto; }
.brand-wordmark {
  font-family: var(--f-display);
  font-size: 20px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 400;
}
.main-nav {
  display: flex; gap: 36px;
  font-family: var(--f-ui);
  font-size: 13px;
  color: var(--ink);
}
.main-nav a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.hdr-utility {
  display: flex; gap: 18px;
  font-family: var(--f-ui); font-size: 13px;
  color: var(--muted);
}
.hdr-utility .util-link { color: var(--muted); }
.hdr-utility .util-link:hover { color: var(--ink); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hdr-search {
  display: flex; flex: 1 1 220px; max-width: 240px; min-width: 150px;
  border-bottom: 1px solid var(--rule-strong);
}
.hdr-search input {
  width: 100%; min-width: 0; padding: 7px 4px; border: 0; outline: 0;
  background: transparent; color: var(--ink); font: 13px var(--f-ui);
}
.hdr-search input::placeholder { color: var(--muted); opacity: .85; }
.hdr-search button {
  padding: 7px 4px 7px 10px; border: 0; background: transparent; color: var(--accent);
  cursor: pointer; font: 500 12px var(--f-ui);
}
.hdr-search:focus-within { border-bottom-color: var(--accent); }

.menu-toggle {
  display: none;
  background: transparent; border: none; cursor: pointer;
  width: 36px; height: 36px;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.menu-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform .2s, opacity .2s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Sections / containers ────────────────────────────── */
.section {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 64px var(--pad-x);
  border-bottom: 0.5px solid var(--rule);
}
.section.flush-top { padding-top: 0; }
.section.no-rule { border-bottom: none; }
.section--paper { background: var(--paper); border-bottom: 0.5px solid var(--rule); }
.section--olive {
  background: var(--accent-2);
  color: var(--bg-on-accent);
  border-bottom: 0.5px solid var(--rule);
}
.section--olive .accent-rule { background: var(--bg-on-accent); }

.kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 20px;
}
.kicker--center { text-align: center; }

/* ─── Display / headings ───────────────────────────────── */
.h-xl, .h-lg, .h-md, .h-sm {
  font-family: var(--f-display);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.015em;
}
.h-xl { font-size: 92px; line-height: 0.96; }
.h-lg { font-size: 72px; line-height: 0.98; }
.h-md { font-size: 44px; line-height: 1.05; }
.h-sm { font-size: 28px; line-height: 1.15; }
.italic, .it { font-style: italic; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }

.lead {
  font-family: var(--f-display);
  font-size: 22px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

/* ─── Buttons / links ──────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--f-ui);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); }
.btn-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  padding: 13px 28px;
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

.link-underline {
  display: inline-block;
  font-family: var(--f-ui);
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.link-underline:hover { color: var(--accent); border-bottom-color: var(--accent); }
.link-underline--inverse { color: var(--bg-on-accent); border-bottom-color: var(--bg-on-accent); }

/* ─── Hero (home) ──────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  padding: 88px var(--pad-x) 72px;
  border-bottom: 0.5px solid var(--rule);
  overflow: hidden;
  max-width: var(--max-content);
  margin: 0 auto;
}
.hero-blob {
  position: absolute;
  right: -120px; top: 80px;
  width: 360px; height: 360px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
}
.hero-content { position: relative; }
.hero h1 { font-size: 92px; }
.hero-lead {
  font-size: 19px; line-height: 1.6;
  color: var(--muted);
  margin-top: 32px; max-width: 540px;
}
.hero-actions {
  display: flex; gap: 20px; align-items: center;
  margin-top: 40px;
}
.hero-cover {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 8px;
}

/* ─── Section header (kicker + title + lead) ───────────── */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 48px; gap: 32px;
}
.section-head .h-md { flex: 1; }

/* ─── Book cover (CSS-only, palette via CSS vars) ──────── */
.book {
  position: relative;
  width: var(--cw, 210px);
  aspect-ratio: 1 / 1.5;
  background: linear-gradient(155deg, var(--cb1, #5a1f1a) 0%, var(--cb2, #2b1410) 100%);
  color: var(--cb3, #c9a961);
  font-family: "EB Garamond", "Garamond", serif;
  display: flex;
  flex-direction: column;
  padding: calc(var(--cw, 210px) * 0.09);
  box-shadow:
    0 1px 0 rgba(255,255,255,.06) inset,
    0 0 0 1px rgba(0,0,0,.2),
    0 8px 24px -10px rgba(0,0,0,.4);
  border-radius: 1px;
  overflow: hidden;
}
.book::before, .book::after {
  content: ""; position: absolute; pointer-events: none;
}
.book::before {
  inset: calc(var(--cw, 210px) * 0.05);
  border: 1px solid rgba(255,255,255,.18);
  border-color: var(--cb3, #c9a961);
  opacity: 0.33;
}
.book::after {
  inset: calc(var(--cw, 210px) * 0.065);
  border: 0.5px solid rgba(255,255,255,.12);
  border-color: var(--cb3, #c9a961);
  opacity: 0.20;
}
.book-author {
  font-size: calc(var(--cw, 210px) * 0.06);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-align: center;
  margin-top: calc(var(--cw, 210px) * 0.04);
  opacity: 0.85;
  position: relative;
}
.book-mid {
  flex: 1; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative;
}
.book-title {
  font-size: calc(var(--cw, 210px) * 0.13);
  font-style: italic;
  line-height: 1.05;
  font-weight: 500;
}
.book-subtitle {
  font-size: calc(var(--cw, 210px) * 0.065);
  margin-top: calc(var(--cw, 210px) * 0.06);
  opacity: 0.75;
  font-style: italic;
}
.book-mark {
  font-size: calc(var(--cw, 210px) * 0.08);
  text-align: center;
  opacity: 0.6;
  font-family: serif;
  position: relative;
}

/* Book sizes */
.book-sm  { --cw: 64px; }
.book-md  { --cw: 150px; }
.book-lg  { --cw: 240px; }
.book-xl  { --cw: 320px; }

/* Real-image cover variant */
.book--img {
  background: #2a2218;
  padding: 0;
  aspect-ratio: auto;
  height: auto;
}
.book--img::before, .book--img::after { display: none; }
.book--img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1px;
}

/* ─── Book card grid ───────────────────────────────────── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px;
  row-gap: 48px;
}
.book-card { display: block; color: inherit; }
.book-meta { margin-top: 18px; }
.book-cat {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.book-h {
  font-family: var(--f-display); font-size: 22px;
  margin-top: 6px; line-height: 1.15;
}
.book-author-sm {
  font-size: 14px; color: var(--muted);
  margin-top: 4px; font-style: italic;
}
.book-row {
  display: flex; justify-content: space-between;
  margin-top: 14px;
  font-family: var(--f-ui); font-size: 13px;
}
.book-row--ruled {
  padding-top: 12px;
  border-top: 0.5px solid var(--rule);
}
.book-price { color: var(--accent); }
.book-buy {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}
.book-card:hover .book-buy { color: var(--accent); border-bottom-color: var(--accent); }

/* ─── Articles list (homepage) ─────────────────────────── */
.articles-block {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
}
.articles-list .article-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 0.5px solid var(--rule);
}
.articles-list .article-row:last-child { border-bottom: none; }
.article-date {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.06em;
}
.article-readtime { margin-top: 4px; }
.article-h {
  font-family: var(--f-display); font-size: 28px;
  line-height: 1.15; font-weight: 400;
  margin: 6px 0 8px;
}
.article-dek {
  font-size: 16px; color: var(--muted);
  line-height: 1.5; margin: 0;
}

/* Software promo aside */
.sw-aside {
  background: var(--accent-2);
  color: var(--bg-on-accent);
  padding: 36px;
  align-self: start;
}
.sw-aside .kicker { color: var(--bg-on-accent); opacity: 0.7; }
.sw-aside .h-md { color: var(--bg-on-accent); }
.sw-aside-body {
  font-size: 15px; line-height: 1.55;
  margin-top: 18px; opacity: 0.85;
}
.sw-aside-cta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; padding-top: 18px;
  border-top: 0.5px solid rgba(255,255,255,0.27);
}
.sw-price {
  font-family: var(--f-display);
  font-size: 22px; font-style: italic;
}

/* ─── Catalog ──────────────────────────────────────────── */
.catalog-head {
  padding: 72px var(--pad-x) 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
  border-bottom: 0.5px solid var(--rule);
  max-width: var(--max-content);
  margin: 0 auto;
}
.cat-filters {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 24px var(--pad-x);
  border-bottom: 0.5px solid var(--rule);
  display: flex; gap: 28px; align-items: center;
  font-family: var(--f-ui); font-size: 13px;
}
.cat-filters a {
  color: var(--ink); padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.cat-filters a:hover, .cat-filters a.active {
  color: var(--accent); border-bottom-color: var(--accent);
}
.cat-filters .filter-sort { margin-left: auto; color: var(--muted); }

/* ─── Book detail ──────────────────────────────────────── */
.breadcrumb {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 20px var(--pad-x);
  font-family: var(--f-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.06em;
  border-bottom: 0.5px solid var(--rule);
}
.breadcrumb .crumb-current { color: var(--ink); }

.detail-hero {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 64px var(--pad-x);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  border-bottom: 0.5px solid var(--rule);
}
.detail-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  max-width: 320px;
  margin-top: 20px;
}
.detail-gallery-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  opacity: 0.68;
}
.detail-gallery-thumb:hover,
.detail-gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--accent);
}
.detail-gallery-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.detail-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-h1 {
  font-family: var(--f-display);
  font-size: 72px; font-weight: 400;
  margin: 12px 0 4px;
  letter-spacing: -0.015em;
  line-height: 0.96;
}
.detail-sub {
  font-family: var(--f-display);
  font-size: 28px; font-style: italic;
  color: var(--muted);
}
.detail-author {
  font-family: var(--f-display);
  font-size: 20px; font-style: italic;
  margin-top: 14px;
}
.detail-excerpt {
  font-size: 19px; line-height: 1.6;
  margin-top: 32px; max-width: 580px;
}
.detail-buybar {
  display: flex; gap: 24px;
  margin-top: 36px;
  padding: 24px 0;
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
  align-items: flex-end;
  flex-wrap: wrap;
}
.detail-price-block { flex: 1; min-width: 140px; }
.label-mono {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.detail-price {
  font-family: var(--f-display);
  font-size: 40px; color: var(--accent);
  margin-top: 4px;
}
.detail-buy {
  flex: 2; min-width: 220px;
  background: var(--ink); color: var(--bg);
  padding: 16px 28px; text-align: center;
  font-family: var(--f-ui); font-size: 13px;
  letter-spacing: 0.04em;
}
.detail-buy:hover { background: var(--accent); }
.detail-fav {
  border: 1px solid var(--ink);
  padding: 15px 22px;
  font-family: var(--f-ui); font-size: 13px;
}
.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
  font-family: var(--f-ui); font-size: 13px;
}
.detail-meta-grid > div .label-mono { font-size: 11px; }
.detail-meta-grid > div .meta-val { margin-top: 4px; }

.excerpt-section {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 56px var(--pad-x);
  background: var(--paper);
  border-bottom: 0.5px solid var(--rule);
}
.excerpt-inner { max-width: 720px; margin: 0 auto; }
.soundtrack-qr {
  margin: 32px auto;
  text-align: center;
}
.soundtrack-qr img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto 12px;
  border: 1px solid var(--rule);
}
.soundtrack-qr figcaption {
  font-family: var(--f-ui);
  font-size: 13px;
  color: var(--muted);
}
.excerpt-text {
  font-family: var(--f-text); font-size: 21px; line-height: 1.7;
}
.dropcap {
  font-family: var(--f-display);
  font-size: 84px;
  float: left;
  line-height: 0.85;
  padding-right: 14px;
  padding-top: 6px;
  color: var(--accent);
  font-style: italic;
}

/* ─── Article ──────────────────────────────────────────── */
.article-hero {
  padding: 88px var(--pad-x) 56px;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  border-bottom: 0.5px solid var(--rule);
}
.article-hero h1 {
  font-family: var(--f-display);
  font-size: 76px; line-height: 1.0;
  font-weight: 400; margin: 0;
  letter-spacing: -0.01em;
}
.article-dek-big {
  font-family: var(--f-display);
  font-size: 24px; font-style: italic;
  color: var(--muted); line-height: 1.4;
  max-width: 640px; margin: 32px auto 0;
}
.article-byline {
  display: flex; gap: 16px; justify-content: center;
  margin-top: 40px;
  font-family: var(--f-ui); font-size: 12px;
  color: var(--muted); letter-spacing: 0.04em;
  text-transform: uppercase; flex-wrap: wrap;
}
.article-body {
  max-width: 680px; margin: 0 auto;
  padding: 64px 32px;
}
.article-body p { font-size: 20px; line-height: 1.65; margin-bottom: 24px; }
.article-body .lede {
  font-family: var(--f-display);
  font-size: 26px; line-height: 1.4;
  margin-bottom: 36px;
}
.article-body .lede .dropcap { font-size: 92px; padding-right: 14px; padding-top: 8px; }
.article-body h2 {
  font-family: var(--f-display);
  font-size: 36px; font-weight: 400;
  font-style: italic;
  margin: 48px 0 24px;
  line-height: 1.15;
}
.article-body blockquote {
  font-family: var(--f-display);
  font-size: 32px; font-style: italic;
  line-height: 1.3;
  color: var(--ink);
  margin: 40px -64px;
  padding: 24px 0;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  text-align: center;
  font-weight: 400;
}

/* ─── Essays index ─────────────────────────────────────── */
.essays-head {
  padding: 88px var(--pad-x) 56px;
  text-align: center;
  border-bottom: 0.5px solid var(--rule);
  max-width: var(--max-content); margin: 0 auto;
}
.essays-head h1 { font-size: 96px; }
.essays-feat {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 56px var(--pad-x);
  background: var(--paper);
  border-bottom: 0.5px solid var(--rule);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
}
.essays-feat-img {
  background: var(--accent-2);
  height: 420px; opacity: 0.5;
}
.essays-feat-content { align-self: center; }
.essays-feat h2 {
  font-family: var(--f-display);
  font-size: 56px; font-weight: 400;
  margin: 0 0 18px; line-height: 1.0;
  letter-spacing: -0.01em;
}
.essays-list {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 40px var(--pad-x);
}
.essay-row {
  display: grid;
  grid-template-columns: 120px 80px 1fr 200px;
  gap: 28px;
  padding: 28px 0;
  border-top: 0.5px solid var(--rule);
  align-items: baseline;
}
.essay-row .essay-date {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.06em;
  text-transform: uppercase;
}
.essay-row .essay-kicker {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.14em;
  text-transform: uppercase;
}
.essay-row h3 {
  font-family: var(--f-display);
  font-size: 30px; font-weight: 400;
  margin: 0; line-height: 1.15;
}
.essay-row .essay-dek {
  font-family: var(--f-text); font-size: 16px;
  color: var(--muted); line-height: 1.5;
  margin: 8px 0 0;
}
.essay-meta {
  text-align: right;
  font-family: var(--f-ui); font-size: 12px;
  color: var(--muted);
}
.essay-meta div + div { margin-top: 4px; }

/* ─── Software ─────────────────────────────────────────── */
.sw-hero {
  padding: 88px var(--pad-x) 64px;
  position: relative; overflow: hidden;
  border-bottom: 0.5px solid var(--rule);
  max-width: var(--max-content); margin: 0 auto;
}
.sw-hero-blob {
  position: absolute;
  right: -160px; top: 40px;
  width: 460px; height: 460px;
  background: var(--accent-2);
  border-radius: 50%;
  opacity: 0.14;
  pointer-events: none;
}
.sw-hero-inner { position: relative; max-width: 1100px; }
.sw-hero h1 {
  font-family: var(--f-display);
  font-size: 104px; font-weight: 400;
  margin: 0; line-height: 0.94;
  letter-spacing: -0.02em;
}
.sw-hero p {
  font-size: 20px; line-height: 1.55;
  color: var(--muted);
  margin-top: 28px; max-width: 600px;
}
.sw-hero-actions {
  display: flex; gap: 16px; margin-top: 36px;
  flex-wrap: wrap;
}

.sw-demo {
  max-width: var(--max-content); margin: 0 auto;
  padding: 48px var(--pad-x);
  background: var(--paper);
  border-bottom: 0.5px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 13px; line-height: 1.85;
}
.sw-demo-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}
.sw-demo-comment { color: var(--accent); margin-bottom: 8px; }
.sw-demo-key { color: var(--accent); }
.sw-demo-side {
  border-left: 1px dashed var(--rule);
  padding-left: 24px;
}
.sw-demo-side-h {
  color: var(--muted); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 12px;
}
.sw-match-best {
  background: var(--accent); color: var(--bg);
  padding: 8px 14px; margin-bottom: 6px;
}
.sw-match {
  padding: 6px 14px; color: var(--muted);
}

.sw-features {
  max-width: var(--max-content); margin: 0 auto;
  padding: 64px var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  border-bottom: 0.5px solid var(--rule);
}
.sw-feature .accent-rule {
  height: 1px; background: var(--accent);
  width: 32px; margin-bottom: 18px;
}
.sw-feature h3 {
  font-family: var(--f-display);
  font-size: 28px; font-weight: 400;
  font-style: italic;
  margin: 0 0 12px;
}
.sw-feature p {
  font-size: 16px; line-height: 1.55;
  color: var(--muted); margin: 0;
}

.sw-quote {
  max-width: var(--max-content); margin: 0 auto;
  padding: 56px var(--pad-x);
  background: var(--accent-2); color: var(--bg-on-accent);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}
.sw-quote blockquote {
  font-family: var(--f-display);
  font-size: 34px; font-style: italic;
  line-height: 1.32; margin: 0;
}
.sw-quote .quote-cite {
  font-family: var(--f-ui); font-size: 14px;
  margin-top: 18px; opacity: 0.85;
  font-style: normal;
}
.sw-quote .req-card {
  background: var(--paper); color: var(--ink);
  padding: 28px;
  font-family: var(--f-ui); font-size: 13px;
  line-height: 1.85;
}
.req-card .req-h {
  font-family: var(--f-mono); color: var(--accent);
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; margin-bottom: 12px;
}

/* ─── Software cards (Bach, Mercurius) ─────────────────── */
.sw-card {
  background: var(--paper);
  padding: 48px var(--pad-x);
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
}
.sw-card-head { margin-bottom: 36px; }
.sw-card-head .kicker { margin-bottom: 14px; }
.sw-card-head h2 { margin: 0; }
.sw-card-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 56px;
  align-items: start;
}
.sw-card-body p { margin: 0 0 14px; }
.sw-list {
  list-style: none; padding: 0; margin: 14px 0 18px;
  font-family: var(--f-text); font-size: 16px; line-height: 1.7;
}
.sw-list li {
  position: relative; padding-left: 22px; margin-bottom: 8px;
}
.sw-list li::before {
  content: "·"; position: absolute; left: 8px;
  color: var(--accent); font-weight: 700;
}
.sw-actions { margin-top: 24px; }
.sw-card-aside .req-card {
  background: var(--bg);
  padding: 28px;
  font-family: var(--f-ui); font-size: 13px;
  line-height: 1.85;
}
@media (max-width: 900px) {
  .sw-card-grid { grid-template-columns: 1fr; gap: 28px; }
  .sw-card { padding: 36px var(--pad-x); }
}

/* ─── About ────────────────────────────────────────────── */
.about-head {
  max-width: var(--max-content); margin: 0 auto;
  padding: 88px var(--pad-x) 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
  border-bottom: 0.5px solid var(--rule);
}
.about-head h1 { font-size: 96px; }
.about-twocol {
  max-width: var(--max-content); margin: 0 auto;
  padding: 64px var(--pad-x);
  border-bottom: 0.5px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.about-twocol .accent-rule {
  height: 1px; background: var(--accent);
  width: 32px; margin-bottom: 18px;
}
.about-twocol h2 {
  font-family: var(--f-display);
  font-size: 36px; font-style: italic;
  font-weight: 400;
  margin: 0 0 20px;
}
.about-twocol p {
  font-size: 18px; line-height: 1.65;
  margin-top: 0;
}
.team-grid {
  max-width: var(--max-content); margin: 0 auto;
  padding: 64px var(--pad-x);
  border-bottom: 0.5px solid var(--rule);
}
.team-grid h2 {
  font-family: var(--f-display);
  font-size: 44px; font-style: italic;
  font-weight: 400;
  margin: 0 0 40px;
}
.team-people {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.team-person .team-photo {
  background: var(--paper); height: 280px;
  margin-bottom: 16px;
}
.team-person .team-name {
  font-family: var(--f-display);
  font-size: 22px;
}
.team-person .team-role {
  font-size: 14px; color: var(--muted);
  font-style: italic; margin-top: 4px;
}
.timeline-row {
  max-width: var(--max-content); margin: 0 auto;
  padding: 64px var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.timeline-cell {
  border-top: 1px solid var(--accent);
  padding-top: 18px;
}
.timeline-year {
  font-family: var(--f-display);
  font-size: 44px; font-style: italic;
  color: var(--accent);
  line-height: 1;
}
.timeline-text {
  font-family: var(--f-text);
  font-size: 16px; margin-top: 10px;
  line-height: 1.4;
}

/* ─── Contact ──────────────────────────────────────────── */
.contact-head {
  max-width: var(--max-content); margin: 0 auto;
  padding: 88px var(--pad-x) 40px;
  border-bottom: 0.5px solid var(--rule);
}
.contact-head h1 { font-size: 88px; }
.contact-grid {
  max-width: var(--max-content); margin: 0 auto;
  padding: 56px var(--pad-x) 80px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
}
/* Make BBF form align left with section heading (override 540px centered default) */
.contact-grid .bbf-form-container { max-width: 100%; margin: 0; }
.contact-form { display: grid; gap: 22px; }
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field {
  display: flex; flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font-family: var(--f-text);
  font-size: 17px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 8px 0 10px;
  border-radius: 0;
  outline: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--accent); }

.contact-aside .channel {
  padding: 22px 0;
  border-top: 0.5px solid var(--rule);
}
.contact-aside .channel:last-child { border-bottom: 0.5px solid var(--rule); }
.contact-aside .channel-h {
  font-family: var(--f-display); font-size: 22px;
  font-style: italic;
}
.contact-aside .channel-d {
  font-family: var(--f-text); font-size: 15px;
  color: var(--muted); margin-top: 4px;
}
.contact-aside .channel-mail {
  font-family: var(--f-mono); font-size: 13px;
  color: var(--accent); margin-top: 8px;
  display: inline-block;
}

/* ─── Footer ───────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 72px var(--pad-x) 40px;
}
.ftr-inner { max-width: var(--max-content); margin: 0 auto; }
.ftr-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ftr-name {
  font-family: var(--f-display);
  font-size: 28px;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.ftr-brand p {
  font-family: var(--f-text);
  font-size: 15px; line-height: 1.55;
  color: rgba(236,227,211,.7);
  max-width: 460px; margin: 0;
}
.ftr-col h4 {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.ftr-col a, .ftr-col span {
  display: block;
  font-family: var(--f-ui); font-size: 14px;
  color: rgba(236,227,211,.85);
  padding: 4px 0;
}
.ftr-col a:hover { color: var(--accent); }
.ftr-bottom {
  display: flex; justify-content: space-between;
  margin-top: 24px;
  font-family: var(--f-ui); font-size: 12px;
  color: rgba(236,227,211,.5);
  flex-wrap: wrap; gap: 12px;
}

/* ─── Mobile ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --pad-x: 32px; }
  .h-xl, .hero h1, .essays-head h1, .about-head h1 { font-size: 64px; }
  .article-hero h1 { font-size: 56px; }
  .sw-hero h1 { font-size: 72px; }
  .h-lg, .detail-h1 { font-size: 56px; }
  .h-md { font-size: 36px; }
  .books-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 56px var(--pad-x); }
  .hero-cover { justify-content: flex-start; }
  .articles-block { grid-template-columns: 1fr; }
  .catalog-head { grid-template-columns: 1fr; gap: 32px; }
  .detail-hero { grid-template-columns: 1fr; gap: 40px; }
  .essays-feat { grid-template-columns: 1fr; }
  .about-head { grid-template-columns: 1fr; }
  .about-twocol { grid-template-columns: 1fr; gap: 40px; }
  .team-people { grid-template-columns: repeat(2, 1fr); }
  .timeline-row { grid-template-columns: repeat(2, 1fr); }
  .sw-features { grid-template-columns: 1fr; gap: 32px; }
  .sw-quote { grid-template-columns: 1fr; }
  .sw-demo-grid { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .article-body blockquote { margin: 32px -16px; font-size: 26px; }
}
@media (max-width: 720px) {
  :root { --pad-x: 22px; }
  body { font-size: 16px; }
  .h-xl, .hero h1, .essays-head h1, .about-head h1 { font-size: 48px; }
  .article-hero h1 { font-size: 42px; }
  .sw-hero h1 { font-size: 54px; }
  .h-lg, .detail-h1 { font-size: 42px; }
  .h-md { font-size: 30px; }
  .lead, .article-dek-big { font-size: 18px; }
  .books-grid { grid-template-columns: 1fr; gap: 0; }
  .books-grid .book-card {
    display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px;
    padding: 20px 0; border-bottom: 0.5px solid var(--rule);
  }
  .books-grid .book-card:first-child { padding-top: 0; }
  .books-grid .book-md { --cw: 120px; }
  .books-grid .book-meta { margin-top: 0; align-self: center; }
  .books-grid .book-h { font-size: 21px; }
  .books-grid .book-row { margin-top: 10px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .essay-row { grid-template-columns: 1fr; gap: 6px; }
  .essay-meta { text-align: left; }
  .ftr-grid { grid-template-columns: 1fr; gap: 40px; }
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column; gap: 0;
    padding: 8px 22px 24px;
    border-bottom: 1px solid var(--rule);
    transform: translateY(-200%);
    transition: transform .25s ease;
    z-index: 49;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a {
    padding: 14px 0; border-bottom: 0.5px solid var(--rule);
    font-size: 16px;
  }
  .main-nav a.active { border-bottom-color: var(--accent); }
  .hdr-utility { display: flex; flex: 0 0 auto; gap: 0; }
  .hdr-utility > :not(.cart-link) { display: none; }
  .hdr-inner { gap: 12px; }
  .hdr-search { flex: 1 1 auto; max-width: 240px; min-width: 0; margin-left: auto; }
  .hdr-search button { padding-left: 6px; }
  .book-xl { --cw: 240px; }
  .body.nav-open { overflow: hidden; }

  .article-body { padding: 40px 0; }
  .article-body p { font-size: 18px; }
  .article-body .lede { font-size: 22px; }
  .article-body .lede .dropcap { font-size: 72px; }
  .article-body h2 { font-size: 28px; }
  .article-body blockquote { font-size: 22px; margin: 24px -8px; }
  .detail-buybar { gap: 16px; }
  .detail-buy { width: 100%; flex: none; }
  .detail-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .team-people { grid-template-columns: 1fr; }
  .timeline-row { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-wrap: wrap; }
  .brand-wordmark { display: none; }
}

/* Utility helpers */
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.maxw-580 { max-width: 580px; }
.maxw-640 { max-width: 640px; }
.center { text-align: center; }
