:root {
  /* palette from the current site's style.css */
  --accent: #fabf61;
  --black: #000000;
  --panel: #171513;
  --white: #f5eeb0;
  --text: color-mix(in srgb, var(--white) 85%, var(--panel));
  --gray: #8a7f6f;
  --faded: #554d44;
  --orange: #e08d51;
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Google Sans", system-ui, sans-serif;
  --slant: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  margin: 0;
  padding-bottom: 120px;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-x: clip;
}
a {
  color: inherit;
}
/* iOS turns dates like 07/2025 into phone links despite format-detection */
a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none;
}
img {
  display: block;
  max-width: 100%;
}
/* <picture> wrappers are layout-transparent and pass clip-path down to their <img> */
picture {
  display: contents;
  clip-path: inherit;
}

/* ---------- background: warm glows + hairlines + film grain ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    transparent 0 46px,
    color-mix(in srgb, var(--white) 5%, transparent) 46px 47px
  );
  -webkit-mask-image: radial-gradient(
    80% 70% at 70% 30%,
    #000,
    transparent 75%
  );
  mask-image: radial-gradient(80% 70% at 70% 30%, #000, transparent 75%);
}

/* ---------- page wipe intro ---------- */
.wipe {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  display: grid;
  place-items: center;
}
.wipe::before,
.wipe::after {
  content: "";
  position: absolute;
  inset: -20% -40%;
  background: var(--accent);
  transform: skewX(-18deg) translateX(0);
  animation: wipe-out 0.5s 0.45s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
.wipe::after {
  background: var(--black);
  inset: 30% -40% 30% -40%;
  transform: skewY(-8deg);
  animation: wipe-out 0.5s 0.35s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
.wipe span {
  position: relative;
  z-index: 1;
  font:
    400 clamp(48px, 11vw, 140px)/1 "Anton",
    sans-serif;
  color: var(--white);
  letter-spacing: 0.02em;
  transform: rotate(-8deg);
  animation: wipe-text 0.5s 0.3s ease-in forwards;
}
.wipe span::after {
  content: ".";
  position: absolute;
  left: 100%;
  top: 0;
  text-align: left;
  animation: dots 0.8s steps(1) forwards; /* one pass, ~.27s per step; "..." shows during fade-out */
}
@keyframes dots {
  0% {
    content: ".";
  }
  33% {
    content: "..";
  }
  66%,
  100% {
    content: "...";
  }
}
@keyframes wipe-out {
  to {
    transform: skewX(-18deg) translateX(140%);
  }
}
@keyframes wipe-text {
  to {
    opacity: 0;
    transform: rotate(-8deg) scale(1.6);
  }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 110px 6vw 60px;
  max-width: 1300px;
  margin: 0 auto;
}
.ransom {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
}
.ransom b {
  display: inline-block;
  font-size: clamp(40px, 5.6vw, 92px);
  line-height: 1;
  padding: 0.04em 0.12em 0.02em;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.6);
}
.ransom b:hover {
  animation: jitter 0.25s steps(2) infinite;
}
.tagline {
  display: inline-block;
  margin: 26px 0 0;
  font: 700 clamp(20px, 2.4vw, 30px)/1 var(--head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--black);
  color: var(--white);
  padding: 12px 34px 10px 22px;
  border: 3px solid var(--white);
  transform: rotate(-3deg) skewX(-12deg);
  box-shadow: 8px 8px 0 var(--accent);
}
.tagline span {
  display: inline-block;
  transform: skewX(12deg);
}
.tagline {
  transition:
    background 0.12s,
    color 0.12s,
    border-color 0.12s,
    box-shadow 0.12s;
}
/* swear symbols replacing hero letters on click (site.js) */
.grawlix {
  display: inline-block;
  font-style: inherit;
  rotate: var(--r);
  animation: grawlix-pop 0.25s ease-out;
}
@keyframes grawlix-pop {
  from {
    scale: 2.4;
    opacity: 0;
  }
}
.tagline:hover {
  background: var(--accent);
  color: var(--black);
  border-color: var(--black);
  box-shadow: 8px 8px 0 var(--white);
}
.intro {
  max-width: 560px;
  margin: 28px auto 0;
  font-size: 18px;
  color: var(--text);
}
.intro p {
  margin: 0;
}
/* hero blocks bounce on click (site.js) */
.ransom,
.tagline,
.intro {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.intro strong {
  color: var(--black);
  background: var(--accent);
  padding: 0 6px;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.outro {
  margin-top: 100px;
  padding: 0 16px;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--white);
  --fg: var(--black);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 15px/1 var(--head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--bg);
  color: var(--fg);
  padding: 11px 22px 10px;
  clip-path: var(--slant);
  transition:
    transform 0.12s,
    background 0.12s,
    color 0.12s;
  cursor: pointer;
  border: 0;
}
.btn::before {
  content: "";
  flex: none;
  width: 0;
  height: 10px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transition: width 0.12s;
}
.btn:hover,
.btn:focus-visible {
  --bg: var(--accent);
  --fg: var(--black);
  transform: rotate(-3deg) scale(1.07);
  outline: none;
}
.btn:hover::before,
.btn:focus-visible::before {
  width: 9px;
}
/* drawn triangles: iOS renders ◀ / ▶ characters as emoji */
.tri {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.tri.left {
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}
.ico {
  width: 15px;
  height: 15px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}
.btn.accent {
  --bg: var(--accent);
  --fg: var(--black);
}
.btn.accent:hover,
.btn.accent:focus-visible {
  --bg: var(--white);
}
.btn.icon-only {
  padding: 18px 40px;
}
.btn.icon-only::before {
  display: none;
}
.btn.icon-only .ico {
  width: 52px;
  height: 52px;
}
.btn.icon-only .ico-mail {
  scale: 1.2;
}
.ico-github {
  --i: url("https://cdn.jsdelivr.net/npm/simple-icons@13/icons/github.svg");
}
.ico-itch {
  --i: url("https://cdn.jsdelivr.net/npm/simple-icons@13/icons/itchdotio.svg");
}
.ico-steam {
  --i: url("https://cdn.jsdelivr.net/npm/simple-icons@13/icons/steam.svg");
}
.ico-youtube {
  --i: url("https://cdn.jsdelivr.net/npm/simple-icons@13/icons/youtube.svg");
}
.ico-reddit {
  --i: url("https://cdn.jsdelivr.net/npm/simple-icons@13/icons/reddit.svg");
}
.ico-mail {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20q-.825 0-1.412-.587Q2 18.825 2 18V6q0-.825.588-1.412Q3.175 4 4 4h16q.825 0 1.413.588Q22 5.175 22 6v12q0 .825-.587 1.413Q20.825 20 20 20Zm8-7 8-5V6l-8 5-8-5v2Z'/%3E%3C/svg%3E");
}

/* ---------- section headers ---------- */
.sec-head {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 18px;
  max-width: 1200px;
  margin: 80px auto 40px;
  padding: 0 6vw;
}
.sec-head h2 {
  margin: 0;
  font: 700 clamp(46px, 7vw, 92px)/1.05 var(--head);
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  padding: 0 34px 0.12em 32px;
  clip-path: polygon(0 8%, 100% 0, 97% 100%, 2% 92%);
  transform: rotate(-3deg);
  filter: drop-shadow(10px 10px 0 var(--accent));
}

/* ---------- project cards ---------- */
.cards {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6vw;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 70px;
}
.card > * {
  min-width: 0;
}
.card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 34px;
  align-items: center;
  padding: 38px 40px 40px;
  transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.card:nth-child(even) {
  grid-template-columns: 1fr 1.05fr;
}
.card:nth-child(even) .media {
  order: 2;
}
.frame {
  position: absolute;
  inset: 0;
  z-index: -1;
  filter: drop-shadow(14px 14px 0 var(--accent));
  transition: filter 0.2s;
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
}
.frame::before {
  inset: 0;
  background: var(--white);
  clip-path: polygon(0 4%, 100% 0, 98.5% 100%, 1.5% 95%);
}
.frame::after {
  inset: 6px;
  background: var(--panel);
  clip-path: polygon(0 4%, 100% 0, 98.5% 100%, 1.5% 95%);
}
.card:nth-child(even) .frame {
  filter: drop-shadow(-14px 14px 0 var(--accent));
}
.card:nth-child(even) .frame::before,
.card:nth-child(even) .frame::after {
  clip-path: polygon(0 0, 100% 4%, 98.5% 95%, 1.5% 100%);
}
.card:hover {
  transform: rotate(-0.6deg) scale(1.01);
}
.card:nth-child(even):hover {
  transform: rotate(0.6deg) scale(1.01);
}
.card:hover .frame {
  filter: drop-shadow(20px 20px 0 var(--accent));
}
.card:nth-child(even):hover .frame {
  filter: drop-shadow(-20px 20px 0 var(--accent));
}

.media {
  position: relative;
}
.cover {
  display: block;
  padding: 5px;
  background: var(--white);
  cursor: zoom-in;
  border: 0;
  clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
  transform: rotate(-2deg);
  transition: transform 0.15s;
  width: 100%;
}
.card:nth-child(even) .cover {
  transform: rotate(2deg);
}
.cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  clip-path: inherit;
  image-rendering: auto;
}
.cover:hover,
.card:nth-child(even) .cover:hover {
  transform: rotate(0) scale(1.03);
}
.thumbs {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-left: 10px;
}
.thumbs button {
  flex: 1;
  padding: 3px;
  background: var(--white);
  border: 0;
  cursor: zoom-in;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  transition:
    transform 0.12s,
    background 0.12s;
}
.thumbs button:hover {
  transform: translateY(-4px) rotate(-4deg);
  background: var(--accent);
}
.thumbs img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  clip-path: inherit;
}
.thumbs button.video {
  position: relative;
}
.thumbs button.video::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -40% -50%;
  width: 20px;
  height: 24px;
  background: var(--white);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  filter: drop-shadow(0 0 6px #000);
}
.thumbs.grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  margin: 0;
  padding: 0;
}
.card:nth-child(even) .thumbs.grid {
  order: 3;
}

.sticker {
  position: absolute;
  top: -26px;
  right: -14px;
  z-index: 2;
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 30px;
  font: 700 17px/1 var(--head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: var(--white);
  color: var(--black);
  clip-path: polygon(
    50% 0,
    61% 18%,
    80% 7%,
    79% 29%,
    100% 31%,
    86% 48%,
    100% 65%,
    79% 70%,
    82% 92%,
    61% 83%,
    50% 100%,
    39% 83%,
    18% 92%,
    21% 70%,
    0 65%,
    14% 48%,
    0 31%,
    21% 29%,
    20% 7%,
    39% 18%
  );
  transform: rotate(12deg);
  pointer-events: none; /* hover and clicks go to the cover under it */
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card:nth-child(even) .sticker {
  right: auto;
  left: -14px;
  transform: rotate(-12deg);
}
/* the sticker follows the cover it sits on */
.media:has(.cover:hover) .sticker {
  transform: rotate(4deg) scale(1.12);
}
.card:nth-child(even) .media:has(.cover:hover) .sticker {
  transform: rotate(-4deg) scale(1.12);
}

.sec-head h2 a,
.body h3 a {
  color: inherit;
  text-decoration: none;
}
/* Anchor icon next to anchored titles, shown on hover. Section titles sit on a cream
   plaque, so their icon lives outside it, in the accent color. */
.body h3 .last::after,
.sec-head .anchor {
  --anchor-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='4.5' r='2.5'/%3E%3Cpath d='M12 7v14M7 10h10M4 14a8 8 0 0 0 16 0M2 16l2-2 2 2M18 16l2-2 2 2'/%3E%3C/svg%3E");
  content: "";
  display: inline-block;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--anchor-icon) center / contain no-repeat;
  mask: var(--anchor-icon) center / contain no-repeat;
  opacity: 0;
  transition: opacity 0.15s;
}
.body h3 .last {
  position: relative;
}
.body h3 .last::after {
  position: absolute;
  left: 100%;
  top: 50%;
  translate: 0.22em -50%;
  width: 0.42em;
  height: 0.42em;
}
.sec-head .anchor {
  align-self: center;
  width: 34px;
  height: 34px;
}
.body h3 .last::after,
.sec-head .anchor {
  color: color-mix(in srgb, var(--accent) 55%, var(--white));
}
.body h3 a:hover .last::after,
.body h3 a:focus-visible .last::after,
.sec-head:hover .anchor,
.sec-head .anchor:focus-visible {
  opacity: 0.8;
}
@media (hover: none) {
  .body h3 .last::after,
  .sec-head .anchor {
    opacity: 0.4;
  }
}
section[id],
.card[id] {
  scroll-margin-top: 40px;
}

.body h3 {
  margin: 6px 0 4px;
  font: 700 clamp(36px, 4.6vw, 60px)/1.05 var(--head);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.body h3.long {
  font-size: clamp(30px, 3.4vw, 46px);
}
.genre {
  display: inline-block;
  margin: 6px 0 0;
  font: 700 16px/1 var(--head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: var(--black);
  padding: 7px 18px 6px 12px;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
}
.date {
  margin: 12px 0 0;
  font: 500 15px/1 var(--head);
  letter-spacing: 0.12em;
  color: var(--gray);
}
.notes {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text);
}
.notes li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
}
.notes a {
  color: var(--accent);
  text-underline-offset: 3px;
}
.notes a:hover {
  color: var(--black);
  background: var(--accent);
  text-decoration: none;
}
.notes li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 12px;
  top: 4px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.tags li {
  transform: skewX(-12deg);
}
.tags a,
.tags span {
  display: block;
  text-decoration: none;
  font: 500 13px/1 var(--head);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--panel));
  color: var(--accent);
  padding: 5px 10px 4px;
  transition:
    background 0.1s,
    color 0.1s;
}
.tags a:hover,
.tags a:focus-visible {
  background: var(--accent);
  color: var(--black);
  outline: none;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* ---------- reveal on scroll (only when JS runs) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateX(-80px) skewX(8deg);
  transition:
    opacity 0.45s,
    transform 0.55s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.js .reveal.from-right {
  transform: translateX(80px) skewX(-8deg);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- earlier gallery ---------- */
.gifs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6vw;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.gifs button {
  padding: 4px;
  border: 0;
  background: var(--white);
  cursor: zoom-in;
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}
/* `rotate` / `scale` instead of `transform`: the reveal-on-scroll animation owns `transform` */
.gifs button,
.js .gifs button {
  transition:
    opacity 0.45s,
    transform 0.55s cubic-bezier(0.2, 1.3, 0.4, 1),
    rotate 0.15s,
    scale 0.15s,
    background 0.15s;
}
.gifs button:nth-child(odd) {
  rotate: -2deg;
}
.gifs button:nth-child(even) {
  rotate: 2deg;
}
.gifs button:hover {
  rotate: 0deg;
  scale: 1.06;
  background: var(--accent);
}
.gifs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  clip-path: inherit;
}

/* ---------- requests list (articles) ---------- */
.requests {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 6vw;
  list-style: none;
  counter-reset: req;
}
.requests li {
  counter-increment: req;
  margin-bottom: 8px;
}
.requests a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  padding: 14px 20px;
  background: var(--panel);
  border-left: 6px solid var(--white);
  clip-path: polygon(0 0, 100% 0, 98.5% 100%, 0 100%);
  transition:
    background 0.1s,
    transform 0.15s,
    border-color 0.1s;
}
.requests a::before {
  content: counter(req, decimal-leading-zero);
  font: 400 28px/1 "Anton";
  color: var(--accent);
}
.requests a:hover,
.requests a:focus-visible {
  color: var(--black);
  background: var(--accent);
  border-color: var(--black);
  transform: translateX(10px) rotate(-0.6deg);
  outline: none;
}
.requests a:hover::before {
  color: var(--black);
}
.requests span {
  font: 500 18px/1.3 var(--body);
}

/* ---------- gallery (PhotoSwipe) ---------- */
.pswp {
  --pswp-bg: #000;
  --pswp-icon-color: var(--black);
  --pswp-icon-color-secondary: transparent;
  --pswp-icon-stroke-color: transparent;
  --pswp-icon-stroke-width: 0;
}
/* iOS: `100%` stops above the collapsing toolbar and the page shows through below */
.pswp {
  height: 100vh;
  height: 100lvh;
}
.pswp__button {
  opacity: 1 !important;
}
/* buttons look like the "I maek gaems" plaque: black, cream frame, accent shadow */
.pswp__button--arrow,
.pswp__button--close {
  color: var(--white);
  background: var(--black);
  border: 3px solid var(--white);
  box-shadow: 6px 6px 0 var(--accent);
  transform: skewX(-10deg);
  transition:
    background 0.12s,
    color 0.12s,
    border-color 0.12s,
    box-shadow 0.12s,
    transform 0.12s;
}
.pswp__button--arrow:hover,
.pswp__button--close:hover {
  color: var(--black);
  background: var(--accent);
  border-color: var(--black);
  box-shadow: 6px 6px 0 var(--white);
  transform: skewX(-10deg) rotate(-3deg) scale(1.07);
}
.pswp .pswp__icn {
  color: inherit;
  fill: currentColor;
  stroke: currentColor;
}
/* arrows sit at fixed spots on the screen, whatever the image size */
.pswp__button--arrow {
  top: 50%;
  width: 64px;
  height: 64px;
  margin-top: -32px;
}
.pswp__button--arrow--prev {
  left: 24px;
}
.pswp__button--arrow--next {
  right: 24px;
}
.pswp__button--arrow .pswp__icn,
.pswp__button--arrow--next .pswp__icn,
.pswp__button--close .pswp__icn {
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  margin: 0;
  width: 30px;
  height: 30px;
  translate: -50% -50%;
  transform: skewX(10deg);
}
.pswp__button--close {
  width: 56px;
  height: 56px;
  margin: 0;
}
.pswp__top-bar {
  padding: 16px 20px 0;
  gap: 8px;
}
.pswp__counter {
  margin: 10px auto 0 0;
  opacity: 1;
  font: 700 18px/1 var(--head);
  letter-spacing: 0.12em;
  color: var(--white);
  text-shadow: none;
}
.pswp__caption {
  position: absolute;
  left: 50%;
  bottom: 24px;
  translate: -50% 0;
  max-width: calc(100vw - 40px);
  font: 700 20px/1 var(--head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--black);
  background: var(--white);
  padding: 9px 24px 7px;
  clip-path: var(--slant);
  pointer-events: none;
}
.pswp__caption:empty {
  display: none;
}
.pswp-video {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.pswp-video iframe {
  width: min(92vw, calc((100vh - 180px) * 16 / 9));
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

@keyframes jitter {
  0% {
    translate: -2px 1px;
  }
  100% {
    translate: 2px -1px;
  }
}
@keyframes shake {
  0%,
  100% {
    translate: 0 0;
  }
  20% {
    translate: -6px 3px;
  }
  40% {
    translate: 5px -4px;
  }
  60% {
    translate: -4px -2px;
  }
  80% {
    translate: 3px 4px;
  }
}
.shake {
  animation: shake 0.28s linear;
}

/* ---------- articles (other pages) ---------- */
.topbar {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 50;
}
.topbar .btn::before {
  display: none;
}
.article {
  max-width: 880px;
  margin: 0 auto;
  padding: 110px 24px 40px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
}
.article h1 {
  display: inline-block;
  margin: 0 0 30px;
  font: 700 clamp(34px, 5vw, 60px)/1.15 var(--head);
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  padding: 12px 32px 16px 20px;
  clip-path: polygon(0 4%, 100% 0, 99% 100%, 0 97%);
  transform: rotate(-1.5deg);
  filter: drop-shadow(8px 8px 0 var(--accent));
}
.article h2 {
  display: inline-block;
  margin: 46px 0 14px;
  font: 700 clamp(22px, 2.8vw, 30px)/1.15 var(--head);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--black);
  background: var(--accent);
  padding: 7px 26px 5px 14px;
  clip-path: polygon(0 0, 100% 0, 97% 100%, 0 100%);
}
.article h3 {
  margin: 30px 0 10px;
  font: 700 22px/1.2 var(--head);
  text-transform: uppercase;
  color: var(--accent);
}
.article h2 a,
.article h3 a {
  color: inherit;
}
.article p {
  margin: 12px 0;
}
.article ul,
.article ol {
  padding-left: 26px;
}
.article li {
  margin-bottom: 8px;
}
.article li::marker {
  color: var(--orange);
}
.article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article a:hover {
  color: var(--black);
  background: var(--accent);
  text-decoration: none;
}
.article em {
  color: var(--orange);
  font-style: normal;
}
.article strong {
  color: var(--white);
}
.article hr {
  height: 4px;
  margin: 40px 0;
  border: 0;
  background: color-mix(in srgb, var(--accent) 45%, transparent);
  clip-path: polygon(0 0, 100% 0, 99% 100%, 1% 100%);
}
.article blockquote {
  margin: 20px 0;
  padding: 4px 20px;
  background: var(--panel);
  border-left: 6px solid var(--accent);
}
.article code {
  font:
    500 0.88em "Roboto Mono",
    monospace;
  color: var(--accent);
  background: var(--panel);
  padding: 1px 6px 2px;
}
.article .codehilite {
  margin: 18px 0;
  padding: 14px 18px;
  overflow-x: auto;
  background: var(--panel);
  border: 2px solid var(--white);
  box-shadow: 8px 8px 0 var(--accent);
}
.article .codehilite pre {
  margin: 0;
  line-height: 1.5;
}
.article .codehilite code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: 15px;
}
.article img {
  max-width: 100%;
  height: auto;
  margin: 6px 0;
  border: 3px solid var(--white);
  cursor: zoom-in;
  transition: transform 0.15s;
}
.article img:hover {
  transform: rotate(-0.5deg) scale(1.01);
}
.article .video {
  margin: 18px 0;
  border: 3px solid var(--white);
  box-shadow: 8px 8px 0 var(--accent);
}
.article .video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
.article details {
  margin: 18px 0;
  padding: 0 18px;
  background: var(--panel);
  border-left: 6px solid var(--accent);
}
.article summary {
  cursor: pointer;
  padding: 12px 0;
  font: 700 17px/1.2 var(--head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.article .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.article .gallery button {
  padding: 3px;
  border: 0;
  background: var(--white);
  cursor: zoom-in;
}
.article .gallery button:hover {
  background: var(--accent);
}
.article .gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin: 0;
  border: 0;
}
.article .hulvdan_flex {
  display: flex;
  align-items: center;
  gap: 16px;
}
.article .hulvdan_flex_wrap {
  flex-wrap: wrap;
}
.article .page-number {
  font: 500 14px/1.4 var(--head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  body {
    font-size: 16px;
  }
  .hero {
    padding: 90px 16px 40px;
    min-height: auto;
  }
  .btn.icon-only {
    padding: 12px 22px;
  }
  .btn.icon-only .ico {
    width: 36px;
    height: 36px;
  }
  .cards,
  .gifs,
  .requests,
  .sec-head {
    padding-left: 16px;
    padding-right: 16px;
  }
  /* no sideways slide-in on phones: off-screen transforms widen the page */
  .js .reveal,
  .js .reveal.from-right {
    transform: translateY(40px);
  }
  .card,
  .card:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    padding: 30px 22px 30px;
  }
  .card:nth-child(even) .media {
    order: 0;
  }
  .thumbs.grid {
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 6px;
  }
  .gifs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  section[id],
  .card[id] {
    scroll-margin-top: 12px;
  }
  .pswp__button--arrow {
    top: auto;
    bottom: 20px;
    margin-top: 0;
  }
  .pswp__caption {
    bottom: 96px;
    font-size: 16px;
  }
  .sticker {
    width: 110px;
    height: 110px;
    font-size: 14px;
    padding: 0 24px;
  }
  .requests a {
    grid-template-columns: 44px 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .wipe {
    display: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
