:root {
  color-scheme: dark;
  --bg: #201a16;
  --bg-raised: #27201b;
  --panel: #2b231d;
  --panel-deep: #211b17;
  --line: #4b3c30;
  --line-soft: #392d24;
  --ink: #eee4d5;
  --ink-soft: #d5c5ad;
  --muted: #b1a08b;
  --dim: #87735e;
  --accent: #c7a477;
  --accent-light: #dfc29a;
  --olive: #a7ac8a;
  --serif: Iowan Old Style, Baskerville, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { color: var(--bg); background: var(--accent-light); }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-frame { overflow: clip; }

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: inline-flex; align-items: center; gap: 7px; width: fit-content; }
.brand-symbol { display: inline-flex; height: 23px; align-items: end; gap: 3px; padding: 3px 4px; border: 1px solid var(--line); }
.brand-symbol span { display: block; width: 3px; background: var(--accent); }
.brand-symbol span:nth-child(1) { height: 7px; opacity: .65; }
.brand-symbol span:nth-child(2) { height: 13px; }
.brand-symbol span:nth-child(3) { height: 9px; opacity: .8; }
.brand-word { color: var(--ink); font-family: var(--serif); font-size: 27px; line-height: 1; letter-spacing: -.065em; }
.brand-period { color: var(--accent); }
.header-nav { display: flex; align-items: center; gap: 32px; }
.nav-link, .back-link, .footer-top { color: var(--muted); font-size: 12px; transition: color .22s ease; }
.nav-link:hover, .back-link:hover, .footer-top:hover { color: var(--accent-light); }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 18px;
  color: #211912;
  background: var(--accent-light);
  border: 1px solid var(--accent-light);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -.01em;
  transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease;
}
.button:hover { background: #ecd1a9; border-color: #ecd1a9; transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-small { min-height: 39px; padding-inline: 14px; gap: 20px; font-size: 12px; }
.button-arrow { font-size: 16px; transition: transform .22s ease; }
.button:hover .button-arrow { transform: translate(2px, -2px); }
.text-link, .underlined-link { display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: var(--ink-soft); font-size: 13px; }
.text-link span, .underlined-link span { color: var(--accent); transition: transform .22s ease; }
.text-link:hover span { transform: translateY(3px); }
.underlined-link { padding-bottom: 4px; border-bottom: 1px solid var(--line); transition: border-color .2s ease, color .2s ease; }
.underlined-link:hover { color: var(--accent-light); border-color: var(--accent); }

.hero { min-height: 635px; padding-block: 82px 76px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(390px, .8fr); align-items: center; gap: clamp(46px, 8vw, 118px); }
.hero-copy { padding-bottom: 10px; }
.eyebrow { margin: 0; color: var(--accent); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 24px; height: 1px; margin-right: 9px; vertical-align: middle; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
.hero h1, .workspace-intro h1 { margin: 26px 0 25px; font-family: var(--serif); font-size: clamp(52px, 6.1vw, 78px); font-weight: 400; line-height: .99; letter-spacing: -.065em; }
h1 em, h2 em { color: var(--accent); font-weight: 400; }
.hero-description { max-width: 420px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 27px; flex-wrap: wrap; margin-top: 31px; }
.quiet-note { display: flex; align-items: center; gap: 9px; margin: 32px 0 0; color: var(--dim); font-family: var(--mono); font-size: 10px; }
.status-dot, .tiny-status { display: inline-block; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--olive); }

.hero-art { align-self: center; position: relative; padding: 0; background: #28211c; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.12); transform: rotate(.45deg); animation: settle-in .85s .15s both cubic-bezier(.2,.7,.2,1); }
.art-topline, .art-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 17px; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.art-topline { border-bottom: 1px solid var(--line-soft); }
.art-window-mark { display: inline-flex; gap: 5px; }
.art-window-mark i { width: 5px; height: 5px; border: 1px solid var(--dim); }
.art-paper { display: grid; grid-template-columns: 35px minmax(0,1fr); min-height: 290px; padding: 30px 17px 26px 12px; }
.art-gutter { padding-right: 13px; border-right: 1px solid var(--line-soft); color: #6f5d4a; font: 11px/2.05 var(--mono); text-align: right; user-select: none; }
.art-code { padding-left: 17px; color: #d2c2ab; font: 11px/2.05 var(--mono); white-space: nowrap; }
.art-code p { min-height: 22px; margin: 0; }
.art-code .indent { padding-left: 17px; }
.art-code .indent-more { padding-left: 34px; }
.syntax-key { color: #c7a477; }
.syntax-name { color: #aeb18e; }
.syntax-string { color: #c6a086; }
.syntax-comment { color: #83745f; font-style: italic; }
.art-footer { border-top: 1px solid var(--line-soft); font-size: 9px; }
.art-footer span:first-child { display: flex; align-items: center; gap: 8px; }
.art-caption { position: absolute; right: -1px; bottom: -31px; display: flex; gap: 14px; color: var(--dim); font-size: 10px; }
.art-caption span:first-child { color: var(--accent); font-family: var(--mono); }

.quiet-rule { display: grid; grid-template-columns: 1fr auto 1fr; gap: 19px; align-items: center; margin-block: 0 11px; }
.quiet-rule > span:not(.rule-label) { height: 1px; background: var(--line-soft); }
.rule-label { color: var(--dim); font: 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.approach-section { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding-block: 107px 120px; }
.section-intro h2, .details-heading h2, .closing h2 { margin: 19px 0 0; font-family: var(--serif); font-size: clamp(37px, 4vw, 50px); font-weight: 400; letter-spacing: -.05em; line-height: 1.1; }
.approach-copy { max-width: 435px; padding-top: 26px; }
.large-copy { max-width: 380px; margin-bottom: 18px; color: var(--ink-soft); font: 26px/1.45 var(--serif); letter-spacing: -.02em; }
.body-copy { margin-bottom: 26px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.details-section { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,.012); }
.details-inner { display: grid; grid-template-columns: .72fr 1.28fr; gap: 90px; padding-block: 82px 89px; }
.details-heading h2 { font-size: clamp(31px, 3.4vw, 42px); }
.detail-list { border-top: 1px solid var(--line); }
.detail-row { display: grid; grid-template-columns: 36px 1fr 18px; gap: 13px; align-items: start; padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.detail-number { padding-top: 3px; color: var(--accent); font: 10px var(--mono); }
.detail-row h3 { margin: 0 0 5px; font: 22px/1.25 var(--serif); letter-spacing: -.025em; }
.detail-row p { max-width: 400px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.detail-mark { color: var(--dim); font: 15px var(--mono); transition: color .2s ease, transform .2s ease; }
.detail-row:hover .detail-mark { color: var(--accent); transform: translate(2px,-2px); }
.closing { display: flex; justify-content: space-between; align-items: center; gap: 35px; padding-block: 89px 96px; }
.closing h2 { margin-top: 12px; font-size: clamp(33px,4vw,47px); }
.site-footer { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line-soft); }
.footer-brand .brand-word { font-size: 21px; }
.footer-brand .brand-symbol { transform: scale(.86); transform-origin: left center; }
.footer-note, .footer-top { color: var(--dim); font-size: 11px; }

/* Workspace */
.workspace-page { min-height: 100vh; }
.workspace-header { min-height: 78px; }
.workspace-head-right { display: flex; align-items: center; gap: 30px; }
.workspace-label { display: flex; align-items: center; gap: 9px; color: var(--muted); font: 10px var(--mono); letter-spacing: .03em; }
.back-link { display: inline-flex; align-items: center; gap: 9px; }
.back-link span { color: var(--accent); }
.workspace-main { padding-top: 54px; padding-bottom: 34px; }
.workspace-intro { display: flex; flex-direction: column; align-items: center; text-align: center; }
.workspace-intro .eyebrow { margin-bottom: 3px; }
.workspace-intro h1 { margin: 20px 0 14px; font-size: clamp(43px, 5vw, 57px); line-height: 1.02; }
.workspace-intro > p:last-child { max-width: 430px; margin-bottom: 34px; color: var(--muted); font-size: 13px; }
.workbench { position: relative; border: 1px solid var(--line); background: var(--bg-raised); box-shadow: 0 22px 55px rgba(0,0,0,.09); }
.workbench-top { min-height: 53px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.workbench-file { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font: 11px var(--mono); }
.file-icon { display: inline-grid; place-items: center; width: 24px; height: 24px; color: var(--accent); border: 1px solid var(--line); font-size: 10px; }
.file-unsaved { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .85; }
.workbench-top-note { display: flex; align-items: center; gap: 8px; color: var(--dim); font: 10px var(--mono); }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; }
.editor-pane { min-width: 0; }
.editor-pane + .editor-pane { border-left: 1px solid var(--line); }
.pane-heading { min-height: 51px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 17px; border-bottom: 1px solid var(--line-soft); }
.pane-heading label { color: var(--ink-soft); font: 11px var(--mono); }
.pane-slash { padding-inline: 3px; color: var(--dim); }
.file-muted { color: var(--dim); }
.pane-meta { color: var(--dim); font: 10px var(--mono); white-space: nowrap; }
.code-editor { display: block; width: 100%; min-height: 360px; padding: 21px 20px; resize: vertical; border: 0; border-radius: 0; outline: 0; color: #ddcfba; background: #241d18; font: 12px/1.85 var(--mono); tab-size: 2; overflow-wrap: anywhere; white-space: pre; }
.code-editor::placeholder { color: #76634e; opacity: 1; }
.code-editor:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--accent); }
.output-editor { color: var(--olive); background: #211b17; }
.output-editor::placeholder { color: #76634e; }
.pane-footer { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 15px; color: var(--dim); border-top: 1px solid var(--line-soft); font: 10px var(--mono); }
.subtle-button { padding: 5px 8px; border: 1px solid transparent; background: transparent; color: var(--muted); font: 10px var(--mono); cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.subtle-button:hover:not(:disabled) { color: var(--accent-light); border-color: var(--line); background: rgba(255,255,255,.02); }
.subtle-button:disabled { cursor: not-allowed; opacity: .35; }
.output-actions { display: flex; align-items: center; gap: 5px; }
.workbench-actions { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 17px 18px; border-top: 1px solid var(--line); }
.engine-note { display: flex; align-items: flex-start; gap: 10px; max-width: 620px; margin: 0; color: var(--dim); font-size: 11px; line-height: 1.7; }
.note-mark { display: inline-grid; place-items: center; width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; border: 1px solid var(--dim); border-radius: 50%; color: var(--muted); font: 10px var(--serif); }
.obfuscate-button { flex: 0 0 auto; min-width: 145px; }
.obfuscate-button:disabled { opacity: .7; cursor: wait; transform: none; }
.progress-track { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; overflow: hidden; opacity: 0; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--accent); }
.progress-track.active { opacity: 1; }
.progress-track.active span { animation: process-line .65s ease-in-out forwards; }
.workspace-footnote { display: flex; align-items: start; gap: 9px; margin: 16px 0 0; color: var(--dim); font-size: 10px; line-height: 1.8; }
.workspace-footnote span { color: var(--accent); }
.workspace-footer { margin-top: 32px; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 24px; width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; transform: translate(-50%, 10px); opacity: 0; pointer-events: none; border: 1px solid var(--line); background: #30261f; color: var(--ink); box-shadow: 0 8px 25px rgba(0,0,0,.18); font-size: 12px; transition: opacity .22s ease, transform .22s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Gentle entrances and reduced-motion support */
.reveal { opacity: 0; transform: translateY(13px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-later { transition-delay: .12s; }
@keyframes settle-in { from { opacity: 0; transform: translate(0, 9px) rotate(.45deg); } to { opacity: 1; transform: translate(0, 0) rotate(.45deg); } }
@keyframes process-line { 0% { width: 0; } 65% { width: 78%; } 100% { width: 100%; } }

@media (max-width: 850px) {
  .wrap { width: min(100% - 44px, 700px); }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 55px; padding-block: 68px 69px; }
  .hero-copy { max-width: 600px; }
  .hero h1 { font-size: clamp(57px, 10vw, 76px); }
  .hero-art { width: min(100%, 510px); justify-self: center; }
  .approach-section { gap: 45px; padding-block: 82px 90px; }
  .details-inner { gap: 42px; padding-block: 67px 73px; }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-pane + .editor-pane { border-left: 0; border-top: 1px solid var(--line); }
  .code-editor { min-height: 275px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 72px; }
  .brand-word { font-size: 25px; }
  .header-nav { gap: 13px; }
  .header-nav .nav-link { display: none; }
  .button-small { min-height: 37px; padding-inline: 12px; }
  .hero { gap: 49px; padding-block: 58px 62px; }
  .hero h1 { font-size: clamp(50px, 14vw, 68px); }
  .hero-description { font-size: 14px; }
  .hero-actions { gap: 18px; }
  .text-link { font-size: 12px; }
  .art-paper { min-height: 250px; padding-top: 24px; }
  .art-code { padding-left: 12px; font-size: 10px; }
  .art-gutter { font-size: 10px; }
  .art-caption { right: 0; }
  .quiet-rule { gap: 10px; }
  .approach-section { grid-template-columns: 1fr; gap: 12px; padding-block: 79px 82px; }
  .approach-copy { padding-top: 8px; }
  .large-copy { font-size: 24px; }
  .details-inner { grid-template-columns: 1fr; gap: 30px; padding-block: 62px 67px; }
  .detail-row { grid-template-columns: 26px 1fr 16px; gap: 8px; }
  .detail-row h3 { font-size: 20px; }
  .closing { align-items: flex-start; flex-direction: column; padding-block: 66px 72px; gap: 26px; }
  .site-footer { min-height: 120px; padding-block: 20px; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
  .footer-note { grid-column: 1 / -1; grid-row: 2; }
  .footer-top { justify-self: end; }
  .workspace-header { min-height: 69px; }
  .workspace-head-right { gap: 13px; }
  .workspace-label { display: none; }
  .workspace-main { padding-top: 41px; }
  .workspace-intro h1 { font-size: 47px; }
  .workspace-intro > p:last-child { margin-bottom: 25px; }
  .workbench-top { padding-inline: 12px; }
  .workbench-top-note { font-size: 9px; }
  .pane-heading { padding-inline: 12px; }
  .code-editor { min-height: 245px; padding: 16px 13px; font-size: 11px; }
  .workbench-actions { align-items: stretch; flex-direction: column; gap: 16px; padding: 15px 13px; }
  .obfuscate-button { width: 100%; }
  .workspace-footnote { font-size: 10px; }
  .workspace-footer { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Refinement pass: fewer repeated calls to action, quieter rhythm. */
.landing-header { min-height: 82px; }
.header-workspace { color: var(--muted); font-size: 12px; transition: color .2s ease; }
.header-workspace span { margin-left: 8px; color: var(--accent); transition: transform .2s ease; display: inline-block; }
.header-workspace:hover { color: var(--ink); }
.header-workspace:hover span { transform: translate(2px,-2px); }
.hero { min-height: 590px; grid-template-columns: minmax(0,1fr) minmax(350px,.88fr); gap: clamp(44px,7vw,100px); padding-block: 75px 82px; }
.hero h1 { font-size: clamp(58px,6.4vw,82px); line-height: 1.02; letter-spacing: -.06em; }
.hero-description { max-width: 390px; }
.hero-actions { margin-top: 29px; }
.hero-art { transform: none; animation: none; box-shadow: 0 18px 50px rgba(0,0,0,.10); }
.art-paper { min-height: 280px; }
.art-code { font-size: 11px; }
.landing-note { display: flex; align-items: center; gap: 16px; padding-block: 21px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.landing-note p { margin: 0; color: var(--ink-soft); font: 19px/1.4 var(--serif); }
.landing-note-mark { color: var(--accent); font-size: 18px; }
.landing-note-end { margin-left: auto; color: var(--dim); font: 9px var(--mono); letter-spacing: .08em; white-space: nowrap; }
.landing-footer { min-height: 80px; border-top: 0; }
.landing-footer .brand-word { font-size: 22px; }
.landing-footer .footer-note { color: var(--dim); }
.workspace-main { padding-top: 35px; }
.workspace-intro h1 { margin-top: 13px; }
.workspace-intro > p:last-child { margin-bottom: 25px; }
.workbench { box-shadow: 0 16px 42px rgba(0,0,0,.08); }
.workbench-top { min-height: 46px; }
.code-editor { min-height: 390px; }
.workspace-footnote { margin-top: 12px; }
.workspace-footer { display: none; }
@media (max-width: 850px) {
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 43px; padding-block: 62px 55px; }
  .hero-art { width: min(100%,520px); justify-self: center; }
  .landing-note { margin-top: 2px; }
}
@media (max-width: 560px) {
  .landing-header { min-height: 70px; }
  .hero { gap: 38px; padding-block: 52px 43px; }
  .hero h1 { font-size: clamp(53px,14vw,68px); }
  .hero-description { font-size: 14px; }
  .landing-note { align-items: flex-start; gap: 10px; padding-block: 17px; }
  .landing-note p { font-size: 17px; }
  .landing-note-end { display: none; }
  .landing-footer { min-height: 66px; }
  .workspace-main { padding-top: 28px; }
  .workspace-intro h1 { font-size: 43px; }
  .workbench-top-note { display: none; }
  .code-editor { min-height: 245px; }
}


/* BrownSec identity: parchment, walnut and muted clay. */
:root {
  color-scheme: light;
  --bg: #e8decc;
  --bg-raised: #f0e7d8;
  --panel: #f5eddf;
  --panel-deep: #dfd1bb;
  --line: #c9b69a;
  --line-soft: #d8c8b0;
  --ink: #30241b;
  --ink-soft: #49372a;
  --muted: #796653;
  --dim: #95816a;
  --accent: #875332;
  --accent-light: #b9875c;
  --olive: #69745a;
}
body { background: var(--bg); color: var(--ink); }
::selection { color: #f8f0e4; background: #875332; }
.site-header { border-bottom-color: #d1c0a7; }
.brand-symbol {
  width: 29px; height: 29px; display: inline-grid; place-items: center;
  align-items: center; padding: 0; border: 1px solid #a98a68;
  color: #f5eddf; background: #4a3324; font: 600 11px/1 var(--mono);
  letter-spacing: -.08em; text-transform: lowercase;
}
.brand-symbol span { display: none; }
.brand-word { color: #30241b; font-size: 26px; letter-spacing: -.07em; }
.brand-sec { color: #875332; }
.brand-period { color: #875332; }
.button { color: #f7efe3; background: #503827; border-color: #503827; }
.button:hover { color: #fff8ed; background: #684832; border-color: #684832; }
.header-workspace { color: #65513f; }
.header-workspace:hover { color: #30241b; }
.hero h1 em, h1 em, h2 em { color: #875332; }
.eyebrow, .eyebrow-line { color: #875332; }
.eyebrow-line { background: #a97b53; }
.hero-art { background: #f1e7d7; border-color: #cbb79b; box-shadow: 0 20px 48px rgba(75, 51, 31, .09); }
.art-topline, .art-footer { color: #806b54; }
.art-topline, .art-footer, .art-gutter { border-color: #dfd0b9; }
.art-paper { background: #f5eddf; }
.art-gutter { color: #b09a7d; }
.art-code { color: #4b3a2c; }
.syntax-key { color: #89522e; }
.syntax-name { color: #5f6a4b; }
.syntax-string { color: #a26043; }
.syntax-comment { color: #9a8a73; }
.landing-note { border-color: #d1c0a7; }
.landing-note p { color: #49372a; }
.landing-note-mark { color: #875332; }
.landing-note-end { color: #95816a; }
.site-footer { border-color: #d1c0a7; }
.workspace-intro > p:last-child { color: #796653; }
.workbench { background: #f0e7d8; border-color: #c9b69a; box-shadow: 0 20px 50px rgba(75, 51, 31, .08); }
.workbench-top { border-color: #d6c5ac; }
.workbench-file { color: #49372a; }
.file-icon { color: #875332; border-color: #c9b69a; }
.file-unsaved { background: #875332; }
.workbench-top-note, .pane-meta, .file-muted, .pane-footer, .engine-note, .workspace-footnote { color: #95816a; }
.pane-heading { border-color: #dfd0b9; }
.pane-heading label { color: #49372a; }
.editor-pane + .editor-pane { border-color: #d6c5ac; }
.code-editor { color: #e9dcc8; background: #35271e; caret-color: #e4c39d; }
.code-editor::placeholder { color: #b29a7e; }
.output-editor { color: #d3d9b7; background: #2d241d; }
.pane-footer { border-color: #dfd0b9; }
.subtle-button { color: #765f49; }
.subtle-button:hover:not(:disabled) { color: #503827; border-color: #c9b69a; background: rgba(92, 62, 38, .05); }
.workbench-actions { border-color: #d6c5ac; }
.note-mark { border-color: #b5a087; color: #765f49; }
.progress-track span { background: #b9875c; }
.toast { background: #35271e; color: #f0e4d2; border-color: #6c5039; }
.back-link { color: #796653; }
.back-link span { color: #875332; }
@media (max-width: 560px) {
  .brand-word { font-size: 24px; }
}

/* Editor improvements: lightweight syntax overlay, line numbers and file drop. */
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.editor-stack { position: relative; min-width: 0; height: 390px; overflow: hidden; background: #35271e; }
.editor-stack.is-dragging { outline: 2px dashed #b9875c; outline-offset: -7px; }
.editor-stack.is-dragging .drop-hint { display: grid; }
.syntax-layer { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 21px 20px 21px 58px; overflow: hidden; pointer-events: none; color: #e9dcc8; background: transparent; font: 12px/1.85 var(--mono); tab-size: 2; white-space: pre; overflow-wrap: normal; word-break: normal; }
.code-editor { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; min-height: 0; padding: 21px 20px 21px 58px; resize: none; overflow: auto; color: transparent !important; -webkit-text-fill-color: transparent; background: transparent !important; caret-color: #f0c995; line-height: 1.85; white-space: pre; overflow-wrap: normal; word-break: normal; }
.code-editor::selection { background: rgba(218, 177, 126, .35); -webkit-text-fill-color: transparent; }
.code-editor::placeholder { color: #b29a7e; -webkit-text-fill-color: #b29a7e; opacity: 1; }
.line-gutter { position: absolute; z-index: 1; inset: 0 auto 0 0; width: 43px; padding: 21px 9px 21px 0; overflow: hidden; border-right: 1px solid #4c392b; color: #9b8166; background: #302219; text-align: right; white-space: pre; user-select: none; pointer-events: none; font: 12px/1.85 var(--mono); }
.syntax-layer .tok-keyword { color: #d4a66f; }
.syntax-layer .tok-string { color: #c98d6b; }
.syntax-layer .tok-comment { color: #9b9879; font-style: italic; }
.syntax-layer .tok-number { color: #d8bd88; }
.syntax-layer .tok-builtin { color: #b5bd91; }
.syntax-layer .tok-operator { color: #d0bca2; }
.output-stack { background: #2d241d; }
.output-stack .syntax-layer { color: #d3d9b7; }
.output-stack .line-gutter { background: #292019; border-color: #443326; color: #8e9072; }
.output-editor { color: transparent !important; }
.drop-hint { display: none; position: absolute; z-index: 4; inset: 12px; place-items: center; padding: 20px; border: 1px dashed #d6b184; background: rgba(43, 31, 22, .92); color: #f0dfc5; text-align: center; font: 13px var(--mono); pointer-events: none; }
.pane-footer { flex-wrap: wrap; }
.pane-footer .output-actions { gap: 3px; }
.subtle-button { cursor: pointer; }
.subtle-button:focus-visible { outline: 1px solid #875332; outline-offset: 2px; }
@media (max-width: 850px) {
  .editor-stack { height: 310px; }
}
@media (max-width: 560px) {
  .editor-stack { height: 270px; }
  .syntax-layer, .code-editor { padding: 16px 13px 16px 49px; font-size: 11px; }
  .line-gutter { width: 38px; padding: 16px 8px 16px 0; font-size: 11px; }
  .pane-footer { align-items: center; }
  .pane-footer .output-actions { flex-wrap: wrap; justify-content: flex-end; }
}


/* BrownSec refinement: deeper parchment and clearly tactile controls. */
:root {
  --bg: #d9c9b2;
  --bg-raised: #e4d4bd;
  --panel: #eee1cc;
  --panel-deep: #d1bda1;
  --line: #b8a184;
  --line-soft: #c8b397;
  --ink: #2a1e15;
  --ink-soft: #433023;
  --muted: #6e5742;
  --dim: #816b53;
  --accent: #784728;
  --accent-light: #a7784f;
}
body { background: var(--bg); color: var(--ink); }
.site-header { border-bottom-color: #bfa98b; }
.site-footer { border-color: #bfa98b; }
.brand-word { color: #2a1e15; }
.brand-sec, .brand-period { color: #784728; }
.hero h1 em, h1 em, h2 em { color: #784728; }
.hero-description, .workspace-intro > p:last-child { color: #6e5742; }
.hero-art { background: #e5d5bd; border-color: #b8a184; box-shadow: 0 20px 48px rgba(54, 34, 19, .13); }
.art-paper { background: #eee1cc; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 23px; border: 1px solid #382519; border-radius: 3px; color: #f5ead9; background: #382519; box-shadow: 0 2px 0 rgba(35, 22, 14, .18); font-weight: 600; letter-spacing: .01em; cursor: pointer; }
.button:hover { color: #fff7eb; background: #513724; border-color: #513724; transform: translateY(-1px); }
.button:active { transform: translateY(0); box-shadow: none; }
.subtle-button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 6px 11px; border: 1px solid #b8a184; border-radius: 3px; color: #493321; background: #e4d4bd; font: 11px var(--mono); cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.subtle-button:hover:not(:disabled) { color: #2a1e15; border-color: #8c6545; background: #d5c0a3; transform: translateY(-1px); }
.subtle-button:active:not(:disabled) { transform: translateY(0); }
.subtle-button:disabled { color: #8b7863; background: #d5c6b0; border-color: #c8b79e; opacity: .7; }
.back-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid #b8a184; border-radius: 3px; color: #493321; background: #e4d4bd; }
.back-link:hover { color: #2a1e15; background: #d5c0a3; }
.workbench { background: #e4d4bd; border-color: #b8a184; box-shadow: 0 20px 50px rgba(54, 34, 19, .13); }
.workbench-top, .workbench-actions { border-color: #c4ad8e; }
.pane-heading, .pane-footer { border-color: #c8b397; }
.editor-pane + .editor-pane { border-color: #c4ad8e; }
.pane-footer { color: #786047; }
.engine-note { color: #715b45; }
.note-mark { border-color: #ad8c68; color: #60452f; }
.progress-track { background: #c8b397; }
@media (max-width: 560px) {
  .hero-actions .button { width: 100%; }
  .pane-footer .subtle-button { min-height: 34px; padding-inline: 10px; }
}

/* Keep the editor workspace minimal when informational copy is hidden. */
.workbench-actions { justify-content: flex-end; padding-block: 13px; }
.workspace-main { padding-top: 30px; }

/* Landing page without the code-preview card. */
.landing-page .hero {
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - 89px);
  padding-block: clamp(72px, 13vh, 145px);
  gap: 0;
}
.landing-page .hero-copy { max-width: 760px; }

/* Landing-page spacing pass: tighter hero, balanced feature section. */
.landing-page .hero {
  min-height: 0;
  padding-block: clamp(58px, 8vh, 86px) clamp(62px, 8vh, 88px);
  align-items: center;
}
.landing-page .hero-copy {
  max-width: 760px;
  padding-bottom: 0;
}
.landing-page .hero h1 {
  margin-top: 0;
  margin-bottom: 21px;
}
.landing-page .hero-description {
  max-width: 430px;
  line-height: 1.8;
}
.landing-page .hero-actions {
  margin-top: 25px;
}
.landing-page .details-inner {
  grid-template-columns: minmax(210px, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(36px, 6vw, 76px);
  padding-block: 60px 64px;
}
.landing-page .details-heading h2 {
  margin-top: 12px;
}
.landing-page .detail-row {
  grid-template-columns: 30px minmax(0, 1fr) 16px;
  gap: 12px;
  padding-block: 16px 17px;
}
.landing-page .detail-row h3 {
  margin: 0;
  font-size: 21px;
}

@media (max-width: 850px) {
  .landing-page .hero {
    min-height: 0;
    padding-block: 64px 68px;
  }
  .landing-page .details-inner {
    gap: 32px;
    padding-block: 48px 52px;
  }
}

@media (max-width: 560px) {
  .landing-page .hero {
    padding-block: 50px 54px;
  }
  .landing-page .hero h1 {
    margin-bottom: 18px;
    font-size: clamp(47px, 12.8vw, 62px);
    line-height: 1.02;
  }
  .landing-page .hero-description {
    font-size: 14px;
    line-height: 1.75;
  }
  .landing-page .hero-actions {
    margin-top: 23px;
  }
  .landing-page .details-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 23px;
    padding-block: 38px 42px;
  }
  .landing-page .details-heading h2 {
    margin-top: 8px;
  }
  .landing-page .detail-row {
    grid-template-columns: 26px minmax(0, 1fr) 14px;
    gap: 10px;
    padding-block: 15px;
  }
  .landing-page .detail-row h3 {
    font-size: 19px;
  }
}


/* BrownSec brand mark */
.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
}
@media (max-width: 560px) {
  .brand-logo {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
}

/* Final responsive polish: consistent rhythm and shared control behavior. */
:root {
  --control-radius: 6px;
  --control-motion: 180ms ease;
  --control-shadow: 0 2px 0 rgba(35, 22, 14, .12);
}

html { scroll-behavior: smooth; }
.wrap { width: min(1120px, calc(100% - 64px)); }
.site-header { min-height: 80px; }
.brand { gap: 6px; }
.brand-logo { width: 40px; height: 40px; flex-basis: 40px; }
.brand-word { font-size: clamp(23px, 2.2vw, 26px); letter-spacing: -.065em; }

/* Primary and secondary actions share the same geometry. */
.button,
.subtle-button,
.back-link {
  border-radius: var(--control-radius);
  transition: color var(--control-motion), background-color var(--control-motion),
    border-color var(--control-motion), box-shadow var(--control-motion), transform var(--control-motion);
}
.button {
  min-height: 48px;
  padding: 0 18px;
  gap: 10px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: var(--control-shadow);
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); box-shadow: none; }
.button:focus-visible,
.subtle-button:focus-visible,
.back-link:focus-visible,
.code-editor:focus-visible {
  outline: 2px solid #875332;
  outline-offset: 3px;
}
.button-secondary {
  color: #493321;
  background: rgba(80, 56, 39, .075);
  border-color: rgba(80, 56, 39, .24);
  box-shadow: none;
}
.button-secondary:hover {
  color: #30241b;
  background: rgba(80, 56, 39, .13);
  border-color: rgba(80, 56, 39, .42);
}
.button-secondary:active { background: rgba(80, 56, 39, .17); }
.subtle-button {
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid #c9b69a;
  color: #49372a;
  background: rgba(255, 255, 255, .18);
  font: 11px/1.2 var(--mono);
}
.subtle-button:hover:not(:disabled) {
  color: #30241b;
  background: rgba(80, 56, 39, .08);
  border-color: #a98a68;
  transform: translateY(-1px);
}
.subtle-button:active:not(:disabled) { transform: translateY(0); }
.subtle-button:disabled { opacity: .52; transform: none; }
.back-link {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #c9b69a;
  color: #65513f;
  background: rgba(255, 255, 255, .16);
}
.back-link:hover {
  color: #30241b;
  background: rgba(80, 56, 39, .07);
  border-color: #a98a68;
}

/* Landing hero: measured type scale and exactly aligned stacked actions. */
.landing-page .hero {
  min-height: 0;
  padding-block: clamp(64px, 10vh, 112px) clamp(58px, 8vh, 84px);
}
.landing-page .hero-copy { width: 100%; max-width: 760px; }
.landing-page .hero h1 {
  margin: 0 0 20px;
  font-size: clamp(52px, 5.6vw, 76px);
  line-height: 1.035;
  letter-spacing: -.058em;
  text-wrap: balance;
}
.landing-page .hero-description { max-width: 440px; font-size: 15px; line-height: 1.8; }
.landing-page .hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 11px;
  width: min(100%, 224px);
  margin-top: 27px;
}
.landing-page .hero-actions .button { width: 100%; min-height: 48px; }
.landing-page .details-inner { gap: clamp(34px, 5.5vw, 72px); }

/* Editor layout: predictable pane height and consistent input focus. */
.workspace-main { width: min(1120px, calc(100% - 64px)); padding-top: clamp(24px, 3.5vw, 38px); }
.workbench { border-radius: 8px; overflow: hidden; }
.workbench-top { padding-inline: clamp(12px, 1.8vw, 18px); }
.editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.editor-stack { height: clamp(330px, 32vw, 410px); }
.code-editor,
.syntax-layer {
  font-size: 12px;
  line-height: 1.8;
  tab-size: 2;
}
.code-editor { transition: box-shadow var(--control-motion), background-color var(--control-motion); }
.editor-stack:focus-within { box-shadow: inset 0 0 0 1px #a7784f; }
.code-editor:focus-visible { outline: none; box-shadow: none; }
.pane-heading { min-height: 48px; padding-inline: clamp(12px, 1.7vw, 17px); }
.pane-footer { min-height: 48px; padding: 7px clamp(10px, 1.5vw, 15px); }
.workbench-actions { gap: 14px; padding: 14px clamp(12px, 1.8vw, 18px); }
.obfuscate-button { min-width: 160px; }

/* Lightweight documentation page. */
.docs-page { min-height: 100vh; }
.docs-header { justify-content: space-between; }
.docs-main { min-height: calc(100vh - 81px); display: grid; place-items: center; padding-block: 54px; }
.docs-message { width: min(100%, 560px); margin: auto; padding: clamp(28px, 5vw, 52px); text-align: center; border: 1px solid #c9b69a; border-radius: 9px; background: rgba(255, 255, 255, .16); }
.docs-message .eyebrow { margin-bottom: 12px; }
.docs-message h1 { margin: 0 0 12px; font: 400 clamp(38px, 6vw, 56px)/1.06 var(--serif); letter-spacing: -.055em; }
.docs-message > p:not(.eyebrow) { max-width: 370px; margin: 0 auto; color: #796653; font-size: 14px; line-height: 1.8; }
.docs-home-button { margin-top: 25px; }

@media (max-width: 850px) {
  .wrap, .workspace-main { width: min(100% - 44px, 700px); }
  .site-header { min-height: 76px; }
  .landing-page .hero { padding-block: 62px 60px; }
  .landing-page .hero h1 { font-size: clamp(48px, 7.2vw, 64px); }
  .landing-page .details-inner { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 30px; padding-block: 48px 52px; }
  .editor-grid { grid-template-columns: minmax(0, 1fr); }
  .editor-pane + .editor-pane { border-left: 0; border-top: 1px solid #d6c5ac; }
  .editor-stack { height: 320px; }
  .code-editor, .syntax-layer { font-size: 12px; }
  .docs-main { min-height: calc(100vh - 77px); }
}

@media (max-width: 560px) {
  .wrap, .workspace-main { width: calc(100% - 32px); }
  .site-header { min-height: 70px; }
  .brand { gap: 5px; }
  .brand-logo { width: 36px; height: 36px; flex-basis: 36px; }
  .brand-word { font-size: 24px; }
  .landing-page .hero { padding-block: 48px 46px; }
  .landing-page .hero h1 { font-size: clamp(42px, 12vw, 54px); line-height: 1.045; margin-bottom: 17px; }
  .landing-page .hero-description { max-width: 34ch; font-size: 14px; }
  .landing-page .hero-actions { width: 100%; max-width: 320px; gap: 9px; margin-top: 22px; }
  .landing-page .hero-actions .button { min-height: 47px; }
  .landing-page .details-inner { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 38px 42px; }
  .landing-page .detail-row { grid-template-columns: 26px minmax(0, 1fr) 14px; gap: 10px; padding-block: 14px; }
  .landing-page .detail-row h3 { font-size: 19px; }
  .workspace-main { padding-top: 22px; padding-bottom: 25px; }
  .workspace-intro h1 { font-size: clamp(38px, 11vw, 46px); }
  .workbench { border-radius: 7px; }
  .workbench-top { min-height: 44px; }
  .workbench-top-note { display: none; }
  .editor-stack { height: 280px; }
  .syntax-layer, .code-editor { padding: 16px 12px 16px 48px; font-size: 11px; line-height: 1.8; }
  .line-gutter { width: 37px; padding: 16px 7px 16px 0; font-size: 11px; line-height: 1.8; }
  .pane-heading { min-height: 45px; padding-inline: 11px; }
  .pane-footer { gap: 8px; padding: 7px 9px; }
  .pane-footer .output-actions { gap: 4px; }
  .subtle-button { min-height: 34px; padding-inline: 9px; font-size: 10px; }
  .workbench-actions { padding: 12px; }
  .obfuscate-button { width: 100%; min-width: 0; }
  .docs-main { min-height: calc(100vh - 71px); padding-block: 28px; }
  .docs-message { padding: 29px 20px; }
  .docs-message h1 { font-size: clamp(37px, 10.5vw, 46px); }
  .docs-message > p:not(.eyebrow) { font-size: 13px; }
  .docs-home-button { width: 100%; }
}

@media (max-width: 360px) {
  .brand-logo { width: 33px; height: 33px; flex-basis: 33px; }
  .brand-word { font-size: 22px; }
  .landing-page .hero h1 { font-size: 41px; }
  .pane-meta { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .subtle-button, .back-link, .code-editor { transition: none !important; }
}

/* Landing page actions: restore the longer button size while keeping both aligned. */
.landing-page .hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 440px;
  gap: 11px;
}
.landing-page .hero-actions .button {
  width: 100%;
  min-height: 48px;
  padding-inline: 23px;
  box-sizing: border-box;
}
@media (max-width: 560px) {
  .landing-page .hero-actions {
    width: 100%;
    max-width: 440px;
    gap: 9px;
  }
  .landing-page .hero-actions .button {
    width: 100%;
    min-height: 48px;
    padding-inline: 20px;
  }
}
