:root {
  color-scheme: light;
  --paper: #f6f1e6;
  --paper-light: #fffdf7;
  --ink: #17332f;
  --muted: #65736d;
  --line: #d9d1bf;
  --green: #1f6b55;
  --green-dark: #154b3d;
  --sun: #efaa42;
  --blue: #3f7186;
  --shadow: 0 18px 50px rgb(42 61 52 / 10%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 31px, rgb(215 115 84 / 14%) 32px, transparent 33px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgb(63 113 134 / 8%) 32px),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgb(255 253 247 / 92%);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 600; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 48% 52%;
  color: var(--green-dark);
  background: var(--sun);
  transform: rotate(-7deg);
}

.site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.site-header nav a {
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--green-dark); background: #e5efe8; }

main { width: min(920px, calc(100% - 32px)); margin: 34px auto 70px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: inherit; }
article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-light);
  box-shadow: var(--shadow);
}
.page-hero {
  position: relative;
  padding: clamp(30px, 6vw, 66px);
  background:
    radial-gradient(circle at 85% 20%, rgb(239 170 66 / 34%) 0 52px, transparent 53px),
    linear-gradient(145deg, #f1ead9, #fffdf7 72%);
}
.page-hero::after {
  content: "";
  position: absolute;
  right: 7%;
  bottom: 24px;
  width: 110px;
  height: 48px;
  border: solid var(--blue);
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 70%;
  opacity: .35;
  transform: rotate(-8deg);
}
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.16; }
h1 { max-width: 760px; margin: 0; font-size: clamp(36px, 7vw, 66px); letter-spacing: -.035em; }
h2 { margin: 48px 0 14px; font-size: clamp(27px, 4vw, 38px); }
h3 { margin: 30px 0 10px; font-size: 23px; }
.lead { max-width: 720px; margin: 22px 0 0; color: #40534d; font-size: clamp(17px, 2.4vw, 21px); }
.verification { display: inline-flex; gap: 8px; margin-top: 24px; padding: 7px 11px; border: 1px dashed #9eaa9f; border-radius: 9px; color: var(--muted); font-size: 12px; transform: rotate(-1deg); }
.article-body, .source-card, .related { padding: 0 clamp(26px, 6vw, 66px); }
.article-body { padding-top: 10px; font-size: 17px; }
.article-body p { margin: 0 0 19px; }
.article-body ul, .source-card ul { padding-left: 23px; }
.article-body li, .source-card li { margin: 8px 0; }
.field-note {
  margin: 30px 0;
  padding: 20px 22px;
  border-left: 5px solid var(--sun);
  background: #f7edcf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}
.source-card {
  margin: 44px clamp(26px, 6vw, 66px) 0;
  padding: 26px;
  border: 1px dashed #9caa9d;
  border-radius: 14px;
  background: #f3f5ed;
}
.source-card h2 { margin-top: 0; font-size: 28px; }
.source-card p, .source-card li { font-size: 14px; }
.related { padding-top: 26px; padding-bottom: 60px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.related-link { display: flex; justify-content: space-between; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #fff; font-weight: 750; text-decoration: none; }
.related-link:hover { border-color: var(--green); transform: translateY(-1px); }

footer {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto 30px;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
footer p { max-width: 680px; margin: 0; }
.error-page { min-height: 70vh; display: grid; align-content: center; justify-items: start; }
.error-page h1 { margin-bottom: 10px; }
.button-link { display: inline-block; margin-top: 16px; padding: 12px 16px; border-radius: 10px; color: #fff; background: var(--green); font-weight: 800; text-decoration: none; }

@media (max-width: 760px) {
  body { background-position-x: -15px; }
  .site-header { align-items: flex-start; flex-direction: column; }
  .site-header nav { justify-content: flex-start; }
  .page-hero { padding: 34px 25px 38px; }
  .page-hero::after { display: none; }
  h1 { font-size: 40px; }
  .article-body { font-size: 16px; }
  .related-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}
