:root {
  color-scheme: light;
  --paper: #f2eee5;
  --paper-raised: #faf7f0;
  --ink: #24231f;
  --soft-ink: #605d55;
  --line: #c9c2b6;
  --accent: #a1462e;
  --accent-ink: #fff9f0;
  --dark-panel: #252b2a;
  --light-panel: #e9e1d0;
  --header-bg: rgba(242, 238, 229, .97);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #212522;
  --paper-raised: #292e2a;
  --ink: #f2eee3;
  --soft-ink: #c0bdb1;
  --line: #50554e;
  --accent: #e3a080;
  --accent-ink: #24231f;
  --light-panel: #d9d0be;
  --header-bg: rgba(33, 37, 34, .97);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; line-height: 1.55; transition: background-color .25s, color .25s; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
.section-shell { width: min(1360px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 30; padding: 10px 16px; background: var(--ink); color: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.progress-bar { position: fixed; top: 0; left: 0; z-index: 20; width: 0; height: 3px; background: var(--accent); pointer-events: none; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--header-bg); border-bottom: 1px solid var(--line); }
.masthead { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.identity { display: inline-flex; align-items: center; gap: 12px; font-family: "Fraunces", Georgia, serif; font-size: 1.4rem; font-weight: 600; white-space: nowrap; }
.identity-slash, .footer-title span { color: var(--accent); }
.identity-mark, .closing-mark { display: inline-block; position: relative; width: 26px; height: 26px; border: 2px solid currentColor; border-radius: 50%; overflow: hidden; flex: none; }
.identity-mark span, .closing-mark::after { position: absolute; content: ""; inset: 0 0 0 50%; background: currentColor; }
.masthead-note { font-size: .82rem; letter-spacing: .05em; color: var(--soft-ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 9px 0 9px 12px; border: 0; background: none; color: var(--ink); font-size: .8rem; font-weight: 700; }
.toggle-track { width: 40px; height: 22px; border: 1px solid var(--ink); border-radius: 30px; display: flex; align-items: center; padding: 3px; }
.toggle-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transition: transform .2s; }
html[data-theme="dark"] .toggle-thumb { transform: translateX(18px); }
.theme-toggle:hover .theme-label, .site-nav a:hover, .site-nav a.active { color: var(--accent); }
.site-nav { min-height: 42px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); gap: 16px; }
.site-nav a { font-size: .76rem; text-transform: uppercase; font-weight: 700; letter-spacing: .08em; transition: color .2s; }
.mobile-menu { display: none; }
.hero { padding-top: 28px; }
.hero-topline, .hero-bottomline, .section-index { display: flex; justify-content: space-between; gap: 24px; color: var(--soft-ink); text-transform: uppercase; letter-spacing: .13em; font-size: .68rem; font-weight: 700; }
.hero-topline { padding-bottom: 14px; }
.hero-main { min-height: 650px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.hero-copy { padding: clamp(54px, 8vw, 116px) clamp(26px, 4vw, 66px) 60px 0; display: flex; align-items: flex-start; flex-direction: column; }
.eyebrow { text-transform: uppercase; font-size: .74rem; font-weight: 700; letter-spacing: .16em; color: var(--accent); margin-bottom: 28px; }
h1, h2, .mode-card h3, .footer-title { font-family: "Fraunces", Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(3.8rem, 5.7vw, 6.8rem); line-height: 1.02; letter-spacing: -.055em; margin-bottom: 26px; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
.hero-text { max-width: 440px; font-size: 1.08rem; color: var(--soft-ink); line-height: 1.7; }
.hero-actions { margin-top: auto; padding-top: 42px; display: flex; flex-wrap: wrap; gap: 30px; }
.text-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 28px; border-bottom: 1px solid currentColor; padding-bottom: 6px; font-size: .86rem; font-weight: 700; }
.text-link span { font-size: 1.2rem; line-height: 1; }
.text-link:hover { color: var(--accent); }
.text-link.subtle { color: var(--soft-ink); }
.hero-visual { display: grid; grid-template-columns: 1fr 1fr; position: relative; min-width: 0; }
.visual-half { position: relative; padding: 36px 22px 78px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.visual-light { background: #e8dfcd; color: #272924; }
.visual-dark { background: #292d2b; color: #ece8dd; }
.visual-caption { font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; }
.visual-sample { padding: 30px clamp(18px, 2vw, 34px); min-height: 346px; display: flex; flex-direction: column; border: 1px solid currentColor; }
.visual-light .visual-sample { background: #f5f0e5; border-color: #b5ac9c; }
.visual-dark .visual-sample { background: #343936; border-color: #737b74; }
.sample-kicker, .small-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.visual-sample strong { font-family: "Fraunces", Georgia, serif; font-weight: 400; font-size: clamp(1.8rem, 2.8vw, 3rem); line-height: 1.12; letter-spacing: -.03em; margin-top: 35px; }
.sample-lines { display: grid; gap: 9px; margin-top: 26px; }
.sample-lines span { height: 3px; width: 90%; background: currentColor; opacity: .22; }
.sample-lines span:nth-child(2) { width: 76%; }.sample-lines span:nth-child(3) { width: 50%; }
.sample-action { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid currentColor; padding-top: 12px; margin-top: auto; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.visual-axis { position: absolute; bottom: 22px; left: 0; width: 100%; text-align: center; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #f5f0e5; mix-blend-mode: difference; }
.hero-bottomline { padding: 17px 0; }
.hero-bottomline span:last-child { font-size: 1.2rem; line-height: .8; }
.content-section { padding-top: clamp(90px, 11vw, 160px); padding-bottom: 0; }
.alt-section { background: transparent; }
.content-section.section-shell, .alt-section > .section-shell { border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr); gap: 28px 8%; align-items: end; margin: 0 0 58px; padding-top: 16px; }
.section-heading .eyebrow { grid-column: 1 / -1; margin: 0; }
h2 { font-size: clamp(2.8rem, 4.5vw, 5.2rem); line-height: 1.08; letter-spacing: -.045em; margin: 0; max-width: 850px; }
.section-heading > p:not(.eyebrow) { color: var(--soft-ink); font-size: 1.05rem; line-height: 1.7; margin: 0 0 7px; }
h3 { font-size: 1.22rem; line-height: 1.25; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.mode-card { min-height: 390px; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; position: relative; }
.mode-card .profile-symbol { display: block; width: 58px; height: 58px; border: 2px solid currentColor; border-radius: 50%; margin-bottom: auto; position: relative; overflow: hidden; }
.mode-card .profile-symbol::after { content: ""; position: absolute; inset: 0 0 0 50%; background: currentColor; }
.mode-card h3 { font-size: clamp(2.1rem, 3.2vw, 3.8rem); letter-spacing: -.04em; max-width: 340px; margin: 0 0 15px; }
.mode-card p { max-width: 440px; font-size: .95rem; margin: 0; line-height: 1.65; }
.light-card { background: #e8dfcd; color: #272924; }
.dark-card { background: #292d2b; color: #ece8dd; }
.science-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 8%; }
.info-card { border-top: 1px solid var(--ink); padding: 25px 0 42px 52px; position: relative; }
.info-card::before { content: "0" counter(science); counter-increment: science; position: absolute; left: 0; top: 26px; color: var(--accent); font-size: .8rem; font-weight: 700; }
.science-grid { counter-reset: science; }
.info-card h3 { margin: 0 0 12px; }
.info-card p, .warning-card p, .comparison-column li { color: var(--soft-ink); line-height: 1.7; font-size: .95rem; }
.info-card p { max-width: 550px; margin: 0; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.comparison-column { padding: 26px 5% 15px 0; }
.comparison-column + .comparison-column { border-left: 1px solid var(--line); padding-left: 6%; }
.comparison-column h3 { color: var(--accent); font-size: .78rem; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 26px; }
.comparison-column ul { list-style: none; padding: 0; margin: 0; }
.comparison-column li { padding: 15px 0; border-top: 1px solid var(--line); }
.comparison-column li::before { content: "↗"; color: var(--accent); margin-right: 10px; }
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8%; border-top: 1px solid var(--ink); }
.warning-card { padding: 30px 0 24px; }
.warning-card h3 { margin-bottom: 12px; }
.warning-card p { max-width: 570px; }
#examples { width: 100%; max-width: none; background: var(--ink); color: var(--paper); padding: clamp(70px, 8vw, 120px) max(48px, calc((100% - 1360px) / 2)); margin-top: clamp(90px, 11vw, 160px); }
#examples > .section-shell { border-top-color: color-mix(in srgb, var(--paper) 35%, transparent); }
#examples .section-heading > p:not(.eyebrow) { color: var(--paper); opacity: .78; }
#examples .eyebrow { color: var(--paper); }
.interactive-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; }
.demo-panel { border-top: 1px solid var(--paper); padding-top: 20px; min-width: 0; }
.demo-panel:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(200px, .5fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.demo-panel-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.demo-panel:nth-child(3) .demo-panel-head { display: block; }
.demo-panel h3 { font-family: "Fraunces", Georgia, serif; font-weight: 400; font-size: 1.7rem; margin: 0; }
.demo-theme-btn { background: transparent; border: 0; border-bottom: 1px solid currentColor; color: inherit; white-space: nowrap; padding: 4px 0; font-size: .78rem; font-weight: 700; }
.demo-theme-btn:hover { color: var(--accent); }
.demo-panel:nth-child(3) .demo-theme-btn { margin-top: 12px; }
.demo-window { --demo-bg: #f6f0e3; --demo-ink: #272924; --demo-muted: #585b53; --demo-line: #b9b3a6; --demo-accent: #a1462e; background: var(--demo-bg); color: var(--demo-ink); padding: clamp(26px, 4vw, 48px); min-height: 340px; transition: background-color .25s, color .25s; }
.demo-panel[data-demo-theme="dark"] .demo-window { --demo-bg: #303936; --demo-ink: #f0eee5; --demo-muted: #c0c9c0; --demo-line: #78847a; --demo-accent: #e3a080; }
.demo-window .small-label { color: var(--demo-accent); }
.demo-window h4 { font-family: "Fraunces", Georgia, serif; font-weight: 400; font-size: clamp(1.8rem, 2.5vw, 3rem); line-height: 1.12; margin: 32px 0 18px; }
.demo-window p { color: var(--demo-muted); line-height: 1.7; font-size: .94rem; }
.metric-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--demo-line); padding: 24px 0 12px; }
.metric-row strong { font-family: "Fraunces", Georgia, serif; font-size: 3rem; font-weight: 400; line-height: 1; }
.fake-chart { height: 105px; display: flex; align-items: end; gap: 9px; border-bottom: 1px solid var(--demo-line); margin: 20px 0; }
.fake-chart span { width: 24px; background: var(--demo-accent); }
.demo-window label { display: block; margin-top: 14px; font-size: .8rem; font-weight: 700; }
.demo-window input { width: 100%; background: transparent; color: var(--demo-ink); border: 0; border-bottom: 1px solid var(--demo-line); border-radius: 0; padding: 11px 2px; }
.demo-window input:focus { outline: 0; border-color: var(--demo-accent); box-shadow: 0 1px 0 var(--demo-accent); }
.fake-submit { margin-top: 23px; border: 0; padding: 11px 18px; background: var(--demo-accent); color: var(--demo-bg); font-weight: 700; font-size: .82rem; }
.fake-submit:hover { filter: brightness(.88); }
.matrix-table-wrapper { overflow-x: auto; border-top: 1px solid var(--ink); }
.matrix-table { border-collapse: collapse; width: 100%; min-width: 650px; text-align: left; }
.matrix-table th { padding: 22px 12px 18px 0; text-transform: uppercase; color: var(--accent); font-size: .72rem; letter-spacing: .1em; }
.matrix-table td { padding: 22px 24px 22px 0; border-top: 1px solid var(--line); font-size: .94rem; }
.matrix-table td:nth-child(1) { font-weight: 700; width: 29%; }
.matrix-table td:nth-child(2) { font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; width: 20%; }
.matrix-table td:nth-child(3) { color: var(--soft-ink); }
.recommendation-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 8%; }
.recommendation-item { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.recommendation-item span { color: var(--accent); font-size: .8rem; font-weight: 700; padding-top: 3px; }
.recommendation-item p { font-size: 1rem; line-height: 1.6; margin: 0; }
.site-footer { margin-top: clamp(90px, 11vw, 160px); background: var(--paper-raised); border-top: 1px solid var(--line); padding: 55px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: end; gap: 36px; }
.footer-title { display: block; font-size: 2.1rem; letter-spacing: -.04em; }
.footer-inner p { margin: 12px 0 0; color: var(--soft-ink); font-size: .85rem; }
.footer-meta { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; color: var(--soft-ink); font-size: .77rem; }
@media (max-width: 1050px) {
  .section-shell { width: min(100% - 56px, 1360px); }
  .hero-main { grid-template-columns: 1fr; }
  .hero-copy { min-height: 470px; padding: 55px 0; }
  .hero-visual { min-height: 520px; }
  .section-heading { grid-template-columns: 1fr; gap: 15px; }
  .section-heading .eyebrow { grid-column: 1; }
  .section-heading > p:not(.eyebrow) { max-width: 650px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 74px; }
  .section-shell { width: calc(100% - 36px); }
  .masthead { min-height: 66px; }
  .masthead-note { display: none; }
  .identity { font-size: 1.2rem; }
  .theme-label { display: none; }
  .mobile-menu { display: flex; flex-direction: column; justify-content: center; gap: 5px; border: 0; background: transparent; color: var(--ink); width: 35px; height: 38px; padding: 6px; }
  .mobile-menu span { height: 1px; width: 100%; background: currentColor; }
  .site-nav { display: none; padding: 12px 0 20px; flex-direction: column; align-items: stretch; border-top: 1px solid var(--line); gap: 0; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero { padding-top: 20px; }
  .hero-topline span:last-child { display: none; }
  .hero-copy { min-height: 430px; padding: 52px 0 35px; }
  h1 { font-size: clamp(3.1rem, 11vw, 5rem); }
  .hero-visual { min-height: 430px; }
  .visual-half { padding: 20px 12px 48px; }
  .visual-sample { min-height: 270px; padding: 18px 12px; }
  .visual-sample strong { font-size: clamp(1.45rem, 5vw, 2.3rem); margin-top: 23px; }
  .visual-axis { bottom: 12px; font-size: .56rem; }
  .content-section { padding-top: 85px; }
  .section-heading { margin-bottom: 36px; }
  h2 { font-size: clamp(2.5rem, 9vw, 4rem); }
  .split-grid, .science-grid, .problem-grid, .comparison-grid, .interactive-grid, .recommendation-list { grid-template-columns: 1fr; }
  .mode-card { min-height: 330px; }
  .comparison-column + .comparison-column { border-left: 0; border-top: 1px solid var(--ink); padding-left: 0; }
  .problem-grid { gap: 0; }
  .warning-card + .warning-card { border-top: 1px solid var(--line); }
  .demo-panel:nth-child(3) { grid-column: auto; display: block; }
  .demo-panel:nth-child(3) .demo-panel-head { display: flex; }
  .demo-panel:nth-child(3) .demo-theme-btn { margin: 0; }
  #examples { margin-top: 85px; padding: 70px 18px; }
  .recommendation-list { display: block; }
  .footer-inner { display: block; }
  .footer-meta { margin-top: 30px; align-items: start; }
}
@media (max-width: 390px) {
  .visual-sample strong { font-size: 1.32rem; }
  .visual-sample { min-height: 240px; }
  .hero-visual { min-height: 400px; }
  .demo-panel-head { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
