:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #22211d;
  --muted: #66645d;
  --line: #ded9cf;
  --accent: #177f75;
  --accent-dark: #0f5d56;
  --gold: #b56b1f;
  --rose: #8b3a4a;
  --shadow: 0 18px 40px rgb(45 38 28 / 10%);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 22px 24px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.9rem;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

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

.site-nav a:hover,
.story-card a:hover {
  color: var(--accent-dark);
}

.hero {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  margin: 24px auto 0;
  max-width: var(--max);
  padding: 72px 24px 56px;
}

.hero-copy h1,
.section-heading h2,
.split-section h2,
.story-article h1 {
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(2.65rem, 6vw, 5.7rem);
  max-width: 980px;
}

.hero-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 760px;
}

.eyebrow,
.card-status {
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  border: 1px solid var(--ink);
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  min-height: 46px;
  padding: 10px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: #ffffff;
}

.button.secondary {
  background: transparent;
}

.principles {
  align-self: end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
}

.principles div,
.info-panel {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 22px;
}

.principles div:last-child,
.info-panel:last-child {
  border-bottom: 0;
}

.principles span,
.info-panel span,
.wide-copy,
.copy-block {
  color: var(--muted);
}

.section,
.split-section,
.story-shell {
  margin: 0 auto;
  max-width: var(--max);
  padding: 64px 24px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.split-section h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  max-width: 820px;
}

.story-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.story-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.story-card h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0;
}

.story-card a {
  text-decoration: none;
}

.story-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-row span {
  background: #eef5f3;
  border: 1px solid #c9dfda;
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
}

.split-section {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.copy-block {
  font-size: 1.08rem;
}

.quiet {
  padding-bottom: 88px;
}

.wide-copy {
  font-size: 1.15rem;
  max-width: 760px;
}

.story-shell {
  align-items: start;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.story-article {
  max-width: 760px;
}

.story-article h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.story-subtitle {
  color: var(--muted);
  font-size: 1.25rem;
  margin: 18px 0 40px;
}

.story-body {
  font-size: 1.08rem;
}

.story-body h1 {
  display: none;
}

.story-body h2 {
  font-size: 1.65rem;
  line-height: 1.2;
  margin: 40px 0 10px;
}

.story-body h3 {
  font-size: 1.25rem;
  margin: 28px 0 8px;
}

.story-body p,
.story-body li {
  color: #3e3c36;
}

.story-body code {
  background: #efebe2;
  border-radius: 5px;
  padding: 2px 5px;
}

.story-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 18px;
}

.info-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.info-panel strong {
  font-size: 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .split-section,
  .story-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .story-sidebar {
    position: static;
  }
}

