:root {
  --page: #fff8ec;
  --card: #ffffff;
  --ink: #1d2b3a;
  --soft: #5b6b7c;
  --line: #e6e1d6;
  --green: #3db94f;
  --green-deep: #2a9440;
  --coral: #ff5c7a;
  --blue: #1b86cc;
  --star: #ffc531;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #14191f;
    --card: #1e262f;
    --ink: #f1f4f7;
    --soft: #a7b4c2;
    --line: #313c48;
    --blue: #6cc0f5;
    --green-deep: #5fd070;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

header.site img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  box-shadow: 0 4px 0 var(--line);
}

.brand {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}
.brand .fun { color: var(--coral); }
.brand .two { color: var(--star); }
.brand .learn { color: var(--blue); }

nav.site {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-weight: 700;
  font-size: 15px;
}

a { color: var(--green-deep); }
nav.site a { text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { text-decoration: underline; }

main {
  background: var(--card);
  border: 2px solid var(--line);
  border-bottom-width: 6px;
  border-radius: 24px;
  padding: 26px 24px 30px;
}

h1 {
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 6px;
}

h2 {
  font-size: 21px;
  margin: 30px 0 6px;
}

p, ul { margin: 0 0 12px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }

.dated { color: var(--soft); font-size: 15px; margin-bottom: 18px; }

.short {
  background: color-mix(in srgb, var(--green) 12%, var(--card));
  border: 2px solid color-mix(in srgb, var(--green) 45%, var(--card));
  border-radius: 18px;
  padding: 14px 18px;
  margin: 18px 0 6px;
}
.short p:last-child, .short ul:last-child { margin-bottom: 0; }

.button {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 16px;
  box-shadow: 0 5px 0 var(--green-deep);
  margin: 4px 0 12px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 16px 0 6px;
}
.tiles div {
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}
.tiles strong { display: block; }
.tiles span { color: var(--soft); font-size: 15px; }

footer.site {
  color: var(--soft);
  font-size: 14px;
  text-align: center;
  margin-top: 22px;
}

@media (max-width: 520px) {
  header.site { flex-wrap: wrap; }
  nav.site { margin-left: 0; width: 100%; }
  main { padding: 20px 16px 24px; }
  h1 { font-size: 27px; }
}
