:root {
  --ink: #18211d;
  --muted: #68716c;
  --paper: #f8f8f4;
  --white: #ffffff;
  --line: #dfe2dc;
  --g1: #ff775f;
  --g1-soft: #ffe3dc;
  --g2: #b8d83c;
  --g2-soft: #eff7ca;
  --g3: #4562c8;
  --g3-soft: #e2e8ff;
  --g4: #8550bd;
  --g4-soft: #efe1fa;
  --g5: #f2bb32;
  --g5-soft: #fff0c4;
  --shadow: 0 24px 70px rgba(24, 33, 29, 0.11);
  --page: min(1380px, calc(100% - 64px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  width: var(--page);
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.05em;
}

.brand-dot { color: var(--g1); }

.brand-mark { height: 30px; width: auto; display: block; }

.primary-nav { display: flex; gap: 34px; }
.primary-nav a, .header-cta { font-size: 13px; font-weight: 700; text-decoration: none; }
.primary-nav a { color: #3f4944; }
.primary-nav a:hover { color: var(--ink); }
.header-cta { padding: 11px 0; border-bottom: 1px solid var(--ink); }

.hero {
  width: var(--page);
  min-height: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5vw;
  overflow: hidden;
}

.eyebrow, .section-index {
  margin: 0 0 25px;
  color: #69726d;
  text-transform: uppercase;
  letter-spacing: .16em;
  font: 500 11px/1.4 "DM Mono", monospace;
}

.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 26px; height: 2px; background: var(--g1); }

.hero h1 {
  margin: 0;
  font-size: clamp(54px, 6vw, 88px);
  line-height: .98;
  letter-spacing: -.07em;
  font-weight: 600;
}

.hero h1 em { color: var(--g3); }
.hero-lede { max-width: 610px; margin: 30px 0 0; color: #56605a; font-size: 17px; line-height: 1.8; }
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 30px; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 23px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  border-radius: 2px;
}

.button-primary { background: var(--ink); color: white; box-shadow: 7px 7px 0 var(--g2); }
.button-primary:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--g2); }
.text-link { font-weight: 800; font-size: 13px; text-underline-offset: 5px; }

.demo-disclosure {
  display: flex;
  gap: 10px;
  max-width: 610px;
  margin: 42px 0 0;
  color: #717973;
  font-size: 12px;
  line-height: 1.6;
}

.demo-disclosure span { color: var(--g4); font-size: 18px; }

.hero-library { position: relative; height: 610px; isolation: isolate; }
.hero-library::before {
  content: "";
  position: absolute;
  width: 490px;
  height: 490px;
  top: 62px;
  left: 50%;
  transform: translateX(-47%);
  border-radius: 50%;
  background: #e9ecdf;
  z-index: -2;
}

.orbit { position: absolute; border: 1px solid #cfd5c8; border-radius: 50%; z-index: -1; }
.orbit-one { width: 555px; height: 240px; top: 194px; left: 25px; transform: rotate(-21deg); }
.orbit-two { width: 420px; height: 510px; top: 64px; left: 120px; transform: rotate(28deg); }

.hero-book, .book-cover {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: 18px 26px 45px rgba(26, 31, 28, .18);
  transition: transform .25s ease, box-shadow .25s ease;
}

.hero-book {
  position: absolute;
  width: 245px;
  height: 355px;
  padding: 26px 25px;
  border-radius: 2px 8px 8px 2px;
}

.hero-book::after, .book-cover::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 7px;
  width: 1px;
  background: rgba(0,0,0,.18);
  box-shadow: 2px 0 rgba(255,255,255,.18);
}

.hero-book .cover-kicker, .book-cover .cover-kicker {
  font: 500 9px/1.4 "DM Mono", monospace;
  letter-spacing: .13em;
}

.hero-book strong { margin-top: 74px; font-size: 25px; line-height: 1.08; letter-spacing: -.05em; }
.hero-book .cover-subtitle { margin-top: 10px; max-width: 140px; font-size: 10px; line-height: 1.5; }
.cover-symbol { position: absolute; right: 23px; bottom: 20px; font: 400 47px/1 "DM Mono", monospace; }
.hero-book-back { top: 80px; left: 13%; transform: rotate(-17deg); }
.hero-book-middle { top: 124px; right: 3%; transform: rotate(14deg); }
.hero-book-front { top: 158px; left: 37%; transform: rotate(-2deg); z-index: 3; }
.hero-book-front:hover { transform: rotate(0) translateY(-10px); box-shadow: 20px 34px 60px rgba(26,31,28,.24); }
.hero-caption { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); font: 500 10px "DM Mono", monospace; white-space: nowrap; }
.hero-caption b { font-size: 14px; }

.cover-g1 { background: var(--g1); color: #2c1a16; }
.cover-g2 { background: var(--g2); color: #18200d; }
.cover-g3 { background: var(--g3); color: #fff; }
.cover-g4 { background: var(--g4); color: #fff; }
.cover-g5 { background: var(--g5); color: #2f2410; }

.subject-section, .catalogue-section { padding: 110px max(32px, calc((100% - 1380px) / 2)); }
.subject-section { background: var(--white); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(300px, 430px); align-items: end; gap: 50px; margin-bottom: 55px; }
.section-heading h2 { margin: 0; font-size: clamp(40px, 4vw, 62px); line-height: 1.08; letter-spacing: -.055em; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.section-index { margin-bottom: 16px; }

.subject-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); }
.subject-card {
  min-height: 310px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border: 0;
  border-right: 1px solid var(--line);
  background: white;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.subject-card:last-child { border-right: 0; }
.subject-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); z-index: 1; }
.subject-g1:hover { background: var(--g1-soft); }
.subject-g2:hover { background: var(--g2-soft); }
.subject-g3:hover { background: var(--g3-soft); }
.subject-g4:hover { background: var(--g4-soft); }
.subject-g5:hover { background: var(--g5-soft); }
.subject-number { color: #7b837e; font: 500 10px "DM Mono", monospace; }
.subject-symbol { margin: 28px 0 auto; font: 400 38px "DM Mono", monospace; }
.subject-card strong { max-width: 180px; margin: 0 0 10px; font-size: 17px; line-height: 1.25; letter-spacing: -.025em; }
.subject-card > span:not(.subject-number):not(.subject-symbol) { color: var(--muted); font-size: 11px; line-height: 1.55; }
.subject-card small { width: 100%; margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(24,33,29,.13); display: flex; justify-content: space-between; font: 500 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.subject-card small b { font-size: 16px; }

.catalogue-section { background: var(--paper); }
.catalogue-heading { margin-bottom: 32px; }
.catalogue-count { justify-self: end; padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; font: 500 10px "DM Mono", monospace !important; }
.filter-bar { display: flex; gap: 7px; margin-bottom: 48px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 8px; }
.filter-button { flex: 0 0 auto; padding: 11px 15px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: #5f6863; font-size: 11px; font-weight: 700; cursor: pointer; }
.filter-button:hover { border-color: #959c97; }
.filter-button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: white; }

.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 68px 28px; }
.book-card[hidden] { display: none; }
.cover-link { position: relative; display: block; max-width: 306px; margin: 0 auto 26px; text-decoration: none; }
.book-cover { aspect-ratio: 3 / 4.18; padding: 25px 24px; border-radius: 1px 7px 7px 1px; box-shadow: 12px 18px 28px rgba(24,33,29,.14); }
.cover-link:hover .book-cover { transform: translateY(-8px) rotate(.5deg); box-shadow: 14px 28px 38px rgba(24,33,29,.2); }
.book-cover > span:nth-child(2) { margin-top: 34%; font-weight: 800; font-size: clamp(20px, 2vw, 29px); line-height: 1.08; letter-spacing: -.05em; }
.book-cover .cover-subtitle { margin-top: 10px; max-width: 170px; font-size: 10px; line-height: 1.5; }
.book-cover .cover-symbol { font-size: 44px; }
.cover-spine { position: absolute; inset: 0 auto 0 0; width: 8px; background: rgba(0,0,0,.08); }
.sample-badge { position: absolute; right: 14px; bottom: -12px; z-index: 2; padding: 8px 11px; background: var(--ink); color: white; font: 500 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }

.book-meta { max-width: 306px; margin: 0 auto; }
.book-group { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; color: #6e7772; font: 500 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .05em; }
.group-dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-g1 { background: var(--g1); }.dot-g2 { background: var(--g2); }.dot-g3 { background: var(--g3); }.dot-g4 { background: var(--g4); }.dot-g5 { background: var(--g5); }
.book-meta h3 { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -.035em; }
.book-meta h3 a { text-decoration: none; }
.book-meta h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.book-description { min-height: 63px; margin: 11px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.tag-list li { padding: 4px 7px; background: #ebece7; border-radius: 2px; color: #636b66; font: 400 9px "DM Mono", monospace; }
.card-footer { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line); color: #7a817d; font-size: 10px; }
.card-footer a { color: var(--ink); font-weight: 800; text-decoration: none; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }

.reading-invite {
  margin: 40px max(32px, calc((100% - 1380px) / 2)) 110px;
  padding: 70px;
  display: grid;
  grid-template-columns: 130px 1fr 1fr;
  gap: 50px;
  align-items: center;
  background: var(--g2);
}
.invite-mark { width: 110px; height: 110px; border: 1px solid rgba(24,33,29,.3); border-radius: 50%; display: grid; place-items: center; }
.invite-mark span { font: 400 47px "DM Mono", monospace; }
.reading-invite h2 { max-width: 500px; margin: 0; font-size: clamp(37px, 4vw, 60px); line-height: 1; letter-spacing: -.06em; }
.invite-copy p { margin: 0 0 27px; font-size: 14px; line-height: 1.8; }
.button-dark { width: fit-content; background: var(--ink); color: white; }
.button-dark:hover { background: #303b35; }

.site-footer { width: var(--page); min-height: 150px; margin: 0 auto; padding: 38px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; gap: 30px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.brand-footer { color: var(--ink); }
.footer-note { text-align: right; font-family: "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }

/* Reader */
.reader-body { background: #fff; }
.reader-header { position: relative; z-index: 10; background: white; }
.reader-back { font-size: 12px; font-weight: 700; text-decoration: none; }
.reader-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.reader-progress { position: fixed; top: 0; left: 0; width: 0; height: 3px; z-index: 30; background: var(--active, var(--g2)); }
.reader-hero { background: var(--reader-soft, var(--g2-soft)); border-bottom: 1px solid rgba(24,33,29,.12); }
.reader-hero-inner { width: min(1180px, calc(100% - 64px)); min-height: 620px; margin: 0 auto; padding: 80px 0; display: grid; grid-template-columns: 330px 1fr; gap: 100px; align-items: center; }
.reader-cover-wrap { position: relative; }
.reader-cover-wrap::before { content: ""; position: absolute; inset: 35px -35px -35px 35px; border: 1px solid rgba(24,33,29,.25); }
.reader-cover-wrap .book-cover { width: 310px; }
.reader-cover-wrap .book-cover > span:nth-child(2) { font-size: 30px; }
.reader-label { font: 500 10px "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.reader-title { max-width: 700px; margin: 21px 0; font-size: clamp(48px, 6vw, 78px); line-height: .98; letter-spacing: -.065em; }
.reader-summary { max-width: 680px; margin: 0; color: #4e5852; font-size: 17px; line-height: 1.75; }
.reader-facts { display: flex; flex-wrap: wrap; gap: 25px 35px; margin: 30px 0; padding: 0; list-style: none; }
.reader-facts li { display: grid; gap: 4px; font-size: 12px; }
.reader-facts span { color: #69726c; font: 500 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .09em; }
.reader-tags { margin-top: 0; }
.reader-tags li { background: rgba(255,255,255,.65); }
.demo-ribbon { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(255,255,255,.72); border: 1px solid rgba(24,33,29,.15); font-size: 10px; font-weight: 700; }

.reader-layout { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 90px 0 130px; display: grid; grid-template-columns: 260px minmax(0, 720px); gap: 100px; justify-content: center; align-items: start; }
.toc { position: sticky; top: 35px; }
.toc-title { display: flex; justify-content: space-between; align-items: center; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font: 500 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.toc-title span { color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 25px 1fr; gap: 8px; padding: 10px 0; color: #69716d; text-decoration: none; font-size: 12px; line-height: 1.45; }
.toc a::before { content: "0" counter(toc); color: #a0a6a2; font: 400 9px "DM Mono", monospace; margin-top: 3px; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.toc a[aria-current="true"]::before { color: var(--active, var(--g2)); }
.toc-mobile { display: none; }
.reader-aside { display: none; position: sticky; top: 35px; }
.reader-aside .reader-facts { display: grid; gap: 22px; margin: 0 0 22px; }
.reader-aside .pdf-links { margin: 22px 0 0; }
.reader-aside .pdf-links a { color: var(--active, var(--g2)); text-decoration: none; }
.reader-aside .pdf-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.article-kicker { color: var(--active, var(--g2)); font: 500 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.article-summary { margin: 0 0 55px; padding: 30px; border: 1px solid var(--line); background: var(--paper); }
.article-summary .article-kicker { margin: 0 0 14px; }
.article-summary p:last-child { margin: 0; }
.reader-article > h2:first-of-type { margin-top: 17px; }
.reader-article section { scroll-margin-top: 35px; padding: 20px 0 55px; border-bottom: 1px solid var(--line); }
.reader-article section + section { padding-top: 65px; }
.reader-article h2 { margin: 0 0 25px; font-size: 40px; line-height: 1.15; letter-spacing: -.045em; }
.reader-article h3 { margin: 38px 0 14px; font-size: 21px; letter-spacing: -.025em; }
.reader-article p, .reader-article li { color: #3f4944; font-size: 16px; line-height: 1.85; }
.reader-article p { margin: 0 0 22px; }
.reader-article ul, .reader-article ol { padding-left: 23px; }
.reader-article li { margin-bottom: 10px; }
.reader-article strong { color: var(--ink); }
.chapter-number { display: block; margin-bottom: 20px; color: var(--active, var(--g2)); font: 500 10px "DM Mono", monospace; letter-spacing: .12em; }
.lead { font-size: 20px !important; line-height: 1.7 !important; color: #2b3530 !important; }
.callout { margin: 32px 0; padding: 24px 26px; border-left: 4px solid var(--active, var(--g2)); background: var(--reader-soft, var(--g2-soft)); }
.callout strong { display: block; margin-bottom: 7px; font-size: 13px; }
.callout p { margin: 0; font-size: 14px; }
.code-block { position: relative; overflow-x: auto; margin: 28px 0; padding: 25px; background: #1b2420; color: #e8efe9; border-radius: 3px; font: 400 13px/1.8 "DM Mono", monospace; white-space: pre; }
.code-block::before { content: attr(data-label); display: block; margin-bottom: 15px; color: #aeb8b2; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.system-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 30px 0; }
.flow-item { min-height: 100px; padding: 15px; display: flex; flex-direction: column; justify-content: space-between; background: var(--reader-soft, var(--g2-soft)); border-top: 3px solid var(--active, var(--g2)); }
.flow-item span { font: 500 9px "DM Mono", monospace; }
.flow-item strong { font-size: 13px; }
.chapter-next { display: flex; justify-content: space-between; margin-top: 35px; font-size: 11px; font-weight: 800; text-decoration: none; }
.chapter-next:hover span:last-child { transform: translateX(5px); }
.prototype-note { padding: 40px; border: 1px solid var(--line); background: var(--paper); }
.prototype-note h2 { font-size: 32px; }
.back-to-catalogue { margin-top: 25px; }
.to-top { position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; z-index: 15; display: grid; place-items: center; border: 1px solid #cdd1cc; border-radius: 50%; background: rgba(255,255,255,.92); text-decoration: none; font-size: 20px; box-shadow: 0 8px 25px rgba(24,33,29,.1); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s ease; }
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr .85fr; }
  .hero-library { transform: scale(.84); transform-origin: center; }
  .subject-grid { grid-template-columns: repeat(3, 1fr); }
  .subject-card:nth-child(3) { border-right: 0; }
  .subject-card:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .book-grid { grid-template-columns: repeat(3, 1fr); }
  .reading-invite { grid-template-columns: 100px 1fr; }
  .invite-copy { grid-column: 2; }
  .reader-hero-inner { gap: 65px; }
  .reader-layout { grid-template-columns: 230px minmax(0, 680px); gap: 60px; }
}

@media (max-width: 820px) {
  :root { --page: min(100% - 36px, 680px); }
  .site-header { height: 72px; }
  .primary-nav { display: none; }
  .header-cta { font-size: 11px; }
  .hero { min-height: auto; padding: 70px 0 45px; grid-template-columns: 1fr; }
  .hero-copy { position: relative; z-index: 2; }
  .hero h1 { font-size: clamp(49px, 13vw, 72px); }
  .hero-library { width: 610px; max-width: 100%; height: 520px; margin: -25px auto 0; transform: scale(.82); }
  .subject-section, .catalogue-section { padding: 80px 18px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .section-heading > p { max-width: 520px; }
  .catalogue-count { justify-self: start; }
  .subject-grid { grid-template-columns: repeat(2, 1fr); }
  .subject-card { border-bottom: 1px solid var(--line); }
  .subject-card:nth-child(odd) { border-right: 1px solid var(--line); }
  .subject-card:nth-child(even) { border-right: 0; }
  .subject-card:last-child { border-bottom: 0; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 55px 20px; }
  .reading-invite { margin: 20px 18px 80px; padding: 45px 30px; grid-template-columns: 1fr; gap: 30px; }
  .invite-copy { grid-column: 1; }
  .invite-mark { width: 80px; height: 80px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 2; grid-row: 1; }
  .site-footer > p:not(.footer-note) { grid-column: 1 / -1; }

  .reader-hero-inner { width: var(--page); min-height: auto; padding: 65px 0; grid-template-columns: 220px 1fr; gap: 45px; }
  .reader-cover-wrap .book-cover { width: 220px; }
  .reader-cover-wrap .book-cover > span:nth-child(2) { font-size: 23px; }
  .reader-title { font-size: 48px; }
  .reader-layout { width: var(--page); padding-top: 45px; grid-template-columns: 1fr; gap: 28px; }
  .toc { display: none; }
  .toc-mobile { display: block; border: 1px solid var(--line); background: var(--paper); }
  .toc-mobile summary { cursor: pointer; padding: 18px; font: 600 11px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
  .toc-mobile nav { padding: 0 18px 18px; }
  .toc-mobile nav a { display: block; padding: 9px 0; color: #4f5953; font-size: 12px; }
}

@media (max-width: 560px) {
  .header-cta { border: 0; }
  .header-cta span { display: none; }
  .hero { padding-top: 55px; }
  .hero h1 { font-size: 48px; }
  .hero-lede { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 24px; }
  .hero-library { left: 50%; margin-left: -305px; transform: scale(.68); }
  .subject-grid { grid-template-columns: 1fr; }
  .subject-card { min-height: 260px; border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .subject-card:last-child { border-bottom: 0 !important; }
  .book-grid { grid-template-columns: 1fr; gap: 62px; }
  .cover-link, .book-meta { max-width: 330px; }
  .book-cover > span:nth-child(2) { font-size: 28px; }
  .book-description { min-height: 0; }
  .reading-invite { padding: 38px 24px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-note { grid-column: 1; grid-row: auto; text-align: left; }

  .reader-header .brand > span:last-child { display: none; }
  .reader-hero-inner { grid-template-columns: 1fr; gap: 55px; }
  .reader-cover-wrap { width: 220px; margin: 0 auto; }
  .reader-title { font-size: 45px; }
  .reader-summary { font-size: 15px; }
  .reader-layout { padding-bottom: 90px; }
  .reader-article h2 { font-size: 33px; }
  .reader-article p, .reader-article li { font-size: 15px; }
  .lead { font-size: 18px !important; }
  .system-flow { grid-template-columns: repeat(2, 1fr); }
  .code-block { margin-left: -18px; margin-right: -18px; border-radius: 0; font-size: 11px; }
  .to-top { right: 15px; bottom: 15px; }
}

/* Demo dalinda #toc `hidden` oldugu icin izgara hucresini bosaltiyor ve
   makale birinci sutuna dusuyordu; sutunlar burada acikca atanir. */
@media (min-width: 821px) {
  .reader-layout--prototype > .reader-article { grid-column: 2; }
  .reader-layout--prototype > .reader-aside { grid-column: 3; }
}

/* Uc sutun. Esik 1260px: kap `calc(100% - 64px)` ile hesaplanirken medya
   sorgusu kaydirma cubugunu iceren genislige bakar; 1244 + 15px pay.
   Orta sutun `minmax(0, 600px)` oldugu icin 600 tavandir, garanti degil. */
@media (min-width: 1260px) {
  .reader-layout { grid-template-columns: 260px minmax(0, 600px) 200px; gap: 60px; }
  .reader-aside { display: block; }
  .toc, .reader-aside { max-height: calc(100vh - 70px); overflow-y: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
