:root {
  --ink: #14231c;
  --forest: #173c2c;
  --forest-soft: #28533f;
  --cream: #f4efe4;
  --paper: #fffdf7;
  --terracotta: #c56643;
  --sand: #d8ccb8;
  --muted: #6f786f;
  --line: rgba(20, 35, 28, 0.18);
  --radius-lg: 2.25rem;
  --radius-md: 1.25rem;
  --shadow: 0 24px 80px rgba(22, 46, 34, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); }
button, input { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  width: min(1440px, calc(100% - 48px));
  min-height: 86px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; text-decoration: none; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.brand-mark { display: inline-grid; place-items: center; width: 46px; height: 34px; color: var(--cream); background: var(--forest); border-radius: 50% 42% 46% 40%; font-size: 13px; transform: rotate(-2deg); }
nav { display: flex; align-items: center; gap: 32px; }
nav a { color: #3f4d45; text-decoration: none; font-size: 14px; font-weight: 650; }
nav a:hover { color: var(--terracotta); }
.header-action { justify-self: end; border: 0; border-bottom: 1px solid currentColor; padding: 6px 0; background: transparent; color: var(--forest); font-size: 14px; font-weight: 750; cursor: pointer; }

main { overflow: hidden; }
.hero { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0 78px; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 92px); align-items: center; }
.hero-copy { padding-left: clamp(0px, 3vw, 42px); }
.eyebrow, .section-index { margin: 0 0 24px; color: var(--terracotta); font-size: 12px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, blockquote, p { text-wrap: pretty; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.045em; }
h1 { margin: 0; max-width: 680px; font-size: clamp(54px, 6.4vw, 104px); line-height: .91; }
h1 em { color: var(--terracotta); font-weight: 500; }
.hero-lede { max-width: 580px; margin: 32px 0; color: #536158; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; padding: 0 26px; text-decoration: none; font-weight: 750; cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--forest); color: white; }
.button-primary:hover { background: var(--forest-soft); }
.button-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.button-light { background: var(--paper); color: var(--forest); }
.hero-notes { display: flex; gap: 24px; margin: 38px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.hero-notes li::before { content: "•"; margin-right: 8px; color: var(--terracotta); }
.hero-visual { position: relative; margin: 0; }
.hero-visual::before { content: ""; position: absolute; inset: -18px 36px 28px -14px; border: 1px solid rgba(197, 102, 67, .45); border-radius: 48% 52% 47% 44%; transform: rotate(2deg); }
.hero-visual img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 56% center; border-radius: 48% 52% 45% 42%; filter: saturate(.9) contrast(.98); box-shadow: var(--shadow); }
.hero-visual figcaption { position: absolute; right: 0; bottom: 9%; width: min(290px, 60%); padding: 18px 22px; color: white; background: rgba(23, 60, 44, .92); font-family: Georgia, serif; font-size: 17px; line-height: 1.35; }

.manifesto { padding: 100px max(24px, calc((100% - 1340px) / 2)); background: var(--paper); display: grid; grid-template-columns: .35fr 1.25fr .65fr; gap: 56px; align-items: start; }
.manifesto h2, .section-heading h2, .library h2 { margin: 0; font-size: clamp(40px, 4.6vw, 72px); line-height: 1; }
.manifesto > div > p { max-width: 690px; margin: 28px 0 0; color: #58645d; font-size: 18px; line-height: 1.75; }
.quote-card { padding: 28px; border-top: 4px solid var(--terracotta); background: var(--cream); }
.quote-card span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
blockquote { margin: 18px 0 0; font-size: 25px; line-height: 1.3; }

.guides { padding: 112px max(24px, calc((100% - 1340px) / 2)); }
.section-heading { margin-bottom: 42px; display: grid; grid-template-columns: 1.2fr .7fr; gap: 40px; align-items: end; }
.section-heading > p { max-width: 480px; margin: 0 0 4px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.guide-card { min-height: 410px; display: flex; flex-direction: column; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 253, 247, .36); }
.guide-card-featured { color: white; background: var(--forest); }
.guide-number { align-self: flex-end; color: var(--terracotta); font-family: Georgia, serif; font-size: 34px; font-style: italic; }
.tag { margin: 56px 0 14px; color: var(--terracotta); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.guide-card h3 { margin: 0; font-family: Georgia, serif; font-size: 30px; font-weight: 500; line-height: 1.1; letter-spacing: -.025em; }
.guide-card > p:not(.tag) { color: var(--muted); line-height: 1.65; }
.guide-card-featured > p:not(.tag) { color: rgba(255,255,255,.68); }
.guide-card a { margin-top: auto; text-decoration: none; font-weight: 750; }

.library { padding: 112px max(24px, calc((100% - 1340px) / 2)); color: white; background: var(--terracotta); display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.library .section-index { color: rgba(255,255,255,.65); }
.lock-badge { display: inline-block; margin-bottom: 24px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.library-intro > p:not(.section-index) { max-width: 560px; margin: 25px 0 32px; color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.65; }
.locked-files { display: grid; gap: 14px; }
.file-card { position: relative; min-height: 150px; padding: 28px 80px 28px 28px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.file-card h3 { margin: 25px 0 0; font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.file-type { color: rgba(255,255,255,.65); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.file-lock { position: absolute; top: 50%; right: 30px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; transform: translateY(-50%); font-size: 22px; }

footer { padding: 46px max(24px, calc((100% - 1340px) / 2)); display: grid; grid-template-columns: .7fr 1fr 1fr; gap: 40px; align-items: center; background: var(--ink); color: rgba(255,255,255,.68); font-size: 13px; }
.brand-footer { color: white; }
.brand-footer .brand-mark { color: var(--ink); background: var(--cream); }
.footer-note { text-align: right; }

.register-dialog { width: min(520px, calc(100% - 28px)); padding: 42px; border: 0; border-radius: var(--radius-md); color: var(--ink); background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.register-dialog::backdrop { background: rgba(12, 24, 18, .72); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 16px; right: 18px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--cream); font-size: 24px; cursor: pointer; }
.register-dialog h2 { margin: 0; font-family: Georgia, serif; font-size: 42px; font-weight: 500; line-height: 1; }
.dialog-lede { color: var(--muted); line-height: 1.55; }
.register-dialog form { display: grid; gap: 18px; margin-top: 28px; }
.register-dialog label:not(.consent) { display: grid; gap: 7px; font-size: 13px; font-weight: 750; }
.register-dialog input[type="text"], .register-dialog input[type="email"] { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; background: white; outline: none; }
.register-dialog input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(23,60,44,.12); }
.consent { display: flex; gap: 10px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.consent input { margin-top: 2px; }
.submit-button { width: 100%; }
.submit-button[disabled] { cursor: wait; opacity: .7; transform: none; }
.form-status { min-height: 0; margin: 0; font-size: 13px; line-height: 1.5; }
.form-status.error { min-height: 48px; padding: 12px 14px; border-left: 3px solid #a33b2f; color: #7c2d25; background: #f8e8e4; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-copy { padding-left: 0; }
  .hero-visual { width: min(680px, 92%); margin: 18px auto 0; }
  .hero-visual img { aspect-ratio: 4 / 3; }
  .manifesto { grid-template-columns: 1fr 2fr; }
  .quote-card { grid-column: 2; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 330px; }
  .tag { margin-top: 30px; }
  .library { grid-template-columns: 1fr; gap: 50px; }
  footer { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 640px) {
  .site-header, .hero { width: min(100% - 28px, 1440px); }
  .site-header { min-height: 72px; }
  .header-action { font-size: 12px; }
  .hero { padding-bottom: 56px; }
  h1 { font-size: clamp(48px, 16vw, 68px); }
  .hero-lede { margin: 24px 0; font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-notes { flex-wrap: wrap; gap: 10px 18px; }
  .hero-visual { width: 100%; }
  .hero-visual img { aspect-ratio: 4 / 5; }
  .hero-visual figcaption { width: 75%; font-size: 15px; }
  .manifesto { padding-top: 72px; padding-bottom: 72px; grid-template-columns: 1fr; gap: 24px; }
  .quote-card { grid-column: auto; margin-top: 18px; }
  .guides, .library { padding-top: 78px; padding-bottom: 78px; }
  .section-heading { grid-template-columns: 1fr; }
  .guide-card { padding: 26px; }
  footer { grid-template-columns: 1fr; }
  .footer-note { grid-column: auto; }
  .register-dialog { padding: 38px 22px 24px; }
}

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

