:root {
  --black: #0a0a09;
  --ink: #11110f;
  --paper: #f3efe6;
  --white: #fffdf7;
  --gold: #c69a3b;
  --gold-light: #e3c778;
  --muted: #a8a398;
  --line: rgba(198, 154, 59, 0.28);
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--white); font-family: "Noto Serif Thai", "Th Sarabun New", Tahoma, serif; line-height: 1.75; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.container { width: min(calc(100% - 40px), var(--max-width)); margin-inline: auto; }
.section { padding: 96px 0; }
.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; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 20; border-bottom: 1px solid transparent; transition: .3s ease; }
.site-header.scrolled { background: rgba(10, 10, 9, .94); border-color: var(--line); backdrop-filter: blur(12px); }
.navbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 1.12rem; font-weight: 700; letter-spacing: .04em; }
.site-header .brand > span:last-child { color: var(--white); text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.brand-seal { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--gold); color: var(--gold-light); font-size: .75rem; line-height: 1; transform: rotate(-3deg); }
.nav-links { display: flex; gap: 36px; margin: 0; padding: 0; list-style: none; }
.nav-links a { color: #d8d3c8; font-size: .92rem; transition: color .2s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--gold-light); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: transparent; border: 1px solid var(--line); cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: var(--gold-light); transition: .25s; }

.hero { position: relative; min-height: 760px; display: grid; align-items: center; overflow: hidden; background: radial-gradient(circle at 70% 45%, #2c2516 0, #12110e 30%, var(--black) 68%); border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; right: 10%; top: 20%; width: 360px; height: 360px; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 45px rgba(198,154,59,.025), 0 0 0 90px rgba(198,154,59,.015); }
.hero-pattern { position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(45deg, transparent 48%, rgba(198,154,59,.14) 49%, rgba(198,154,59,.14) 51%, transparent 52%); background-size: 80px 80px; mask-image: linear-gradient(to right, transparent, #000); }
.hero-content { position: relative; z-index: 2; padding-top: 76px; }
.eyebrow { margin: 0 0 12px; color: var(--gold-light); font-size: .78rem; font-weight: 700; letter-spacing: .2em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 700px; margin-bottom: 22px; font-size: clamp(3.4rem, 8vw, 6.8rem); line-height: 1.04; letter-spacing: -.05em; }
h1 span { color: transparent; -webkit-text-stroke: 1px var(--gold-light); }
.hero-copy { max-width: 600px; margin-bottom: 38px; color: #c8c2b7; font-size: clamp(1rem, 2vw, 1.25rem); }
.primary-button { display: inline-flex; align-items: center; gap: 22px; padding: 13px 22px; border: 1px solid var(--gold); color: var(--gold-light); transition: .25s; }
.primary-button:hover { background: var(--gold); color: var(--black); }
.hero-mark { position: absolute; z-index: 1; right: 12%; bottom: -90px; color: rgba(198,154,59,.1); font-family: Georgia, serif; font-size: 30rem; line-height: 1; }

.categories { background: var(--paper); color: var(--ink); }
.section-heading { max-width: 600px; margin: 0 auto 48px; text-align: center; }
.section-heading.left { margin-left: 0; text-align: left; }
.section-heading h2, .about h2 { margin-bottom: 8px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.2; }
.section-heading > p:last-child { color: #69655e; }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid #d2c7ad; }
.category { min-height: 150px; display: grid; place-content: center; gap: 7px; background: transparent; border: 0; border-right: 1px solid #d2c7ad; cursor: pointer; transition: .25s; }
.category:last-child { border-right: 0; }
.category span { color: #a9863a; font-family: Georgia, serif; font-size: 2.2rem; }
.category strong { font-size: .95rem; }
.category:hover, .category.active { background: var(--ink); color: var(--white); }

.articles { background: #0e0e0c; }
.all-articles-callout { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: -12px 0 34px; padding: 24px 26px; border: 1px solid rgba(198,154,59,.48); background: #15140f; }
.all-articles-callout p { margin: 0; color: #e8e2d6; font-size: 1.08rem; font-weight: 700; }
.all-articles-button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 14px; padding: 13px 24px; border: 1px solid var(--gold); background: var(--gold); color: var(--black); font-weight: 800; transition: .25s; }
.all-articles-button:hover, .all-articles-button:focus-visible { border-color: var(--white); background: var(--white); color: var(--black); transform: translateY(-2px); }
.all-articles-button:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }
.all-articles-footer { display: flex; justify-content: center; margin-top: 42px; }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.article-card { min-height: 340px; display: grid; grid-template-columns: 90px 1fr; padding: 38px; background: #11110f; transition: background .25s, opacity .25s; }
.article-card:hover { background: #181711; }
.article-card[hidden] { display: none; }
.card-number { color: rgba(198,154,59,.32); font-family: Georgia, serif; font-size: 1.25rem; white-space: nowrap; }
.tag { display: inline-block; margin-bottom: 20px; color: var(--gold-light); font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
.card-phase { display: block; margin: -10px 0 18px; color: #aaa49a; font-size: .76rem; }
.card-collection { display: block; margin: -10px 0 18px; color: #d7bd79; font-size: .76rem; font-weight: 700; }
.card-content h3 { margin-bottom: 15px; font-size: 1.45rem; line-height: 1.5; }
.card-content p { color: var(--muted); font-size: .94rem; }
.card-content a { display: inline-block; margin-top: 10px; color: var(--gold-light); font-size: .85rem; }
.card-content a:hover { text-decoration: underline; }
.empty-message { padding: 48px; color: var(--muted); text-align: center; }

.about { color: var(--ink); background: var(--paper); }
.about-inner { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(50px, 8vw, 110px); }
.about-symbol { position: relative; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #cdbd95; border-radius: 50%; }
.about-symbol::before, .about-symbol::after { content: ""; position: absolute; width: 78%; height: 78%; border: 1px solid rgba(166,126,41,.35); transform: rotate(45deg); }
.about-symbol::after { width: 55%; height: 55%; transform: rotate(0); }
.about-symbol span { z-index: 1; color: #a47d28; font-family: Georgia, serif; font-size: clamp(5rem, 12vw, 9rem); }
.about-copy .lead { color: #3e3a33; font-size: 1.2rem; font-weight: 700; }
.about-copy > p:not(.eyebrow):not(.lead) { color: #625e57; }
blockquote { margin: 30px 0 0; padding: 14px 0 14px 24px; border-left: 2px solid var(--gold); color: #7b632e; font-size: 1.08rem; font-style: italic; }

.site-footer { padding: 60px 0 30px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 45px; align-items: center; }
.footer-inner > div p { margin: 15px 0 0; color: #c4beb2; font-size: .9rem; }
.footer-inner nav { display: flex; gap: 28px; color: #ded8cc; font-size: .88rem; }
.footer-inner nav a:hover, .footer-inner nav a:focus-visible { color: var(--gold-light); }
.copyright { grid-column: 1 / -1; margin: 0; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); color: #aaa49a; font-size: .8rem; }

.article-page { background: var(--paper); color: var(--ink); }
.article-hero { padding: 170px 0 82px; color: var(--white); background: radial-gradient(circle at 75% 35%, #2c2516 0, #12110e 32%, var(--black) 72%); border-bottom: 1px solid var(--line); }
.article-hero-inner { max-width: 72ch; }
.article-hero h1 { max-width: 18ch; margin: 14px 0 28px; font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1.2; letter-spacing: -.035em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px 25px; color: #d0c9bc; font-size: .92rem; }
.article-meta .tag { margin: 0; }
.article-body { width: min(calc(100% - 40px), 72ch); margin-inline: auto; padding: 82px 0 104px; }
.article-body .opening { color: #38342e; font-size: 1.3rem; font-weight: 700; line-height: 1.9; }
.article-body h2 { margin: 56px 0 22px; color: #26231e; font-size: clamp(1.65rem, 3vw, 2.15rem); line-height: 1.45; }
.article-body p { margin-bottom: 30px; color: #514d46; font-size: 1.05rem; line-height: 1.9; }
.article-body blockquote { margin: 48px 0; padding: 26px 0 26px 28px; color: #72571f; font-size: 1.22rem; line-height: 1.8; }
.article-phase-description { max-width: 72ch; margin-top: 22px; color: #bcb5a9; line-height: 1.7; }
.article-opening-quote { margin-top: 0 !important; }
.article-diagram { max-width: 100%; margin: 38px 0; padding: 24px; overflow-x: auto; border: 1px solid #cdbd95; background: #eee8da; color: #38342e; font: .9rem/1.75 Consolas, monospace; white-space: pre-wrap; }
.diagram-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 38px 0; padding: 1px; border: 1px solid #bda978; background: #bda978; }
.diagram-summary-item { min-width: 0; padding: 24px; background: #eee8da; }
.diagram-summary-item h3 { margin: 0 0 16px; color: #72571f; font-size: 1rem; line-height: 1.5; }
.diagram-summary-item ul { display: grid; gap: 10px; margin: 0; padding-left: 20px; color: #514d46; }
.diagram-summary-item li { padding-left: 4px; line-height: 1.7; overflow-wrap: anywhere; }
.chapter-insight { margin: 38px 0; padding: 28px 30px; border: 1px solid #bda978; background: #eee8da; color: #3f3b35; }
.chapter-insight h3, .chapter-insight h4 { color: #72571f; line-height: 1.5; }
.chapter-insight h3 { margin: 0 0 14px; font-size: 1.24rem; }
.chapter-insight h4 { margin: 26px 0 10px; font-size: 1rem; }
.chapter-insight p { margin: 0; line-height: 1.85; overflow-wrap: anywhere; }
.article-table-wrap { max-width: 100%; margin: 42px 0; overflow-x: auto; }
.article-table { width: 100%; border-collapse: collapse; color: #454038; font-size: .94rem; line-height: 1.65; }
.article-table th, .article-table td { min-width: 150px; padding: 14px 16px; border: 1px solid #bda978; text-align: left; vertical-align: top; }
.article-table th { background: #28251f; color: #f1dfaa; }
.article-table td { background: #f5f0e5; }
.article-summary { margin: 58px 0 0; padding: 32px; border: 1px solid #bda978; background: #eee8da; }
.article-summary h2 { margin-top: 0; }
.article-summary > :last-child { margin-bottom: 0; }
.back-home { display: inline-flex; align-items: center; gap: 14px; margin-top: 36px; padding: 12px 20px; border: 1px solid #a77e28; color: #7b5a19; font-weight: 700; transition: .25s; }
.back-home:hover, .back-home:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--gold-light); transform: translateY(-2px); }
.back-home:focus-visible, .site-footer a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.library-page { background: #0e0e0c; }
.library-hero { padding: 165px 0 72px; background: radial-gradient(circle at 78% 35%, #2c2516 0, #12110e 32%, var(--black) 72%); border-bottom: 1px solid var(--line); }
.library-hero h1 { margin: 8px 0 18px; font-size: clamp(3.2rem, 7vw, 6rem); }
.library-hero p:last-child { max-width: 620px; color: #c8c2b7; font-size: 1.08rem; }
.library-content { padding: 68px 0 100px; }
.library-tools { display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 28px; align-items: end; margin-bottom: 42px; }
.search-box label { display: block; margin-bottom: 10px; color: var(--gold-light); font-size: .8rem; font-weight: 700; letter-spacing: .1em; }
.search-box input { width: 100%; min-height: 50px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 0; outline: 0; background: #151511; color: var(--white); font: inherit; }
.search-box input::placeholder { color: #8e897f; }
.search-box input:focus { border-color: var(--gold-light); box-shadow: 0 0 0 3px rgba(198,154,59,.17); }
.library-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.collection-filters, .part-filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.collection-filter, .part-filter { min-height: 40px; padding: 9px 15px; border: 1px solid var(--line); background: transparent; color: #d8d3c8; font: inherit; font-size: .84rem; cursor: pointer; transition: .2s; }
.collection-filter:hover, .collection-filter.active, .part-filter:hover, .part-filter.active { border-color: var(--gold); background: var(--gold); color: var(--black); }
.collection-filter:focus-visible, .part-filter:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.library-filters .category { min-height: auto; display: inline-flex; padding: 11px 17px; border: 1px solid var(--line); color: #d8d3c8; }
.library-filters .category:hover, .library-filters .category.active { border-color: var(--gold); background: var(--gold); color: var(--black); }
.phase-filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { margin-right: 6px; color: var(--gold-light); font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.phase-filter { min-height: 40px; padding: 9px 15px; border: 1px solid var(--line); background: transparent; color: #d8d3c8; font: inherit; font-size: .84rem; cursor: pointer; transition: .2s; }
.phase-filter:hover, .phase-filter.active { border-color: var(--gold); background: var(--gold); color: var(--black); }
.phase-filter:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.library-grid { grid-template-columns: repeat(2, 1fr); }
.library-grid .article-card { min-height: 370px; }
.card-date { display: block; margin: -12px 0 18px; color: #aaa49a; font-size: .78rem; }
.read-button { padding-bottom: 3px; border-bottom: 1px solid currentColor; }

.collection-entry { padding: 48px 0; border-bottom: 1px solid var(--line); background: #14130f; }
.collection-entry-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 38px; align-items: center; padding: 34px; border: 1px solid rgba(198,154,59,.48); }
.collection-entry h2 { margin: 7px 0 10px; font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.collection-entry p:last-child { max-width: 650px; margin: 0; color: #c8c2b7; }
.collection-entry-meta { display: flex; align-items: center; gap: 15px; color: #c8c2b7; font-size: .84rem; line-height: 1.6; }
.collection-entry-meta strong { color: var(--gold-light); font-family: Georgia, serif; font-size: 3.4rem; line-height: 1; }
.collection-hero { position: relative; }
.collection-count { display: inline-flex; align-items: center; gap: 15px; margin-top: 30px; padding: 16px 22px; border: 1px solid rgba(198,154,59,.48); color: #d4cec2; }
.collection-count strong { color: var(--gold-light); font-family: Georgia, serif; font-size: 2.6rem; line-height: 1; }
.collection-count span { font-size: .86rem; }
.collection-overview { background: var(--paper); color: var(--ink); }
.collection-parts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; border: 1px solid #d2c7ad; list-style: none; }
.collection-parts li { min-width: 0; padding: 24px 20px; border-right: 1px solid #d2c7ad; }
.collection-parts li:last-child { border-right: 0; }
.collection-parts a { display: block; color: inherit; }
.collection-parts span { display: block; margin-bottom: 10px; color: #9a7322; font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
.collection-parts strong { display: block; color: #332f28; font-size: .92rem; line-height: 1.65; }
.collection-parts small { display: block; margin-top: 8px; color: #716b61; font-size: .72rem; line-height: 1.5; }
.collection-parts a:hover strong, .collection-parts a:focus-visible strong { color: #8a651d; }
.collection-parts a:focus-visible { outline: 3px solid #b58a31; outline-offset: 5px; }
.collection-content .section-heading > p:last-child { color: #aaa49a; }
.article-list { display: grid; gap: 14px; margin: 0 0 30px; padding-left: 26px; color: #514d46; }
.article-list li { padding-left: 5px; font-size: 1.05rem; line-height: 1.9; }

.social-section { padding: 88px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0d0d0b; color: var(--white); }
.social-heading { max-width: 720px; margin-bottom: 38px; }
.social-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.3; }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.social-card { min-width: 0; padding: 30px; background: #12120f; }
.social-card .social-platform { margin-bottom: 12px; color: var(--gold-light); font-size: 1.22rem; font-weight: 700; }
.social-card > p:not(.social-platform) { min-height: 58px; margin-bottom: 25px; color: #c4beb2; font-size: .9rem; }
.social-card a { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 3px; border-bottom: 1px solid var(--gold); color: var(--gold-light); font-size: .86rem; font-weight: 700; transition: .2s; }
.social-card a:hover, .social-card a:focus-visible { color: var(--white); border-color: var(--white); transform: translateY(-2px); }
.social-card a:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.article-social { width: 100%; margin: 58px 0 12px; padding: 34px; }
.article-social .social-heading { margin-bottom: 26px; }
.article-social .social-heading h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); }
.article-social .social-card { padding: 20px; }
.article-social .social-card > p:not(.social-platform) { min-height: 72px; font-size: .82rem; }
.footer-social { grid-column: 1 / -1; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-social h2 { margin-bottom: 20px; color: var(--white); font-size: 1.15rem; }
.footer-social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.footer-social-card { padding: 20px; border: 1px solid var(--line); background: #0d0d0b; }
.footer-social-card > p:not(.social-platform) { min-height: auto; margin-bottom: 16px; }

.admin-page { min-height: 100vh; background: radial-gradient(circle at 82% 12%, #2c2516 0, #12110e 28%, var(--black) 62%); }
.admin-header { border-bottom: 1px solid var(--line); background: rgba(10,10,9,.94); }
.admin-header .navbar { min-height: 78px; }
.admin-label { color: var(--gold-light); font-size: .78rem; letter-spacing: .12em; }
.admin-main { padding: 76px 0 100px; }
.admin-intro { max-width: 760px; margin-bottom: 42px; }
.admin-intro h1 { margin-bottom: 15px; font-size: clamp(2.6rem, 6vw, 4.8rem); }
.admin-intro > p { color: #c8c2b7; }
.admin-warning { margin-top: 24px; padding: 16px 20px; border-left: 2px solid var(--gold); background: rgba(198,154,59,.08); color: #e0d8c9; }
.admin-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr); gap: 30px; align-items: start; }
.admin-panel { padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); background: #11110f; }
.admin-panel h2 { margin-bottom: 28px; font-size: 1.45rem; }
.admin-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.form-field { display: grid; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #e0dbd0; font-size: .88rem; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #4c4536; border-radius: 0; outline: 0; background: #0b0b09; color: var(--white); font: inherit; }
.form-field textarea { min-height: 118px; resize: vertical; }
.form-field .article-body-input { min-height: 260px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--gold-light); box-shadow: 0 0 0 3px rgba(198,154,59,.17); }
.field-hint { margin: 0; color: #aaa49a; font-size: .76rem; }
.field-error { margin: 0; color: #f0a59d; font-size: .8rem; }
.admin-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.admin-button { min-height: 46px; padding: 10px 20px; border: 1px solid var(--gold); background: var(--gold); color: var(--black); font-weight: 700; cursor: pointer; transition: .2s; }
.admin-button.secondary { background: transparent; color: var(--gold-light); }
.admin-button:hover, .admin-button:focus-visible { background: var(--white); border-color: var(--white); color: var(--black); transform: translateY(-1px); }
.admin-button:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.admin-button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.object-preview { min-height: 365px; margin: 0; padding: 22px; overflow: auto; border: 1px solid #393327; background: #080807; color: #e7d6a8; font-family: Consolas, "Courier New", monospace; font-size: .88rem; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.admin-output-stack { display: grid; gap: 30px; }
.admin-output-stack .object-preview { min-height: 260px; max-height: 560px; }
.admin-output-stack .html-preview { min-height: 390px; }
.suggested-file { margin: -12px 0 18px; color: #bdb7ab; font-size: .86rem; }
.suggested-file strong { color: var(--gold-light); overflow-wrap: anywhere; }
.copy-status { min-height: 28px; margin: 16px 0 0; color: #dfc774; font-size: .88rem; }

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--max-width)); }
  .section { padding: 70px 0; }
  .navbar { min-height: 68px; }
  .menu-toggle { display: block; }
  .nav-links { position: absolute; inset: 68px 0 auto; display: none; flex-direction: column; gap: 0; padding: 10px 14px 18px; background: rgba(10,10,9,.98); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 10px; }
  .hero { min-height: 680px; }
  .hero::after { right: -180px; width: 330px; height: 330px; }
  .hero-mark { right: -10%; bottom: -40px; font-size: 18rem; }
  h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  .hero-copy br { display: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category { min-height: 120px; border-bottom: 1px solid #d2c7ad; }
  .category:nth-child(2n) { border-right: 0; }
  .category:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .article-grid { grid-template-columns: 1fr; }
  .all-articles-callout { align-items: stretch; flex-direction: column; margin-top: -4px; padding: 22px 20px; text-align: center; }
  .all-articles-button { width: 100%; padding-inline: 18px; }
  .all-articles-footer { margin-top: 30px; }
  .article-card { min-height: auto; grid-template-columns: 58px 1fr; padding: 28px 22px; }
  .card-number { font-size: 2.4rem; }
  .card-content h3 { font-size: 1.25rem; }
  .about-inner { grid-template-columns: 1fr; }
  .about-symbol { width: min(75vw, 330px); margin: auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-inner nav { flex-wrap: wrap; }
  .article-hero { padding: 135px 0 60px; }
  .article-hero h1 { font-size: clamp(2.4rem, 12vw, 3.8rem); }
  .article-body { width: min(calc(100% - 28px), 72ch); padding: 58px 0 75px; }
  .article-body .opening { font-size: 1.15rem; }
  .article-body h2 { margin-top: 46px; }
  .article-body p { margin-bottom: 26px; }
  .diagram-summary { grid-template-columns: 1fr; }
  .diagram-summary-item { padding: 22px 20px; }
  .chapter-insight { margin: 30px 0; padding: 22px 20px; }
  .library-hero { padding: 130px 0 55px; }
  .library-tools { grid-template-columns: 1fr; align-items: stretch; }
  .library-filters { gap: 7px; }
  .collection-filters, .part-filters { align-items: stretch; }
  .collection-filters .filter-label, .part-filters .filter-label { flex-basis: 100%; }
  .collection-filter, .part-filter { flex: 1 1 auto; }
  .library-filters .category { flex: 1 1 auto; justify-content: center; padding-inline: 12px; }
  .library-grid { grid-template-columns: 1fr; }
  .library-grid .article-card { min-height: auto; }
  .collection-entry-inner { grid-template-columns: 1fr; gap: 24px; padding: 26px 22px; }
  .collection-entry .all-articles-button { width: 100%; }
  .collection-parts { grid-template-columns: 1fr; }
  .collection-parts li { border-right: 0; border-bottom: 1px solid #d2c7ad; }
  .collection-parts li:last-child { border-bottom: 0; }
  .social-section { padding: 64px 0; }
  .social-grid, .footer-social-grid { grid-template-columns: 1fr; }
  .social-card > p:not(.social-platform), .article-social .social-card > p:not(.social-platform) { min-height: auto; }
  .article-social { margin-top: 48px; padding: 26px 20px; }
  .article-social .social-grid { border: 0; gap: 10px; background: transparent; }
  .footer-social-grid { gap: 10px; }
  .admin-main { padding: 52px 0 72px; }
  .admin-header .navbar { min-height: 68px; }
  .admin-workspace { grid-template-columns: 1fr; }
  .admin-form { grid-template-columns: 1fr; }
  .form-field.full, .admin-actions { grid-column: auto; }
  .object-preview { min-height: 280px; }
}

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