:root {
  color-scheme: light;
  --bg: #f6f5ef;
  --paper: #fffdf8;
  --ink: #17211e;
  --muted: #5f6b66;
  --line: #d8d4c8;
  --accent: #0f6b57;
  --accent-dark: #084235;
  --warm: #b44f2a;
  --blue: #2f5f8f;
  --soft: #e9efe9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-header,
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px clamp(18px, 4vw, 36px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  font-size: 0.95rem;
}

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

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

main {
  overflow: hidden;
}

.home-hero,
.article-hero,
.section,
.article-layout,
.ad-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 36px);
}

.home-hero,
.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-top: 34px;
  padding-bottom: 42px;
}

.article-hero {
  align-items: end;
  padding-top: 18px;
}

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

.eyebrow,
.meta,
.byline,
.ad-wrap span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  max-width: 900px;
}

.article-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

h3 {
  font-size: 1.25rem;
}

.summary,
.hero-copy > p:not(.eyebrow):not(.byline) {
  color: #2e3834;
  font-size: 1.1rem;
  max-width: 780px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.hero-visual img,
.article-hero img,
.post-card img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(23, 33, 30, 0.12);
}

.ad-wrap {
  margin-top: 14px;
  margin-bottom: 34px;
}

.ad-wrap span {
  display: block;
  margin-bottom: 6px;
  text-align: center;
}

.adsbygoogle {
  min-height: 120px;
  border: 1px dashed #c7c1b4;
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.7);
}

.ad-inline {
  padding-inline: 0;
  margin: 30px 0;
}

.section {
  padding-top: 42px;
  padding-bottom: 38px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.post-card,
.rail-box,
.fact-box,
.toc {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.post-card a {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.site-grid a,
.rail-box a {
  display: block;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.site-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-grid strong {
  overflow-wrap: anywhere;
}

.breadcrumbs {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px clamp(18px, 4vw, 36px);
  color: var(--muted);
  font-size: 0.92rem;
}

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

.breadcrumbs span::before {
  content: "/";
  padding: 0 8px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 320px);
  gap: 42px;
  align-items: start;
}

.article-content {
  min-width: 0;
}

.article-content section {
  margin-bottom: 34px;
}

.article-content p {
  margin: 0 0 16px;
}

.fact-box,
.toc {
  padding: 20px;
  margin-bottom: 26px;
}

.fact-box {
  background: var(--soft);
}

.toc div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toc a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
}

.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: #edf3f0;
}

tr:last-child td {
  border-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 14px 16px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.source-list {
  padding-left: 22px;
}

.source-list li {
  margin-bottom: 8px;
}

.article-rail {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 16px;
}

.rail-box {
  padding: 18px;
}

.rail-box h2 {
  font-size: 1.05rem;
}

.rail-box ul {
  padding-left: 20px;
}

.rail-box a {
  min-height: auto;
  margin-top: 8px;
}

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

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero,
  .article-hero,
  .post-card a,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-rail {
    position: static;
  }
}
