:root {
  --bg: #f4efe5;
  --paper: rgba(255, 251, 245, 0.9);
  --ink: #1f1a16;
  --muted: #5f554a;
  --line: rgba(44, 34, 25, 0.14);
  --accent: #9a2f12;
  --accent-2: #1f5c4f;
  --hero-a: #f3dbc4;
  --hero-b: #d8e4d0;
  --shadow: 0 20px 60px rgba(42, 28, 18, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(154, 47, 18, 0.10), transparent 30%),
    linear-gradient(180deg, #f8f3ea 0%, var(--bg) 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
}

.hero,
.section,
.footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 24px 0 28px;
}

.hero--compact h1 {
  max-width: none;
}

.hero--compact .hero__actions {
  gap: 10px;
}

.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.brand {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1 1 auto;
}

.site-nav__link {
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 0.95rem;
}

.site-nav__link:hover {
  background: rgba(255, 255, 255, 0.8);
}

.lang-switch {
  display: inline-flex;
  gap: 10px;
}

.lang-switch__link {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
}

.lang-switch__link--active {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.hero__content {
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 251, 245, 0.92)),
    linear-gradient(135deg, var(--hero-a), var(--hero-b));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1,
h2,
h3 {
  line-height: 1.05;
  margin: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero__lead {
  max-width: 64ch;
  font-size: 1.14rem;
}

.hero__actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: white;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  font-weight: 700;
}

.button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.section {
  padding: 26px 0;
}

.section__heading {
  margin-bottom: 24px;
}

.section--tinted {
  padding: 34px 26px;
  background: rgba(255, 252, 247, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.mini-card,
.subject {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 24px;
}

.subject-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.subject {
  padding: 18px;
}

.subject--core {
  background: linear-gradient(135deg, rgba(154, 47, 18, 0.10), rgba(31, 92, 79, 0.10));
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.list li + li {
  margin-top: 10px;
}

.section--split {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 20px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 14px;
}

.mini-card {
  padding: 18px;
}

.mini-card__visual {
  margin: -18px -18px 14px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.mini-card__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.mini-card__link {
  margin-top: 12px;
}

.mini-card__link a {
  color: var(--accent-2);
  text-decoration: none;
}

.mini-card__link a:hover {
  text-decoration: underline;
}

.prose-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.prose-card p + p {
  margin-top: 18px;
}

.slider-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.slider-frame {
  position: relative;
  min-height: 420px;
  background: rgba(31, 26, 22, 0.08);
}

.slider-frame figure {
  margin: 0;
}

.slider-frame img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.slider-caption {
  padding: 20px 24px 24px;
}

.slider-caption h3 {
  margin-bottom: 8px;
}

.slider-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px 24px;
}

.slider-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.media-card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px 20px;
  text-align: center;
}

.media-thumb {
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 30px rgba(42, 28, 18, 0.14);
}

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

.media-card__body {
  padding: 0;
}

.media-card__meta {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.9rem;
}

.media-card__body p + p {
  margin-top: 10px;
}

.media-card__link {
  margin-top: 14px;
}

.media-card__link a {
  color: var(--accent-2);
  text-decoration: none;
}

.media-card__link a:hover {
  text-decoration: underline;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.photo-card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-card__body {
  padding: 16px 18px 20px;
}

.story-grid,
.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.story-card,
.directory-card,
.article-layout__aside,
.article-body {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-card,
.directory-card {
  overflow: hidden;
}

.story-card__image img,
.article-hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.story-card__body,
.directory-card__body {
  padding: 20px;
}

.story-card__meta,
.article-meta,
.note {
  color: var(--accent);
  font-size: 0.9rem;
}

.story-card__body p + p,
.directory-card__body p + p,
.article-body p + p,
.article-body ul + p,
.article-body p + ul,
.article-body h2 + p,
.article-body h3 + p {
  margin-top: 16px;
}

.directory-list,
.article-body ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.directory-list li + li,
.article-body li + li {
  margin-top: 10px;
}

.lab-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 20px;
  align-items: start;
}

.article-body {
  padding: 28px;
}

.article-body h2,
.article-body h3 {
  margin-top: 26px;
}

.article-body h2:first-child,
.article-body h3:first-child {
  margin-top: 0;
}

.article-layout__aside {
  padding: 22px;
}

.article-hero-image {
  margin-top: 22px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article-hero-image--remote img {
  background: rgba(31, 26, 22, 0.08);
}

.aside-links {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.aside-links a,
.directory-card__body a,
.story-card__body a,
.article-body a,
.article-layout__aside a {
  color: var(--accent-2);
  text-decoration: none;
}

.aside-links a:hover,
.directory-card__body a:hover,
.story-card__body a:hover,
.article-body a:hover,
.article-layout__aside a:hover {
  text-decoration: underline;
}

.callout {
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(154, 47, 18, 0.06);
}

.footer {
  padding: 34px 0 56px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 18px;
}

.footer a {
  color: var(--accent-2);
}

@media (max-width: 980px) {
  .grid--three,
  .subject-map,
  .section--split {
    grid-template-columns: 1fr;
  }

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

  .media-grid,
  .photo-grid,
  .story-grid,
  .directory-grid,
  .lab-split,
  .article-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero__content {
    padding: 26px 20px;
  }

  .hero__bar {
    margin-bottom: 24px;
    justify-content: center;
  }

  .site-nav,
  .lang-switch {
    justify-content: center;
  }

  .section--tinted {
    padding: 24px 18px;
  }

  .slider-frame,
  .slider-frame img {
    height: 280px;
    min-height: 280px;
  }

  p {
    font-size: 1rem;
  }
}
