/* Grain — Warm editorial creative identity tool */

:root {
  --bg: #F7F2EB;
  --fg: #1A1A1A;
  --accent: #C4541A;
  --accent-dim: rgba(196, 84, 26, 0.12);
  --muted: rgba(26, 26, 26, 0.5);
  --border: rgba(26, 26, 26, 0.08);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(24px, 5vw, 64px);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  padding: 6px 12px;
  border-radius: 5px;
  transition: all 0.15s;
  display: inline-block;
}

.nav-link:hover {
  color: var(--fg);
  background: rgba(26, 26, 26, 0.04);
}

.nav-note {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.01em;
  margin-left: 8px;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px clamp(24px, 5vw, 64px) 80px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--fg);
  opacity: 0.75;
  max-width: 42ch;
  margin-bottom: 20px;
}

.hero-sub em {
  font-style: italic;
  color: var(--fg);
  opacity: 1;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--accent);
  letter-spacing: -0.01em;
}

/* Hero visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grain-orbit {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.orbit-svg {
  width: 100%;
  height: auto;
}

.orbit-caption {
  position: absolute;
  bottom: -8px;
  left: 0;
  display: flex;
  flex-direction: column;
}

.orbit-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.orbit-sublabel {
  font-size: 0.6875rem;
  color: var(--muted);
  font-weight: 300;
}

/* ── Shared section styles ── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) clamp(24px, 5vw, 64px);
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
}

/* ── Grain Map Section ── */
.grainmap-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.grainmap-section .section-header {
  margin-bottom: 64px;
}

.grainmap-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 10px;
}

.step p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--fg);
  opacity: 0.65;
}

.step em {
  font-style: italic;
  color: var(--fg);
  opacity: 1;
}

.step-visual {
  padding: 16px 0;
}

.step-svg {
  width: 100%;
  max-width: 200px;
  height: auto;
}

.step-connector {
  width: 1px;
  background: var(--border);
  height: 120px;
  align-self: center;
  margin: 0 24px;
}

/* ── Techne Section ── */
.techne-section {
  background: var(--fg);
  color: var(--bg);
}

.techne-section .section-inner {
  padding: clamp(80px, 10vw, 120px) clamp(24px, 5vw, 64px);
}

.techne-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 0.5;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-style: italic;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--bg);
  margin-bottom: 28px;
}

.quote-attribution {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.attribution-dash {
  color: var(--accent);
}

.techne-term {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
}

.techne-def {
  font-size: 0.8125rem;
  color: var(--bg);
  opacity: 0.5;
  font-weight: 300;
}

.techne-card {
  background: rgba(247, 242, 235, 0.06);
  border: 1px solid rgba(247, 242, 235, 0.1);
  border-radius: 8px;
  padding: 32px;
}

.techne-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--bg);
  margin-bottom: 20px;
}

.techne-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.techne-card li {
  font-size: 0.9375rem;
  color: var(--bg);
  opacity: 0.7;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.techne-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.techne-conclusion {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
  line-height: 1.5;
}

/* ── Manifesto Section ── */
.manifesto-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manifesto-content {
  max-width: 680px;
}

.manifesto-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.manifesto-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.manifesto-body p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--fg);
  opacity: 0.75;
}

.manifesto-body em {
  font-style: italic;
  color: var(--fg);
  opacity: 1;
  font-family: var(--font-display);
}

/* ── Closing Section ── */
.closing-section {
  background: var(--accent-dim);
}

.closing-content {
  max-width: 600px;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 24px;
}

.closing-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1875rem;
  color: var(--accent);
  margin-bottom: 48px;
}

.closing-divider {
  width: 48px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
  margin-bottom: 28px;
}

.closing-vision {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--fg);
  opacity: 0.6;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px clamp(24px, 5vw, 64px);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-note {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.5;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    order: -1;
  }

  .grain-orbit {
    max-width: 280px;
    margin: 0 auto;
  }

  .grainmap-steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .step-connector {
    display: none;
  }

  .techne-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 100px;
    min-height: auto;
  }

  .step-visual {
    display: none;
  }

  .section-inner {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}
