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

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1c1917;
  background: #fafaf9;
  line-height: 1.7;
  overflow-x: hidden;
}

/* === Layout === */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 3.5rem 0;
}

section + section {
  border-top: 1px solid #e7e5e4;
}

/* Wide breakout — images extend beyond text column */
.wide {
  width: 100vw;
  max-width: 1200px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* === Typography === */
h1, h2, h3 {
  line-height: 1.3;
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #1c1917;
}

p {
  margin-bottom: 1rem;
}

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

a {
  color: #b45309;
  text-decoration: underline;
  text-decoration-color: #b4530940;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-color: #b45309;
}

/* === Header === */
.header {
  padding: 4.5rem 0 2rem;
  border-bottom: none;
}

.header + section {
  border-top: none;
}

.brand {
  font-family: 'IBM Plex Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 2.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1c1917;
}

.tagline {
  font-size: 1.15rem;
  color: #78716c;
  margin-top: 0.35rem;
}

/* === The Setup (lede) === */
.lede p {
  font-size: 1.1rem;
  color: #44403c;
}

.lede p:first-of-type {
  font-size: 1.2rem;
  color: #1c1917;
}

/* === CTA Button === */
.cta-button {
  display: block;
  width: fit-content;
  margin: 1.5rem auto 0;
  font-family: 'IBM Plex Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: #b45309;
  padding: 0.7rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.cta-button:hover {
  background: #92400e;
  color: #fff;
}

/* === Hero Image === */
.hero-figure {
  margin: 2rem auto 0;
  max-width: 87.5%;
}

.hero-figure figcaption {
  font-size: 0.8rem;
  color: #78716c;
  text-align: center;
  margin-top: 0.5rem;
}

.hero-image {
  width: 100%;
  border-radius: 8px;
  display: block;
}

/* === Transcript Excerpts === */
.transcript-block {
  background: #f5f5f4;
  border-left: 3px solid #b45309;
  border-radius: 0 6px 6px 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  font-family: 'IBM Plex Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
}

.transcript-label {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b45309;
  margin-bottom: 0.75rem;
}

.transcript-block .oliver {
  font-weight: 600;
  color: #1d4ed8;
}

.transcript-block .coach {
  font-weight: 600;
  color: #78716c;
}

.transcript-block p {
  margin-bottom: 0.6rem;
}

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

.transcript-block .profile-key {
  font-weight: 600;
  color: #44403c;
}

.transcript-block .diff-add {
  color: #15803d;
}

.transcript-block ul {
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
}

.transcript-block li {
  margin-bottom: 0.3rem;
}

.transcript-block li:last-child {
  margin-bottom: 0;
}

/* === Screenshots === */
.screenshot-pair {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
  justify-content: center;
}

.screenshot-pair a {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  cursor: zoom-in;
  background: #fff;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid #d6d3d1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.screenshot-pair img {
  width: 100%;
  border-radius: 4px;
  display: block;
  transition: box-shadow 0.15s ease;
}

.screenshot-pair a:hover,
a.screenshot-link:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.screenshot-full {
  width: 100%;
  border-radius: 4px;
  display: block;
  transition: box-shadow 0.15s ease;
}

.screenshot-link {
  display: block;
  text-decoration: none;
  cursor: zoom-in;
  background: #fff;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid #d6d3d1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  margin: 2rem 0;
}

.screenshot-caption {
  font-size: 0.8rem;
  color: #78716c;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

/* === Lists === */
section ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

section li {
  margin-bottom: 0.6rem;
}

section li:last-child {
  margin-bottom: 0;
}

/* === About / Sign Up === */
.bio {
  color: #44403c;
  margin-bottom: 1.5rem;
}

.email-link {
  font-family: 'IBM Plex Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.9rem;
}

.tally-embed {
  margin-top: 2.5rem;
}

/* === Footer === */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid #e7e5e4;
  font-size: 0.8rem;
  color: #a8a29e;
}

footer a {
  color: #a8a29e;
}

/* === Responsive === */
@media (max-width: 720px) {
  html {
    font-size: 16px;
  }

  .container {
    padding: 0 1.25rem;
  }

  section {
    padding: 2.5rem 0;
  }

  .header {
    padding: 2.5rem 0 1.5rem;
  }

  .brand {
    font-size: 2rem;
  }

  .wide {
    width: auto;
    max-width: none;
    left: auto;
    transform: none;
  }

  .screenshot-pair {
    flex-direction: column;
    gap: 1rem;
  }

  .transcript-block {
    padding: 1.25rem 1.25rem;
    font-size: 0.8rem;
  }
}
