/* ==========================================================================
   Press kit layout (press.css). Shared pieces live in site.css.
   ========================================================================== */

/* ---------- Hero: the press contact sits in the calm centre of the ink ---------- */
.p-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: min(86svh, 920px); padding-top: var(--head-h); }
.p-hero-ink { z-index: -1; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.p-hero-in {
  flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(40px, 9vh, 112px) var(--g) clamp(40px, 6vh, 64px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(40px, 6vw, 112px);
}
.p-hero h1 { margin: 22px 0 28px; font-size: clamp(3.4rem, 9.6vw, 10.4rem); line-height: 0.9; letter-spacing: -0.05em; margin-left: -0.04em; }
.p-hero .t-lede { max-width: 31em; }
.p-hero .actions { margin-top: 36px; }
.p-contact { justify-self: center; width: min(100%, 440px); }
.p-contact .mail { margin-top: 14px; }
.p-contact .mail-addr { font-size: clamp(1.6rem, 2.3vw, 2.3rem); }
.p-contact-note { margin-top: 18px; font-size: var(--t-small); color: var(--mute); line-height: 1.55; max-width: 30em; text-wrap: pretty; }

/* download glyph: the arrow drops instead of leaning up-right */
.btn .i-down { transition: transform .7s var(--ease); }
.btn:focus-visible .i-down { transform: translateY(2px); }
@media (hover: hover) { .btn:hover .i-down { transform: translateY(2px); } }
.btn-meta { font-weight: 500; font-size: 14px; opacity: 0.78; font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: -4px; }
@media (max-width: 400px) { .btn:has(.btn-meta) { gap: 10px; padding: 0 18px; } .btn-meta { margin-left: 0; } }
.link[href^="#"]:focus-visible svg { transform: translateY(2px); }
@media (hover: hover) { .link[href^="#"]:hover svg { transform: translateY(2px); } }

/* in-page index */
.p-index {
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--g) 30px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px;
}
.p-index ul { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.p-index a {
  position: relative; display: inline-block; padding: 4px 0; font-size: 15px; color: var(--paper-2); text-decoration: none;
  transition: color .4s var(--ease);
}
.p-index a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .6s var(--ease);
}
.p-index a:focus-visible { color: var(--paper); }
@media (hover: hover) { .p-index a:hover { color: var(--paper); } }
.p-index a:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
@media (hover: hover) { .p-index a:hover::after { transform: scaleX(1); transform-origin: 0 50%; } }

/* ---------- Shared two-column split (head left, content right) ---------- */
.p-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.p-split .t-h2 { max-width: 11ch; }
.p-facts .section-head { position: sticky; top: calc(var(--head-h) + 40px); }

/* ---------- Fact sheet ---------- */
.p-spec > div { padding: 16px 0; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); }
.p-spec dd { font-size: 1.0625rem; line-height: 1.5; }
.ln { display: block; }
.ln + .ln { margin-top: 4px; }
.role { color: var(--mute); font-size: var(--t-small); margin-left: 8px; }
.p-spec .mail { gap: 10px 16px; }
.p-addr { font-size: clamp(1.15rem, 1.4vw, 1.35rem); line-height: 1.3; }
.p-spec .copy { height: 34px; padding: 0 12px; font-size: 13px; }
.p-spec .link { padding: 2px 0; }

/* ---------- Descriptions ---------- */
.p-desc .t-h2 { max-width: 16ch; }
.desc-top .t-lede { margin-top: 22px; max-width: 30em; }
.desc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(40px, 5vw, 72px); align-items: start; }
.desc { border-top: 1px solid var(--line-2); padding-top: 18px; }
.desc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.desc-n { margin-left: 10px; color: var(--paper-2); letter-spacing: 0.08em; }
.desc-text { margin-top: 22px; font-size: clamp(1.0625rem, 1.25vw, 1.2rem); line-height: 1.65; color: var(--paper); text-wrap: pretty; max-width: 40em; }

/* ---------- Games ---------- */
.p-games .section-head { margin-bottom: clamp(48px, 6vw, 88px); }
.pg { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 80px); align-items: start; }
.pg + .pg { margin-top: clamp(80px, 10vw, 152px); }
.pg-media { position: sticky; top: calc(var(--head-h) + 32px); }
.pg-text .eyebrow { margin-bottom: 18px; }
.pg-sum { margin-top: 20px; font-size: 1.125rem; color: var(--paper-2); max-width: 30em; text-wrap: pretty; }
.pg-text .stats { margin-top: 32px; }
.pg-spec { margin-top: 32px; }
.pg-spec > div { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.pg-spec dd { font-size: 1rem; line-height: 1.5; }
.pg-spec .role { margin-left: 0; display: block; }
.pg-text .actions { margin-top: 30px; }

.pg-dd {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 20px clamp(28px, 4.5vw, 80px); align-items: end;
  margin-top: clamp(80px, 10vw, 152px); padding-top: 28px; border-top: 1px solid var(--line);
}
.pg-dd .t-label { margin-bottom: 14px; }
.pg-dd-when { font-family: var(--fd); font-size: clamp(1.3rem, 1.8vw, 1.7rem); letter-spacing: -0.015em; line-height: 1.2; }
.pg-dd .redact { display: grid; gap: 8px; margin-top: 16px; max-width: 420px; }
.pg-dd .redact span { display: block; height: 10px; background: var(--ink-3); transform-origin: 0 50%; }
.pg-dd .redact span:nth-child(1) { width: 86%; }
.pg-dd .redact span:nth-child(2) { width: 52%; }

/* the IC98 key art has a thin black border baked in; previews trim it */
.crop-edge picture { transform: scale(1.016); }
@media (hover: hover) { .dl:hover .dl-prev.crop-edge > picture { transform: scale(1.05); } }

/* ---------- Downloads ---------- */
.dl-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: end; }
.dl-top .t-h2 { max-width: 16ch; }
.dl-all { display: grid; gap: 16px; justify-items: start; }
.dl-all .t-small { max-width: 30em; line-height: 1.55; }

.dl-group {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 72px); align-items: start;
  margin-top: clamp(56px, 7vw, 104px); padding-top: 24px; border-top: 1px solid var(--line);
}
.dl-gh { position: sticky; top: calc(var(--head-h) + 32px); }
.dl-gh .t-small { margin-top: 10px; max-width: 24em; line-height: 1.55; }
.dl-grid { display: grid; gap: clamp(28px, 2.6vw, 40px) clamp(16px, 1.8vw, 28px); }
.dl-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dl-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dl-wide { grid-column: 1 / -1; }

.dl { display: block; color: inherit; text-decoration: none; border-radius: 2px; }
.dl:focus-visible { outline-offset: 6px; }
.dl-prev {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink-2);
  outline: 1px solid var(--line); outline-offset: -1px;
}
.dl-prev > picture, .dl-prev > picture img { display: block; width: 100%; height: 100%; }
.dl-prev img { width: 100%; height: 100%; object-fit: cover; }
/* hover zoom lives on the picture (the reveal owns the img transform) */
.dl-prev > picture { transition: transform 1.4s var(--ease); }
@media (hover: hover) { .dl:hover .dl-prev > picture { transform: scale(1.035); } }

/* logo swatches */
.sw { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.sw-in { display: grid; place-items: center; width: 100%; height: 100%; transition: transform 1.4s var(--ease); }
.sw img { width: 42%; height: auto; object-fit: contain; aspect-ratio: 512 / 502; }
.sw--paper { background: var(--paper); outline-color: transparent; }
.sw--ink { background: var(--ink); }
@media (hover: hover) { .dl:hover .sw-in { transform: scale(1.05); } }

.dl-meta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name ico" "info ico";
  column-gap: 16px; row-gap: 3px; align-items: center; padding-top: 14px;
}
.dl-name { grid-area: name; font-family: var(--fd); font-weight: 500; font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.25; }
.dl-info { grid-area: info; font-size: var(--t-small); color: var(--mute); font-variant-numeric: tabular-nums; line-height: 1.4; }
.dl-ico {
  grid-area: ico; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 2px;
  color: var(--paper); transition: background-color .5s var(--ease), border-color .5s var(--ease);
}
.dl-ico svg { width: 16px; height: 16px; transition: transform .7s var(--ease); }
.dl:focus-visible .dl-ico { background: var(--red); border-color: var(--red); color: #fff; }
@media (hover: hover) { .dl:hover .dl-ico { background: var(--red); border-color: var(--red); color: #fff; } }
.dl:focus-visible .dl-ico svg { transform: translateY(2px); }
@media (hover: hover) { .dl:hover .dl-ico svg { transform: translateY(2px); } }

/* ---------- Logo use ---------- */
.p-logo .p-split { align-items: center; }
.rules { margin-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line); counter-reset: r; }
.rules li {
  position: relative; padding: 16px 0 16px 44px; border-bottom: 1px solid var(--line);
  color: var(--paper-2); font-size: 1.0625rem; line-height: 1.55; text-wrap: pretty; counter-increment: r;
}
.rules li::before {
  content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 18px;
  font-family: var(--fd); font-size: 13px; letter-spacing: 0.04em; color: var(--red); font-variant-numeric: tabular-nums;
}
.kt { font-family: var(--fj); color: var(--paper); letter-spacing: 0.06em; }

.clear { justify-self: center; width: min(100%, 440px); }
.clear-box { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--ink-1); outline: 1px solid var(--line); outline-offset: -1px; }
.clear-box img { position: relative; width: 50%; height: auto; aspect-ratio: 512 / 502; }
/* the clear-space zone: a hairline square around the seal, red corner ticks */
.clear-zone { position: absolute; inset: 14%; border: 1px dashed var(--line-2); }
.clear-zone i { position: absolute; width: 14px; height: 14px; border: 0 solid var(--red); }
.clear-zone i:nth-child(1) { left: -1px; top: -1px; border-left-width: 2px; border-top-width: 2px; }
.clear-zone i:nth-child(2) { right: -1px; top: -1px; border-right-width: 2px; border-top-width: 2px; }
.clear-zone i:nth-child(3) { left: -1px; bottom: -1px; border-left-width: 2px; border-bottom-width: 2px; }
.clear-zone i:nth-child(4) { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; }
.clear figcaption { margin-top: 12px; }

/* ---------- No JS: the room tones become soft bands ---------- */
html:not(.js) .pg { padding: 40px; margin-left: calc(var(--g) * -1); margin-right: calc(var(--g) * -1); }
html:not(.js) .pg[data-tone="ic"] { background: var(--tone-ic); }
html:not(.js) .pg[data-tone="pp"] { background: var(--tone-pp); }

/* ---------- Responsive ---------- */
@media (max-width: 999px) {
  .p-split, .desc-grid, .pg, .pg-dd, .dl-top, .dl-group { grid-template-columns: minmax(0, 1fr); }
  .pg-media, .dl-gh, .p-facts .section-head { position: relative; top: auto; }
  .p-split .t-h2 { max-width: 14ch; }
  .clear { justify-self: start; width: min(100%, 440px); }
  .dl-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .p-hero { min-height: 0; }
  .p-hero-in { grid-template-columns: minmax(0, 1fr); align-content: start; padding-top: clamp(40px, 9vh, 72px); gap: 56px; }
  .p-contact { justify-self: start; }
}
@media (max-width: 760px) {
  html:not(.js) .p-hero { padding-top: 104px; }
}
@media (max-width: 640px) {
  .dl-grid--3, .dl-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .sw { aspect-ratio: 16 / 9; }
  .sw img { width: 30%; }
  .p-index { padding-bottom: 24px; }
  .p-index ul { gap: 4px 20px; }
  .p-spec > div, .pg-spec > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .desc-head { flex-wrap: wrap; }
  html:not(.js) .pg { padding: 28px var(--g); }
}

@media (prefers-reduced-motion: reduce) {
  .dl-prev > picture, .sw-in, .dl-ico svg, .btn .i-down, .p-index a::after { transition: none !important; }
  .dl:hover .dl-prev > picture, .dl:hover .sw-in { transform: none; }
}
