/* pikapod.me — "Darkroom Cover" (approved 26 Nov 2026). No inline styles anywhere (CSP), so
   everything the pages need is here, including the gallery's proportion classes at the end. */

@font-face { font-family: "Big Shoulders Display"; src: url(../fonts/big-shoulders-display-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Sora"; src: url(../fonts/sora-latin.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(../fonts/jetbrains-mono-latin.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
	--bg: #0b0c0e; --panel: #121316; --fg: #f3f1ec; --soft: #c9c7c2; --mute: #8f8f94;
	--amb: #ffb547; --line: #ffffff17; --pad: clamp(18px, 4vw, 60px);
	--disp: "Big Shoulders Display", "Arial Narrow", sans-serif;
	--mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--fg); font: 300 16px/1.6 Sora, system-ui, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--disp); text-transform: uppercase; font-weight: 900; line-height: .85; margin: 0; }
:focus-visible { outline: 2px solid var(--amb); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.amb { color: var(--amb); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--amb); color: #111; padding: 8px 14px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { position: absolute; z-index: 20; inset: 0 0 auto; display: flex; align-items: center; gap: 28px; padding: 22px var(--pad); }
.is-page .top { position: relative; border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font: 900 24px/1 var(--disp); text-transform: uppercase; letter-spacing: .02em; }
.logo img { width: 28px; height: 28px; }
.nav { margin-left: auto; display: flex; gap: 26px; font-size: 14px; color: #dedcd7; }
.nav a:hover, .nav a[aria-current] { color: var(--amb); }
.menu { display: none; margin-left: auto; background: #0b0c0e99; border: 1px solid #ffffff40; color: #fff; padding: 7px 14px; border-radius: 99px; font: 400 13px Sora, sans-serif; cursor: pointer; }

/* Home: hero */
.hero { position: relative; height: 100vh; min-height: 640px; max-height: 980px; overflow: hidden; background: var(--bg); }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 18%; transition: opacity .35s ease; }
.hero__img.is-fading { opacity: 0; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #0b0c0ea6 0, #0000 22%, #0000 42%, #0b0c0ef5 100%); }
.hero__cap { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(30px, 6vh, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 30px; }
.hero__title { margin-top: 10px; font-size: clamp(96px, 15vw, 236px); line-height: .8; letter-spacing: -.005em; }
.hero__lines { display: flex; gap: clamp(18px, 3vw, 44px); margin-top: 22px; align-items: end; flex-wrap: wrap; }
.hero__lines p { margin: 0; max-width: 360px; color: var(--soft); font-size: 15px; border-top: 1px solid var(--line); padding-top: 12px; }
.nums { display: flex; gap: 22px; border-top: 1px solid var(--line); padding-top: 12px; }
.nums a b { display: block; font: 700 34px/1 var(--disp); }
.nums a small { display: block; margin-top: 4px; }
.nums a:hover b { color: var(--amb); }
@media (min-width: 1001px) {
	.hero__img { position: absolute; right: 0; top: 0; width: 66%; object-position: 50% 22%;
		-webkit-mask-image: linear-gradient(90deg, #0000 0, #000 32%); mask-image: linear-gradient(90deg, #0000 0, #000 32%); }
}
.picker { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; padding-bottom: 6px; }
.picker__row { display: flex; gap: 8px; }
.picker__shot { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 4px; }
.picker__shot img { width: 78px; height: 52px; object-fit: cover; border-radius: 4px; opacity: .5; transition: opacity .2s; }
.picker__shot:hover img { opacity: .8; }
.picker__shot.is-on img { opacity: 1; outline: 1.5px solid var(--amb); outline-offset: 2px; }
.picker__bar { width: 100%; height: 2px; background: #ffffff26; position: relative; }
.picker__bar i { position: absolute; top: 0; height: 100%; background: var(--amb); transition: left .3s ease; }
.picker__bar .w2 { width: 50%; } .picker__bar .w3 { width: 33.34%; } .picker__bar .w4 { width: 25%; } .picker__bar .w5 { width: 20%; }
.picker__bar .at0 { left: 0; }
.w2.at1 { left: 50%; } .w3.at1 { left: 33.33%; } .w3.at2 { left: 66.66%; } .w4.at1 { left: 25%; } .w4.at2 { left: 50%; } .w4.at3 { left: 75%; }
.w5.at1 { left: 20%; } .w5.at2 { left: 40%; } .w5.at3 { left: 60%; } .w5.at4 { left: 80%; }
.picker__meta { display: flex; justify-content: space-between; width: 100%; }

/* Sections */
.sec { padding: clamp(70px, 9vw, 130px) var(--pad) 0; }
.sec--tight { padding-top: clamp(28px, 4vw, 56px); }
.narrow { max-width: 860px; }
.sh { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.sh h2 { margin-top: 6px; font-size: clamp(44px, 5.4vw, 80px); }
.more { font-size: 14px; color: var(--soft); border-bottom: 1px solid var(--amb); padding-bottom: 2px; white-space: nowrap; }

/* Gallery bands (home, games) */
.band { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; height: clamp(300px, 42vh, 440px); overflow: hidden; padding: clamp(22px, 3vw, 40px); margin-bottom: 10px; border-radius: 6px; background: var(--panel); }
.band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.band:hover .band__bg { transform: scale(1.03); }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #0b0c0ee6 0, #0b0c0e80 40%, #0000 72%), linear-gradient(0deg, #0b0c0ea6, #0000 50%); }
.band > div { position: relative; z-index: 2; }
.band h3 { margin: 4px 0 10px; font-size: clamp(56px, 6.4vw, 100px); }
.band:hover h3 { color: var(--amb); }
.band__n { display: flex; gap: 14px; }
.band__thumbs { display: flex; gap: 8px; }
.band__thumbs img { width: 86px; height: 116px; object-fit: cover; border-radius: 4px; border: 1px solid #ffffff2b; }
.band__go { display: inline-flex; gap: 8px; font-size: 14px; color: var(--soft); }
.band__go b { color: var(--amb); font-weight: 400; }

/* Recent frames, worlds */
.recent { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.recent img { aspect-ratio: 3/4; object-fit: cover; width: 100%; border-radius: 4px; filter: grayscale(.2); transition: filter .3s; }
.recent a:hover img { filter: none; }
.recent span { display: block; margin-top: 8px; }
.worlds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; }
.worlds img { aspect-ratio: 16/10; object-fit: cover; border-radius: 4px; width: 100%; margin-bottom: 12px; }
.worlds b { display: block; font: 700 24px/1 var(--disp); text-transform: uppercase; margin-bottom: 4px; }
.worlds a:hover b { color: var(--amb); }

/* Posts */
.posts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); }
.posts--list { grid-template-columns: 1fr; max-width: 1100px; }
.post-card { border-top: 1px solid var(--fg); padding-top: 16px; display: grid; grid-template-columns: 42% 1fr; gap: 20px; align-items: start; }
.post-card img, .post-card__ph { aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; width: 100%; }
.post-card__ph { display: block; background: var(--panel) url(../img/pd-logo.png) center/30% no-repeat; }
.post-card h3 { margin: 6px 0 8px; font: 700 clamp(28px, 2.4vw, 36px)/1 var(--disp); text-transform: uppercase; }
.post-card:hover h3 { color: var(--amb); }
.post-card p { margin: 0 0 10px; color: #b5b3ae; font-size: 15px; }

/* Contact strip and footer */
.hello { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin: clamp(80px, 10vw, 140px) var(--pad) 0; padding: clamp(26px, 4vw, 48px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hello__big { font: 900 clamp(64px, 9vw, 140px)/.85 var(--disp); text-transform: uppercase; }
.hello__big span { color: var(--amb); }
.hello__soc { display: flex; gap: 22px; flex-wrap: wrap; }
.hello__soc a:hover { color: var(--amb); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding: 40px var(--pad) 36px; margin-top: clamp(60px, 8vw, 100px); font-size: 14px; color: #b5b3ae; border-top: 1px solid var(--line); }
.is-home .foot { margin-top: 0; border-top: 0; }
.foot p { margin: 8px 0 0; }
.foot ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.foot a:hover { color: var(--amb); }
.foot .copy { margin-top: 18px; }

/* Page heads (galleries, games, archive, news, contact) */
/* Every page head has the same spacing, so titles sit in the same place with or without a photo
   (the photo only fills the space behind; it never sets the height). */
.pagehead { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) var(--pad) clamp(24px, 3vw, 40px); }
.pagehead__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.pagehead::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #0b0c0ef0 0, #0b0c0e99 45%, #0b0c0e33 100%), linear-gradient(0deg, var(--bg), #0000 60%); }
.pagehead--plain::before { display: none; }
.pagehead__in { position: relative; z-index: 2; }
.pagehead__in a { color: var(--soft); border-bottom: 1px solid var(--amb); }
.pagehead h1 { font-size: clamp(72px, 10vw, 160px); margin: 8px 0 10px; }

/* Gallery: justified rows. Each photo grows in proportion to its width (--r from its class), so
   the photos of a row keep their shape; a photo grows to 2.5 times its starting size at most. */
.gallery { --row: 39cqw; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; container-type: inline-size; }
@media (min-width: 600px) { .gallery { --row: 20cqw; } }
@media (min-width: 1200px) { .gallery { --row: 16cqw; } }
.gallery::after { content: ""; flex-grow: 999999; }
.gallery li { flex: var(--r, 1) 1 calc(var(--r, 1) * var(--row)); min-width: 0; max-width: calc(var(--r, 1) * var(--row) * 2.5); }
.gallery a { display: block; height: 100%; overflow: hidden; border-radius: 3px; background: var(--panel); cursor: zoom-in; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--r, 1); transition: opacity .3s ease, transform .5s ease; }
.gallery a:hover img { opacity: .85; transform: scale(1.03); }

/* Archive months */
.months { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(20px, 3vw, 44px); }
.month { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.month__th { display: flex; }
.month__th img { width: 46px; height: 46px; object-fit: cover; border-radius: 50%; border: 2px solid var(--bg); margin-left: -12px; }
.month__th img:first-child { margin-left: 0; }
.month b { font: 700 clamp(26px, 2.4vw, 36px)/1 var(--disp); text-transform: uppercase; }
.month:hover b { color: var(--amb); }

/* Posts: article */
.article { max-width: 820px; padding: clamp(40px, 6vw, 80px) var(--pad) 0; margin: 0 auto; }
.article__head h1 { font-size: clamp(52px, 7vw, 104px); margin: 12px 0 30px; }
.article__head a { color: var(--soft); }
.article__body { font-size: 17px; line-height: 1.75; color: #dedcd7; }
.article__body p { margin: 0 0 1.2em; }
.article__body figure { margin: 2em 0; }
.article__body figure img { width: 100%; border-radius: 4px; }
.article__nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--line); }
.article__nav a { display: flex; flex-direction: column; gap: 4px; font: 700 24px/1.05 var(--disp); text-transform: uppercase; max-width: 48%; }
.article__nav a:hover { color: var(--amb); }
.article__nav .next { text-align: right; margin-left: auto; }

/* Links page */
.link-buttons { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.link-buttons a { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); font: 700 clamp(30px, 4vw, 48px)/1 var(--disp); text-transform: uppercase; }
.link-buttons a span { color: var(--amb); }
.link-buttons a:hover { color: var(--amb); }

/* Contact form (app/src/contact.php markup) */
.contact-form { display: grid; gap: 18px; }
.field label { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.field input, .field textarea, .field select { width: 100%; background: var(--panel); color: var(--fg); border: 1px solid #ffffff26; border-radius: 4px; padding: 12px 14px; font: 300 16px Sora, sans-serif; }
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--amb); outline: none; }
.field-error { margin: 6px 0 0; color: #ff8f7a; font-size: 14px; }
.field-note { margin: 6px 0 0; color: var(--mute); font-size: 14px; }
.form-submit button { font: 900 34px/1 var(--disp); text-transform: uppercase; background: var(--amb); color: #111; border: 0; border-radius: 4px; padding: 14px 28px; cursor: pointer; }
.form-submit button:hover { background: #ffc66e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 4px; margin-bottom: 18px; border: 1px solid var(--line); }
.notice--success { border-color: #6fd08c; }
.notice--error { border-color: #ff8f7a; }
.notice ul { margin: 8px 0 0; padding-left: 18px; }
.notice a { border-bottom: 1px solid currentColor; }
.empty { color: var(--mute); }

/* Photo viewer (site.js) */
.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #050506f2; color: var(--fg); }
.viewer::backdrop { background: #000c; }
.viewer[open] { display: flex; align-items: center; justify-content: center; }
.viewer__img { max-width: calc(100vw - 32px); max-height: calc(100vh - 90px); width: auto; height: auto; object-fit: contain; }
.viewer__cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; margin: 0; }
.viewer__btn { position: absolute; background: #0b0c0ecc; border: 1px solid #ffffff33; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.viewer__btn:hover { border-color: var(--amb); color: var(--amb); }
.viewer__close { top: 16px; right: 16px; }
.viewer__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.viewer__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Tablet and phone */
@media (max-width: 1000px) {
	.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #0b0c0ef7; padding: 8px var(--pad) 18px; border-bottom: 1px solid var(--line); }
	.nav.is-open { display: flex; }
	.nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font: 700 26px/1 var(--disp); text-transform: uppercase; }
	.menu { display: block; }
	.hero__cap { grid-template-columns: 1fr; }
	.picker { display: none; }
	.recent { grid-template-columns: repeat(3, 1fr); }
	.worlds { grid-template-columns: repeat(3, 1fr); }
	.worlds a:nth-child(n+4) { display: none; }
	.posts { grid-template-columns: 1fr; }
	.months { grid-template-columns: 1fr; }
	.foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.hero { height: 90vh; min-height: 600px; }
	.hero__title { font-size: 96px; }
	.nums { gap: 16px; }
	.nums a b { font-size: 28px; }
	.band { grid-template-columns: 1fr; height: auto; min-height: 320px; }
	.band__thumbs { display: none; }
	.recent { grid-template-columns: 1fr 1fr; }
	.recent a:nth-child(n+5) { display: none; }
	.worlds { grid-template-columns: 1fr 1fr; }
	.worlds a:nth-child(n+3) { display: none; }
	.post-card { grid-template-columns: 1fr; }
	.sh { flex-direction: column; align-items: start; }
	.foot { grid-template-columns: 1fr; }
	.hello__soc { gap: 14px; }
	.month { grid-template-columns: auto 1fr; }
	.month .mono { grid-column: 2; }
	.viewer__prev, .viewer__next { top: auto; bottom: 10px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}

/* The photos' proportions (width / height): ratio_class() gives each photo the class of the
   nearest step, 9:16 times 1.03 to a whole power (9:16 and 16:9 are exact). */
.r35 { --r: 0.3508; }
.r36 { --r: 0.3613; }
.r37 { --r: 0.3722; }
.r38 { --r: 0.3833; }
.r39 { --r: 0.3948; }
.r41 { --r: 0.4066; }
.r42 { --r: 0.4188; }
.r43 { --r: 0.4313; }
.r44 { --r: 0.4442; }
.r46 { --r: 0.4575; }
.r47 { --r: 0.4712; }
.r49 { --r: 0.4853; }
.r50 { --r: 0.4999; }
.r51 { --r: 0.5148; }
.r53 { --r: 0.5303; }
.r55 { --r: 0.5461; }
.r56 { --r: 0.5625; }
.r58 { --r: 0.5793; }
.r60 { --r: 0.5967; }
.r61 { --r: 0.6146; }
.r63 { --r: 0.6330; }
.r65 { --r: 0.6519; }
.r67 { --r: 0.6714; }
.r69 { --r: 0.6915; }
.r71 { --r: 0.7123; }
.r73 { --r: 0.7336; }
.r76 { --r: 0.7556; }
.r78 { --r: 0.7782; }
.r80 { --r: 0.8015; }
.r83 { --r: 0.8255; }
.r85 { --r: 0.8502; }
.r88 { --r: 0.8757; }
.r90 { --r: 0.9019; }
.r93 { --r: 0.9289; }
.r96 { --r: 0.9567; }
.r99 { --r: 0.9854; }
.r101 { --r: 1.0149; }
.r105 { --r: 1.0453; }
.r108 { --r: 1.0766; }
.r111 { --r: 1.1088; }
.r114 { --r: 1.1420; }
.r118 { --r: 1.1762; }
.r121 { --r: 1.2114; }
.r125 { --r: 1.2477; }
.r129 { --r: 1.2851; }
.r132 { --r: 1.3235; }
.r136 { --r: 1.3632; }
.r140 { --r: 1.4040; }
.r145 { --r: 1.4460; }
.r149 { --r: 1.4893; }
.r153 { --r: 1.5339; }
.r158 { --r: 1.5799; }
.r163 { --r: 1.6272; }
.r168 { --r: 1.6759; }
.r173 { --r: 1.7261; }
.r178 { --r: 1.7778; }
.r183 { --r: 1.8310; }
.r189 { --r: 1.8858; }
.r194 { --r: 1.9423; }
.r200 { --r: 2.0005; }
.r206 { --r: 2.0604; }
.r212 { --r: 2.1221; }
.r219 { --r: 2.1856; }
.r225 { --r: 2.2511; }
.r232 { --r: 2.3185; }
.r239 { --r: 2.3879; }
.r246 { --r: 2.4594; }
.r253 { --r: 2.5331; }
.r261 { --r: 2.6089; }
.r269 { --r: 2.6871; }
.r277 { --r: 2.7675; }
.r285 { --r: 2.8504; }
.r294 { --r: 2.9358; }
.r302 { --r: 3.0237; }
