:root {
  --paper: #fff6d6;
  --yolk: #f4c400;
  --yolk-2: #ffe56a;
  --ink: #1c1508;
  --line: #161616;
  --white: #fffdf6;
  --mute: #7a6a42;
  --ok: #2f7d3a;
  --display: "Fredoka", system-ui, sans-serif;
  --sans: "Nunito", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
::selection { background: var(--yolk); color: var(--ink); }

.yard {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #ffe9a0 0%, transparent 58%),
    repeating-linear-gradient(
      -18deg,
      transparent 0 46px,
      rgb(244 196 0 / 0.07) 46px 47px
    );
}

.ribbon,
.top,
main,
.end {
  position: relative;
  z-index: 1;
}

.ribbon {
  display: flex;
  justify-content: center;
  gap: 2rem;
  overflow: hidden;
  padding: 0.55rem 1rem;
  background: var(--yolk);
  border-bottom: 3px solid var(--line);
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ribbon span:last-child { display: none; }

.top {
  width: min(1080px, calc(100% - 1.6rem));
  margin: 1rem auto 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.6rem 0.55rem 0.7rem;
  background: var(--white);
  border: 3px solid var(--line);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--line);
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
}

.mark img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2.5px solid var(--line);
}

.top nav {
  margin-left: auto;
  display: flex;
  gap: 1rem;
  font-weight: 800;
}

.top nav a:hover { color: #8a6a00; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.35rem 1.05rem;
  background: var(--yolk);
  border: 3px solid var(--line);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--line);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--line);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--line);
}

.btn.ghost {
  background: var(--white);
}

.btn.lg {
  min-height: 3.15rem;
  padding: 0.45rem 1.35rem;
  font-size: 1.12rem;
}

.btn.sm {
  min-height: 2.2rem;
  padding: 0.2rem 0.75rem;
  font-size: 0.9rem;
  box-shadow: 2px 2px 0 var(--line);
}

.btn.wide { width: 100%; }

main {
  width: min(1080px, calc(100% - 1.6rem));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.2rem;
  align-items: center;
  padding: 2.4rem 0 1.2rem;
}

.tag {
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

h1, h2, .who {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 {
  margin: 0.55rem 0 0.9rem;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  max-width: 11ch;
}

.lede {
  font-size: 1.12rem;
  max-width: 36ch;
  color: #3a3018;
}

.lede em {
  font-style: italic;
  font-weight: 800;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.35rem 0 1rem;
}

.ca {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.8rem;
  font-size: 0.88rem;
}

.ca span {
  font-weight: 800;
  color: var(--mute);
}

.ca code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.78rem;
  word-break: break-all;
  color: #3d3418;
}

.sticker {
  position: relative;
  justify-self: center;
  width: min(420px, 100%);
  padding: 1.15rem 1.15rem 0.9rem;
  background: var(--white);
  border: 4px solid var(--line);
  border-radius: 2rem;
  box-shadow: 8px 8px 0 var(--line);
  text-align: center;
  cursor: pointer;
}

.sticker img {
  width: 100%;
  border-radius: 50%;
  animation: bob 4.5s var(--ease) infinite;
}

.sticker figcaption {
  margin-top: 0.7rem;
  font-family: var(--display);
  font-weight: 600;
}

.stamp {
  position: absolute;
  top: 0.85rem;
  right: 0.7rem;
  rotate: 12deg;
  padding: 0.2rem 0.55rem;
  background: var(--yolk);
  border: 2.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
}

.chain {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
  margin: 1.4rem 0 2.4rem;
}

.chain article {
  padding: 1.15rem 1.1rem 1.2rem;
  background: var(--white);
  border: 3px solid var(--line);
  border-radius: 1.35rem;
  box-shadow: 4px 4px 0 var(--line);
}

.chain article.hot { background: var(--yolk-2); }

.who {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}

.chain h2 {
  margin: 0.25rem 0 0.45rem;
  font-size: 1.55rem;
}

.chain p { color: #433820; }

.arrow {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--line);
}

.why {
  padding: 0.2rem 0 1.4rem;
}

.why h2 {
  margin: 0.4rem 0 0.85rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  max-width: 18ch;
}

.why > p {
  max-width: 62ch;
  font-size: 1.08rem;
  color: #3a3018;
}

.why ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.why li {
  padding: 1.1rem;
  background: var(--white);
  border: 3px solid var(--line);
  border-radius: 1.25rem;
}

.why b {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.why span { color: #4a3f22; }

.flock {
  margin: 0.4rem 0 2.2rem;
}

.bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.bubbles q {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  background: var(--white);
  border: 3px solid var(--line);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  quotes: none;
}

.coop { padding: 0.4rem 0 2rem; }

.board {
  padding: 1.4rem 1.3rem 1.35rem;
  background: var(--white);
  border: 4px solid var(--line);
  border-radius: 1.7rem;
  box-shadow: 8px 8px 0 var(--line);
}

.board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pair {
  font-family: var(--display);
  font-size: 1.15rem;
}

.live {
  padding: 0.2rem 0.65rem;
  border: 2.5px solid var(--line);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
}

.live.wait {
  background: #eee4c4;
  animation: waitPulse 1.6s ease-in-out infinite;
}
.live.ok { background: #b7e3b0; }

.eggs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.eggs li {
  padding: 0.85rem 0.9rem;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 1.1rem;
}

.eggs span {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--mute);
}

.eggs b {
  font-family: var(--display);
  font-size: 1.35rem;
}

.audit {
  margin: 0.9rem 0 0.7rem;
  color: var(--mute);
  font-weight: 700;
}

.board .ca { margin: 0.4rem 0 1rem; }

.out {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.out a {
  border-bottom: 2px solid var(--yolk);
}

.out a:hover { border-bottom-color: var(--line); }

.ask h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
}

.ask dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.ask div {
  padding: 1.05rem 1.1rem;
  background: var(--white);
  border: 3px solid var(--line);
  border-radius: 1.2rem;
}

.ask dt {
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.ask dd { color: #433820; }

.end {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 1.6rem 1rem 2.2rem;
  text-align: center;
  border-top: 3px solid var(--line);
  background: var(--yolk-2);
}

.end img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--line);
}

.end p {
  font-family: var(--display);
  font-size: 1.25rem;
}

.end small { color: #5a4c28; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: 20;
  translate: -50% 120%;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  font-family: var(--display);
  opacity: 0;
  transition: 0.25s var(--ease);
}

.toast.on {
  translate: -50% 0;
  opacity: 1;
}

.flash { animation: pop 0.35s var(--ease); }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pop {
  from { transform: scale(0.98); }
}

@keyframes waitPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@media (max-width: 860px) {
  .hero,
  .why ul,
  .eggs,
  .ask dl {
    grid-template-columns: 1fr;
  }

  .chain {
    grid-template-columns: 1fr;
  }

  .arrow {
    height: 0.4rem;
    transform: rotate(90deg);
  }

  h1 { max-width: none; }

  .top nav a:first-child,
  .top nav a:nth-child(2) { display: none; }

  .hero { padding-top: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sticker img,
  .live.wait { animation: none; }
}
