@font-face {
  font-family: "Cherry Bomb One";
  src: url("/assets/CherryBombOne.ttf") format("truetype");
  font-display: swap;
}

:root {
  --navy: #14213d;
  --edge: #0b1426;
  --panel: #0e182e;
  --surface: #1b2a4a;
  --border: #2c3b5c;
  --cream: #f4efe6;
  --ice: #c9d2e3;
  --tabby: #a68c66;
  --pop: #e2bf85;
  --sans: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { background: var(--navy); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* the doodle tile from the banners, faint, behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/assets/doodle-tile.svg") 0 0 / 620px;
  opacity: 0.07;
  pointer-events: none;
}

a { color: var(--pop); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; border-radius: 6px; }

.wrap {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
  font-family: "Cherry Bomb One", var(--sans);
  font-size: 24px;
}
.brand img { width: 44px; height: 44px; }
.top nav a {
  color: var(--ice);
  text-decoration: none;
  font-size: 16px;
  margin-left: 22px;
}
.top nav a:hover { color: var(--cream); }

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 24px;
  padding: 40px 0 56px;
}
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ice);
  border: 1.5px solid var(--border);
  background: var(--panel);
  border-radius: 8px;
  padding: 5px 11px;
  margin-bottom: 20px;
}
.tag b { color: var(--pop); font-weight: 600; }
h1 {
  font-family: "Cherry Bomb One", var(--sans);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  margin: 0 0 22px;
  letter-spacing: 0.5px;
}
h1 span { color: var(--pop); }
.lede {
  font-size: clamp(19px, 2.1vw, 23px);
  color: var(--ice);
  max-width: 30em;
  margin: 0 0 30px;
}
.lede strong { color: var(--cream); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--cream);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--edge);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--edge); }
.btn.main { background: var(--pop); border-color: var(--pop); color: var(--edge); box-shadow: 0 4px 0 #8f7448; }
.btn.main:hover { box-shadow: 0 2px 0 #8f7448; }

/* the cat */
.cat { position: relative; justify-self: center; width: min(100%, 460px); }
.cat img { display: block; width: 100%; height: auto; }
.bubble {
  position: absolute;
  top: -4%;
  right: 2%;
  font-family: "Cherry Bomb One", var(--sans);
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--edge);
  background: var(--cream);
  padding: 4px 20px 8px;
  border-radius: 22px;
  transform: rotate(6deg);
  animation: pop 0.5s 0.25s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.bubble::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -12px;
  border: 10px solid transparent;
  border-top-color: var(--cream);
  border-bottom: 0;
  transform: skewX(18deg);
}
@keyframes pop { from { transform: rotate(6deg) scale(0); } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } .btn { transition: none; } }

/* sections */
section { padding: 14px 0 54px; }
h2 {
  font-family: "Cherry Bomb One", var(--sans);
  font-weight: 400;
  font-size: 30px;
  margin: 0 0 18px;
}

.latest {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  color: inherit;
  text-decoration: none;
}
.latest:hover { border-color: var(--tabby); }
.latest img { display: block; width: 100%; height: auto; border-radius: 12px; }
.latest .kicker { font-family: var(--mono); font-size: 14px; color: var(--pop); }
.latest h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin: 8px 0 10px; }
.latest p { color: var(--ice); margin: 0 0 14px; }
.latest .go { color: var(--pop); font-weight: 600; }

.places { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.places a {
  display: block;
  padding: 9px 16px;
  border: 2px solid var(--border);
  border-radius: 999px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.places a:hover { border-color: var(--tabby); background: var(--surface); }

footer {
  border-top: 2px solid var(--border);
  padding: 22px 0 36px;
  color: var(--ice);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
}
footer a { color: var(--ice); }

/* plain text pages */
.text { max-width: 720px; padding: 24px 0 60px; }
.text h1 { font-size: clamp(38px, 5vw, 56px); }
.text h2 { font-size: 26px; margin-top: 34px; }
.text p, .text li { color: var(--ice); }
.text strong { color: var(--cream); }
.text .date { font-family: var(--mono); font-size: 14px; }

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .cat { order: -1; width: min(78%, 320px); }
  .latest { grid-template-columns: 1fr; gap: 16px; }
  .top nav a { margin-left: 14px; }
  .top nav { white-space: nowrap; }
  .brand { font-size: 20px; white-space: nowrap; gap: 9px; }
  .brand img { width: 36px; height: 36px; }
}
