:root {
  --ink: #172321;
  --ink-soft: #50615d;
  --paper: #f4f5ef;
  --paper-deep: #e5e9df;
  --line: rgba(23, 35, 33, 0.16);
  --accent: #d5a447;
  --accent-deep: #9c6f20;
  --white: #fffefa;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.site-header, main, .site-footer { position: relative; z-index: 1; }

.site-header {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.wordmark-mark { display: inline-flex; gap: 3px; align-items: flex-end; height: 18px; }
.wordmark-mark span { display: block; width: 5px; background: var(--ink); }
.wordmark-mark span:first-child { height: 10px; }
.wordmark-mark span:last-child { height: 18px; }

.status-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ink-soft);
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.hero {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  min-height: min(720px, calc(100vh - 96px));
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  gap: clamp(52px, 8vw, 132px);
  align-items: center;
  padding: 72px 0 116px;
}

.hero-copy { max-width: 590px; animation: rise 0.8s ease both; }
.eyebrow { margin: 0 0 24px; color: var(--accent-deep); font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 600px;
  margin-bottom: 26px;
  font-size: clamp(3.6rem, 7vw, 6.9rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 700;
}

h1 em { color: var(--accent-deep); font-style: normal; font-weight: 500; }
.hero-intro { max-width: 450px; margin-bottom: 42px; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; }

.signup-form { max-width: 525px; }
.form-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--ink); }
.form-row input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 16px 4px 16px 0; color: var(--ink); background: transparent; font: inherit; font-size: 0.9rem; }
.form-row input::placeholder { color: #82908a; }
.form-row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.form-row button { border: 0; padding: 0 0 0 22px; color: var(--ink); background: transparent; font: inherit; font-size: 0.78rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.form-row button span { display: inline-block; margin-left: 10px; color: var(--accent-deep); font-size: 1.15rem; transition: transform 0.2s ease; }
.form-row button:hover span { transform: translate(3px, -3px); }
.form-note, .form-success, .form-error { margin: 12px 0 0; color: var(--ink-soft); font-family: 'DM Mono', monospace; font-size: 0.65rem; }
.form-success { color: var(--accent-deep); }
.form-error { color: #9c3d2b; }
.hidden-field { position: absolute; left: -9999px; }

.hero-art {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  background: #24332f url('https://images.unsplash.com/photo-1582139329536-e7284fece509?auto=format&fit=crop&w=1400&q=85') center / cover;
  box-shadow: 28px 28px 0 var(--paper-deep);
  animation: appear 1s 0.15s ease both;
}
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10, 29, 25, 0.78), rgba(18, 28, 25, 0.2) 65%, rgba(213, 164, 71, 0.3)); }
.art-label, .art-caption { position: absolute; z-index: 1; color: var(--white); font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.06em; }
.art-label { top: 28px; left: 30px; }
.art-label span { margin-left: 12px; color: #e4c77f; }
.art-caption { right: 28px; bottom: 26px; left: 28px; display: flex; justify-content: space-between; padding-top: 15px; border-top: 1px solid rgba(255, 254, 250, 0.35); }

.key-illustration { position: absolute; z-index: 1; top: 48%; left: 47%; width: 250px; height: 430px; transform: translate(-50%, -50%) rotate(32deg); filter: drop-shadow(22px 26px 9px rgba(0, 0, 0, 0.32)); }
.key-head { position: absolute; top: 0; left: 22px; width: 188px; height: 188px; border: 27px solid var(--accent); border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 3px rgba(255, 240, 170, 0.3); }
.key-head::after { content: ''; position: absolute; top: 34px; left: 34px; width: 65px; height: 65px; border: 8px solid rgba(156, 111, 32, 0.5); border-radius: 50%; }
.key-shaft { position: absolute; top: 156px; left: 92px; width: 50px; height: 245px; border-radius: 12px 12px 0 0; background: linear-gradient(90deg, #a57420, #f1cf76 50%, #bd882c); }
.key-tooth { position: absolute; bottom: 0; width: 50px; background: var(--accent); }
.key-tooth-one { left: 92px; height: 55px; }
.key-tooth-two { left: 142px; height: 87px; }
.key-tooth-three { left: 192px; height: 42px; }

.principles { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 124px 0 144px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 40px; margin-bottom: 64px; }
.section-heading .eyebrow { margin-bottom: 0; }
h2 { max-width: 530px; margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.principle-grid article { padding-top: 18px; border-top: 1px solid var(--line); }
.principle-number { color: var(--accent-deep); font-family: 'DM Mono', monospace; font-size: 0.7rem; }
h3 { margin: 34px 0 12px; font-size: 1.25rem; letter-spacing: -0.02em; }
.principle-grid p { max-width: 280px; margin-bottom: 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.7; }

.faq { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 0 0 124px; }
.faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px; }
.faq-list article { padding-top: 18px; border-top: 1px solid var(--line); }
.faq-list h3 { margin: 0 0 12px; font-size: 1.1rem; letter-spacing: -0.02em; }
.faq-list p { max-width: 420px; margin-bottom: 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.7; }

.site-footer { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 25px 0 36px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--ink-soft); font-family: 'DM Mono', monospace; font-size: 0.63rem; letter-spacing: 0.04em; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes appear { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 780px) {
  .site-header, main, .site-footer { width: min(100% - 40px, 600px); }
  .site-header { padding-top: 22px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 66px; padding: 70px 0 92px; }
  h1 { font-size: clamp(3.3rem, 16vw, 5.3rem); }
  .hero-art { min-height: 390px; box-shadow: 14px 14px 0 var(--paper-deep); }
  .principles { padding: 92px 0 100px; }
  .section-heading { display: block; margin-bottom: 50px; }
  .section-heading .eyebrow { margin-bottom: 22px; }
  .principle-grid { grid-template-columns: 1fr; gap: 42px; }
  .principle-grid p { max-width: 420px; }
  .faq { padding-bottom: 92px; }
  .faq-list { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 480px) {
  .site-header, main, .site-footer { width: calc(100% - 32px); }
  .status-pill { font-size: 0.6rem; }
  .hero { padding-top: 56px; }
  .form-row { display: block; border-bottom: 0; }
  .form-row input { width: 100%; border-bottom: 1px solid var(--ink); }
  .form-row button { padding: 18px 0 0; }
  .hero-art { min-height: 330px; }
  .key-illustration { transform: translate(-50%, -50%) rotate(32deg) scale(0.76); }
  .art-caption { display: block; line-height: 1.8; }
  .art-caption span { display: block; }
  .site-footer { display: block; line-height: 2; }
  .site-footer span { display: block; }
}
