:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --line: #e6e9ef;
  --surface: #ffffff;
  --surface-soft: #f4f6f9;
  --accent: #e96a22;
  --accent-dark: #bd4c13;
  --radius: 1.25rem;
  --shadow: 0 1.25rem 3.5rem rgb(23 32 51 / 10%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface-soft);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--surface-soft); line-height: 1.75; }
body, button { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; }

.site-container { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.narrow-container { width: min(100% - 2rem, 52rem); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.eyebrow { margin: 0 0 .75rem; color: var(--accent-dark); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgb(230 233 239 / 85%); background: rgb(255 255 255 / 92%); backdrop-filter: blur(1rem); }
.header-inner { display: flex; min-height: 4.75rem; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; }
.brand-mark { width: 1.1rem; aspect-ratio: 1; border-radius: .35rem; background: linear-gradient(135deg, var(--accent), #f3aa5a); box-shadow: .35rem .35rem 0 rgb(233 106 34 / 18%); }
.site-nav { display: flex; align-items: center; gap: .4rem; }
.site-nav a { padding: .6rem .9rem; border-radius: 999px; color: #344054; font-size: .94rem; font-weight: 650; }
.site-nav a:hover, .site-nav a.is-active { background: #fff0e6; color: var(--accent-dark); }
.nav-toggle { display: none; width: 2.75rem; height: 2.75rem; padding: .65rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); }
.nav-toggle > span:not(.visually-hidden) { display: block; height: 2px; margin: .25rem 0; border-radius: 2px; background: var(--ink); }

.hero-section { padding: clamp(3.5rem, 8vw, 7.5rem) 0; background: radial-gradient(circle at 80% 10%, #ffe6d4 0, transparent 35%), linear-gradient(160deg, #fff 0%, #f6f7fa 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(16rem, .8fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.hero-grid h1 { max-width: 13ch; margin: 0; font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: 1.08; letter-spacing: -.045em; }
.hero-description { max-width: 38rem; margin: 1.5rem 0 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }

.cover-slot { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius); background: linear-gradient(135deg, #f6c9a9 0%, #db7051 42%, #6c4961 100%); }
.cover-slot img { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-slot img.is-broken { display: none; }
.cover-fallback { position: absolute; inset: 0; background: radial-gradient(circle at 72% 28%, rgb(255 255 255 / 40%), transparent 24%), linear-gradient(150deg, transparent 45%, rgb(255 255 255 / 16%)); }
.hero-cover { transform: rotate(2deg); box-shadow: var(--shadow); }

.home-sections { padding: clamp(3rem, 7vw, 6rem) 0; }
.home-section + .home-section { margin-top: clamp(4rem, 9vw, 8rem); }
.section-heading { display: grid; grid-template-columns: minmax(0, .8fr) minmax(16rem, 1.2fr); gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-heading h2, .page-heading h1, .article-heading h1 { margin: 0; line-height: 1.2; letter-spacing: -.025em; }
.section-heading h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.section-heading > p { margin: 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.content-card, .list-card, .article-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 .5rem 2rem rgb(23 32 51 / 5%); }
.content-card { overflow: hidden; }
.content-card .cover-slot { border-radius: 0; }
.card-body { padding: 1.25rem; }
.card-body h3, .list-card-body h2 { margin: .2rem 0 .55rem; line-height: 1.35; }
.card-body p:last-child, .list-card-body p:last-child { margin-bottom: 0; color: var(--muted); }
.card-meta { margin: 0; color: var(--muted); font-size: .82rem; }
.text-link { display: inline-flex; margin-top: 1.5rem; color: var(--accent-dark); font-weight: 750; }

.page-main { padding: 1.5rem 0 clamp(4rem, 8vw, 7rem); }
.breadcrumbs { margin-bottom: 1.5rem; color: var(--muted); font-size: .9rem; }
.breadcrumbs a { color: var(--accent-dark); }
.page-heading { max-width: 48rem; margin: 2.5rem 0 2rem; }
.page-heading h1 { font-size: clamp(2rem, 5vw, 4rem); }
.page-heading > p:last-child { color: var(--muted); }
.list-grid { display: grid; gap: 1.25rem; }
.list-card { display: grid; grid-template-columns: minmax(13rem, .38fr) minmax(0, .62fr); overflow: hidden; }
.list-card .cover-slot { height: 100%; border-radius: 0; }
.list-card-body { align-self: center; padding: clamp(1.25rem, 4vw, 2.25rem); }
.pagination { display: flex; justify-content: center; margin-top: 2.5rem; }
.pagination a, .pagination span { display: inline-grid; min-width: 2.5rem; min-height: 2.5rem; margin: .2rem; place-items: center; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface); }

.article-panel { overflow: hidden; }
.article-heading { padding: clamp(1.5rem, 5vw, 3.5rem); }
.article-heading h1 { font-size: clamp(2rem, 5vw, 3.8rem); }
.article-heading > p:last-child, .article-meta { color: var(--muted); }
.article-cover { margin: 0 clamp(1rem, 4vw, 3.5rem); }
.article-body { padding: clamp(1.5rem, 5vw, 3.5rem); color: #344054; font-size: 1.04rem; }
.article-body h2, .article-body h3 { margin-top: 2em; color: var(--ink); line-height: 1.35; }
.article-body p { margin: 1.15em 0; }
.article-body a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: .18em; }
.article-body img, .article-inline-cover { width: 100%; aspect-ratio: 16 / 9; margin: 1.75rem 0; border-radius: 1rem; object-fit: cover; background: linear-gradient(135deg, #f6c9a9, #6c4961); }
.article-adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.5rem clamp(1.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); color: var(--muted); }
.article-adjacent > :last-child { text-align: right; }
.single-panel .article-heading { border-bottom: 1px solid var(--line); }

.site-footer { padding-top: 3.5rem; background: #151b2a; color: #c8cfdb; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-group h2 { margin: 0 0 1rem; color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-group ul { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.footer-group li, .footer-group a { color: #c8cfdb; }
.footer-bottom { margin-top: 3rem; padding: 1.25rem 0; border-top: 1px solid rgb(255 255 255 / 12%); font-size: .85rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 48rem) {
  .site-container, .narrow-container { width: min(100% - 1.25rem, 72rem); }
  .header-inner { min-height: 4rem; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: calc(100% + 1px); right: .625rem; left: .625rem; display: none; padding: .75rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow); }
  .site-nav.is-open { display: grid; }
  .site-nav a { display: block; }
  .hero-grid, .section-heading, .list-card, .footer-grid { grid-template-columns: 1fr; }
  .hero-cover { max-width: 30rem; transform: none; }
  .card-grid { grid-template-columns: 1fr; }
  .list-card .cover-slot { height: auto; }
  .article-adjacent { grid-template-columns: 1fr; }
  .article-adjacent > :last-child { text-align: left; }
}

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