@font-face {
  font-family: 'Fraunces Soft';
  src: url('assets/fraunces-soft-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --nav-serif: 'Cooper Black', 'Fraunces Soft', 'Bookman Old Style', Georgia, serif;
}

.header .jump-nav {
  gap: clamp(12px, 1.4vw, 22px);
}

.header .jump-nav a {
  font: 900 clamp(13px, 1.05vw, 14px)/1.2 var(--nav-serif);
}

.header-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.header .outbound-button {
  font: 800 clamp(12px, 1vw, 13px)/1.2 var(--body);
  padding: 11px 12px;
  gap: 8px;
}

.show-burst {
  --badge-zoom: 3;
  --badge-scale: 1;
  --badge-angle: -7deg;
  --badge-offset: 10px;
  --badge-shape: polygon(0 22%, 13% 19%, 10% 4%, 28% 10%, 39% 3%, 48% 12%, 61% 3%, 69% 11%, 87% 5%, 85% 20%, 100% 24%, 94% 41%, 100% 52%, 93% 63%, 100% 82%, 82% 81%, 81% 99%, 64% 87%, 53% 100%, 44% 87%, 26% 98%, 27% 84%, 8% 97%, 10% 78%, 0 73%, 7% 54%, 0 43%, 7% 34%);
  --badge-stretched-shape: polygon(0 19%, 13% 19%, 7% 0, 28% 10%, 37% 0, 48% 12%, 63% 0, 69% 11%, 91% 0, 85% 20%, 106% 20%, 94% 41%, 107% 54%, 93% 63%, 104% 86%, 82% 81%, 82% 108%, 64% 87%, 51% 109%, 44% 87%, 25% 108%, 27% 84%, 5% 103%, 10% 78%, 0 79%, 7% 54%, 0 43%, 7% 34%);
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  position: relative;
  display: block;
  width: 168px;
  height: 76px;
  text-decoration: none;
}

.show-burst-art {
  position: absolute;
  inset: 0;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--black);
  pointer-events: none;
  transform: translateY(var(--badge-offset)) rotate(var(--badge-angle)) scale(var(--badge-scale));
  transform-origin: top left;
  transition: transform .32s cubic-bezier(.2, .75, .25, 1);
}

.show-burst-art::before,
.show-burst-art::after {
  content: '';
  position: absolute;
  z-index: -1;
  clip-path: var(--badge-shape);
  animation: var(--badge-peak-motion, none) .42s ease-in-out;
}

.show-burst-art::before {
  inset: 0;
  background: var(--nav-yellow);
}

.show-burst-art::after {
  inset: 2px 3px;
  background: var(--red);
}

.show-burst-art small,
.show-burst-art > span {
  font: 900 9px/1.15 var(--body);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.show-burst-art strong {
  font: 900 22px/1 var(--display);
  letter-spacing: .005em;
  text-transform: uppercase;
  white-space: nowrap;
}

.show-burst:focus-visible {
  --badge-scale: var(--badge-zoom);
  --badge-angle: 0deg;
  --badge-offset: 0px;
  --badge-peak-motion: show-burst-contort;
  z-index: 1;
  outline-color: var(--nav-yellow);
}

@media (hover: hover) {
  .show-burst:hover {
    --badge-scale: var(--badge-zoom);
    --badge-angle: 0deg;
    --badge-offset: 0px;
    --badge-peak-motion: show-burst-contort;
    z-index: 1;
  }
}

@keyframes show-burst-contort {
  50% { clip-path: var(--badge-stretched-shape); }
}

.menu-toggle {
  display: none;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--nav-yellow);
  background: var(--black);
  color: var(--nav-yellow);
  font: 800 13px/1 var(--body);
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle-icon {
  display: block;
  width: 16px;
  height: 12px;
  border-block: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.menu-toggle:hover,
.nav-drawer-close:hover {
  background: var(--nav-yellow);
  color: var(--black);
}

html.nav-drawer-open {
  overflow: hidden;
}

.nav-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(390px, calc(100% - 18px));
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(22px, env(safe-area-inset-right, 0px)) max(18px, env(safe-area-inset-bottom, 0px)) 22px;
  border: 2px solid var(--nav-yellow);
  background: var(--black);
  color: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-drawer[open] {
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: nav-drawer-enter .26s ease-out;
}

.nav-drawer::backdrop {
  background: #000b;
}

@keyframes nav-drawer-enter {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-drawer-header h2 {
  color: var(--nav-yellow);
  font-size: 2.15rem;
}

.nav-drawer-close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--nav-yellow);
  background: var(--black);
  color: var(--nav-yellow);
  font: 30px/1 var(--body);
  cursor: pointer;
}

.nav-drawer-links {
  display: grid;
  border-block-start: 1px solid var(--line);
}

.nav-drawer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 3px;
  border-block-end: 1px solid var(--line);
  color: var(--red);
  font: 900 17px/1.25 var(--nav-serif);
  text-decoration: none;
}

.nav-drawer-links a:hover,
.nav-drawer-links a:focus-visible {
  color: var(--nav-yellow);
}

.nav-drawer-outbound {
  display: grid;
  gap: 10px;
  padding-inline: 6px;
}

.nav-drawer-outbound .outbound-button {
  justify-content: space-between;
  min-height: 44px;
  font: 800 14px/1.2 var(--body);
}

.nav-drawer-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.social-links .social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  color: #fff;
  text-decoration: none;
}

.social-links .social-link:is(:hover, :focus-visible) {
  border-color: var(--nav-yellow);
  color: var(--nav-yellow);
}

.header .header-socials {
  gap: 4px;
}

.header-socials .social-link {
  width: 28px;
  height: 28px;
  border: 0;
}

.header-socials svg {
  width: 17px;
  height: 17px;
}

.site-footer .footer-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.site-footer .archive-easter-egg {
  justify-self: start;
}

.site-footer .back-to-top {
  justify-self: end;
}

@media (max-width: 1120px) {
  :root { --nav-height: 84px; }

  .header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 7px 16px;
  }

  .header .jump-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .show-burst {
    width: 146px;
    height: 64px;
  }

  .show-burst-art strong { font-size: 19px; }
  .show-burst-art small,
  .show-burst-art > span { font-size: 8px; }
}

@media (max-width: 770px) {
  :root {
    --mobile-badge-width: min(clamp(188px, calc(44vw + 47.2px), 230px), calc(100vw - 132px));
    --mobile-badge-height: calc(var(--mobile-badge-width) * 64 / 146);
    --nav-height: calc(var(--mobile-badge-height) + 26px);
  }

  .header {
    gap: 8px;
    padding: 14px 12px 12px;
  }

  .show-burst {
    --badge-zoom: 2.06;
    width: min(var(--mobile-badge-width), 100%);
    height: var(--mobile-badge-height);
  }

  .show-burst-art strong { font-size: calc(var(--mobile-badge-width) * .135); }
  .show-burst-art small,
  .show-burst-art > span { font-size: calc(var(--mobile-badge-width) * .052); }
}

@media (max-width: 540px) {
  .show-burst { --badge-zoom: 1.45; }

  .site-footer .footer-links {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }

  .footer-socials {
    grid-row: 1;
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-drawer[open] { animation: none; }
  .show-burst-art { transition: none; }
  .show-burst-art::before, .show-burst-art::after { animation: none; }
}
