:root {
  color-scheme: light;
  --bg: #f7f7f3;
  --surface: #ffffff;
  --surface-strong: #eef1ee;
  --ink: #17201c;
  --muted: #5b665f;
  --line: #d8ded8;
  --accent: #2d6b5f;
  --accent-strong: #174f47;
  --blue: #285f89;
  --gold: #91641f;
  --blocked: #9d2f2f;
  --review: #6e5b12;
  --shadow: 0 16px 36px rgba(23, 32, 28, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #b8872e;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 243, 0.95);
  backdrop-filter: blur(12px);
}

.header-inner,
main,
.blog-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.79rem;
}

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

.nav-links a,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--surface-strong);
}

.button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

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

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

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

h1,
h2,
h3,
p,
li,
dd,
span,
strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.5rem, 6.8vw, 5.45rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero {
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.hero-copy {
  max-width: 780px;
}

.status-pill,
.eyebrow,
.post-meta,
.role-tag {
  margin: 0 0 0.9rem;
  color: var(--accent-strong);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.release-label {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(110, 91, 18, 0.28);
  background: #fff7d6;
  color: var(--review);
}

.public-safe-label,
.tracking-disclosure {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tracking-disclosure {
  border-color: rgba(45, 107, 95, 0.28);
  background: #edf7f4;
  color: var(--accent-strong);
}

.status-review {
  color: var(--review);
}

.lead {
  max-width: 64ch;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

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

.status-panel,
.surface,
.model-grid article,
.team-grid article,
.post-preview-grid article,
.post-card,
.article-shell,
.blog-note {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.status-panel {
  padding: 1.25rem;
}

.status-panel h2 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.state-list {
  margin: 0;
}

.state-list div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.state-list div:first-child {
  border-top: 0;
}

.state-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.state-list dd {
  margin: 0;
  font-weight: 900;
}

.band {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
}

.surface {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 1.5rem;
}

.section-heading p:not(.eyebrow) {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.model-grid,
.team-grid,
.post-preview-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

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

.model-grid article,
.team-grid article,
.post-preview-grid article,
.post-card {
  padding: 1.1rem;
}

.model-grid p,
.team-grid p,
.post-preview-grid p,
.post-card p {
  margin: 0;
  color: var(--muted);
}

.post-preview-grid a,
.post-card a,
.article-nav a {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 900;
  color: var(--accent-strong);
}

.loop-visual {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.loop-visual div {
  min-width: 0;
  padding: 1rem;
  background: #fff;
}

.loop-visual span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.8rem;
  background: var(--surface-strong);
  color: var(--blue);
  border: 1px solid var(--line);
  font-weight: 900;
}

.loop-visual strong {
  display: block;
  margin-bottom: 0.4rem;
}

.loop-visual p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.role-tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--blue);
}

.setup-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.setup-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.85rem;
  padding: 1rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.step-number {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  font-weight: 900;
  background: #fff;
}

.setup-list p {
  margin: 0;
  color: var(--muted);
}

.gate-table {
  border: 1px solid var(--line);
  background: #fff;
}

.gate-row {
  display: grid;
  grid-template-columns: 0.8fr 0.65fr 1.25fr;
  border-top: 1px solid var(--line);
}

.gate-row:first-child {
  border-top: 0;
}

.gate-row span {
  min-width: 0;
  padding: 0.95rem;
  border-left: 1px solid var(--line);
}

.gate-row span:first-child {
  border-left: 0;
  font-weight: 900;
}

.gate-head {
  background: var(--surface-strong);
  color: var(--accent-strong);
  font-weight: 900;
}

.gated-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.gated-cta h3 {
  font-size: 1.15rem;
}

.gated-cta p:not(.eyebrow) {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.blog-main {
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.blog-hero {
  padding: clamp(2.25rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--line);
}

.blog-hero .lead {
  max-width: 72ch;
}

.blog-state {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.blog-state div {
  min-width: 0;
  padding: 1rem;
  background: #fff;
}

.blog-state span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-state strong {
  display: block;
  margin-top: 0.25rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.post-card a {
  margin-top: auto;
  padding-top: 1rem;
}

.article-shell {
  max-width: 820px;
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.article-shell h1 {
  max-width: 16ch;
  font-size: clamp(2.15rem, 5.2vw, 4.2rem);
}

.article-shell h2 {
  margin-top: 2rem;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.article-shell p,
.article-shell li {
  color: var(--muted);
}

.article-shell p {
  margin: 1rem 0 0;
}

.article-shell ul,
.article-shell ol {
  padding-left: 1.25rem;
}

.article-shell li + li {
  margin-top: 0.5rem;
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.blog-note {
  margin-top: 1.5rem;
  padding: 1rem;
  border-left: 4px solid var(--blocked);
}

.blog-note p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .model-grid,
  .loop-visual,
  .blog-state {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid,
  .post-preview-grid,
  .post-grid,
  .setup-list {
    grid-template-columns: 1fr;
  }

  .gated-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0;
  }

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

  .nav-links a,
  .button {
    width: 100%;
  }

  .actions {
    width: 100%;
  }

  .model-grid,
  .loop-visual,
  .blog-state {
    grid-template-columns: 1fr;
  }

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

  .gate-row span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .gate-row span:first-child {
    border-top: 0;
  }
}

@media (max-width: 520px) {
  .header-inner,
  main,
  .blog-main {
    width: min(1120px, calc(100% - 24px));
  }

  h1,
  .article-shell h1 {
    max-width: 100%;
    font-size: clamp(2.05rem, 11vw, 2.85rem);
    line-height: 1.03;
  }

  h2 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .lead {
    font-size: 1rem;
  }

  .brand {
    align-items: flex-start;
  }

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

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