@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter_400Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Inter_600SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Inter_700Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Instrument Serif';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/InstrumentSerif_400Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/InstrumentSerif_400Regular_Italic.ttf') format('truetype');
}

:root {
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ivory: #f0eee6;
  --card: #faf8f2;
  --sand: #f5e8d3;
  --rose: #f1dfd8;
  --lavender: #e9dfdb;
  --blue: #e4e3ee;
  --peach: #fbede6;
  --ink: #1f1b12;
  --muted: #6e665a;
  --border: #d8cfbc;
  --terracotta: #e8623a;
  --terracotta-deep: #c9491f;
  --terracotta-press: #a33c1b;
  --d1: #e8623a;
  --d2: #d9a05b;
  --d3: #c98b8b;
  --d4: #8c93c4;
  --d5: #a58d7a;
  --shadow: 0 1px 2px rgb(31 27 18 / 6%), 0 12px 32px rgb(31 27 18 / 8%);
  --shadow-lift: 0 2px 4px rgb(31 27 18 / 8%), 0 24px 60px rgb(31 27 18 / 16%);
  --gutter: 20px;
}

* {
  box-sizing: border-box;
}

html {
  /* Base scale for every rem size on the site. */
  font-size: 15px;
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--terracotta-deep);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 5.4vw, 4.5rem);
}

h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.1rem);
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  color: var(--terracotta-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-head-compact {
  margin-bottom: 28px;
}

h2.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.6;
}

.section-lede {
  color: var(--muted);
  font-size: 1.15rem;
  margin-top: 24px;
  max-width: 36em;
}

.section-lede + .section-lede {
  margin-top: 12px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--terracotta-deep);
  box-shadow: inset 0 -3px 0 var(--terracotta-press);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.button:hover {
  background: #b8421c;
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(1px);
  box-shadow: none;
}

.button-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.92rem;
  box-shadow: none;
}

.button-large {
  min-height: 58px;
  padding: 0 34px;
  font-size: 1.05rem;
}

a:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(240 238 230 / 85%);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgb(216 207 188 / 60%);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header nav a:not(.button) {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

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

/* Hero */

.hero {
  padding: 56px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 48px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px var(--peach);
}

.lede {
  color: var(--muted);
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  line-height: 1.55;
  margin-top: 28px;
  max-width: 31em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 8px 40px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stats div {
  display: flex;
  flex-direction: column-reverse;
}

.stats dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.stats dd {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1.1;
}

/* Hero visual: the Progress screen with a graduation card beside it */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
}

.blob {
  position: absolute;
  inset: 4% 0 4% 6%;
  background: var(--sand);
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
}

.phone {
  position: relative;
  width: 264px;
  padding: 10px;
  border-radius: 46px;
  background: var(--ink);
  box-shadow: var(--shadow-lift);
}

.screen {
  position: relative;
  overflow: hidden;
  height: 520px;
  padding: 14px 16px 0;
  border-radius: 37px;
  background: var(--ivory);
}

.status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 10px 16px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-icons {
  display: flex;
  gap: 4px;
}

.status-icons i {
  width: 14px;
  height: 8px;
  border-radius: 2px;
  background: var(--ink);
}

.screen-kicker {
  color: var(--muted);
  font-size: 0.72rem;
}

.screen-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.screen-section {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 16px 0 8px;
}

.activities {
  display: grid;
  gap: 8px;
}

.activities li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 1px 2px rgb(31 27 18 / 6%);
}

.activities img {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--sand);
  object-fit: cover;
}

.a-copy {
  flex: 1;
  min-width: 0;
}

.a-copy b {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

.a-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.35;
}

.a-copy .m-done {
  color: var(--terracotta-deep);
  font-weight: 700;
}

.bar {
  display: block;
  height: 4px;
  margin-top: 6px;
  border-radius: 4px;
  background: var(--sand);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--terracotta);
}

.m-state {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 50%;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.m-state-done {
  border-color: var(--terracotta-deep);
  background: var(--terracotta-deep);
}

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  padding: 14px 24px 22px;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.tabbar i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--border);
}

.tabbar i.on {
  background: var(--terracotta-deep);
}

.celebration {
  position: absolute;
  left: -24px;
  bottom: -6px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 250px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-lift);
}

.medal {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--terracotta-deep);
  box-shadow: 0 0 0 5px var(--peach);
  color: #fff;
  font-weight: 700;
}

.celebration-label {
  color: var(--terracotta-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.celebration-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.2;
  margin: 2px 0 4px;
}

.celebration-meta {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Domains */

.domains {
  padding: 84px 0;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.domain-list {
  border-top: 1px solid var(--border);
}

.domain {
  border-bottom: 1px solid var(--border);
}

.domain summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
}

.domain summary::-webkit-details-marker,
.spec summary::-webkit-details-marker {
  display: none;
}

.domain summary:hover .domain-name {
  color: var(--terracotta-deep);
}

.domain summary:focus-visible,
.spec summary:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
  border-radius: 8px;
}

.domain-name {
  flex: 1;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  line-height: 1.1;
  transition: color 0.15s ease;
}

.domain-count {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.chevron {
  flex: none;
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.chevron::before,
.chevron::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.chevron::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.domain[open] .chevron::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* An open domain scrolls inside a fixed-height panel instead of stretching
   the page. */
.domain-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 20px;
  max-height: min(520px, 65vh);
  margin: 0 0 28px 32px;
  padding: 4px 12px 40px 0;
  overflow-y: auto;
  /* Fade the bottom edge so the panel reads as scrollable. */
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 calc(100% - 48px),
    transparent
  );
  mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.domain-body:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 4px;
  border-radius: 12px;
}

.subdomain {
  padding: 22px 24px 8px;
  border-radius: 20px;
  background: var(--ivory);
}

.subdomain h3 {
  margin-bottom: 8px;
  color: var(--terracotta-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skills li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 12px 0 14px;
}

.skills li + li {
  border-top: 1px solid var(--border);
}

.skill-name {
  font-weight: 600;
  line-height: 1.35;
}

.skill-age {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  padding-top: 2px;
}

.skill-description {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.d {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.d1 {
  background: var(--d1);
}

.d2 {
  background: var(--d2);
}

.d3 {
  background: var(--d3);
}

.d4 {
  background: var(--d4);
}

.d5 {
  background: var(--d5);
}

/* Pillars */

.pillars {
  padding: 88px 0 80px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Each pillar shares the grid's rows, so visuals, numbers, headings and copy
   line up across columns whatever the height of each visual. */
.pillar {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: start;
}

.pillar-visual {
  display: grid;
  place-items: center;
  min-height: 230px;
  margin-bottom: 28px;
  padding: 28px;
  border-radius: 24px;
  background: var(--sand);
}

.pillar:nth-child(2) .pillar-visual {
  background: var(--blue);
}

.pillar:nth-child(3) .pillar-visual {
  background: var(--rose);
}

.pillar-number {
  color: var(--terracotta-deep);
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 12px;
}

.pillar h3 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.08;
  margin-bottom: 12px;
}

.pillar > p:last-child {
  color: var(--muted);
}

.spec,
.week,
.target {
  width: 100%;
  max-width: 280px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.spec-title,
.target-name {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
}

.spec-meta {
  color: var(--muted);
  font-size: 0.72rem;
  margin: 2px 0 12px;
}

.spec {
  max-width: 340px;
}

.spec details {
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

.spec summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  list-style: none;
}

.spec summary::before {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--terracotta-deep);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.spec details[open] summary::before {
  content: '−';
}

.spec summary:hover {
  color: var(--terracotta-deep);
}

.spec details p {
  margin: 0 0 8px 28px;
  line-height: 1.5;
}

.spec-note {
  color: var(--muted);
}

.week-label,
.target-next span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.week-label {
  margin-bottom: 12px;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  justify-items: center;
}

.week-grid span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.week-grid i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}

.target-dots {
  display: flex;
  gap: 8px;
  margin: 14px 0 8px;
}

.target-dots span {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-radius: 50%;
}

.target-dots .on {
  border-color: var(--terracotta-deep);
  background: var(--terracotta-deep);
}

.target-meta {
  color: var(--muted);
  font-size: 0.75rem;
}

.target-activity,
.target-rule {
  color: var(--muted);
  font-size: 0.72rem;
}

.target-activity {
  margin-top: 2px;
}

.target-prompt {
  margin-top: 10px;
  font-size: 0.8rem;
  line-height: 1.4;
}

.target-rule {
  margin-top: 2px;
}

.target-next {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 0.78rem;
  line-height: 1.35;
}

.target-next span {
  margin-bottom: 4px;
}

/* How it works */

.how {
  padding: 80px 0 88px;
  border-top: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  padding: 28px 24px 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
}

.step-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 32px;
  border-radius: 16px;
  background: var(--peach);
  color: var(--terracotta-deep);
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
}

.step h3 {
  margin-bottom: 0;
}

/* Founding families */

.founding {
  padding-bottom: 112px;
}

.founding-panel {
  position: relative;
  overflow: hidden;
  padding: 64px 52px;
  border-radius: 40px;
  background: var(--ink);
  color: var(--ivory);
}

.founding-copy {
  position: relative;
  max-width: 640px;
}

.founding-panel .eyebrow {
  color: var(--terracotta);
}

.founding-panel h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  margin-bottom: 28px;
}

.founding-copy > p {
  color: rgb(240 238 230 / 74%);
  font-size: 1.1rem;
}

.beliefs {
  display: grid;
  gap: 14px;
  margin: 24px 0 28px;
}

.beliefs li {
  position: relative;
  padding-left: 34px;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
}

.beliefs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 16px;
  height: 2px;
  background: var(--terracotta);
}

.founding-panel .button {
  margin-top: 36px;
  box-shadow: none;
}

.founding-sun {
  position: absolute;
  right: -48px;
  bottom: -48px;
  width: 260px;
  opacity: 0.9;
}

/* Application form */

.apply {
  padding-bottom: 112px;
}

.apply-form {
  display: grid;
  gap: 24px;
  max-width: 680px;
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.apply-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.apply-field {
  display: grid;
  gap: 8px;
}

.apply-field > span {
  font-weight: 600;
}

.apply-field em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

.apply-field small {
  color: var(--muted);
  font-size: 0.9rem;
}

.apply-field input,
.apply-field select,
.apply-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.apply-field textarea {
  resize: vertical;
}

.apply-field input:focus-visible,
.apply-field select:focus-visible,
.apply-field textarea:focus-visible,
.apply-consent input:focus-visible,
.apply-form button:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
}

.apply-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.apply-consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--terracotta-deep);
}

.apply-privacy {
  color: var(--muted);
  font-size: 0.92rem;
}

.apply-form .button {
  justify-self: start;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Bots fill this field; people never see it. */
.apply-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Shown only when the API redirects back to #apply-error. */
.apply-error {
  display: none;
  max-width: 680px;
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--rose);
}

.apply-error:target {
  display: block;
}

/* About */

.about {
  padding: 0 0 112px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px 72px;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 18px;
  font-size: 1.2rem;
  line-height: 1.6;
}

.about-copy p:last-child {
  color: var(--muted);
}

/* About page */

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

.site-header nav a[aria-current='page'] {
  color: var(--ink);
}

.page-hero {
  padding: 72px 0 56px;
}

.page-hero h1 {
  max-width: 13em;
  font-size: clamp(2.6rem, 5vw, 4.1rem);
}

.convictions {
  padding: 88px 0 104px;
}

.conviction {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 16px 72px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.conviction:first-of-type {
  margin-top: 24px;
}

.conviction h3 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-wrap: balance;
}

.conviction-copy {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 1.15rem;
}

.conviction-copy sup {
  font-size: 0.65em;
  line-height: 0;
}

.conviction-copy sup a {
  margin-left: 1px;
  color: var(--terracotta-deep);
  text-decoration: none;
}

.sources {
  display: grid;
  gap: 6px;
  max-width: 48em;
  padding: 24px 0 0 1.4em;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  list-style: decimal;
}

.sources li {
  scroll-margin-top: 96px;
}

.story {
  padding: 88px 0 120px;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.story-copy {
  display: grid;
  gap: 18px;
  max-width: 44em;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.15rem;
}

.logo-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px 56px;
  margin: 64px 0 56px;
  padding: 40px 0;
  border-block: 1px solid var(--border);
}

.logo-wall li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  /* Logo sizes in about.html give every wordmark the same ~14px cap height;
     this matches Inter's cap height to it. */
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.logo-wall img {
  max-width: 100%;
  height: auto;
}

.story-cta {
  display: flex;
  justify-content: center;
}

@media (max-width: 960px) {
  .page-hero {
    padding: 56px 0 48px;
  }

  .convictions {
    padding: 72px 0 80px;
  }

  .conviction {
    grid-template-columns: 1fr;
    padding: 32px 0;
  }

  .story {
    padding: 72px 0 88px;
  }
}

@media (max-width: 600px) {
  .logo-wall {
    gap: 28px 36px;
    margin: 48px 0 40px;
    padding: 32px 0;
  }

  /* Scale the whole wall so the logos keep matching lettering sizes. */
  .logo-wall li {
    zoom: 0.8;
  }
}

/* Blog */

.posts {
  padding: 8px 0 120px;
}

.post-list {
  display: grid;
  gap: 20px;
}

.post-card {
  display: grid;
  gap: 12px;
  padding: 36px 40px;
  border-radius: 24px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: box-shadow 160ms ease;
}

.post-card:hover {
  box-shadow: var(--shadow-lift);
}

.post-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.post-card p {
  max-width: 44em;
  color: var(--muted);
}

.post-head {
  padding-top: 96px;
  padding-bottom: 48px;
}

.post-head h1 {
  max-width: 16em;
  font-size: clamp(2.6rem, 5vw, 4rem);
}

.post-head .eyebrow a {
  color: inherit;
  text-decoration: none;
}

.prose {
  display: grid;
  gap: 22px;
  max-width: 40em;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  font-size: 1.12rem;
  line-height: 1.7;
}

.prose ol {
  padding-left: 1.4em;
  list-style: decimal;
}

.prose li + li {
  margin-top: 6px;
}

.prose .pull {
  padding-left: 20px;
  border-left: 3px solid var(--terracotta);
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.25;
}

.prose .pull strong {
  font-weight: 400;
  font-style: italic;
  color: var(--terracotta-deep);
}

.table-scroll {
  overflow-x: auto;
}

.prose table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
}

.prose th,
.prose td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.prose thead th {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.prose tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.post-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  max-width: 40em;
  margin: 56px 0 120px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .post-card {
    padding: 28px 22px;
  }

  .post-head {
    padding-top: 56px;
    padding-bottom: 32px;
  }

  .prose {
    font-size: 1.05rem;
  }
}

/* Footer */

.site-footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer-grid .brand {
  margin-bottom: 14px;
}

.disclaimer {
  max-width: 40em;
}

.footer-meta {
  display: grid;
  gap: 6px;
  align-content: start;
  text-align: right;
}

/* Medium screens */

@media (max-width: 1040px) {
  .domain-body {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

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

@media (max-width: 960px) {
  .hero {
    padding: 48px 0 72px;
  }

  .hero-grid,
  .about-grid,
  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .pillar-grid {
    gap: 56px;
  }

  .domains,
  .pillars,
  .how {
    padding: 68px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .founding-panel {
    padding: 72px 40px;
  }
}

/* Phones */

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }

  /* The links don't fit beside the brand and button, so they wrap onto a
     second row: brand and button first, then the zero-height ::after forces
     the break before the links. */
  .header-row {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 20px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header-row::after {
    content: '';
    order: 2;
    flex-basis: 100%;
  }

  .site-header nav {
    display: contents;
  }

  .site-header nav .button {
    order: 1;
    margin-left: auto;
  }

  .site-header nav a:not(.button) {
    order: 3;
    padding: 10px 0 2px;
  }

  .stats {
    grid-template-columns: repeat(2, auto);
    gap: 16px 40px;
  }

  .hero-visual {
    min-height: 0;
    padding: 16px 0 96px;
  }

  .blob {
    inset: 2% -8% 0;
  }

  .phone {
    width: 250px;
  }

  .screen {
    height: 490px;
  }

  .celebration {
    left: auto;
    right: 0;
    bottom: 16px;
    width: 236px;
  }

  .domain summary {
    flex-wrap: wrap;
    gap: 4px 14px;
  }

  .domain-name {
    flex-basis: calc(100% - 80px);
  }

  .domain-count {
    order: 4;
    flex-basis: 100%;
    padding-left: 26px;
  }

  .subdomain {
    padding: 18px 16px 4px;
  }

  .skills li {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .founding-panel {
    padding: 56px 22px;
    border-radius: 28px;
  }

  .beliefs li {
    font-size: 1.25rem;
  }

  .founding-panel .button-large {
    width: 100%;
  }

  .founding-sun {
    width: 150px;
    right: -50px;
    bottom: -50px;
  }

  .about {
    padding-bottom: 80px;
  }

  .apply-form {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .apply-row {
    grid-template-columns: 1fr;
  }

  .apply-form .button {
    justify-self: stretch;
  }

  .footer-meta {
    text-align: left;
  }
}
