:root {
  --black: #0b0c0a;
  --charcoal: #151812;
  --surface: #20241b;
  --line-dark: #383f31;
  --paper: #f3efe4;
  --paper-2: #fffaf0;
  --ink: #171b14;
  --muted: #676d60;
  --trail: #f0643c;
  --pine: #254b36;
  --blue: #2d6cdf;
  --gold: #d7b46a;
  --shadow: 0 28px 90px rgba(11,12,10,.22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 50; background: var(--paper-2); padding: .55rem .8rem; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11,12,10,.88); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav { max-width: 1180px; margin: 0 auto; min-height: 58px; padding: 0 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: white; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--gold); font-family: "IBM Plex Mono", monospace; font-size: .78rem; }
.nav-menu { display: flex; align-items: center; gap: 1.1rem; }
.nav-menu a { color: #c7cbbc; text-decoration: none; font-size: .92rem; }
.nav-menu a:hover { color: white; }
.nav-cta { background: var(--trail); color: white !important; border-radius: 999px; padding: .62rem .95rem; }
.nav-cta:hover { background: var(--blue); }
.nav-toggle { display: none; min-height: 40px; border: 1px solid var(--line-dark); background: transparent; color: white; border-radius: 999px; padding: 0 .8rem; }
.hero { background: var(--black); color: white; max-width: none; padding: clamp(4rem, 9vw, 7.5rem) max(1.25rem, calc((100vw - 1180px)/2)) 4rem; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(310px, .7fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.kicker { margin: 0 0 .85rem; color: var(--trail); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .13em; }
h1, h2, h3 { margin-top: 0; letter-spacing: -.045em; line-height: .98; }
h1 { max-width: 10.5ch; margin-bottom: 1.25rem; font-family: "Source Serif 4", Georgia, serif; font-size: clamp(3.8rem, 9.4vw, 8.6rem); font-weight: 750; }
h2 { font-family: "Source Serif 4", Georgia, serif; font-size: clamp(2.35rem, 5.2vw, 5.1rem); font-weight: 700; }
h3 { font-size: 1.28rem; line-height: 1.08; letter-spacing: -.025em; }
.lede { max-width: 700px; margin: 0 0 1.6rem; color: #d7dbd0; font-size: clamp(1.08rem, 1.6vw, 1.35rem); }
.signup-form { max-width: 650px; display: grid; gap: .55rem; }
.signup-form label { color: inherit; font-weight: 700; font-size: .92rem; }
.form-row { display: flex; gap: .65rem; }
input[type="email"], input[type="text"], textarea { width: 100%; min-height: 3.35rem; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 0 1.05rem; background: rgba(255,255,255,.07); color: inherit; font: inherit; outline: none; }
textarea { min-height: 7rem; border-radius: 18px; padding: .9rem 1.05rem; resize: vertical; }
input[type="email"]:focus, input[type="text"]:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,108,223,.22); }
input[type="email"]::placeholder, input[type="text"]::placeholder, textarea::placeholder { color: #9fa696; }
button, .button { min-height: 3.35rem; border: 0; border-radius: 999px; padding: 0 1.15rem; background: var(--trail); color: white; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
button:hover, .button:hover { background: var(--blue); }
.button.secondary { background: var(--black); }
.form-note { margin: 0; color: #9fa696; font-size: .88rem; }
.field-note { background: linear-gradient(180deg, #20241b, #12150f); border: 1px solid var(--line-dark); border-radius: 18px; padding: 1.4rem; box-shadow: var(--shadow); }
.note-topline { display: flex; justify-content: space-between; gap: .75rem; color: var(--gold); font-family: "IBM Plex Mono", monospace; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2.1rem; }
.field-note h2 { font-size: clamp(2.1rem, 3.4vw, 3.4rem); color: white; margin-bottom: 1rem; }
.field-note p { color: #cdd2c3; }
.note-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: 1.3rem; }
.note-grid span { border: 1px solid var(--line-dark); border-radius: 999px; padding: .55rem .7rem; color: #e7eadf; font-size: .82rem; text-align: center; }
.signal-strip { background: var(--black); border-top: 1px solid rgba(255,255,255,.08); padding: 1rem max(1.25rem, calc((100vw - 1180px)/2)) 2.6rem; display: flex; flex-wrap: wrap; gap: .55rem; }
.signal-strip span { color: #c8ccbf; border: 1px solid var(--line-dark); border-radius: 999px; padding: .5rem .8rem; font-family: "IBM Plex Mono", monospace; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.section { max-width: 1180px; margin: 0 auto; padding: clamp(4rem, 7vw, 6.5rem) 1.25rem; }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; border-bottom: 1px solid #d9d0c1; }
.split h2, .section-heading h2, .final-cta h2 { color: var(--ink); }
.body-copy { max-width: 720px; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: #3e463b; }
.issue-system { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding-top: 0; }
.issue-system article { background: var(--paper-2); border: 1px solid #d9d0c1; padding: 1.25rem; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; }
.number { color: var(--trail); font-family: "IBM Plex Mono", monospace; font-weight: 600; }
.issue-system p, .evergreen p { color: var(--muted); margin-bottom: 0; }
.section-heading { max-width: 790px; margin-bottom: 1.5rem; }
.library-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.library-grid a { min-height: 160px; padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; background: var(--charcoal); color: white; border: 1px solid var(--line-dark); border-radius: 10px; text-decoration: none; font-size: 1.16rem; font-weight: 700; letter-spacing: -.02em; }
.library-grid a:hover { border-color: var(--trail); transform: translateY(-2px); }
.library-grid span { color: var(--gold); font-family: "IBM Plex Mono", monospace; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
.guide-feature { margin: 0 auto; max-width: 1180px; padding: 0 1.25rem clamp(4rem, 7vw, 6.5rem); display: grid; grid-template-columns: 1fr .78fr; gap: 1rem; align-items: stretch; }
.guide-copy { background: var(--pine); color: white; border-radius: 18px; padding: clamp(1.5rem, 4vw, 3rem); }
.guide-copy h2 { color: white; }
.guide-copy p { max-width: 680px; color: #e1e6d7; font-size: 1.08rem; }
.guide-cover { min-height: 520px; background: radial-gradient(circle at 20% 0%, rgba(240,100,60,.32), transparent 34%), linear-gradient(145deg, #11140f, #252b20); color: white; border: 1px solid var(--line-dark); border-radius: 18px; padding: 1.4rem; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); }
.cover-label { color: var(--gold); font-family: "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }
.guide-cover h3 { font-family: "Source Serif 4", Georgia, serif; color: white; font-size: clamp(2.8rem, 5vw, 5.5rem); line-height: .9; letter-spacing: -.055em; }
.guide-cover p { color: #d9decf; }
.evergreen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; padding-top: 0; }
.evergreen article { background: transparent; border-top: 1px solid #d9d0c1; padding-top: 1rem; }
.sponsor { background: var(--black); color: white; max-width: none; padding: clamp(4rem, 7vw, 6rem) max(1.25rem, calc((100vw - 1180px)/2)); display: grid; grid-template-columns: 1.1fr .75fr; gap: 2rem; align-items: center; }
.sponsor h2 { color: white; }
.sponsor p { color: #d6dacd; max-width: 720px; }
.sponsor-card { background: var(--paper-2); color: var(--ink); border-radius: 16px; padding: 1.4rem; }
.sponsor-card span { color: var(--trail); font-family: "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.sponsor-card p { color: var(--ink); }
.sponsor-form { display: grid; gap: .65rem; margin-top: 1rem; }
.sponsor-form label { font-weight: 700; font-size: .88rem; }
.sponsor-form input, .sponsor-form textarea { background: white; border-color: #d4cabb; color: var(--ink); }
.sponsor-form button { width: 100%; }
.dark-note { color: var(--muted); }
.final-cta { text-align: center; }
.final-cta .signup-form { margin: 0 auto; color: var(--ink); }
.final-cta input[type="email"] { background: var(--paper-2); border-color: #d4cabb; color: var(--ink); }
.footer { max-width: 1180px; margin: 0 auto; padding: 2rem 1.25rem 4rem; color: var(--muted); font-size: .9rem; }
.modal { display: none; position: fixed; inset: 0; z-index: 40; }
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11,12,10,.72); backdrop-filter: blur(4px); }
.modal-panel { position: relative; z-index: 1; width: min(92vw, 540px); margin: 9vh auto 0; background: var(--paper-2); color: var(--ink); border-radius: 18px; padding: 1.6rem; box-shadow: var(--shadow); }
.modal-panel h2 { color: var(--ink); font-size: clamp(2rem, 4vw, 3.25rem); }
.modal-panel input[type="email"] { background: white; border-color: #d4cabb; color: var(--ink); }
.modal-close { position: absolute; right: .8rem; top: .8rem; min-height: 34px; width: 34px; padding: 0; background: var(--black); color: white; font-size: 1.25rem; }
.modal-panel .signup-form input, .modal-panel .signup-form button { width: 100%; }
.success-message { background: #edf7ef; color: #164f32; border: 1px solid #b7d7bf; border-radius: 1rem; padding: .85rem 1rem; font-weight: 700; }
code { font-family: "IBM Plex Mono", monospace; }
.guide-page { background: var(--paper); color: var(--ink); min-height: 100vh; }
.guide-article { max-width: 900px; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) 1.25rem; }
.guide-article h1 { max-width: 11ch; color: var(--ink); font-size: clamp(3rem, 8vw, 7rem); }
.guide-article .lede { color: #3e463b; max-width: 760px; }
.back-link { display: inline-flex; margin-bottom: 1.3rem; color: var(--muted); text-decoration: none; font-weight: 700; }
.back-link:hover, .guide-nav a:hover { color: var(--trail); }
.answer-card { background: var(--charcoal); color: white; border: 1px solid var(--line-dark); border-radius: 18px; padding: clamp(1.2rem, 3vw, 2rem); margin: 2rem 0; }
.answer-card h2 { color: white; font-size: clamp(2rem, 4vw, 3.5rem); }
.answer-card p { color: #d7dbd0; font-size: 1.08rem; }
.guide-section { border-top: 1px solid #d9d0c1; padding: 2rem 0; }
.guide-section h2 { color: var(--ink); font-size: clamp(1.8rem, 3vw, 3rem); }
.guide-section li { margin: .55rem 0; color: #3e463b; }
.subscribe-inline { background: var(--paper-2); border: 1px solid #d9d0c1; border-radius: 18px; padding: 1.4rem; margin: 1rem 0 2rem; }
.subscribe-inline input[type="email"] { background: white; border-color: #d4cabb; color: var(--ink); }
.related-guides { display: flex; flex-wrap: wrap; gap: .5rem; }
.related-guides a { border: 1px solid #d9d0c1; border-radius: 999px; padding: .5rem .75rem; text-decoration: none; color: var(--muted); font-size: .88rem; }
.related-guides a:hover { border-color: var(--trail); color: var(--ink); }
@media (max-width: 960px) {
  .hero, .split, .guide-feature, .sponsor { grid-template-columns: 1fr; }
  .issue-system, .library-grid, .evergreen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-cover { min-height: 430px; }
}
@media (max-width: 680px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-menu { display: none; position: absolute; left: 1rem; right: 1rem; top: 4.2rem; background: var(--charcoal); border: 1px solid var(--line-dark); border-radius: 14px; padding: 1rem; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .nav-menu.is-open { display: flex; }
  .form-row { flex-direction: column; }
  .issue-system, .library-grid, .evergreen { grid-template-columns: 1fr; }
  .hero { padding-top: 3.4rem; }
  h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
}
@media (prefers-reduced-motion: no-preference) { .library-grid a { transition: .18s ease; } }
