:root {
  color-scheme: light;
  --paper: #fcfaf4;
  --ink: #20231e;
  --muted: #555b52;
  --blue: #273ec7;
  --rule: #cecfc2;
  --lime: #e3f58a;
  --sans: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.58 var(--sans) }
a { color: inherit; text-decoration: none }
button, summary { font: inherit; cursor: pointer }
button { color: inherit }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #ff7b32; outline-offset: 4px }
[hidden] { display: none !important }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px }
header { border-bottom: 1px solid var(--rule) }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 1.65rem; letter-spacing: -.075em; line-height: 1 }
.brand-mark { display: flex; align-items: end; gap: 2px; transform: skew(-12deg); height: 24px }
.brand-mark i { width: 7px; height: 22px; background: var(--blue); border-radius: 2px }
.brand-mark i:nth-child(2) { height: 16px }
.brand-mark i:last-child { height: 26px }
header nav a, .back { font-size: .9rem; font-weight: 650 }
header nav span { margin-left: .35em; color: var(--blue) }
.skip { position: absolute; left: 10px; top: -80px; background: white; padding: 10px; z-index: 20 }
.skip:focus { top: 10px }
.hero { border-bottom: 1px solid var(--rule) }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(32px,6vw,90px); padding-block: 52px }
.kicker, .category, .cover-label, .sheet-meta, .panel h3 { font: 650 .74rem/1.4 "IBM Plex Mono", Consolas, monospace; text-transform: uppercase; letter-spacing: .075em }
.kicker, .cover-label { display: flex; gap: 9px; align-items: center }
.kicker { margin: 0 0 18px; color: var(--blue) }
.kicker i, .cover-label i { width: 8px; height: 8px; background: currentColor; border-radius: 50% }
h1,h2,h3,p { margin: 0 }
h1,h2 { text-wrap: balance }
.hero h1 { font: 520 clamp(3.9rem,6.65vw,6rem)/.98 var(--serif); letter-spacing: -.065em }
.hero h1 em { color: var(--blue); font-weight: 400 }
.lead { font-size: clamp(1.04rem,1.35vw,1.22rem); line-height: 1.52; max-width: 46ch; margin-top: 21px; color: var(--muted) }
.primary { display: inline-flex; gap: 2rem; align-items: center; background: var(--blue); color: #fff; padding: 12px 19px; margin-top: 25px; border-radius: 5px; font-weight: 650 }
.primary:hover { background: #182b9a }
.cover { isolation: isolate; overflow: hidden; position: relative; display: grid; place-items: center; min-height: 340px; border-radius: 9px; background-color: #293bb4; color: var(--paper); background-image: linear-gradient(#ffffff15 1px,transparent 1px),linear-gradient(90deg,#ffffff15 1px,transparent 1px); background-size: 22px 22px }
.cover-label,.cover-open { position: absolute; left: 22px }
.cover-label { top: 16px; color: var(--lime) }
.cover-open { bottom: 12px; right: 16px; display:flex; align-items:center; justify-content:space-between; font-size:.84rem; font-weight:600 }
.cover-open b { background: var(--lime); color: var(--ink); border-radius:50%; width:30px; height:30px; display:grid; place-items:center; font-size:1.05rem }
.sheet,.sheet-shadow { grid-area:1/1; width: min(68%,280px); height: 222px; border: 1px solid #252b2a; border-radius: 2px }
.sheet-shadow { background: #a5b6fb; transform: rotate(7deg) translate(12px,4px); box-shadow:4px 6px 0 #1117443d }
.sheet { position:relative; transform:rotate(-6deg); background: #f7f3e8; color: var(--ink); box-shadow: 4px 5px 0 #151e5547; padding: 17px 19px }
.tape { position:absolute; width:72px; height:19px; background:#e3f58aeb; top:-9px; left:43%; transform:rotate(6deg); clip-path:polygon(2% 0,100% 0,97% 20%,100% 37%,96% 65%,99% 100%,0 100%,3% 70%,0 45%,4% 19%) }
.sheet-meta { display:flex; align-items:center; justify-content:space-between; font-size:.62rem; color:#4c5349; border-bottom:1px solid #c8caba; padding-bottom:5px }
.sheet-meta span { font-size:1rem; color:var(--blue) }
.sheet strong { display:block; font: 500 clamp(1.65rem,2.7vw,2.4rem)/1.02 var(--serif); letter-spacing:-.05em; margin:12px 0 }
.paper-line { display:flex; align-items:center; gap:7px; border-top: 1px solid #d5d4c7; padding:4px 0; font-size:.72rem }
.paper-line i { font-style:normal; color: var(--blue); font-weight:800 }
.cover:hover .sheet { transform:rotate(-4deg) }
.catalog { padding-block: 32px 64px; scroll-margin-top: 20px }
.catalog-head { display:flex; align-items:baseline; gap:16px }
.catalog-head h2, .article-grid h2 { font: 500 clamp(2.15rem,4vw,3rem)/1.15 var(--serif); letter-spacing:-.05em }
#count { margin-left:auto; color:var(--muted); font-size:.9rem }
.filters { display:flex; flex-wrap:wrap; gap:8px; margin-top:15px }
.guide-search { margin-top:16px; max-width:32rem }
.guide-search label { display:block; font-size:.9rem; font-weight:650; margin-bottom:5px }
.guide-search input { width:100%; padding:10px 14px; border:1px solid #878b80; border-radius:5px; background:#fffef9; color:var(--ink); font:inherit }
.guide-search input:focus-visible { outline:2px solid var(--blue); outline-offset:2px }
#no-guides { margin-top:20px; color:var(--muted) }
.filters button { border:1px solid var(--rule); padding:6px 14px; border-radius:20px; background:transparent; font-size:.85rem; font-weight:600 }
.filters button[aria-pressed=true] { color:white; background:var(--ink); border-color:var(--ink) }
.cards { margin-top:22px; display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:15px }
.work { --accent:#dfe3ff; --accent-ink:#283897 }
.life { --accent:#e5efb7; --accent-ink:#3a5226 }
.study { --accent:#ffe0cc; --accent-ink:#863d25 }
.card { display:flex; flex-direction:column; position:relative; padding:21px 23px 42px; border:1px solid var(--rule); border-radius:7px; background:#fffef9; min-height:215px }
.card:hover { border-color:var(--blue); box-shadow:0 3px 0 #293bb41c }
.card-top { display:flex; align-items:center; gap:10px; margin-bottom:16px }
.symbol { display:grid; place-items:center; min-width:35px; height:35px; border-radius:9px; padding:0 4px; background:var(--accent); color:var(--accent-ink); font: 700 1.3rem Georgia,serif }
.category { color:var(--muted); font-size:.65rem }
.card h3 { font: 600 1.23rem/1.2 var(--sans); letter-spacing:-.035em }
.card p { font-size:.9rem; line-height:1.45; color:var(--muted); margin-top:8px }
.card-arrow { position:absolute; bottom:10px; right:18px; font-size:1.2rem; color:var(--blue) }
footer { border-top:1px solid var(--rule); font-size:.85rem }
footer .brand { font-size:1.35rem }
footer .bar { flex-wrap:wrap; padding-block:15px }
.article-head { padding-block:24px 36px; border-bottom:1px solid var(--rule) }
.back { color:var(--muted) }
.article-head .kicker { margin:32px 0 10px }
.article-head h1 { font:500 clamp(2.6rem,5.3vw,4.6rem)/1.02 var(--serif); letter-spacing:-.055em; max-width:24ch }
.article-head .lead { max-width:63ch }
.article-grid { display:grid; grid-template-columns:215px minmax(0,710px); gap:clamp(25px,6vw,90px); padding-block:35px 70px }
aside nav { position:sticky; top:22px; display:grid; gap:8px; font-size:.91rem; border-left:3px solid var(--lime); padding-left:15px }
aside nav b { margin-bottom:4px }
aside a:hover,.back:hover,footer a:hover { text-decoration:underline }
article h2 { scroll-margin-top:22px; margin-top:38px; margin-bottom:14px }
article h2:first-child { margin-top:0 }
article h3 { font-size:1.1rem; margin-bottom:8px }
article > p { margin:12px 0 18px }
.panel,.challenge { padding:clamp(16px,3vw,26px); border-radius:7px; margin:16px 0 }
.panel { background:white; border:1px solid var(--rule) }
.panel h3 { margin-bottom:14px; color:var(--accent-ink,var(--blue)) }
.verbatim { white-space:pre-line; overflow-wrap:anywhere }
.prompt { background:#eaeefe; border-color:#c5cdf6 }
.prompt h3 { color:#25368e }
#placeholder { margin-top:12px; font-style:italic; color:#464c60 }
.copy-tools { display:flex; gap:10px; flex-wrap:wrap; margin-top:19px }
.copy-tools button { border:1px solid var(--blue); border-radius:5px; padding:9px 14px; background:transparent; color:var(--blue); font-size:.9rem; font-weight:650 }
.copy-tools button:first-child { background:var(--blue); color:white }
.feedback:not(:empty) { margin-top:12px; font-size:.86rem }
.manual-copy { width:100%; min-height:8rem; margin-top:10px }
.result { border-left:4px solid var(--accent-ink) }
.challenge { background:#edf2d7 }
.challenge details { margin-top:12px; border-top:1px solid #c0c99d; padding-top:10px }
.challenge summary { color:#2f4224; font-weight:650 }
.challenge details p { margin:9px 0 }
.related { border-top:1px solid var(--rule); padding-top:24px; margin-top:35px }
.related ul { list-style:none; padding:0; display:grid; gap:16px }
.related a { color:var(--blue); font-weight:650; text-decoration:underline; text-underline-offset:.18em }
.related li p { margin-top:4px; color:var(--muted) }
@media(max-width:850px) {
  .wrap { width:calc(100% - 48px) }
  .cards { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .hero-grid { gap:24px }
  .article-grid { grid-template-columns:155px minmax(0,1fr); gap:30px }
}
@media(max-width:640px) {
  .wrap { width:calc(100% - 36px) }
  .bar { min-height:62px }
  .hero-grid { grid-template-columns:1fr; padding-block:30px; gap:26px }
  .hero h1 { font-size:clamp(3.5rem,15vw,5rem) }
  .cover { min-height:302px }
  .sheet,.sheet-shadow { height:196px }
  .cards,.article-grid { grid-template-columns:1fr }
  .card { min-height:0; padding-bottom:32px }
  .article-grid { gap:25px; padding-top:20px }
  aside nav { position:static; gap:4px }
  footer .bar span:not(.brand-mark) { font-size:.75rem }
}
