/* Direction B, logo A locked — Sage Service Lead production candidate */
:root {
  --paper: #F7EFEA;
  --glow: #FBE6DC;
  --clay-soft: #E8C4B8;
  --white: #FFFFFF;
  --clay: #C46B4A;
  --clay-text: #9E5236; /* derived darker clay for text and text-bearing buttons (AA 4.7:1+ on paper/glow, 5.65:1 under white) */
  --plum: #5C2E3A;
  --ink: #3A2432;
  --muted: #5C3A48;
  --route-b: #6B5B95;
  --route-c: #3D6B7A;
  --focus: #C46B4A;
  --max: 68rem;
  --radius: 1rem;
  --font-head: "Figtree", system-ui, sans-serif;
  --font-body: "Karla", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* Self-hosted fonts (SIL OFL 1.1, see assets/fonts/OFL.txt) */
@font-face { font-family: "Figtree"; src: url("../assets/fonts/Figtree-VariableFont_wght.ttf") format("truetype"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../assets/fonts/Karla-VariableFont_wght.ttf") format("truetype"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: var(--clay-text); }
:focus-visible,
video:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.site-nav { display: contents; }
.card .card-title { font-size: 1.25rem; font-weight: 650; margin-top: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--plum);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 239, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--clay-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
}
.brand {
  display: inline-flex;
  flex-shrink: 0;
  /* Offsets the clear space built into the kit lockup */
  margin-left: -0.6rem;
}
.brand-lockup { height: 60px; width: auto; }
.nav-toggle {
  display: none;
  background: var(--white);
  border: 1.5px solid var(--clay-soft);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--plum);
  cursor: pointer;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-list a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--plum); }
.nav-cta {
  background: var(--plum);
  color: var(--white) !important;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none !important;
}
.nav-cta:hover { background: var(--ink); color: var(--white) !important; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.25rem);
    background: var(--white);
    border: 1px solid var(--clay-soft);
    border-radius: var(--radius);
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 12px 40px rgba(58, 36, 50, 0.1);
  }
  .nav-list.is-open { display: flex; }
  /* Tap targets: at least 44px on touch layouts */
  .nav-toggle { min-height: 44px; align-items: center; }
  .nav-list { gap: 0; }
  .nav-list li { width: 100%; }
  .nav-list a { display: flex; align-items: center; min-height: 44px; }
  .nav-list a.nav-cta { display: inline-flex; margin-top: 0.35rem; }
  .breadcrumbs { margin-top: 0.25rem; }
  .breadcrumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
  .card h3 a, .post-list h2 a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-list li { margin-bottom: 0; }
  .site-footer p a, .footer-list a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  /* Inline text links: larger hit area, no shift in the text around them */
  main p a:not(.btn), main li a:not(.btn), main td a { padding: 0.7em 0.5em; margin-inline: -0.5em; }
  .breadcrumbs a:not(.btn) { padding: 0; margin-inline: 0; }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--plum);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; }
.lede {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 40rem;
}
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-text);
  margin: 0 0 0.75rem;
}
.placeholder-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--glow);
  border: 1px solid var(--clay-soft);
  border-radius: 0.5rem;
  padding: 0.35rem 0.65rem;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Layout sections */
.hero {
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
}
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 220px; margin: 0 auto; }
}
.hero-figure { width: min(100%, 280px); margin-inline: auto; }
.hero-figure .only-stacked { display: none; }
@media (max-width: 800px) {
  .hero-figure .only-wide { display: none; }
  .hero-figure .only-stacked { display: block; }
}
.section { padding: 3rem 0; }
.section-alt { background: var(--glow); }
.section-plum {
  background: var(--plum);
  color: var(--paper);
}
.section-plum h2, .section-plum h3 { color: var(--paper); }
.section-plum a { color: var(--clay-soft); }
.section-plum .lede, .section-plum p { color: #F7EFEA; opacity: 0.92; }

.grid-2, .grid-3 {
  display: grid;
  gap: 1.25rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .lede { font-size: 1.15rem; }
}

.card {
  background: var(--white);
  border: 1px solid var(--clay-soft);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: 0 8px 28px rgba(58, 36, 50, 0.05);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card a, .prose p { overflow-wrap: anywhere; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--clay-text);
  color: var(--white);
}
.btn-primary:hover { background: var(--plum); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--plum);
  border-color: var(--clay-soft);
}
.btn-ghost:hover { border-color: var(--clay); color: var(--clay-text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.guardrail {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: var(--glow);
  border-left: 4px solid var(--clay);
  padding: 0.9rem 1rem;
  border-radius: 0 0.75rem 0.75rem 0;
  color: var(--ink);
}

.table-wrap { overflow-x: auto; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
table.compare th, table.compare td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--clay-soft);
  vertical-align: top;
}
table.compare th {
  background: var(--plum);
  color: var(--paper);
  font-family: var(--font-head);
}
table.compare tr:last-child td { border-bottom: 0; }

.faq details {
  background: var(--white);
  border: 1px solid var(--clay-soft);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}
.faq summary {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--plum);
  cursor: pointer;
}
.faq details[open] summary { margin-bottom: 0.6rem; }
.faq .answer-lead {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 0.6rem;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1.25rem auto 0;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--clay-text); }

.page-hero { padding: 2rem 0 1rem; }
.prose { max-width: 42rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  position: relative;
  padding: 1rem 1rem 1rem 4rem;
  background: var(--white);
  border: 1px solid var(--clay-soft);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--clay-text);
}

.skyline-band {
  opacity: 0.14;
  pointer-events: none;
  margin-top: 2rem;
}
.skyline-band svg, .skyline-band img { width: 100%; height: auto; }

/* Clay thread: runs under the footbridge art, then along the text it leads to */
.thread-row { gap: 0; }
.thread-figure {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-bottom: 4px solid var(--clay);
  padding-inline: 0.5rem;
}
.thread-figure img { width: 100%; max-width: 380px; }
.thread-content {
  position: relative;
  border-left: 4px solid var(--clay);
  padding: 1.5rem 0 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.thread-content::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--clay);
}
@media (max-width: 800px) {
  .thread-figure img { max-width: 300px; }
  .thread-content::before { top: auto; bottom: 0; }
}

.site-footer {
  background: var(--plum);
  color: #E8C4B8;
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--clay-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
  display: inline-flex;
  margin-left: -0.6rem;
}
.footer-lockup { height: 56px; width: auto; }
.footer-meta {
  font-size: 0.9rem;
  margin-top: 1.5rem;
  opacity: 0.85;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.4rem; }
.footer-list a { text-decoration: none; font-weight: 600; }

.pill {
  display: inline-block;
  background: var(--glow);
  color: var(--plum);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

/* Review-draft content pages: posts, reel, prompts */
.review-banner {
  background: var(--plum);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  padding: 0.55rem 1rem;
  margin: 0;
}
.status-note {
  display: inline-block;
  background: var(--glow);
  color: var(--plum);
  border: 1px solid var(--clay-soft);
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  margin: 0.25rem 0 0;
}
.content-kicker, .slide-label {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.slide-block { border-top: 1px solid var(--clay-soft); padding: 1.25rem 0 0.5rem; }
.slide-block h2.slide-label { line-height: 1.4; }
.slide-block h3 { font-size: 1.4rem; }
.slide-kicker { font-family: var(--font-head); font-weight: 700; color: var(--plum); margin: 0 0 0.25rem; }
.slide-plain-list { list-style: none; padding: 0 !important; }
.slide-block blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 3px solid var(--plum); }
.slide-block .table-wrap { margin-bottom: 1rem; }
.slide-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0;
}
.slide-gallery figure { margin: 0; }
.slide-gallery img { width: 100%; height: auto; border: 1px solid var(--clay-soft); }
.slide-gallery figcaption { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; }
.btn[hidden] { display: none; }
.btn-plum { background: var(--plum); color: var(--white); cursor: pointer; }
.btn-plum:hover { background: var(--ink); color: var(--white); }
.disclaimer-line { font-weight: 600; color: var(--plum); }
.post-list { list-style: none; padding: 0; margin: 0; max-width: 42rem; }
.post-list > li { border-top: 1px solid var(--clay-soft); padding: 1.25rem 0; }
.post-list h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.post-list p { margin: 0 0 0.3rem; }
.reel-video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  aspect-ratio: 1080 / 1920;
  background: var(--glow);
  border: 1px solid var(--clay-soft);
  border-radius: 0.6rem;
}
.prompt-text {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--clay-soft);
  border-radius: 0.6rem;
  padding: 1rem;
  margin: 1rem 0;
  user-select: text;
}
.copy-status { min-height: 1.6em; margin: 0.5rem 0 0; font-weight: 600; color: var(--plum); }
