/* Studio pages: Games, Spikes and Weights, News, Shop, Studio. Firewave's own look: sand, ink, fire.
   Each page opens in its own way: Games with a band per game, News with its newest post, Shop with a shop window,
   Studio with the photo. */

/* games: one band per game, in the game's own colors. The name's link covers the band; the section links sit above it */
.door .wrap { position: relative; display: grid; gap: 24px; padding-top: 48px; padding-bottom: 56px; align-items: center; }
.door-art { aspect-ratio: 16 / 9; border-radius: var(--r-art); overflow: hidden; }
.door-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.door .wrap:hover .door-art img { transform: scale(1.03); }
.door-art .gc-battle > img:first-child { transform: scale(1.25); transform-origin: 62% 52%; }   /* closer on the ship; the CRIT stays in frame */
.door .wrap:hover .door-art .gc-battle > img:first-child { transform: scale(1.29); }
.door-text { display: grid; gap: 12px; justify-items: start; }
.door-name { font: 400 var(--fs-d2)/1.05 var(--display); text-wrap: balance; }
.door-name a { color: #fff; text-decoration: none; }
.door-name a::after { content: ""; position: absolute; inset: 0; }
.door-name a:focus-visible { outline: none; }
.door-name a:focus-visible::after { outline: 3px solid var(--gold); outline-offset: -8px; border-radius: 24px; }
.door-line { max-width: 26em; font: 400 var(--fs-lede)/1.5 var(--sans); text-wrap: balance; }
.door-status { font: 800 var(--fs-small) var(--sans); }
.door-links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.door .more-link { min-height: 44px; color: #fff; }   /* tall enough to tap without hitting the band's own link */
.door-rr { background: var(--rr-navy); color: #fff; }
.door-rr .door-line { color: #C9D6EE; }
.door-rr .door-status, .door-rr .more-link .arr { color: var(--gold); }
.door-rr .wrap:hover .door-name a, .door-rr .more-link:hover { color: var(--gold); }
.door-sw { background: var(--fire-deep); color: #fff; }
.door-sw .door-line { color: #FFE2CC; }
.door-sw .wrap:hover .door-name a, .door-sw .more-link:hover { color: #FFE2CC; }
@media (min-width: 900px) {
  .door .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; padding-top: 96px; padding-bottom: 96px; }
  .door.flip .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .door.flip .door-art { order: 2; }
}


/* Spikes and Weights */
.sw-hero { background: var(--fire-deep); color: var(--cream-on-fire); }
.sw-hero .wrap { display: grid; gap: 16px; padding-top: 32px; padding-bottom: 56px; }
.sw-status { font: 800 var(--fs-small) var(--sans); color: #fff; }
.sw-hero .crumbs-st a { color: #fff; }
.sw-hero .crumbs-st a:hover { color: #FFE2CC; }
.sw-hero .display { color: #fff; }
.sw-hero .lede { color: #FFE2CC; }
.sw-track { color: #FFD7BC; max-width: 640px; }
.sw-track svg { width: 100%; height: auto; }
.sw-body { display: grid; gap: 48px; padding-top: 64px; padding-bottom: 112px; }
.sw-body > * { max-width: 760px; }
.sw-body section { display: grid; gap: 12px; }
.sw-body h2, .post h2 { font: 400 var(--fs-d2)/1.05 var(--display); }
.sw-body p, .sw-body li { font-size: var(--fs-body); line-height: 1.6; }
.sw-body ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.sw-sign { padding-top: 40px; border-top: 2px solid var(--sand-2); }

/* news: the newest post leads, wide, with its WANTED posters pinned on the sea */
.news-page { padding-top: 40px; padding-bottom: 112px; }
.ls-link { display: grid; gap: 24px; color: var(--ink); text-decoration: none; }
.ls-art { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-art); overflow: hidden; background: #2FB8CC url("../img/zone-home.webp") 0 0 / 240px repeat; }
.ls-art .lp { position: absolute; top: 16%; height: 70%; width: auto; max-width: none; filter: drop-shadow(4px 6px 0 rgba(14,21,38,.25)); transition: transform .35s ease; }
.ls-art .lp1 { left: 7%; transform: rotate(-7deg); }
.ls-art .lp2 { left: 50%; top: 11%; height: 76%; transform: translateX(-50%) rotate(-2deg); }
.ls-art .lp3 { right: 7%; transform: rotate(6deg); }
.ls-art.n1 .lp1 { left: 50%; transform: translateX(-50%) rotate(-3deg); }
.ls-art.ship .lp1 { left: 50%; top: 50%; width: 76%; height: auto; transform: translate(-50%, -50%) rotate(-3deg); }
.ls-link:hover .ls-art.ship .lp1 { transform: translate(-50%, -50%) rotate(-1deg) scale(1.03); }
.ls-art.reel .lp1 { left: 50%; top: 7%; height: 86%; border: 5px solid var(--rr-ink); border-radius: 16px; transform: translateX(-50%) rotate(-3deg); }
.ls-link:hover .ls-art.reel .lp1 { transform: translateX(-50%) rotate(-1deg) scale(1.03); }
.ls-link:hover .lp1 { transform: rotate(-9deg) translateX(-4%); }
.ls-link:hover .lp2 { transform: translateX(-50%) rotate(-1deg) scale(1.03); }
.ls-link:hover .lp3 { transform: rotate(8deg) translateX(4%); }
.ls-text { display: grid; gap: 12px; align-content: center; }
.ls-title { font: 400 var(--fs-d2)/1.05 var(--display); text-wrap: balance; }
.ls-link:hover .ls-title { color: var(--fire); }
.ls-dek { max-width: 30em; font: 400 var(--fs-lede)/1.5 var(--sans); color: var(--ink-2); text-wrap: balance; }
.news-page .news-grid { margin-top: 64px; padding-top: 64px; border-top: 2px solid var(--sand-2); }
@media (min-width: 800px) { .ls-link { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; } }
@media (min-width: 900px) { .news-page { padding-top: 56px; } .ls-link { column-gap: 64px; } }
.post { display: grid; gap: 16px; padding-top: 40px; padding-bottom: 112px; max-width: calc(720px + 2 * var(--gutter)); }
.post > p { font-size: var(--fs-body); line-height: 1.65; }
.post > p.lede { font-size: var(--fs-lede); line-height: 1.5; }
.post h1 { font: 400 var(--fs-d1)/0.95 var(--display); }
.post-art { margin: 16px 0; border-radius: var(--r-art); overflow: hidden; }
.post-art img { display: block; width: 100%; height: auto; }
/* the trailer in a post: its poster in a phone frame on the sea, tap to play */
.post-trailer { display: grid; place-items: center; margin: 16px 0 0; padding: 32px 16px; border-radius: var(--r-art); background: #2FB8CC url("../img/zone-home.webp") 0 0 / 240px repeat; }
.pt-play { position: relative; width: min(300px, 70vw); padding: 0; border: 6px solid var(--rr-ink); border-radius: 24px; overflow: hidden; background: #000; cursor: pointer; box-shadow: 6px 10px 0 rgba(14,21,38,.28); transition: transform .25s ease; }
.pt-play img { display: block; width: 100%; height: auto; }
.pt-play .play { position: absolute; left: 50%; top: 50%; width: 72px; transform: translate(-50%, -50%); }
.pt-play:hover { transform: rotate(-1deg) scale(1.02); }
.post > p.pt-note { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); text-align: center; }
.np-list { display: grid; gap: 24px; margin: 16px 0; }
.np-raider { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; margin: 0; align-items: start; }
.np-raider img { width: 96px; height: auto; }
.np-raider h2 { font: 400 var(--fs-d3)/1.1 var(--display); margin-bottom: 4px; }
.np-raider h2 a { text-decoration: none; }
.np-raider p { font-size: var(--fs-body); line-height: 1.6; }
.post-cta { display: grid; justify-items: start; gap: 16px; margin-top: 24px; padding-top: 32px; border-top: 2px solid var(--sand-2); }
.post-cta p { font-size: var(--fs-lede); }
@media (min-width: 700px) { .np-raider { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; } .np-raider img { width: 120px; } }

/* shop: not open yet. The title, the art as a shop window under an awning, and the signup, all on the first screen */
.shopfront { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 112px; }
.sf-head { display: grid; gap: 16px; }
.sf-head h1 { font: 400 var(--fs-d1)/0.95 var(--display); }
.sf-head .lede { text-wrap: balance; }
.sf-window { position: relative; display: block; color: inherit; text-decoration: none; }
.awning { position: relative; z-index: 1; display: block; height: 44px; border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, var(--fire) 0 50%, var(--paper) 50% 100%) 50% 0 / 72px 100% repeat-x; }
.awning::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px;
  background: radial-gradient(circle at 18px 0, var(--fire) 17.5px, transparent 18px) 50% 0 / 72px 18px repeat-x,
    radial-gradient(circle at 54px 0, var(--paper) 17.5px, transparent 18px) 50% 0 / 72px 18px repeat-x;
  filter: drop-shadow(0 4px 0 rgba(14,21,38,.18)); }
.sf-glass { display: block; overflow: hidden; border-radius: 0 0 var(--r-art) var(--r-art); background: var(--deep); }
.sf-glass img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.sf-window:hover .sf-glass img { transform: scale(1.03); }
.shop-sign { display: grid; gap: 16px; justify-items: start; padding-top: 32px; border-top: 2px solid var(--sand-2); }
.shop-sign h2 { font: 400 var(--fs-d3)/1.1 var(--display); text-wrap: balance; }
.shop-sign > p { font-size: var(--fs-body); line-height: 1.6; }
.shop-sign .signup { width: 100%; }
@media (max-width: 599px) {   /* phones: a shorter window, so the signup starts on the first screen */
  .shopfront { gap: 24px; }
  .awning { height: 36px; }
  .sf-glass img { aspect-ratio: 2 / 1; object-fit: cover; }
  .shop-sign { padding-top: 24px; }
}
@media (min-width: 900px) {
  .shopfront { grid-template-columns: minmax(340px, 5fr) minmax(0, 7fr); grid-template-areas: "head window" "sign window"; grid-template-rows: auto 1fr;
    column-gap: 64px; row-gap: 32px; align-items: start; padding-top: 72px; }
  .sf-head { grid-area: head; }
  .sf-window { grid-area: window; align-self: start; margin-top: 6px; }
  .shop-sign { grid-area: sign; }
}

/* studio: the photo leads; the title and intro sit beside it, then the story */
.studio-open { display: grid; gap: 24px; padding-top: 40px; padding-bottom: 64px; }
.so-head { display: grid; gap: 16px; }
.so-head h1 { font: 400 var(--fs-d1)/0.95 var(--display); }
.so-head .lede { text-wrap: balance; }
.founder { margin: 8px 0; display: grid; gap: 12px; max-width: 280px; }
.founder img { width: 100%; height: auto; border-radius: var(--r-art); }
.founder figcaption { font: 400 var(--fs-small) var(--sans); color: var(--ink-2); }
.founder figcaption b { display: block; font: 400 var(--fs-d3)/1.1 var(--display); color: var(--ink); }
.story { display: grid; gap: 16px; max-width: 38em; }
.story p { font-size: var(--fs-body); line-height: 1.65; text-wrap: pretty; }
.say-hello { margin-top: 8px; font-weight: 700; }
.studio-games { padding-bottom: 112px; }
@media (min-width: 700px) {
  .studio-open { grid-template-columns: minmax(220px, 34%) minmax(0, 1fr); grid-template-areas: "photo head" "photo story"; grid-template-rows: auto 1fr;
    column-gap: 48px; row-gap: 32px; }
  .so-head { grid-area: head; }
  .founder { grid-area: photo; align-self: start; position: sticky; top: 104px; max-width: none; margin: 0; }
  .story { grid-area: story; align-self: start; }
}
@media (min-width: 900px) { .studio-open { column-gap: 64px; padding-top: 72px; padding-bottom: 96px; } }
