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

/* === VARIABLES === */
:root {
  --ivory: #F5F1E8;
  --warm-white: #FAFAF7;
  --olive: #6B7A3F;
  --olive-deep: #3E4528;
  --olive-pale: #E5E8D8;
  --graphite: #2B2B2B;
  --graphite-soft: #5A5A5A;
  --graphite-muted: #8A8A8A;
  --gold: #A68A4E;
  --border-subtle: #E5E0D3;
  --border-deep: #C7C0AB;
}

/* === BASE === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--graphite);
  line-height: 1.7;
  background-color: var(--warm-white);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  color: var(--graphite);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

a {
  color: var(--olive);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--olive-deep);
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === HEADER / NAV === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--warm-white);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  max-width: 1040px;
  margin: 0 auto;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-links a {
  color: var(--graphite-soft);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--olive);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger svg {
  fill: var(--graphite);
}

/* === HERO === */
.hero {
  background-color: var(--ivory);
  color: var(--graphite);
  text-align: center;
  padding: 140px 32px 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-deep), transparent);
}

.hero-logo {
  display: block;
  margin: 0 auto 20px;
  height: auto;
  max-width: 220px;
  width: 100%;
}

.hero-rule {
  width: 48px;
  height: 1px;
  background-color: var(--gold);
  margin: 0 auto 32px;
}

.hero h1 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  max-width: 720px;
  margin: 0 auto 24px;
  color: var(--graphite);
}

.hero-lead {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--graphite-soft);
  max-width: 640px;
  margin: 0 auto;
}

/* === SECTIONS === */
.section {
  padding: 112px 32px;
}

.section--alt {
  background-color: var(--ivory);
}

.section-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-size: 38px;
  font-weight: 500;
  color: var(--graphite);
  margin-bottom: 20px;
  max-width: 780px;
}

.section-lead {
  font-size: 17px;
  color: var(--graphite-soft);
  margin-bottom: 56px;
  max-width: 680px;
  line-height: 1.75;
}

/* === PHILOSOPHY / TEXT BLOCK === */
.prose {
  max-width: 720px;
}

.prose p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--graphite-soft);
  margin-bottom: 24px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--graphite);
  font-weight: 600;
}

/* === PILLARS GRID === */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  margin-top: 32px;
}

.pillar {
  padding: 40px 36px;
  background-color: var(--warm-white);
}

.section--alt .pillar {
  background-color: var(--ivory);
}

.pillar-number {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.pillar h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--graphite);
}

.pillar p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--graphite-soft);
}

/* === THESIS LIST === */
.thesis-list {
  list-style: none;
  margin-top: 24px;
}

.thesis-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--border-subtle);
}

.thesis-item:last-child {
  border-bottom: 1px solid var(--border-subtle);
}

.thesis-number {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.thesis-content h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--graphite);
}

.thesis-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--graphite-soft);
  max-width: 640px;
}

/* === FOOTER === */
.site-footer {
  background-color: var(--olive-deep);
  color: rgba(250, 250, 247, 0.7);
  padding: 56px 32px 40px;
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
}

.site-footer .footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--warm-white);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: block;
}

.site-footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.site-footer-links a {
  color: rgba(250, 250, 247, 0.85);
  font-size: 13px;
  transition: color 0.25s ease;
}

.site-footer-links a:hover {
  color: var(--warm-white);
}

.footer-legal {
  color: rgba(250, 250, 247, 0.5);
  font-size: 12px;
  margin-top: 12px;
}

.footer-rule {
  width: 32px;
  height: 1px;
  background-color: rgba(250, 250, 247, 0.2);
  margin: 24px auto;
}

/* === LANGUAGE TOGGLE === */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-deep);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--graphite-soft);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-left: 16px;
  text-decoration: none;
  text-transform: uppercase;
}

.lang-toggle:hover {
  background: var(--ivory);
  color: var(--olive);
  border-color: var(--olive);
}

/* === LEGAL PAGES === */
.legal-page {
  padding: 96px 32px 80px;
  background-color: var(--warm-white);
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 38px;
  font-weight: 500;
  margin-bottom: 12px;
}

.legal-content .legal-subtitle {
  color: var(--graphite-muted);
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 500;
  margin: 48px 0 16px;
  color: var(--graphite);
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--graphite);
  font-family: 'Inter', sans-serif;
}

.legal-content p,
.legal-content li {
  font-size: 15px;
  line-height: 1.85;
  color: var(--graphite-soft);
  margin-bottom: 14px;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 20px;
}

.legal-content ul li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--graphite);
  font-weight: 600;
}

.legal-back {
  display: inline-block;
  margin-top: 48px;
  font-size: 14px;
  color: var(--olive);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.legal-back:hover {
  border-bottom-color: var(--olive);
}

/* === RESPONSIVE: TABLET (768px) === */
@media (min-width: 768px) {
  .hero {
    padding: 160px 32px 140px;
  }

  .hero-logo {
    max-width: 280px;
    margin-bottom: 28px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .section {
    padding: 128px 32px;
  }

  .pillars {
    grid-template-columns: 1fr 1fr;
  }
}

/* === RESPONSIVE: DESKTOP (1024px) === */
@media (min-width: 1024px) {
  .hero {
    padding: 176px 32px 144px;
  }

  .hero-logo {
    max-width: 320px;
    margin-bottom: 32px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .section-title {
    font-size: 44px;
  }

  .pillars {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

/* === MOBILE NAV === */
@media (max-width: 767px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--warm-white);
    padding: 16px 32px 24px;
    gap: 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
  }

  .hero-logo {
    max-width: 180px;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .section {
    padding: 80px 24px;
  }

  .section-title {
    font-size: 28px;
  }

  .thesis-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .lang-toggle {
    position: absolute;
    right: 56px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }
}
