:root {
  --paper: #f5f2e9;
  --surface: #fffdf8;
  --ink: #292c29;
  --muted: #77776f;
  --accent: #65725b;
  --accent-dark: #404b39;
  --line: #d9d4c7;
  --shadow: 0 18px 55px rgba(48, 48, 39, 0.11);
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(25px, 1.35vw, 30px);
  line-height: 1.72;
}

[hidden] { display: none !important; }

.site-shell {
  width: 100%;
  max-width: 1600px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: visible;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: 1600px;
  margin: 0;
  background: #d9d4c7;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  content: "";
  transform: translateX(-50%);
  background: #d9d4c7;
}

.hero::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
  box-shadow:
    -22px 0 35px -20px rgba(48, 48, 39, 0.60),
     22px 0 35px -20px rgba(48, 48, 39, 0.60);
}

.hero img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.page-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1600px;
  padding: clamp(32px, 5vw, 82px) clamp(22px, 8vw, 130px) clamp(45px, 7vw, 100px);
  background: var(--surface);
}

.page-header {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(0, auto) minmax(80px, 1fr);
  align-items: start;
  gap: 24px;
  margin-bottom: clamp(30px, 4vw, 58px);
}

h1 {
  max-width: 1050px;
  margin: 0;
  font: 700 clamp(30px, 4.1vw, 35px)/1.12 Arial, Helvetica, sans-serif;
  letter-spacing: 0.035em;
  text-align: center;
  text-transform: uppercase;
}

.language-switcher {
  justify-self: end;
  white-space: nowrap;
  color: var(--line);
  font: 700 18px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.12em;
}

.language-switcher button {
  padding: 8px 5px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.language-switcher button:hover,
.language-switcher button:focus-visible,
.language-switcher button.is-active { color: var(--accent-dark); }

.language-switcher button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.article { max-width: 1120px; margin: 0 auto; }
.article p { margin: 0 0 1.25em; 
  text-indent: 1.5em;
  text-align: justify;
  hyphens: auto;
}

.article blockquote p:last-child {
  margin-bottom: 0;
}

.article h2 {
  margin: 2.1em 0 0.7em;
  color: var(--accent-dark);
  font: 500 clamp(23px, 2vw, 20px)/1.12 Arial, Helvetica, sans-serif;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}
.article ol { margin: 0.4em 0 1.7em; padding-left: 1.8em; }
.article li { margin: 0.35em 0; padding-left: 0.25em; }
.article blockquote {
  margin: 0 0 1.6em;
  padding: 0.25em 0 0.25em clamp(18px, 3vw, 38px);
  border-left: 3px solid var(--accent);
  color: #4f554d;
  font-size: 1.05em;
  text-indent: 1.5em;
}
.article blockquote em { font-style: italic; }

.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  max-width: 1120px;
  margin: clamp(42px, 6vw, 85px) auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font: 700 clamp(25px, 1.15vw, 35px)/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 0.07em;
}

.page-nav a { color: var(--accent-dark); text-decoration: none; }
.page-nav a:hover, .page-nav a:focus-visible { color: var(--accent); text-decoration: underline; }
.nav-next { margin-left: auto; text-align: right; }

.resource-link {
  margin: clamp(32px, 4vw, 55px) auto 0;
  text-align: center;
  font: 700 clamp(30px, 1.15vw, 35px)/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 0.07em;
}

.resource-link a { color: var(--accent-dark); text-decoration: none; }
.resource-link a:hover, .resource-link a:focus-visible { color: var(--accent); text-decoration: underline; }

@media (max-width: 700px) {
  body { font-size: 22px; line-height: 1.62; }
  .page-content { padding: 28px 18px 48px; }
  .page-header { grid-template-columns: 1fr auto; gap: 14px; }
  .header-spacer { display: none; }
  .article {
    font-size: 22px;
  }
  h1 { grid-column: 1 / -1; grid-row: 2; font-size: clamp(22px, 9vw, 25px); }
  .language-switcher { grid-column: 2; grid-row: 1; }
  .hero img { max-height: none; }
  .page-nav {
    font-size: 15px;
  }

  .page-nav {
    gap: 18px;
    letter-spacing: 0.035em;
  }
  .resource-link {
    font-size: 20px;
  }
}


@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
