@font-face { font-family: Sign; src: url(/assets/fonts/RagtownSign-Bold.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Rubik; src: url(/assets/fonts/Rubik-Variable.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --ink: #2a1610;
  --paper: #fff7e8;
  --sand: #fbe7c6;
  --red: #ee5a3c;
  --yellow: #fcc23d;
  --blue: #4fb0e5;
  --green: #7bbf47;
  --purple: #9b7ddf;
  --sky: linear-gradient(180deg, #7d86d8 0%, #d49ab8 45%, #f6b469 100%);
  --edge: 3px solid var(--ink);
  --pop: 5px 6px 0 var(--ink);
  --round: 18px;
  --gut: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 clamp(16px, 1.05rem + .2vw, 19px)/1.6 Rubik, system-ui, sans-serif; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: Sign, Rubik, sans-serif; font-weight: 700; line-height: 1.05; letter-spacing: .01em; }
p { margin: 0 0 .8em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--paper); padding: 8px 12px; border: var(--edge); }
.center { text-align: center; }
.small { font-size: .9em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .7em 1.3em; border: var(--edge); border-radius: 999px; box-shadow: 3px 4px 0 var(--ink); font: 700 1.05em/1 Sign, Rubik, sans-serif; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-1px, -2px); box-shadow: 4px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-steam { background: var(--red); color: #fff; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-sm { padding: .5em 1em; font-size: .95em; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 10px var(--gut); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: var(--edge); }
.bar-logo img { width: clamp(110px, 16vw, 150px); }
.bar-nav { display: flex; gap: clamp(12px, 3vw, 28px); margin-left: auto; font-weight: 600; }
.bar-nav a { text-decoration: none; }
.bar-nav a:hover { text-decoration: underline 3px var(--yellow); text-underline-offset: 5px; }
@media (max-width: 560px) {
  .bar { flex-wrap: wrap; row-gap: 6px; }
  .bar-nav { order: 3; width: 100%; justify-content: space-around; margin: 0; font-size: .95em; }
  .bar .btn { margin-left: auto; }
}

/* hero */
.hero { position: relative; display: grid; padding: 0; background: var(--sky); border-bottom: var(--edge); overflow: hidden; }
.hero-art { width: 100%; min-height: min(640px, 80vh); max-height: 88vh; object-fit: cover; object-position: 55% 40%; }
.hero-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: clamp(18px, 5vw, 60px) var(--gut) 0; text-align: center; }
.hero h1 img { width: min(640px, 82vw); filter: drop-shadow(0 6px 0 rgba(42, 22, 16, .25)); animation: bob 4s ease-in-out infinite; }
.hero-line { max-width: 30ch; margin: .6em 0 1em; padding: .35em .9em; background: var(--paper); border: var(--edge); border-radius: 12px; box-shadow: var(--pop); font-weight: 600; font-size: clamp(1rem, .9rem + .8vw, 1.4rem); line-height: 1.3; transform: rotate(-1.2deg); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-when { margin-top: 1em; color: #fff; font-weight: 700; text-shadow: 0 2px 0 var(--ink); }
@media (max-width: 700px) {
  .hero-text { position: static; padding-bottom: 28px; }
  .hero picture { order: 2; }
  .hero-art { min-height: 0; border-top: var(--edge); }
  .hero-when { color: var(--ink); text-shadow: none; }
}
@keyframes bob { 50% { transform: translateY(-6px) rotate(-.6deg); } }

/* sections */
section { padding: clamp(48px, 9vw, 110px) var(--gut); }
.title { margin-bottom: clamp(28px, 5vw, 56px); text-align: center; font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); color: var(--paper); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 3px 4px 0 var(--ink); }
.title-left { text-align: left; }

/* story */
.story { max-width: 1120px; margin: 0 auto; }
.story .title { color: var(--yellow); }
.chapter { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(24px, 5vw, 64px); margin-bottom: clamp(56px, 9vw, 110px); }
.chapter:nth-of-type(even) .frame { order: 2; }
.chapter h3 { margin: .25em 0 .4em; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
.chapter-wide { grid-template-columns: 1fr; text-align: center; }
.chapter-wide .chapter-text { justify-self: center; }
.badge { display: inline-grid; place-items: center; width: 44px; height: 44px; border: var(--edge); border-radius: 50%; box-shadow: 2px 3px 0 var(--ink); font: 700 1.3rem/1 Sign, sans-serif; color: #fff; -webkit-text-stroke: 1px var(--ink); }
.c-red { background: var(--red); } .c-yellow { background: var(--yellow); } .c-blue { background: var(--blue); }
.c-green { background: var(--green); } .c-purple { background: var(--purple); }
.frame { margin: 0; overflow: hidden; border: var(--edge); border-radius: var(--round); box-shadow: var(--pop); background: var(--sand); transition: transform .3s; }
.frame img, .frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.frame-dale { justify-self: center; width: min(260px, 60%); border-radius: 50%; background: var(--yellow); }
.frame-dale img { aspect-ratio: 1; image-rendering: pixelated; }
.tilt-l { transform: rotate(-1.5deg); } .tilt-r { transform: rotate(1.5deg); }
.frame:hover { transform: rotate(0) scale(1.01); }
@media (max-width: 760px) {
  .chapter { grid-template-columns: 1fr; text-align: center; }
  .chapter:nth-of-type(even) .frame { order: 0; }
}

/* trailer: a picture until clicked, then YouTube */
.trailer { padding-top: 0; }
.yt { position: relative; display: block; max-width: 1000px; margin: 0 auto; }
.yt img, .yt iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; object-fit: cover; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border: var(--edge); border-radius: 50%; background: var(--red); box-shadow: 3px 4px 0 var(--ink); transition: transform .15s; }
.yt-play::after { content: ""; position: absolute; left: 36px; top: 26px; border-style: solid; border-width: 20px 0 20px 30px; border-color: transparent transparent transparent #fff; }
.yt:hover .yt-play { transform: scale(1.08); }

/* make it worse */
.worse { background: var(--ink); color: var(--paper); border-block: var(--edge); }
.worse .title { color: var(--red); -webkit-text-stroke-color: var(--paper); text-shadow: 3px 4px 0 #000; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.tile { margin: 0; overflow: hidden; border: 3px solid var(--paper); border-radius: var(--round); background: #000; }
.tile img, .tile video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tile figcaption { padding: 10px 14px; font: 700 1.15rem/1.2 Sign, sans-serif; letter-spacing: .02em; }
.tile:nth-child(1) figcaption { background: var(--blue); color: var(--ink); }
.tile:nth-child(2) figcaption { background: var(--yellow); color: var(--ink); }
.tile:nth-child(3) figcaption { background: var(--green); color: var(--ink); }
.tile:nth-child(4) figcaption { background: var(--purple); color: var(--ink); }
.worse-more { max-width: 46ch; margin: 2em auto 0; text-align: center; font-weight: 500; }

/* updates */
.updates { background: var(--sand); }
.updates .title { color: var(--blue); }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; max-width: 1120px; margin: 0 auto 32px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border: var(--edge); border-radius: var(--round); box-shadow: var(--pop); text-decoration: none; transition: transform .15s; }
.post-card:hover { transform: translateY(-4px) rotate(-.5deg); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: var(--edge); }
.post-card div { padding: 16px 18px 18px; }
.post-card h3 { margin: .2em 0 .35em; font-size: 1.45rem; }
.post-card p { margin: 0; font-size: .95em; }
time { font-size: .85em; font-weight: 700; color: #8a5a3c; text-transform: uppercase; letter-spacing: .06em; }

/* questions */
.faq .title { color: var(--purple); }
.faq-list { display: grid; gap: 12px; max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: var(--edge); border-radius: 14px; box-shadow: 3px 4px 0 var(--ink); }
.faq summary { padding: 14px 18px; font: 700 1.2rem/1.3 Sign, Rubik, sans-serif; cursor: pointer; list-style-position: inside; }
.faq details p { margin: 0; padding: 0 18px 16px; }

/* press kit */
.press { max-width: 1120px; margin: 0 auto; }
.press .title { color: var(--yellow); margin-top: clamp(36px, 6vw, 64px); }
.press h1.title { margin-top: 0; }
.press-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; padding: 20px 22px; background: #fff; border: var(--edge); border-radius: var(--round); box-shadow: var(--pop); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.press-text h2 { margin: 0 0 .4em; font-size: 1.7rem; }
.press-text h2 + p, .press-text ul { margin-top: 0; }
.press-text p + h2 { margin-top: 1em; }
.press-art { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.press-art a { overflow: hidden; background: var(--sand); border: var(--edge); border-radius: 14px; box-shadow: 3px 4px 0 var(--ink); text-decoration: none; font-weight: 600; }
.press-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--sky); }
.press-art span { display: block; padding: 8px 12px; }
@media (max-width: 760px) { .press-grid { grid-template-columns: 1fr; } }

/* creators */
.creators { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; max-width: 1120px; margin: 0 auto; }
.creators .title { color: var(--green); margin-bottom: .4em; }
.ticks { padding: 0; list-style: none; }
.ticks li { position: relative; margin-bottom: .5em; padding-left: 34px; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border: var(--edge); border-radius: 6px; background: var(--yellow) center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4L14 4' fill='none' stroke='%232a1610' stroke-width='3'/%3E%3C/svg%3E"); }
.kit { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2em 0; }
.kit a { padding: .3em .8em; border: 2px solid var(--ink); border-radius: 999px; background: var(--sand); font-weight: 600; font-size: .9em; text-decoration: none; }
.kit a:hover { background: var(--yellow); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: clamp(18px, 3vw, 28px); background: #fff; border: var(--edge); border-radius: var(--round); box-shadow: var(--pop); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92em; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; padding: .65em .8em; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 400; }
.form textarea { resize: vertical; }
.form .trap { position: absolute; left: -9999px; }
.form-note { margin: 0; font-weight: 600; min-height: 1.4em; }
.form-note.ok { color: #3c7d1c; } .form-note.bad { color: var(--red); }
@media (max-width: 820px) { .creators { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form { grid-template-columns: 1fr; } }

/* single update */
.article { max-width: 720px; margin: 0 auto; }
.article h1 { margin: .2em 0 .6em; font-size: clamp(2rem, 1.3rem + 3vw, 3rem); }
.article h2 { margin: 1.4em 0 .5em; font-size: 1.7rem; }
.article img, .article video { margin: 1.2em 0; border: var(--edge); border-radius: var(--round); box-shadow: var(--pop); }
.article a { text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.article .back { display: block; width: fit-content; margin-bottom: 1.5em; font-weight: 600; }
.article-cta { margin-top: 2.5em; padding: 24px; text-align: center; background: var(--sand); border: var(--edge); border-radius: var(--round); }

/* footer */
.foot { padding: 40px var(--gut); text-align: center; background: var(--ink); color: var(--paper); }
.foot-dale { margin: 0 auto 14px; border: 3px solid var(--paper); border-radius: 50%; image-rendering: pixelated; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-weight: 600; }
.foot-links a { text-decoration: none; overflow-wrap: anywhere; }
.foot-links a:hover { color: var(--yellow); }
.foot-small { opacity: .7; font-size: .85em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
