:root {
  color-scheme: light;
  --paper: #f8f6ee;
  --ink: #192e2b;
  --muted: #465b54;
  --line: #ccd4c7;
  --ocean: #192c33;
  --green: #204f44;
  --green-dark: #173d34;
  --fog: #e6ede3;
  --cream: #f9ead0;
  --white: #fffcf2;
  --focus: #9b522d;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body { margin: 0; font: 1rem/1.65 var(--sans); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.wrap { width: min(100% - 6rem, 74rem); margin-inline: auto; }
.section { padding-block: clamp(3.75rem, 8vw, 7.25rem); }
.skip-link {
  position: absolute;
  z-index: 4;
  inset: .5rem auto auto .5rem;
  transform: translateY(-150%);
  padding: .65rem 1rem;
  background: var(--paper);
}
.skip-link:focus { transform: none; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.site-header { min-height: 5.25rem; padding-block: .65rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  font-size: 1.28rem;
  font-weight: 690;
  letter-spacing: -.035em;
  text-decoration: none;
}
.brand img { border-radius: 24%; }
nav { display: flex; align-items: center; gap: clamp(.8rem, 3.25vw, 2.4rem); }
nav a, .header-link { display: flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
nav a:hover, .site-footer a:not(.brand):hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: .3em; }
.header-link {
  padding-inline: .95rem;
  border: 1px solid var(--line);
  border-radius: 3rem;
  color: var(--green-dark);
  font-weight: 620;
}
.header-link:hover { background: var(--fog); }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.051em;
}
h1 { font-size: clamp(3.75rem, 7.8vw, 7.2rem); line-height: .98; }
h2 { font-size: clamp(2.3rem, 5.2vw, 4.35rem); line-height: 1.04; text-wrap: balance; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(37rem, 52vw, 48rem);
  background: var(--ocean);
  color: var(--white);
}
.hero-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 59% 55%;
}
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #14282f 0%, rgba(20,40,47,.93) 19%, rgba(20,40,47,.72) 41%, transparent 78%);
}
.hero-content { padding-block: clamp(3rem, 7vw, 6rem); }
.hero h1 { max-width: 8.5em; }
.hero p {
  max-width: 32ch;
  margin-top: 1.55rem;
  color: #f2f6f0;
  font-size: clamp(1.13rem, 1.8vw, 1.32rem);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  margin-top: 1.8rem;
  padding: .7rem 1.32rem;
  border-radius: 4rem;
  font-weight: 660;
  text-decoration: none;
}
.button-light { background: var(--cream); color: var(--ink); }
.button-light:hover { background: #fff3dc; }
.button-light:focus-visible { outline-color: #fbc784; }

.section-intro { max-width: 32rem; }
.section-intro > p { max-width: 38ch; margin-top: 1.12rem; color: var(--muted); font-size: 1.12rem; }
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.35rem, 4vw, 3.5rem);
  margin-top: clamp(2rem, 4vw, 3.25rem);
}
.feature-list > div { border-top: 1px solid var(--line); padding-top: 1.05rem; }
.feature-list dt { font-size: 1.23rem; font-weight: 680; }
.feature-list dd { max-width: 35ch; margin-top: .5rem; color: var(--muted); }

.example-shell { background: var(--fog); }
.example-layout, .iphone, .questions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.2rem, 7vw, 7.5rem);
  align-items: start;
}
.case-options { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.case-options button {
  min-height: 2.75rem;
  padding: .42rem .9rem;
  cursor: pointer;
  border: 1px solid #a9bbaf;
  border-radius: 2rem;
  color: var(--green-dark);
  background: transparent;
  font-size: .95rem;
  font-weight: 620;
}
.case-options button:hover { border-color: var(--green); }
.case-options button[aria-pressed="true"] { border-color: var(--green); color: var(--white); background: var(--green); }
.case-stage { background: #d6e2d7; border-radius: 1.35rem; padding: clamp(1.1rem, 3.6vw, 2.4rem); }
.case-stage article + article:not([hidden]) { margin-top: 1.3rem; }
.case-stage article[hidden] + article:not([hidden]) { margin-top: 0; }
.case-stage h3 { font-size: 1.15rem; font-weight: 660; margin-bottom: .9rem; }
.dialogue { display: grid; gap: .65rem; }
.turn { width: fit-content; max-width: 43ch; padding: .75rem .95rem; border-radius: .95rem .95rem .95rem .25rem; background: #f9fbf5; }
.turn-user { justify-self: end; border-radius: .95rem .95rem .25rem .95rem; background: var(--green-dark); color: var(--white); }
.turn dt { font-weight: 720; margin-bottom: .22rem; }

.iphone { align-items: center; }
.iphone-screen {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .8rem;
  padding: clamp(1.2rem, 4vw, 2.9rem);
  border-radius: 1.4rem;
  background: radial-gradient(ellipse at 50% 35%, #ebeed7, #d9e5d9 70%);
}
.iphone-screen img {
  width: clamp(10rem, 19vw, 14rem);
  height: auto;
  border: .43rem solid #203c37;
  border-radius: 1.7rem;
  box-shadow: 0 20px 35px -23px #223d36;
}
.iphone-screen figcaption { color: var(--muted); font-size: .9rem; text-align: center; }
.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2.75rem;
  margin-top: .9rem;
  color: var(--green-dark);
  font-weight: 650;
  text-underline-offset: .26em;
}
.site-header .text-link { margin-top: 0; }

.questions {
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
}
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  min-height: 3.6rem;
  padding-block: .8rem;
  cursor: pointer;
  font-weight: 640;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--green-dark); font: 400 1.45rem/1 var(--sans); }
details[open] summary::after { content: "−"; }
details p { max-width: 62ch; padding: 0 2rem 1.1rem 0; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.1rem; }
.site-footer a:not(.brand) { display: flex; align-items: center; min-height: 2.75rem; color: var(--muted); text-decoration: none; }

.prose-page { max-width: 52rem; }
.prose-page h1 { font-size: clamp(2.95rem, 7vw, 5.1rem); }
.prose-page h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.prose-page .intro { margin-top: 1.08rem; font-size: 1.16rem; }
.prose-page section { border-top: 1px solid var(--line); margin-top: 2.25rem; padding-top: 1.25rem; }
.prose-page section p { margin-top: .7rem; }
.prose-page p { max-width: 65ch; color: var(--muted); }

@media (max-width: 57rem) {
  .wrap { width: min(100% - 3rem, 74rem); }
  .hero { min-height: 34rem; }
  .hero h1 { font-size: clamp(3.35rem, 8vw, 5rem); }
  .hero::after { background: linear-gradient(90deg, #14282f 0%, rgba(20,40,47,.9) 28%, rgba(20,40,47,.65) 49%, transparent 91%); }
}

@media (max-width: 42rem) {
  .wrap { width: min(100% - 2.5rem, 74rem); }
  .site-header { flex-wrap: wrap; min-height: auto; gap: .35rem .75rem; padding-block: .55rem; }
  nav { order: 3; flex-basis: 100%; justify-content: space-between; gap: .45rem; border-top: 1px solid var(--line); }
  nav a, .header-link { font-size: .92rem; }
  .header-link { padding-inline: .65rem; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-image { position: static; z-index: auto; order: 1; width: 100%; height: auto; aspect-ratio: 1.35; object-position: 65% 50%; }
  .hero::after, .desktop-break { display: none; }
  .hero-content { padding-block: 2.7rem 2.5rem; }
  .hero h1 { font-size: clamp(2.95rem, 11.5vw, 4.2rem); }
  .hero p { font-size: 1.08rem; margin-top: 1.1rem; }
  .feature-list, .example-layout, .iphone, .questions { grid-template-columns: minmax(0, 1fr); }
  .feature-list dd { max-width: 48ch; }
  .example-layout, .iphone, .questions { gap: 1.6rem; }
  .iphone-screen { grid-row: 2; }
  .iphone-screen img { width: 12rem; max-width: 78%; }
}
