:root {
  color-scheme: light;
  --bg: #f6f1e8;
  --paper: rgba(255, 252, 246, 0.92);
  --ink: #111315;
  --muted: #5c665f;
  --line: rgba(17, 19, 21, 0.12);
  --accent: #1d6a46;
  --accent-soft: #d8ebdf;
  --warm: #f0d8b8;
  --warm-soft: #f6e8d6;
  --shadow: 0 24px 70px rgba(28, 36, 30, 0.08);
  --max-width: 1180px;
  --display: "Space Grotesk", "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(240, 216, 184, 0.55), transparent 24rem),
    linear-gradient(180deg, #fbf7f0 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 3.2rem 3.2rem;
  opacity: 0.22;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.74), transparent 90%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
a.button,
.button {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

button:hover,
a.button:hover,
.button:hover {
  transform: translateY(-1px);
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(29, 106, 70, 0.22);
  outline-offset: 3px;
}

.site-shell {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.site-nav,
.site-hero,
.site-card,
.site-footer,
.profile-shell,
.profile-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  position: sticky;
  top: 0.75rem;
  z-index: 10;
}

.brand {
  display: grid;
  gap: 0.18rem;
}

.brand-mark {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand-copy {
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.nav-links a {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}

.nav-links a[aria-current="page"] {
  background: rgba(17, 19, 21, 0.06);
  color: var(--ink);
}

.button,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
}

.button {
  background: var(--ink);
  color: white;
}

.button-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.site-main {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.surface-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.surface-pill {
  display: grid;
  gap: 0.28rem;
  padding: 1rem 1.1rem;
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.78);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.surface-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 106, 70, 0.22);
  background: rgba(255, 255, 255, 0.92);
}

.surface-pill strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.surface-label {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.9fr);
  gap: 1.5rem;
  padding: 2.25rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1,
h2,
h3,
.brand-mark,
.status-pill,
.button,
.button-ghost {
  font-family: var(--display);
}

h1 {
  max-width: 11ch;
  margin-bottom: 1rem;
  font-size: clamp(2.9rem, 5vw, 5.3rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.65rem, 2vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.lede,
.section-copy,
.muted-list,
.profile-empty,
.profile-help {
  color: var(--muted);
  line-height: 1.72;
}

.hero-actions,
.cta-row,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.guide-strip,
.proof-strip {
  display: grid;
  gap: 0.9rem;
}

.guide-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-pill,
.proof-pill {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.78);
  box-shadow: var(--shadow);
}

.guide-pill strong,
.proof-pill strong {
  font-family: var(--display);
  font-size: 0.98rem;
  letter-spacing: -0.025em;
  line-height: 1.4;
}

.hero-note,
.cta-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-note {
  padding: 1.2rem;
  background:
    radial-gradient(circle at top right, rgba(29, 106, 70, 0.14), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 252, 246, 0.96));
}

.hero-note-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.hero-note-list li + li {
  margin-top: 0.45rem;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(17rem, 0.95fr);
  gap: 1rem;
}

.spotlight-card {
  min-height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
}

.spotlight-card.dark {
  background:
    radial-gradient(circle at top left, rgba(29, 106, 70, 0.18), transparent 18rem),
    linear-gradient(180deg, rgba(19, 24, 22, 0.96), rgba(30, 37, 33, 0.95));
  color: #f8f3eb;
  border-color: rgba(255, 255, 255, 0.08);
}

.spotlight-card.dark .eyebrow,
.spotlight-card.dark p,
.spotlight-card.dark .section-copy,
.spotlight-card.dark .muted-list {
  color: rgba(235, 241, 237, 0.84);
}

.spotlight-card.dark h3 {
  color: #fffaf2;
}

.cta-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 1rem;
  padding: 1.35rem;
  background:
    radial-gradient(circle at top right, rgba(29, 106, 70, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 240, 229, 0.94));
}

.cta-copy h2 {
  max-width: 16ch;
}

.cta-copy p:last-child {
  margin-bottom: 0;
}

.cta-actions {
  align-self: end;
  justify-content: flex-start;
}

.profile-actions {
  margin-top: -0.25rem;
}

.hero-metrics,
.card-grid,
.triple-grid,
.operator-grid,
.checklist-grid,
.detail-grid,
.schema-grid,
.profile-grid,
.profile-badges {
  display: grid;
  gap: 1rem;
}

.hero-metrics {
  align-content: start;
}

.hero-metrics,
.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.triple-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checklist-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.operator-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.site-card,
.metric-card,
.profile-stat {
  padding: 1.25rem;
}

.site-card,
.metric-card,
.badge-card,
.profile-stat {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.site-card:hover,
.metric-card:hover,
.badge-card:hover,
.profile-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 106, 70, 0.18);
}

.operator-card {
  min-height: 100%;
}

.checklist-card {
  position: relative;
  overflow: hidden;
}

.checklist-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.35rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--accent), #9a5d1b);
  opacity: 0.85;
}

.checklist-card > * {
  position: relative;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.45);
}

.metric-card p,
.site-card p.label,
.profile-stat p {
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric-card strong,
.profile-stat strong {
  font-size: 1.05rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-note {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.site-section {
  display: grid;
  gap: 1rem;
}

.muted-list {
  padding-left: 1.1rem;
}

.muted-list li + li {
  margin-top: 0.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.status-pill.ok {
  background: var(--accent-soft);
  color: var(--accent);
}

.status-pill.warn {
  background: var(--warm-soft);
  color: #9a5d1b;
}

code,
pre {
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
}

code {
  padding: 0.15rem 0.35rem;
  border-radius: 0.45rem;
  background: rgba(17, 19, 21, 0.06);
}

.code-block {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: #131715;
  color: #f5f3ee;
  overflow-x: auto;
  line-height: 1.6;
}

.site-footer {
  margin-top: 1.5rem;
  padding: 1.2rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.profile-shell {
  padding: 2rem;
  display: grid;
  gap: 1.25rem;
}

.profile-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 0.85fr);
}

.profile-panel {
  padding: 1.25rem;
}

.profile-badges {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.badge-card {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.badge-meta,
.detail-list {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.detail-list dt {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-list dd {
  margin: 0 0 0.6rem;
  font-weight: 700;
}

@media (max-width: 960px) {
  .site-shell {
    width: min(var(--max-width), calc(100% - 1.25rem));
  }

  .site-nav {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .site-hero,
  .profile-grid,
  .triple-grid,
  .checklist-grid,
  .operator-grid,
  .spotlight-grid,
  .cta-banner {
    grid-template-columns: 1fr;
  }

  .surface-strip,
  .hero-metrics,
  .card-grid,
  .schema-grid,
  .guide-strip,
  .proof-strip {
    grid-template-columns: 1fr;
  }

  .site-nav,
  .section-heading,
  .site-footer {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(var(--max-width), calc(100% - 1rem));
    padding-top: 0.75rem;
    padding-bottom: 3rem;
  }

  .site-nav,
  .site-hero,
  .site-card,
  .site-footer,
  .profile-shell,
  .profile-panel {
    border-radius: 1.15rem;
  }

  .site-nav,
  .site-footer,
  .site-card,
  .profile-panel {
    padding: 1rem;
  }

  .site-main {
    gap: 1rem;
    margin-top: 1rem;
  }

  .site-hero,
  .profile-shell {
    padding: 1.35rem;
  }

  .site-nav {
    gap: 0.8rem;
  }

  .nav-links {
    flex-wrap: nowrap;
    gap: 0.55rem;
    overflow-x: auto;
    justify-content: flex-start;
    margin: 0 -0.15rem;
    padding: 0 0.15rem 0.15rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.58rem 0.82rem;
    font-size: 0.9rem;
  }

  .brand-copy {
    font-size: 0.84rem;
    max-width: 28ch;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.35rem);
    max-width: none;
    line-height: 0.92;
  }

  h2 {
    font-size: clamp(1.45rem, 7vw, 1.95rem);
  }

  .section-heading {
    flex-direction: column;
    gap: 0.6rem;
  }

  .hero-actions,
  .cta-row,
  .profile-actions,
  .site-card .link-row,
  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions a,
  .cta-row a,
  .profile-actions a,
  .site-card .link-row a {
    width: 100%;
  }

  .button,
  .button-ghost {
    min-height: 2.85rem;
  }

  .metric-card,
  .profile-stat,
  .badge-card,
  .guide-pill,
  .proof-pill,
  .spotlight-card {
    padding: 1rem;
  }

  .guide-strip,
  .proof-strip {
    grid-auto-flow: column;
    grid-auto-columns: minmax(15rem, 82vw);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .guide-strip::-webkit-scrollbar,
  .proof-strip::-webkit-scrollbar {
    display: none;
  }

  .guide-pill,
  .proof-pill {
    scroll-snap-align: start;
  }

  .code-block {
    padding: 0.95rem 1rem;
    font-size: 0.84rem;
    line-height: 1.55;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: calc(100% - 0.75rem);
    padding-top: 0.5rem;
    padding-bottom: 2.5rem;
  }

  .site-nav,
  .site-hero,
  .site-card,
  .site-footer,
  .profile-shell,
  .profile-panel {
    border-radius: 1rem;
  }

  .site-nav,
  .site-footer,
  .site-card,
  .profile-panel {
    padding: 0.9rem;
  }

  .site-hero,
  .profile-shell {
    padding: 1rem;
    gap: 1rem;
  }

  .hero-note,
  .cta-banner {
    padding: 1rem;
    border-radius: 1rem;
  }

  .brand-mark {
    font-size: 0.74rem;
  }

  .brand-copy {
    font-size: 0.8rem;
    max-width: 24ch;
  }

  .eyebrow {
    margin-bottom: 0.7rem;
  }

  .status-pill {
    width: fit-content;
  }
}
