:root {
  --bg: #f5f4ed;
  --panel: #fbfaf5;
  --panel-strong: #ffffff;
  --text: #141413;
  --muted: #5e5d59;
  --border: #e8e6dc;
  --accent: #c96442;
  --accent-soft: rgba(201, 100, 66, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(201, 100, 66, 0.08), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(201, 100, 66, 0.06), transparent 22%),
    linear-gradient(180deg, #f7f6f0 0%, var(--bg) 22%, #f3f1e8 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

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

a:hover {
  color: var(--accent);
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: rgba(201, 100, 66, 0.18);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.page-shell,
.page-frame,
.site-shell {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.page-shell {
  padding-block: 1rem 4rem;
}

.site-shell {
  padding-inline: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(245, 244, 237, 0.78);
  border-bottom: 1px solid rgba(232, 230, 220, 0.7);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.85), transparent 28%),
    linear-gradient(145deg, var(--accent), #a94d31);
  box-shadow: 0 10px 28px rgba(201, 100, 66, 0.18);
}

.brand-name {
  font-family: Georgia, "Iowan Old Style", Charter, serif;
  font-size: 1.1rem;
  color: var(--text);
}

.brand-subtitle {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a,
.nav-links button,
.pill,
.chip,
.tag {
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.nav-links a {
  padding: 0.65rem 0.9rem;
  color: var(--muted);
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.52);
  border-color: var(--border);
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 10px 26px rgba(20, 20, 19, 0.12);
}

.nav-cta:hover {
  color: var(--bg);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.hero,
.hero-centered,
.section,
.stack-section,
.blog-grid,
.feature-grid,
.split-section,
.quote-section,
.cta-section,
.topic-index,
.article-layout,
.story-band,
.bento-grid {
  position: relative;
  margin-top: 1.5rem;
}

.hero,
.hero-centered,
.section,
.stack-section,
.quote-section,
.cta-section,
.article-layout,
.story-band,
.blog-grid,
.topic-index,
.split-section {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(251, 250, 245, 0.96));
  box-shadow: 0 24px 60px rgba(20, 20, 19, 0.05);
  overflow: clip;
}

.hero,
.hero-centered,
.section,
.stack-section,
.quote-section,
.cta-section,
.story-band,
.blog-grid,
.topic-index,
.article-layout,
.split-section {
  border-radius: 1.75rem;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: stretch;
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(0.5rem, 1vw, 0.9rem);
}

.eyebrow,
.kicker,
.meta,
.stat-label,
.caption,
.topic-label,
.card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before,
.kicker::before,
.topic-label::before,
.card-eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.hero h1,
.hero-centered h1,
.section h2,
.stack-section h2,
.quote-section h2,
.cta-section h2,
.article-layout h1,
.story-band h2,
.topic-index h2 {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", Charter, serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.7rem);
  max-width: 11ch;
}

.hero p,
.hero-centered p,
.section-intro,
.section p,
.stack-section p,
.quote-section p,
.cta-section p,
.story-band p,
.article-layout p,
.topic-index p {
  margin: 0;
  max-width: 65ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.06rem);
}

.hero-lede {
  max-width: 54ch;
  font-size: 1.08rem;
}

.hero-actions,
.inline-actions,
.cta-actions,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.button,
button.primary,
button.secondary,
.link-button,
.pill,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
}

.button.primary,
button.primary,
.nav-cta,
.cta-primary {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}

.button.primary:hover,
button.primary:hover,
.nav-cta:hover,
.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(20, 20, 19, 0.14);
}

.button.secondary,
.link-button {
  background: rgba(255, 255, 255, 0.42);
}

.hero-media {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.hero-visual,
.ph-img,
.visual-card,
.panel,
.toc,
.quote-card,
.article-card,
.bento-card,
.metric-card,
.note-card,
.topic-card,
.image-frame {
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 246, 239, 0.96));
}

.hero-visual {
  min-height: 24rem;
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}

.ph-img,
.image-frame {
  min-height: 12rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(201, 100, 66, 0.18), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(245, 244, 237, 0.5));
}

.ph-img::after,
.image-frame::after {
  content: "";
  display: block;
  min-height: inherit;
  background:
    radial-gradient(circle at 18% 24%, rgba(201, 100, 66, 0.12), transparent 18%),
    radial-gradient(circle at 70% 30%, rgba(20, 20, 19, 0.06), transparent 20%),
    linear-gradient(145deg, rgba(20, 20, 19, 0.07), rgba(20, 20, 19, 0.02));
}

.visual-caption,
.helper,
.note,
.small,
.article-meta,
.card-meta,
.footer-note,
.form-hint {
  color: var(--muted);
  font-size: 0.92rem;
}

.stats-row,
.feature-grid,
.blog-grid,
.topic-grid,
.article-grid,
.story-grid,
.bento-grid {
  display: grid;
  gap: 1rem;
}

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

.card,
.feature,
.post-card,
.topic-card,
.article-card,
.metric-card,
.note-card,
.quote-card,
.panel,
.toc {
  padding: 1.15rem;
}

.card h3,
.feature h3,
.post-card h3,
.topic-card h3,
.metric-card strong,
.note-card h3,
.article-card h2 {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", Charter, serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.15;
}

.card p,
.feature p,
.post-card p,
.topic-card p,
.note-card p,
.metric-card p,
.article-card p {
  margin-top: 0.65rem;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin-block: 0.9rem;
}

.metric-strip,
.story-band,
.stack-section,
.topic-index,
.article-layout,
.quote-section,
.split-section,
.cta-section {
  padding: clamp(1.1rem, 2vw, 1.8rem);
}

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

.metric-card {
  display: grid;
  gap: 0.25rem;
}

.metric-value {
  font-family: Georgia, "Iowan Old Style", Charter, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
}

.split-panel,
.longform-panel,
.article-sidebar {
  display: grid;
  gap: 1rem;
}

.toc {
  position: sticky;
  top: 6rem;
}

.toc a,
.list-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.95rem;
  color: var(--muted);
}

.toc a:hover,
.list-link:hover {
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
}

.blog-grid {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
}

.post-list,
.article-list,
.topic-list,
.timeline,
.quotes,
.link-list {
  display: grid;
  gap: 0.85rem;
}

.post-card,
.article-card,
.topic-card {
  display: grid;
  gap: 0.5rem;
}

.post-card {
  padding: 1rem 1.05rem;
}

.post-card .post-meta,
.article-card .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.tag,
.chip,
.pill {
  width: fit-content;
  padding-inline: 0.8rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  border-color: var(--border);
}

.tag.is-accent,
.chip.is-accent,
.pill.is-accent {
  color: var(--text);
  background: rgba(201, 100, 66, 0.1);
  border-color: rgba(201, 100, 66, 0.22);
}

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

.quote-mark {
  font-family: Georgia, "Iowan Old Style", Charter, serif;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.7;
  color: rgba(201, 100, 66, 0.22);
}

.quote-card {
  padding: 1.3rem;
}

.footer {
  margin-top: 1.5rem;
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

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

.footer-nav a:hover {
  color: var(--text);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: 1rem;
}

.article-header {
  display: grid;
  gap: 0.85rem;
}

.article-content {
  display: grid;
  gap: 1rem;
}

.article-content h2,
.article-content h3 {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", Charter, serif;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.article-content h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
}

.article-content h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.form {
  display: grid;
  gap: 0.8rem;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
}

.textarea {
  min-height: 10rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8a887f;
}

@container (max-width: 760px) {
  .feature-grid,
  .metric-strip,
  .blog-grid,
  .split-section,
  .article-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .blog-grid,
  .split-section,
  .article-layout {
    grid-template-columns: 1fr;
  }

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

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

  .toc {
    position: static;
  }
}

@media (max-width: 920px) {
  .site-nav {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    display: none;
    padding: 0.25rem 0 0.75rem;
  }

  .nav-links[data-open="true"] {
    display: flex;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 12vw, 4.5rem);
  }

  .hero,
  .hero-centered,
  .section,
  .stack-section,
  .quote-section,
  .cta-section,
  .story-band,
  .topic-index,
  .article-layout,
  .split-section {
    border-radius: 1.4rem;
  }
}

@media (max-width: 700px) {
  .page-shell,
  .page-frame,
  .site-shell {
    width: min(100% - 1rem, 1180px);
  }

  .page-shell {
    padding-block: 0.75rem 3rem;
  }

  .hero,
  .hero-centered,
  .section,
  .stack-section,
  .quote-section,
  .cta-section,
  .story-band,
  .topic-index,
  .article-layout,
  .split-section {
    padding: 1rem;
  }

  .feature-grid,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 18rem;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .brand-name {
    font-size: 1rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero,
  .hero-centered,
  .section,
  .stack-section,
  .quote-section,
  .cta-section,
  .story-band,
  .topic-index,
  .article-layout,
  .split-section {
    border-radius: 1.1rem;
  }

  .hero-actions,
  .inline-actions,
  .cta-actions,
  .toolbar,
  .nav-links {
    gap: 0.6rem;
  }

  .button,
  button.primary,
  button.secondary,
  .link-button,
  .nav-links a,
  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .hero h1 {
    max-width: 9ch;
  }
}