@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);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  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;
}

.site {
  min-height: 100vh;
  overflow: hidden;
}

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

.topbar {
  padding: 18px 0;
  background: var(--forest);
  color: #fffaf0;
}

.topbar .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.holly {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 50%;
  background: #fffdf5;
  box-shadow: 0 8px 18px rgba(25, 31, 22, 0.18);
}

.holly::before,
.holly::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 14px;
  border-radius: 100% 0 100% 0;
  background: #42765a;
  top: 15px;
  left: 9px;
  transform: rotate(-28deg);
  box-shadow: 12px 10px 0 #2d6347;
}

.holly::after {
  top: 12px;
  left: 17px;
  transform: rotate(38deg);
  background: #376b4e;
  box-shadow: -10px 13px 0 #42765a;
}

.berry {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  left: 21px;
  top: 22px;
  background: var(--red);
  box-shadow: 8px 2px 0 #537fa5, 3px 9px 0 #fff8e8;
  border: 1px solid rgba(38, 49, 31, 0.12);
}

.brand strong {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
}

.topbar-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: rgba(255, 250, 240, 0.88);
  font-family: "Nunito Sans", "Fredoka", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.flag-france {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  width: 30px;
  height: 20px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 250, 240, 0.34);
}

.flag-france span:nth-child(1) {
  background: #1d3f8f;
}

.flag-france span:nth-child(2) {
  background: #fff;
}

.flag-france span:nth-child(3) {
  background: #d6292f;
}

.language-menu {
  position: relative;
}

.language-menu summary {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 250, 240, 0.34);
  border-radius: 50%;
  color: #fffaf0;
  cursor: pointer;
  list-style: none;
}

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

.language-menu summary:focus-visible {
  outline: 3px solid rgba(255, 250, 240, 0.54);
  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: 0 14px 28px rgba(25, 31, 22, 0.18);
  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);
}

.activities {
  position: relative;
  padding: 44px 0 68px;
  background:
    linear-gradient(90deg, rgba(200, 146, 59, 0.12) 1px, transparent 1px),
    linear-gradient(#fffaf0, #fffaf0);
  background-size: 32px 32px, auto;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  max-width: 720px;
  margin: 0;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(62, 45, 28, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: rotate(-1deg) translateY(-5px);
  box-shadow: 0 18px 34px rgba(62, 45, 28, 0.16);
}

.card:nth-child(2) {
  background:
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(83, 127, 165, 0.14) 29px),
    var(--paper);
}

.card:nth-child(2):hover {
  transform: rotate(-1deg) translateY(-5px);
}

.card:nth-child(3) {
  background: linear-gradient(90deg, var(--red) 0 12px, var(--paper) 12px);
}

.card:nth-child(4) {
  background: linear-gradient(180deg, rgba(66, 118, 90, 0.14), var(--paper) 42%);
}

.card:nth-child(5) {
  background: linear-gradient(180deg, rgba(200, 146, 59, 0.16), var(--paper) 46%);
}

.tag {
  display: inline-flex;
  width: fit-content;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.card-icon {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(40, 88, 62, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  color: var(--red);
}

.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.card h4 {
  margin: 48px 0 8px;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 30px;
  line-height: 1;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-weight: 520;
}

.cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 18px;
  color: var(--forest);
  font-family: "Nunito Sans", "Fredoka", system-ui, sans-serif;
  font-weight: 900;
}

.activity-placeholder {
  color: inherit;
  opacity: 0.74;
}

.copyright {
  padding: 20px 0 24px;
  color: var(--muted);
  font-family: "Nunito Sans", "Fredoka", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

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

  .topbar-note {
    text-align: left;
  }

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

@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }
}
