:root {
  --ink: #15172a;
  --ink-soft: #343648;
  --paper: #f7f1e8;
  --paper-strong: #fffaf2;
  --navy: #182448;
  --navy-2: #10182f;
  --marigold: #e3a922;
  --coral: #c85e49;
  --teal: #4f8d83;
  --line: rgba(21, 23, 42, 0.16);
  --radius: 28px;
  --page: min(1320px, calc(100vw - 32px));
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #2f2a25;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image: url("assets/chit-chat-hero-impasto.webp");
  background-position: center;
  background-size: cover;
}

body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 18, 35, 0.16), rgba(15, 18, 35, 0.34));
  pointer-events: none;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: white;
  background: var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.feedback-banner {
  position: fixed;
  z-index: 40;
  top: 10px;
  left: 50%;
  display: flex;
  width: max-content;
  max-width: calc(100vw - 28px);
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--paper-strong);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(36, 105, 73, 0.96);
  box-shadow: 0 12px 30px rgba(17, 65, 45, 0.28);
  font-size: 0.68rem;
  line-height: 1.25;
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.feedback-banner strong {
  color: #f2c75d;
  letter-spacing: 0.02em;
}

.feedback-banner span {
  color: rgba(255, 250, 242, 0.75);
}

.feedback-banner a {
  color: #fff;
  font-weight: 700;
  text-underline-offset: 3px;
}

.site-header,
main,
.site-footer {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  margin: 58px auto 12px;
  padding: 10px 14px 10px 20px;
  color: var(--paper-strong);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 20px;
  background: rgba(16, 24, 47, 0.78);
  box-shadow: 0 18px 45px rgba(9, 11, 22, 0.2);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.91rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand i {
  color: #f2c75d;
  font-family: var(--serif);
  font-weight: 400;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--navy);
  border-radius: 50%;
  background: var(--marigold);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.4vw, 34px);
  font-size: 0.73rem;
}

nav a {
  color: rgba(255, 250, 242, 0.78);
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: #fff;
}

.menu-button {
  display: none;
}

main {
  display: grid;
  gap: clamp(58px, 7vw, 104px);
  padding-bottom: clamp(58px, 7vw, 104px);
}

.panel {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: clamp(58px, 8vw, 112px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(12, 14, 28, 0.18);
  scroll-margin-top: 96px;
}

.hero {
  display: flex;
  min-height: min(810px, calc(100svh - 104px));
  align-items: center;
  background: linear-gradient(
    90deg,
    rgba(250, 245, 236, 0.84) 0%,
    rgba(250, 245, 236, 0.7) 35%,
    rgba(250, 245, 236, 0.2) 60%,
    rgba(250, 245, 236, 0.02) 100%
  );
}

.hero-copy {
  width: min(620px, 54%);
}

.kicker {
  margin: 0 0 20px;
  color: var(--coral);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

h1 {
  max-width: 680px;
  font-size: clamp(4rem, 7.4vw, 7.7rem);
}

h2 {
  font-size: clamp(3rem, 5.6vw, 6rem);
}

.hero-line {
  margin: 25px 0 20px;
  color: var(--coral);
  font-family: var(--serif);
  font-size: clamp(2rem, 3.3vw, 3.5rem);
  letter-spacing: -0.035em;
}

.hero-summary {
  max-width: 48ch;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(0.96rem, 1.25vw, 1.12rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--navy);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #263765;
}

.button-quiet {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.38);
}

.hero-note {
  position: absolute;
  right: 30px;
  bottom: 26px;
  margin: 0;
  padding: 9px 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(16, 24, 47, 0.5);
  font-size: 0.66rem;
  backdrop-filter: blur(12px);
}

.featured {
  color: #fffaf2;
  background: rgba(16, 24, 47, 0.92);
  backdrop-filter: blur(16px);
}

.section-heading {
  max-width: 900px;
}

.section-heading > p:not(.kicker) {
  max-width: 63ch;
  margin: 30px 0 0;
  color: rgba(255, 250, 242, 0.68);
  line-height: 1.75;
}

.decision-grid {
  display: grid;
  grid-template-columns: 1.07fr 0.93fr;
  gap: clamp(34px, 6vw, 86px);
  margin-top: 68px;
}

.choice-card,
.jm-take {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.step-label,
.jm-take figcaption {
  margin-bottom: 20px;
  color: #f2c75d;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choices button {
  min-height: 78px;
  padding: 16px;
  color: #fffaf2;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  font: 500 0.82rem/1.4 var(--sans);
  text-align: left;
  cursor: pointer;
}

.choices button:hover,
.choices button:focus-visible,
.choices button.is-selected {
  color: var(--navy-2);
  border-color: var(--marigold);
  background: var(--marigold);
  outline: none;
}

.response-copy {
  min-height: 3em;
  margin: 20px 0 0;
  color: rgba(255, 250, 242, 0.68);
  font-size: 0.76rem;
  line-height: 1.6;
}

.jm-take {
  margin: 0;
}

.jm-take blockquote {
  margin: 0;
  color: #fffaf2;
  font: 400 clamp(1.75rem, 3vw, 3rem)/1.12 var(--serif);
  letter-spacing: -0.025em;
}

.jm-take p {
  max-width: 55ch;
  margin: 28px 0 0;
  color: rgba(255, 250, 242, 0.62);
  font-size: 0.78rem;
  line-height: 1.7;
}

.topics,
.about {
  background: rgba(249, 243, 233, 0.93);
  backdrop-filter: blur(18px);
}

.split-heading {
  display: grid;
  max-width: none;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 9vw, 130px);
  align-items: end;
}

.split-heading > p:not(.kicker) {
  margin: 0 0 4px;
  color: var(--ink-soft);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 74px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.topic-grid article {
  min-height: 230px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, transform 180ms ease;
}

.topic-grid article:hover {
  z-index: 1;
  background: rgba(255, 255, 255, 0.55);
  transform: translateY(-5px);
}

.topic-grid span {
  color: var(--coral);
  font-size: 0.66rem;
  font-weight: 700;
}

.topic-grid h3 {
  margin: 56px 0 12px;
  font: 500 clamp(1.35rem, 2.1vw, 2rem)/1.1 var(--serif);
  letter-spacing: -0.025em;
}

.topic-grid p {
  max-width: 34ch;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.6;
}

.grown-ups {
  display: grid;
  min-height: 480px;
  grid-template-columns: 1fr 0.75fr;
  gap: clamp(50px, 10vw, 150px);
  align-items: end;
  color: #fffaf2;
  background: linear-gradient(120deg, rgba(113, 58, 40, 0.94), rgba(82, 43, 37, 0.88));
  backdrop-filter: blur(16px);
}

.grown-ups .kicker {
  color: #f2c75d;
}

.grown-ups-copy p {
  margin-bottom: 26px;
  color: rgba(255, 250, 242, 0.76);
  line-height: 1.75;
}

.grown-ups .button-primary {
  color: var(--navy);
  background: #fffaf2;
}

.about {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: clamp(40px, 9vw, 120px);
  align-items: center;
}

.about-monogram {
  display: grid;
  width: min(100%, 370px);
  aspect-ratio: 1;
  place-items: center;
  color: var(--navy);
  border: 1px solid rgba(21, 23, 42, 0.14);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6cf70, #dfa321 58%, #b56b27);
  box-shadow: inset 0 0 0 16px rgba(255, 255, 255, 0.2), 0 30px 60px rgba(65, 47, 25, 0.18);
  font: 500 clamp(4rem, 10vw, 9rem)/1 var(--serif);
  letter-spacing: -0.08em;
}

.about-copy > p:not(.kicker) {
  max-width: 65ch;
  margin: 30px 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.about-links {
  display: flex;
  gap: 24px;
  margin-top: 28px;
}

.about-links a {
  font-size: 0.75rem;
  font-weight: 700;
  text-underline-offset: 5px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 14px;
  padding: 24px 26px;
  color: rgba(255, 250, 242, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 20px;
  background: rgba(16, 24, 47, 0.79);
  font-size: 0.69rem;
  backdrop-filter: blur(16px);
}

@media (max-width: 900px) {
  .site-header {
    min-height: 62px;
  }

  .menu-button {
    display: inline-flex;
    padding: 9px 13px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: transparent;
    font: 700 0.68rem var(--sans);
  }

  nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 18px;
    background: rgba(16, 24, 47, 0.96);
  }

  nav.is-open {
    display: grid;
  }

  nav a {
    padding: 12px;
  }

  .panel {
    padding: clamp(42px, 8vw, 72px);
  }

  .hero {
    min-height: 750px;
    align-items: flex-end;
    background: linear-gradient(
      0deg,
      rgba(250, 245, 236, 0.84) 0%,
      rgba(250, 245, 236, 0.68) 54%,
      rgba(250, 245, 236, 0.04) 100%
    );
  }

  .hero-copy {
    width: 100%;
  }

  .decision-grid,
  .split-heading,
  .grown-ups,
  .about {
    grid-template-columns: 1fr;
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grown-ups {
    align-items: start;
  }

  .about-monogram {
    width: min(55vw, 280px);
  }
}

@media (max-width: 580px) {
  :root {
    --page: calc(100vw - 16px);
    --radius: 20px;
  }

  .site-header {
    top: 60px;
    margin: 60px auto 8px;
    padding-left: 12px;
    border-radius: 16px;
  }

  .feedback-banner {
    top: 7px;
    display: grid;
    width: calc(100vw - 16px);
    gap: 2px;
    padding: 9px 13px;
    border-radius: 15px;
    text-align: center;
  }

  .brand > span:last-child {
    max-width: 110px;
    line-height: 1.05;
  }

  main {
    gap: 42px;
    padding-bottom: 42px;
  }

  .panel {
    min-height: 0;
    padding: 52px 24px;
  }

  .hero {
    min-height: calc(100svh - 86px);
    padding-bottom: 72px;
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2.75rem, 13vw, 4.3rem);
  }

  .hero-note {
    right: 20px;
    bottom: 18px;
    left: 20px;
    text-align: center;
  }

  .choices,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .decision-grid,
  .topic-grid {
    margin-top: 48px;
  }

  .topic-grid article {
    min-height: 190px;
  }

  .grown-ups {
    gap: 38px;
  }

  .about-monogram {
    width: 190px;
  }

  .site-footer {
    display: grid;
    margin-bottom: 8px;
    padding: 20px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .topic-grid article {
    transition: none;
  }
}
