/* ─────────────────────────────────────────────
   subtxtlabs — style.css
   ───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

/* ── Reset & base ── */

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

:root {
  --cream:        #f5f0e8;
  --cream-dark:   #ede7d9;
  --sand:         #d9cdb8;
  --brown-warm:   #6b4f3a;
  --brown-mid:    #8c6b52;
  --terracotta:   #b5623e;
  --sage:         #7a8c72;
  --text-primary: #2e2318;
  --text-mid:     #5a4535;
  --text-light:   #8c7a6a;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --max-width: 900px;
  --gutter: 2rem;
}

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

body {
  background-color: var(--cream);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Navigation ── */

nav {
  padding: 2.25rem var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.nav-wordmark {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-wordmark span {
  color: var(--terracotta);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ── Divider ── */

.rule {
  border: none;
  border-top: 1px solid var(--sand);
  margin: 0 var(--gutter);
  max-width: calc(var(--max-width) - 2 * var(--gutter));
  margin: 0 auto;
}

/* ── Hero ── */

.hero {
  padding: 8rem var(--gutter) 7rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-headline {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  max-width: 22ch;
  margin-bottom: 2rem;
}

.hero-headline em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-mid);
  max-width: 50ch;
  line-height: 1.75;
}

/* ── Section shared ── */

section {
  padding: 6rem var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 3.5rem;
}

/* ── Work section ── */

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background-color: var(--sand);
}

.project-card {
  background-color: var(--cream);
  padding: 2.75rem 2.75rem 3rem;
  transition: background-color 0.25s ease;
}

.project-card:hover {
  background-color: var(--cream-dark);
}

.project-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.65rem;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.project-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.4rem;
}

.project-desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ── Thesis section ── */

.thesis-section {
  background-color: var(--cream-dark);
}

.thesis-inner {
  padding: 6rem var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.thesis-body {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-primary);
  max-width: 62ch;
}

.thesis-body strong {
  font-weight: 500;
  color: var(--brown-warm);
}

/* ── Footer ── */

footer {
  padding: 3rem var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.footer-email {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.footer-email:hover {
  color: var(--terracotta);
}

/* ── Responsive ── */

@media (max-width: 680px) {
  :root {
    --gutter: 1.25rem;
  }

  nav {
    padding: 1.75rem var(--gutter);
  }

  .hero {
    padding: 5rem var(--gutter) 5rem;
  }

  section {
    padding: 4.5rem var(--gutter);
  }

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

  .project-card {
    padding: 2.25rem 2rem 2.5rem;
  }

  .thesis-inner {
    padding: 4.5rem var(--gutter);
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}
