/* fonts are bundled with the site (SIL Open Font License, see fonts/LICENSE-fonts.txt) */
@font-face {
  font-family: 'Bagel Fat One';
  src: url('fonts/bagel-fat-one.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/space-grotesk.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}

:root {
  --cyan: #00f0ff;
  --cyan-deep: #00c8d6;
  --ink: #0b0b0b;
  --paper: #ffffff;
  --purple: #8a12e0;
  --orange: #ff7a12;
  --pink: #e0218a;
  /* the logo gradient: green -> yellow -> orange -> pink -> purple */
  --rainbow: linear-gradient(90deg, #16b41f 0%, #6fd400 18%, #f2c200 36%, #ff7a12 54%, #ef3f86 72%, #c02be8 88%, #9a3df2 100%);
  --shadow: 5px 5px 0 var(--ink);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cyan);
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ink);
  color: var(--cyan);
}
.nav::after {
  content: "";
  display: block;
  height: 5px;
  background: var(--rainbow);
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.nav-home { display: flex; align-items: center; gap: 12px; line-height: 0; text-decoration: none; }
.nav-home img { display: block; width: auto; }
.nav-mark { height: 44px; }
.nav-word { height: 28px; }
.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: 999px;
}
.nav-links a:hover { background: rgba(0, 240, 255, 0.15); color: var(--cyan); }
.nav-links a[aria-current="page"] { background: var(--cyan); color: var(--ink); }

/* ---------- layout ---------- */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

h1, h2, .display {
  font-family: 'Bagel Fat One', 'Space Grotesk', sans-serif;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); margin: 64px 0 16px; }

p { margin: 0 0 1em; }

.lede { font-size: 1.3rem; font-weight: 500; }

/* ---------- sticker-style cards ---------- */
.card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
}
.card.dark { background: var(--ink); color: var(--paper); }
.card.dark a:not(.btn) { color: var(--cyan); }
.tilt-l { transform: rotate(-0.7deg); }
.tilt-r { transform: rotate(0.7deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  text-align: center;
  padding: 14px 26px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ink { background: var(--ink); color: var(--cyan); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-block { display: block; width: 100%; }
.btn-rainbow { background: var(--rainbow); color: var(--ink); }

/* ---------- photos with captions (polaroid-ish) ---------- */
.photo {
  margin: 0;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 10px 10px 14px;
  box-shadow: 4px 4px 0 var(--ink);
}
.photo img { display: block; width: 100%; height: auto; border-radius: 4px; }
.photo figcaption { font-size: 0.95rem; margin-top: 10px; line-height: 1.4; }

/* ---------- sticker cutouts ---------- */
.stickers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: center;
  margin: 24px 0 8px;
}
.stickers img {
  width: 100%;
  height: auto;
  filter: drop-shadow(4px 5px 0 rgba(11, 11, 11, 0.85));
}
.stickers img:nth-child(1) { transform: rotate(-6deg); }
.stickers img:nth-child(2) { transform: rotate(3deg); }
.stickers img:nth-child(3) { transform: rotate(-2deg); }
@media (max-width: 560px) { .stickers { gap: 10px; } }

a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

/* ---------- logo as a die-cut sticker ---------- */
.logo-sticker {
  display: inline-block;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 28px;
  padding: 22px 28px;
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-2deg);
  max-width: 100%;
}
.hero h1 { margin: 0; line-height: 0; }
.logo-sticker img { display: block; width: 100%; max-width: 560px; height: auto; }

/* ---------- misc ---------- */
.tag {
  display: inline-block;
  background: var(--ink);
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
}

.cat { width: 72px; height: auto; display: block; }



.site-footer { background: var(--ink); color: var(--paper); margin-top: 72px; }
.site-footer::before { content: ""; display: block; height: 5px; background: var(--rainbow); }
.footer-inner {
  max-width: 960px; margin: 0 auto; padding: 22px 20px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  font-size: 0.9rem;
}
.footer-brand { display: flex; align-items: center; gap: 14px; color: var(--paper); text-decoration: none; }
.footer-brand img { height: 84px; width: auto; display: block; }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer .foot-links a { color: var(--paper); font-weight: 600; }
.site-footer .foot-links a:hover { color: var(--cyan); }
main { padding-bottom: 8px; }
@media (max-width: 560px) { .footer-brand img { height: 64px; } .site-footer { margin-top: 56px; } }

/* chips for youtube / substack / instagram */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 0 0 22px; }
.chips li { border: 2px solid currentColor; border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .lede { font-size: 1.15rem; }
  .card { padding: 20px; }
  .nav-mark { height: 36px; }
  .nav-word { height: 22px; }
  .nav-home { gap: 8px; }
  .nav-links a { padding: 6px 9px; font-size: 0.9rem; }
}
