@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Fredoka:wght@400;500;600;700&family=Nunito+Sans:wght@400;700;900&display=swap");

:root {
  color-scheme: light;
  --ink: #26311f;
  --muted: #6c685c;
  --cream: #fff7e8;
  --paper: #fffaf0;
  --forest: #28583e;
  --red: #b84e42;
  --line: rgba(87, 65, 42, 0.18);
  --shadow: 0 18px 40px rgba(62, 45, 28, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16px 18px, rgba(91, 69, 40, 0.08) 1px, transparent 1.5px),
    linear-gradient(150deg, rgba(83, 127, 165, 0.16), transparent 34%),
    linear-gradient(35deg, rgba(184, 78, 66, 0.12), transparent 46%),
    var(--cream);
  background-size: 26px 26px, auto, auto, auto;
  color: var(--ink);
  font-family: "Fredoka", system-ui, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.shell {
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 18px;
}

.brand,
.back-link,
.activity-card {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 30px;
  font-weight: 850;
}

.back-link {
  font-family: "Nunito Sans", "Fredoka", system-ui, sans-serif;
  font-weight: 900;
  color: var(--forest);
}

.language-menu {
  position: relative;
  margin-left: auto;
}

.language-menu summary {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(40, 88, 62, 0.24);
  border-radius: 50%;
  color: var(--forest);
  cursor: pointer;
  list-style: none;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary:focus-visible {
  outline: 3px solid rgba(40, 88, 62, 0.24);
  outline-offset: 3px;
}

.globe-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10;
  display: grid;
  min-width: 145px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 6px;
  box-shadow: var(--shadow);
  list-style: none;
}

.language-menu a {
  display: block;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  font-family: "Nunito Sans", "Fredoka", system-ui, sans-serif;
  font-weight: 900;
  text-align: left;
  text-decoration: none;
}

.language-menu a:hover,
.language-menu a[aria-current="page"] {
  background: rgba(40, 88, 62, 0.12);
  color: var(--forest);
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Baloo 2", system-ui, sans-serif;
  line-height: 1;
}

h1 {
  max-width: 720px;
  font-size: clamp(44px, 7vw, 78px);
}

.lede {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 600;
}

.activity-section {
  padding: 28px 0 0;
}

.activity-section:last-child {
  padding-bottom: 70px;
}

.activity-section-title {
  font-size: clamp(28px, 4vw, 40px);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 16px;
  padding: 28px 0 70px;
}

.activity-section .activity-grid {
  padding: 16px 0 0;
}

.activity-card {
  display: grid;
  align-content: space-between;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(62, 45, 28, 0.18);
}

.icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px dashed rgba(184, 78, 66, 0.55);
  border-radius: 8px;
  color: var(--red);
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 850;
}

.activity-card h2 {
  margin-top: 28px;
  font-size: 34px;
}

.activity-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.meta {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--forest);
  font-family: "Nunito Sans", "Fredoka", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

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

  .language-menu {
    margin-left: 0;
  }

  h1 {
    font-size: 44px;
  }
}
