* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--background-alt) 88%, white) 0%, color-mix(in srgb, var(--background) 94%, white) 72%, #111111 72%, #111111 100%);
}

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

img {
  max-width: 100%;
}

.container {
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-shell {
  width: min(1040px, calc(100% - 2rem));
  margin: 2.5rem auto 0;
  background: rgba(252, 249, 244, 0.98);
  border: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow: 0 28px 90px rgba(17, 17, 17, 0.12);
}

.site-header {
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

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

.brand,
.page-title,
.feature-title,
.story-card h3,
.content h1,
.content h2,
.sidebar-card h3,
.footer-brand {
  font-family: var(--font-heading);
}

.brand {
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--secondary);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
}

.brand-logo-img {
  display: block;
  width: auto;
  height: 64px;
  max-width: min(340px, 56vw);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

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

.page-main {
  padding: 2rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: color-mix(in srgb, var(--accent) 55%, #685c41);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.editorial-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1.25rem;
  margin-bottom: 1.6rem;
}

.page-title,
.content h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 0.96;
  color: #171717;
}

.toolbar-box,
.feature-panel,
.story-card,
.sidebar-card,
.content-card,
.topic-orb {
  background: #fffdf9;
}

.toolbar-box {
  min-width: 220px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.feature-story {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  min-height: 300px;
  background: #1d1d1d;
  color: white;
  overflow: hidden;
  margin-bottom: 2rem;
}

.feature-media {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0)),
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 55%, transparent), transparent 45%),
    linear-gradient(135deg, #5a5a5a 0%, #2f2f2f 100%);
  min-height: 300px;
}

.feature-media img,
.story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-media::before,
.feature-media::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,0.16);
}

.feature-media::before {
  inset: 18% 12% auto auto;
  width: 140px;
  height: 90px;
}

.feature-media::after {
  inset: auto auto 16% 14%;
  width: 90px;
  height: 60px;
}

.feature-panel {
  align-self: center;
  margin: 2rem;
  padding: 1.75rem;
  color: #171717;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
  min-width: 0;
  overflow-wrap: anywhere;
}

.feature-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.05;
  margin: 0 0 0.7rem;
}

.feature-panel p,
.story-card p,
.content p,
.content li,
.sidebar-card p,
.footer-copy {
  line-height: 1.75;
  font-size: 1rem;
}

.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.4rem;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.story-card,
.sidebar-card,
.content-card {
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.story-card {
  overflow: hidden;
}

.story-thumb {
  min-height: 180px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 44%, white), transparent 42%),
    linear-gradient(145deg, color-mix(in srgb, var(--secondary) 42%, #f6efe1) 0%, color-mix(in srgb, var(--background-alt) 85%, #ffffff) 100%);
}

.story-body {
  padding: 1.15rem 1.1rem 1.3rem;
}

.story-card h3 {
  margin: 0.4rem 0 0.7rem;
  font-size: 1.25rem;
  line-height: 1.1;
  color: #171717;
  overflow-wrap: anywhere;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.story-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 700;
  color: var(--secondary);
}

.teaser-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.teaser-card .story-thumb {
  min-height: 120px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, #ffffff) 0%, color-mix(in srgb, var(--background-alt) 70%, #f5f0e7) 100%);
}

.teaser-art {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 0.35rem;
  padding: 1rem;
  color: #171717;
}

.teaser-art strong {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.1;
}

.sidebar-stack {
  display: grid;
  gap: 1rem;
}

.sidebar-card {
  padding: 1.1rem;
}

.sidebar-dark {
  background: #181818;
  color: #f7f1e7;
  border-color: #181818;
}

.sidebar-dark .eyebrow,
.sidebar-dark h3,
.sidebar-dark p,
.sidebar-dark li,
.sidebar-dark a {
  color: inherit;
}

.sidebar-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.45rem;
  line-height: 1.05;
}

.mini-search {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255,255,255,0.94);
  padding: 0.78rem 0.85rem;
  font: inherit;
}

.sidebar-dark .mini-search {
  background: rgba(255,255,255,0.98);
  color: #171717;
}

.topic-list,
.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.topic-list a {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.85rem;
  border: 0;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button {
  background: color-mix(in srgb, var(--accent) 28%, #f2d0a8);
  color: #171717;
}

.button-secondary {
  background: #fff;
  color: #171717;
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.topic-band {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.topic-band h2 {
  font-family: var(--font-heading);
  margin: 0 0 1.1rem;
  font-size: 2rem;
  text-align: center;
}

.topic-orbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.topic-orb {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.3;
}

.content-wrap {
  padding: 0;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.4rem;
}

.content-card {
  padding: 1.5rem 1.6rem 1.8rem;
}

.content-card .meta {
  margin: 0.8rem 0 1rem;
}

.content h2 {
  margin-top: 2rem;
  font-size: 1.8rem;
}

.content ul {
  padding-left: 1.15rem;
}

.highlight {
  padding: 1rem 1.1rem;
  margin: 1.25rem 0 1.5rem;
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 55%, #fffaf2);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button-row .button,
.button-row .button-secondary {
  width: auto;
  margin-top: 0;
}

.site-footer {
  background: #101010;
  color: #f5ede2;
  margin-top: 0;
}

.footer-grid {
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 2rem 2rem;
}

.footer-brand {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.footer-logo-img {
  display: block;
  width: auto;
  height: 64px;
  margin-bottom: 0.4rem;
  max-width: min(320px, 100%);
}

.footer-copy {
  color: rgba(245, 237, 226, 0.75);
  max-width: 42ch;
}

@media (max-width: 900px) {
  .feature-story,
  .editorial-layout,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: calc(100% - 1rem);
    margin-top: 0.5rem;
  }

  .page-main,
  .nav-wrap,
  .footer-grid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .editorial-top,
  .nav-wrap,
  .footer-grid {
    flex-direction: column;
    align-items: start;
  }

  .feature-panel {
    margin: 1rem;
  }

  .brand-logo-img,
  .footer-logo-img {
    height: 52px;
  }
}
