/* andrewlaville.com — design B2a ("flow lines"). Light only. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --hero-bg: #f8fafd;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --text: #0f1a2b;
  --text-body: #24303f;
  --text-soft: #3a4658;
  --muted: #586577;
  --rule: #dce3ee;
  --rule-soft: #e3e9f2;
  --chip-rule: #c9d7ff;
  --button-rule: #c6d0de;
  --accent: #1f5eff;
  --accent-hover: #1442c2;
  --highlight: #ea580c; /* "find the bottleneck" only; 3.4:1, large text only */
  --marker: #fde047; /* highlighter behind "get your team using it."; navy text on it is 13:1 */
  --accent-tint: rgba(31, 94, 255, 0.08);
  --on-accent: #ffffff;
  --shadow-card: 0 1px 2px rgba(15, 26, 43, 0.04), 0 16px 40px -24px rgba(31, 94, 255, 0.22);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 80rem; /* 1280px */
  --gutter: clamp(1rem, 4vw, 2rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

h1,
h2,
h3,
p,
blockquote,
figure,
dl,
dd {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 10;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--on-accent);
}

/* Header */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 2rem;
  padding-block: 1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.site-nav a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-soft);
  text-decoration: none;
}

.site-nav a:not(.button):hover {
  color: var(--accent);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.375rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.button svg {
  flex: none;
}

.button-sm {
  min-height: 44px;
  padding: 0 1.125rem;
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.button-secondary {
  border-color: var(--button-rule);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button-light {
  background: var(--surface);
  color: var(--text);
}

.button-light:hover {
  background: #eef3ff;
  color: var(--text);
}

.button-outline-light {
  border-color: var(--on-accent);
  color: var(--on-accent);
}

.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--on-accent);
}

/* Hero */

.hero {
  background: var(--hero-bg);
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem 3.5rem;
  padding-top: 5.5rem;
  padding-bottom: 3.5rem;
}

.hero-text {
  flex: 999 1 37.5rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.chip {
  align-self: flex-start;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--chip-rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font: 400 0.75rem/1.5 var(--mono);
  letter-spacing: 0.04em;
}

/* Bold role label above the headline: the first thing the eye lands on */
.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem 1rem;
}

.kicker-label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.6875rem 1.25rem 0.6875rem 0.875rem;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: clamp(0.9375rem, 1.35vw, 1.1875rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px -12px rgba(31, 94, 255, 0.6);
}

.kicker-label svg {
  flex: none;
}

.kicker-note {
  color: var(--muted);
  font: 400 0.8125rem/1.4 var(--mono);
  letter-spacing: 0.04em;
}

.headline {
  max-width: 22ch;
  font-size: clamp(2.25rem, 4.6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.headline-accent {
  color: var(--accent);
}

.headline-highlight {
  color: var(--highlight);
}

/* Highlighter-pen band behind the lower part of the words, kept on every wrapped line */
.headline-marker {
  color: var(--text);
  background: linear-gradient(transparent 52%, var(--marker) 52%, var(--marker) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.06em;
}

.lede {
  max-width: 64ch;
  color: var(--text-soft);
  font-size: 1.125rem;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* From tablet width up, text left and diagram + photo right, always side by side.
   Phones keep the flex layout below: photo above the headline, diagram hidden. */
@media (min-width: 45.0625rem) {
  .hero-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 26.25rem);
    column-gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }

  .hero-media .hero-diagram {
    width: 80%;
  }

  .hero-media .hero-photo {
    width: min(17.5rem, 100%);
  }
}

.hero-media {
  flex: 1 1 21.25rem;
  max-width: 26.25rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.hero-diagram {
  display: block;
  width: 100%;
  height: auto;
}

.hero-photo {
  position: relative;
  width: min(20rem, 100%);
  display: flex;
  flex-direction: column;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border: 6px solid var(--surface);
  border-radius: 24px;
  background: var(--rule-soft);
  box-shadow: 0 2px 4px rgba(15, 26, 43, 0.05), 0 28px 56px -28px rgba(31, 94, 255, 0.4);
}

.name-card {
  position: relative;
  align-self: flex-start;
  margin: -1.875rem 0 0 -0.875rem;
  padding: 0.625rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 28px -14px rgba(15, 26, 43, 0.25);
  display: flex;
  flex-direction: column;
  width: max-content;
  white-space: nowrap;
  line-height: 1.3;
}

.name-card-name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.name-card-role {
  color: var(--accent);
  font: 400 0.75rem/1.3 var(--mono);
}

.name-card-name + .name-card-role {
  margin-top: 0.125rem;
}

/* Numbers */

.stats-wrap {
  padding-bottom: 3.5rem;
}

.stats-wrap .section-label {
  margin-bottom: 0.875rem;
}

.stats-wrap .availability {
  margin-top: 1.125rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13.5rem, 100%), 1fr));
  gap: 1px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  background: var(--rule);
  box-shadow: 0 16px 40px -28px rgba(31, 94, 255, 0.35);
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.375rem;
  padding: 1.5rem 1.5rem 1.375rem;
  background: var(--surface);
}

.stat dt {
  color: var(--muted);
  font-size: 0.875rem;
}

.stat dd {
  color: var(--accent);
  font: 500 clamp(1.5rem, 2.1vw, 1.875rem)/1.15 var(--mono);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Sections */

.section {
  border-top: 1px solid var(--rule);
}

.section-white {
  background: var(--surface);
}

.section-tint {
  background: var(--bg);
}

.section-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-block: 6rem;
}

.section-label {
  color: var(--muted);
  font: 500 0.8125rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-count {
  color: var(--muted);
  font: 400 0.8125rem/1.4 var(--mono);
}

/* Testimonials */

.testimonials .section-stack {
  padding-block: 5rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(28.75rem, 100%), 1fr));
  gap: 1.25rem;
}

.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface-soft);
}

.quote blockquote {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.quote figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.quote-person {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.quote-name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.quote-role {
  color: var(--muted);
  font-size: 0.875rem;
}

.tag {
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  font: 400 0.75rem/1.4 var(--mono);
}

/* Case studies */

.case {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.25rem, 2.6vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.case-featured {
  gap: 2rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.case-header {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.case-featured .case-header {
  gap: 0.75rem;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  color: var(--muted);
  font: 400 0.8125rem/1.4 var(--mono);
}

.case-num {
  color: var(--accent);
  font-weight: 500;
}

.badge {
  padding: 0.1875rem 0.625rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 500 0.75rem/1.4 var(--mono);
}

.case-title {
  scroll-margin-top: 6rem; /* in-page links land with the card's top in view */
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.case-featured .case-title {
  max-width: 26ch;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.case-sub {
  max-width: 60ch;
  color: var(--text-soft);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.45;
  text-wrap: pretty;
}

.case-byline {
  color: var(--muted);
  font: 400 0.8125rem/1.5 var(--mono);
}

.case-pair {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(32.5rem, 100%), 1fr));
  gap: 1.75rem;
}

/* Video */

.video-window {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.video-box {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #eef3fb;
}

.video-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  padding: 0.75rem 1.125rem;
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  color: var(--muted);
  font: 400 0.75rem/1.4 var(--mono);
}

.video {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.video img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.video-play-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 14px 34px -12px rgba(31, 94, 255, 0.55);
  transition: transform 0.15s ease;
}

.video:hover .video-play-icon {
  transform: scale(1.05);
}

.video-play-label {
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
}

.video-caption {
  color: var(--text-body);
  font-size: 0.875rem;
}

.video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.media-caption {
  color: var(--muted);
  font-size: 0.875rem;
}

/* Screenshots */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16.25rem, 100%), 1fr));
  gap: 1rem;
}

.shot {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--rule-soft);
}

.shot figcaption {
  color: var(--muted);
  font-size: 0.875rem;
}

.case:not(.case-featured) .shots {
  grid-template-columns: repeat(auto-fit, minmax(min(12.5rem, 100%), 1fr));
  gap: 0.75rem;
}

.case:not(.case-featured) .shot {
  gap: 0.5rem;
}

.case:not(.case-featured) .shot img {
  aspect-ratio: 4 / 3;
}

.case:not(.case-featured) .shot figcaption {
  font-size: 0.8125rem;
}

/* Hero availability strip */

.availability {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font: 400 0.8125rem/1.5 var(--mono);
}

.availability li:not(:last-child)::after {
  content: "·";
  margin-inline: 0.625rem;
  color: var(--muted);
}

/* What you get */

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface-soft);
}

.benefit-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.benefit p {
  color: var(--text-body);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

.closing-line {
  max-width: 40ch;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Section intros */

.section-intro {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.intro-line {
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 1.125rem;
  text-wrap: pretty;
}

/* Case study bodies */

.case-body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.case-featured .case-body {
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-soft);
}

/* Wide screens: the demo video floats right at reduced size; the case text runs beside it, then full width below */
@media (min-width: 60rem) {
  .case-featured .case-body {
    display: block;
  }

  .case-featured .case-body > * + * {
    margin-top: 2.25rem;
  }

  .case-featured .case-body > .video-window + script + * {
    margin-top: 0;
  }

  .case-featured .video-window {
    float: right;
    width: min(42%, 32rem);
    margin: 0 0 1.75rem 2.5rem;
  }

  .case-featured .case-block {
    display: block;
  }

  .case-featured .block-label {
    margin: 0 0 0.875rem;
  }

  .case-featured .for-you {
    display: flow-root; /* keeps its tinted background from running behind the video */
  }
}

.case-block {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.case-block > p {
  max-width: 72ch;
  color: var(--text-body);
  text-wrap: pretty;
}

.case:not(.case-featured) .case-block > p {
  font-size: 0.9375rem;
}

.block-label {
  color: var(--accent);
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-note {
  padding: 0.875rem 1.125rem;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--text-body);
  font-size: 0.9375rem;
}

/* Timeline: when + what, side by side; stacks when narrow */

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding-block: 0.875rem;
  border-top: 1px solid var(--rule-soft);
}

.timeline li:last-child {
  border-bottom: 1px solid var(--rule-soft);
}

.timeline .when {
  flex: 0 0 7rem;
  padding-top: 0.125rem;
}

/* Longer step names: label above its text instead of in a side column */
.timeline-stacked .when {
  flex: 1 1 100%;
  padding-top: 0;
}

.timeline p {
  flex: 1 1 20rem;
  min-width: 0;
  max-width: 72ch;
  color: var(--text-body);
  text-wrap: pretty;
}

.when {
  color: var(--accent);
  font: 500 0.8125rem/1.5 var(--mono);
  letter-spacing: 0.02em;
}

/* Results: measure + result rows */

.results {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule-soft);
}

.results > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 1.5rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--rule-soft);
}

.results dt {
  flex: 0 0 9.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.results dd {
  flex: 1 1 14rem;
  min-width: 0;
  color: var(--text);
  font-weight: 500;
  text-wrap: pretty;
}

.case:not(.case-featured) .results dd {
  font-size: 0.9375rem;
}

/* "For you, this means" callout */

.for-you {
  max-width: 80ch;
  padding: 1.125rem 1.375rem;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--text-body);
  text-wrap: pretty;
}

.for-you strong {
  color: var(--text);
}

.case:not(.case-featured) .for-you {
  font-size: 0.9375rem;
}

/* First ten weeks */

.phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13.5rem, 100%), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phases li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.375rem;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface-soft);
}

.phases p {
  color: var(--text-body);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

/* Track record */

.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(30rem, 100%), 1fr));
  gap: 1.25rem;
}

.record {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.record-where {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.record-detail {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.record-detail > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.record-detail dt {
  color: var(--accent);
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.record-detail dd {
  color: var(--text-body);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

.credentials {
  color: var(--text-soft);
  font: 400 0.875rem/1.6 var(--mono);
}

/* UAE */

.prose {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 68ch;
}

.prose p {
  color: var(--text-soft);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

.prose .prose-lead {
  color: var(--text);
  font-size: clamp(1.1875rem, 1.8vw, 1.375rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.targeting {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list .tag {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

/* Contact */

.contact {
  padding-bottom: 4rem;
  background: var(--surface);
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 2.5rem;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  border-radius: 24px;
  background: var(--accent);
  color: var(--on-accent);
}

.contact-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.contact-title {
  font-size: clamp(1.875rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.contact-email {
  color: var(--on-accent);
  font: 400 1.0625rem/1.5 var(--mono);
  overflow-wrap: anywhere;
}

.contact-email:hover {
  color: var(--on-accent);
  text-decoration-thickness: 2px;
}

.contact-text {
  flex: 1 1 32rem;
}

.contact-lede {
  max-width: 56ch;
  font-size: 1.0625rem;
  text-wrap: pretty;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0.375rem 0 0;
  padding: 0;
  list-style: none;
  font: 400 0.9375rem/1.6 var(--mono);
}

.contact-list a {
  color: var(--on-accent);
  overflow-wrap: anywhere;
}

.contact-list a:hover {
  color: var(--on-accent);
  text-decoration-thickness: 2px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--surface);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem 2.5rem;
  color: var(--muted);
  font: 400 0.8125rem/1.5 var(--mono);
}

/* 404 */

.notfound {
  display: flex;
  align-items: center;
  min-height: 100vh;
  background: var(--hero-bg);
}

.notfound .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  padding-block: 4rem;
}

/* Phones: photo under the headline, diagram hidden */

@media (max-width: 45rem) {
  .site-header {
    display: none;
  }

  .hero-row {
    row-gap: 1.75rem;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  /* Unwrap the text column so the photo can sit between the headline and the lede */
  .hero-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-text {
    display: contents;
  }

  .kicker {
    order: 1;
  }

  .headline {
    order: 2;
  }

  .hero-media {
    order: 3;
    flex: none;
    align-items: flex-start;
  }

  .lede {
    order: 4;
  }

  .actions {
    order: 5;
  }

  .hero-diagram {
    display: none;
  }

  .hero-media:not(:has(.hero-photo)) {
    display: none;
  }

  .hero-photo {
    width: 10.5rem;
  }

  .site-nav a:not(.button) {
    display: none;
  }

  .availability {
    flex-direction: column;
  }

  .availability li:not(:last-child)::after {
    content: none;
  }

  .stats-wrap {
    padding-bottom: 2.5rem;
  }

  .section-stack {
    padding-block: 4rem;
  }
}

@media print {
  .site-nav,
  .actions,
  .contact .actions {
    display: none;
  }
}
