/* Dream Treehouse's own colors (the game's Palette.swift) and rounded type.
   No web fonts or other outside requests, so visiting these pages sends
   nothing anywhere but GitHub Pages. */
:root {
  color-scheme: light;
  --sky-top: #8fd3f4;
  --sky-bottom: #ffe3a3;
  --cream: #fff4dc;
  --cream-shade: #f1e0b8;
  --wood-dark: #6b4226;
  --wood: #9a6438;
  --text: #3b2414;
  --text-soft: #5e4330;
  --accent: #ffb347;
  --accent-hot: #ff7a59;
  --forest: #2f6b3a;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--sky-bottom); }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(var(--sky-top), var(--sky-bottom) 420px) no-repeat, var(--sky-bottom);
  color: var(--text);
  font: 17px/1.55 var(--round);
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

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

header.top img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  border: 3px solid var(--wood);
  box-shadow: 0 3px 0 var(--wood-dark);
}

header.top a { color: inherit; text-decoration: none; }

.brand {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand .dream { color: #e8792b; }

.card {
  background: var(--cream);
  border: 8px solid var(--wood);
  border-radius: 22px;
  box-shadow: 0 0 0 2px var(--wood-dark), 0 6px 0 2px var(--wood-dark), 0 14px 28px rgba(59, 36, 20, 0.18);
  padding: 22px 22px 26px;
}

h1 {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 6px;
}

h2 {
  font-size: 21px;
  font-weight: 800;
  margin: 28px 0 6px;
  color: var(--wood-dark);
}

h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 20px 0 4px;
}

p, li { color: var(--text-soft); }

p { margin: 6px 0 10px; }

ul { padding-left: 22px; margin: 6px 0 10px; }

li { margin: 4px 0; }

strong { color: var(--text); }

a { color: #b5501f; font-weight: 700; }

.updated { font-size: 15px; margin: 0 0 14px; }

.short {
  background: #fffaf0;
  border: 2px solid var(--cream-shade);
  border-radius: 14px;
  padding: 10px 16px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 14px;
  background: var(--forest);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 0 #1f4a27;
}

.button.wood { background: var(--wood); box-shadow: 0 4px 0 var(--wood-dark); }

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

footer a { font-weight: 700; }

@media (max-width: 420px) {
  .card { border-width: 6px; padding: 18px 16px 22px; }
  h1 { font-size: 26px; }
}
