:root {
  color-scheme: light;
  --paper: #f7f4ed;
  --ink: #242229;
  --muted: #555057;
  --line: #d7d1c7;
  --lavender: #e7e0f0;
  --violet: #654782;
  --lime: #def29d;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--violet); outline-offset: 5px; }
.masthead a:focus-visible { outline-color: var(--lime); }
.frame { width: min(75rem, calc(100% - 6rem)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; top: .75rem; left: 1rem; padding: .75rem; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.masthead { background: var(--ink); color: var(--paper); }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 5rem; }
.masthead-nav { display: flex; align-items: center; gap: clamp(.65rem, 3vw, 1.5rem); }
.masthead-nav a { padding-block: .4rem; font-size: .88rem; font-weight: 700; text-decoration: none; }
.masthead-nav a:hover, .masthead-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .28rem; }
.wordmark { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.45rem; font-weight: 750; line-height: 1; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.wordmark img { flex: none; width: 2.25rem; height: 2.25rem; }
.wordmark i { margin-inline-start: -.05em; font-family: Georgia, serif; font-weight: 400; }
.landing { flex: 1; padding-bottom: clamp(2rem, 5vw, 4rem); }
.hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(2.75rem, 4.3vw, 4rem); }
.eyebrow { display: flex; align-items: center; gap: .55rem; margin: 0 0 1.2rem; color: var(--violet); text-transform: uppercase; font: 700 .78rem/1.2 ui-monospace, monospace; letter-spacing: .12em; }
.offer-dot { width: .52rem; height: .52rem; background: currentColor; border-radius: 50%; }
h1 { margin: 0; font-size: clamp(3.45rem, 8.3vw, 8rem); line-height: .95; font-weight: 740; letter-spacing: -.09em; }
.tagline { margin: 1.35rem 0 1.2rem; font: 400 clamp(1.7rem, 3.2vw, 3.05rem)/1.12 Georgia, serif; letter-spacing: -.06em; }
.tagline em { color: var(--violet); }
.description { max-width: 35ch; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.6; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.35rem; padding: .9rem 1.15rem; background: var(--ink); border: 1px solid var(--ink); border-radius: .28rem; color: var(--lime); font-weight: 700; text-decoration: none; transition: background .18s, color .18s; }
.button:hover { background: var(--lime); color: var(--ink); }
.first-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.3rem; margin-top: 1.65rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.first-offer .eyebrow { margin-bottom: .4rem; }
.first-offer h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.065em; line-height: 1; }
.first-offer h2 + p { margin: .38rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.first-offer .button, .articles-feature .button { font-size: .9rem; padding: .7rem .8rem; gap: .65rem; }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--lavender); }
.articles-feature { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.35rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.articles-feature p { margin: 0; color: var(--muted); font-size: .9rem; }

.map { margin: 0; background: var(--lavender); border: 1px solid var(--ink); border-radius: .45rem; box-shadow: .45rem .45rem 0 var(--ink); overflow: hidden; }
.map-header, .overture-controls { padding: .82rem 1rem; }
.map-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .35rem .8rem; border-bottom: 1px solid var(--ink); }
.map-header strong { font-size: 1rem; letter-spacing: -.03em; }
.map-header span { color: #514164; font: 700 .7rem/1.2 ui-monospace, monospace; }
.overture-window { min-height: 14.6rem; padding: 1.15rem 1rem .85rem; background: radial-gradient(#b0a1c0 1px, transparent 1px) 0 0 / 16px 16px, #f5f0fa; }
.overture-slide { text-align: center; animation: overture-enter .42s ease-out both; }
.overture-slide h2 { margin: 0; font-size: clamp(1.12rem, 2vw, 1.5rem); letter-spacing: -.04em; line-height: 1.13; text-wrap: balance; }
.overture-slide p { max-width: 43ch; margin: .8rem auto 0; color: #514164; font-size: .81rem; line-height: 1.35; text-wrap: balance; }
.overture-diagram { --wire: #7e6e9f; --lanes: 3; display: grid; max-width: 25rem; margin: .85rem auto 0; justify-items: stretch; }
.overture-nodes { display: grid; grid-template-columns: repeat(var(--lanes), minmax(0, 1fr)); gap: .35rem; }
.overture-nodes span, .overture-hub { position: relative; display: grid; place-content: center; min-height: 2.25rem; padding: .35rem .22rem; border: 1px solid #b4a4cb; border-radius: .3rem; background: #fcfaff; color: #32244a; font-size: .73rem; font-weight: 700; line-height: 1.12; text-wrap: balance; }
.overture-nodes span::after { content: ""; position: absolute; top: 100%; left: 50%; height: .38rem; border-left: 1px solid var(--wire); }
.overture-hub { justify-self: center; min-width: 48%; padding-inline: .55rem; border-color: #83a7d2; background: #dcecff; color: #234771; }
.overture-connector { position: relative; margin-inline: calc(50% / var(--lanes)); height: 1rem; }
.overture-connector::before, .overture-connector::after { content: ""; position: absolute; }
.overture-connector::before { inset: .38rem 0 auto; border-top: 1px dashed var(--wire); }
.overture-connector::after { inset: .38rem auto 0 50%; border-left: 1px solid var(--wire); }
.overture-outward .overture-nodes span::after { top: auto; bottom: 100%; }
.overture-outward .overture-connector::before { inset: auto 0 .38rem; }
.overture-outward .overture-connector::after { inset: 0 auto .38rem 50%; }
.overture-agent-model { --lanes: 2; max-width: 17rem; }
.overture-agent-model .overture-nodes span:last-child { border-color: #c6a365; background: #fff2d6; }
.overture-controls { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--ink); padding-block: .3rem; }
.overture-stages { display: flex; }
.overture-stages button, .overture-play { border: 0; background: transparent; color: #453751; cursor: pointer; }
.overture-stages button { display: grid; place-items: center; width: 2.2rem; height: 2.35rem; padding: 0; }
.overture-stages button::before { content: ""; width: .48rem; height: .48rem; border: 1px solid #685587; border-radius: 50%; background: transparent; }
.overture-stages button[aria-current="step"]::before { background: #4a3673; }
.overture-stages button:hover::before { background: #a796c1; }
.overture-play { min-height: 2.35rem; padding: .3rem .45rem; font: inherit; font-size: .76rem; font-weight: 700; }
.overture-play:hover { text-decoration: underline; text-underline-offset: .2em; }
.overture-controls button:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; border-radius: .2rem; }
@keyframes overture-enter { from { opacity: .25; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.podcast-feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: .9rem 1.4rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}
.podcast-link {
  display: flex;
  flex: 1 1 18rem;
  max-width: 40rem;
  min-width: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #63397d;
  border-radius: .45rem;
  background: linear-gradient(120deg, #642078, #3c2a75);
  color: #fff;
  text-decoration: none;
}
.podcast-link img { width: clamp(5.6rem, 11vw, 8.75rem); height: auto; object-fit: cover; object-position: center 40%; }
.podcast-copy { display: grid; align-content: center; gap: .35rem; padding: .7rem clamp(.7rem, 2vw, 1.35rem); }
.podcast-title { margin: 0; font-size: clamp(1.1rem, 2.55vw, 2rem); font-weight: 850; letter-spacing: -.035em; line-height: 1.1; }
.podcast-title span { color: #7ddaff; }
.podcast-title strong { color: #ffcd43; font-weight: inherit; }
.podcast-label { font-size: .85rem; font-weight: 650; }
.podcast-label span { margin-inline-start: .25rem; }
.podcast-link:hover .podcast-label, .spotify-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.spotify-link { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: .35rem; font-size: .88rem; font-weight: 650; text-decoration: none; }

@media (max-width: 740px) {
  .frame { width: calc(100% - 2.5rem); }
  .hero { grid-template-columns: 1fr; gap: 2.7rem; padding-block: 3.2rem; }
  .masthead-inner { min-height: 4.25rem; }
}

@media (max-width: 420px) {
  .wordmark { gap: .3rem; font-size: 1.15rem; }
  .wordmark img { width: 1.85rem; height: 1.85rem; }
  .map-header, .overture-window, .overture-controls { padding-inline: .72rem; }
  .hero h1 { font-size: clamp(2.9rem, 16vw, 3.8rem); }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .overture-slide { animation: none; }
}
