:root {
  --bg: #f4f7f2;
  --surface: #ffffff;
  --surface-soft: #eef4ed;
  --ink: #1d2721;
  --muted: #5d6c63;
  --line: #d9e3dc;
  --brand-gold: #a89460;
  --brand-sage: #91b299;
  --brand-sage-deep: #618778;
  --accent: #f0c46f;
  --ok: #3f815f;
  --shadow: 0 20px 45px rgba(34, 54, 45, 0.12);
  --radius: 20px;
  --radius-small: 12px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -10%, #fff2d2 0%, rgba(255, 242, 210, 0) 40%),
    radial-gradient(circle at 100% 0%, #d9eadf 0%, rgba(217, 234, 223, 0) 38%),
    var(--bg);
  line-height: 1.65;
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", "Georgia", serif;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0;
}

a {
  color: var(--brand-sage-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(244, 247, 242, 0.85);
  border-bottom: 1px solid rgba(97, 135, 120, 0.2);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(29, 39, 33, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 180ms ease;
}

.nav a.active {
  background: var(--brand-sage-deep);
  color: #fff;
}

.locale {
  border: 1px solid rgba(97, 135, 120, 0.3);
  background: rgba(145, 178, 153, 0.12);
}

.nav a:hover {
  background: rgba(97, 135, 120, 0.12);
  color: var(--ink);
}

.main {
  width: min(var(--max), 100% - 40px);
  margin: 34px auto 48px;
}

.hero {
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(135deg, rgba(145, 178, 153, 0.18), rgba(168, 148, 96, 0.2)),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(26px, 4vw, 54px);
  display: grid;
  gap: 24px;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  display: grid;
  place-items: center;
}

.hero-media img {
  width: min(100%, 420px);
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(53, 73, 63, 0.2));
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--brand-sage-deep);
  background: rgba(97, 135, 120, 0.14);
  border: 1px solid rgba(97, 135, 120, 0.25);
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  margin-bottom: 12px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 58ch;
}

.button-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-sage-deep), #426959);
  color: #fff;
  box-shadow: 0 10px 24px rgba(66, 105, 89, 0.28);
}

.btn-secondary {
  background: rgba(145, 178, 153, 0.14);
  color: var(--brand-sage-deep);
  border: 1px solid rgba(97, 135, 120, 0.34);
}

.grid {
  margin-top: 26px;
  display: grid;
  gap: 16px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 8px 20px rgba(31, 46, 39, 0.05);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.media-card {
  overflow: hidden;
  padding: 0;
}

.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: linear-gradient(135deg, rgba(145, 178, 153, 0.12), rgba(168, 148, 96, 0.1));
  border-bottom: 1px solid var(--line);
}

.media-card .content {
  padding: 16px 18px 18px;
}

.icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(145, 178, 153, 0.2), rgba(168, 148, 96, 0.2));
  border: 1px solid rgba(97, 135, 120, 0.2);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.section {
  margin-top: 34px;
}

.section h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  margin-bottom: 12px;
}

.section > p {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

.legal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(31, 46, 39, 0.08);
  padding: clamp(20px, 3vw, 36px);
}

.legal-hero {
  margin-bottom: 18px;
  grid-template-columns: 1.2fr 0.8fr;
  padding: clamp(20px, 3vw, 32px);
}

.legal-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  margin-bottom: 10px;
}

.legal-hero p {
  margin: 0;
  color: var(--muted);
}

.legal-hero .meta {
  margin-top: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.legal-hero .hero-media img {
  width: min(100%, 320px);
}

.legal h1 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  margin-bottom: 8px;
}

.legal .meta {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.legal h2 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.legal h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.legal ul {
  margin-top: 8px;
  margin-bottom: 12px;
  padding-left: 20px;
}

.legal li {
  margin: 6px 0;
}

.badge-row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.84rem;
  color: var(--muted);
  background: var(--surface-soft);
}

.highlight {
  border-left: 4px solid var(--brand-gold);
  background: linear-gradient(135deg, rgba(240, 196, 111, 0.12), rgba(145, 178, 153, 0.12));
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 22px 20px 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

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

.kbd {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: #f6f8f7;
  border: 1px solid #d6dfd9;
  border-bottom-width: 2px;
  border-radius: 8px;
  padding: 2px 6px;
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

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

@media (max-width: 640px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .main {
    width: min(var(--max), 100% - 24px);
    margin-top: 20px;
  }

  .hero {
    padding: 20px;
    border-radius: 18px;
  }

  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .card {
    border-radius: 16px;
  }
}
