/* Play Best Entertainment — dark, minimal, modular.
   Photo-led: one full-width hero photo, then a chapter per game with large photos. HWT Artz is used for headings only;
   reading text is Hanken Grotesk in sentence case. One accent (pink), one tint (purple). */
@font-face {
  font-family: "HWT Artz";
  src: url("../assets/brand/hwt-artz.woff") format("woff");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0f0f13;
  --card: #17171d;
  --card-2: #1e1e26;
  --line: #2a2a35;
  --text: #ecebf1;
  --dim: #a3a1b0;
  --pink: #ff2e88;
  --purple: #a78bfa;
  --r: 20px;
  --r-sm: 12px;
  --gap: clamp(14px, 1.6vw, 22px);
  --pad: clamp(20px, 2.4vw, 32px);
  --gutter: clamp(16px, 4vw, 64px);
  --maxw: 1920px;
  --nav-h: 68px;
  --display: "HWT Artz", "Arial Narrow", sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -90px; z-index: 2000; background: #fff; color: #000; padding: 10px 18px; border-radius: 100px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.dim { color: var(--dim); }
.label { display: block; font-size: 14px; font-weight: 500; color: var(--dim); line-height: 1.3; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  min-height: 46px; padding: 10px 22px; border-radius: 100px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--body); text-align: center;
  transition: background .2s, border-color .2s, color .2s;
}
.btn--primary { background: var(--pink); color: #fff; }
.btn--primary:hover { background: #ff4a99; }
.btn--quiet { background: transparent; color: var(--text); border-color: #3a3a48; }
.btn--quiet:hover { border-color: var(--text); }
.link { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: #4a4a5a; text-underline-offset: 4px; overflow-wrap: anywhere; }
.link:hover { text-decoration-color: var(--pink); }

/* Card: the one building block */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad); }
a.card { display: block; transition: border-color .2s, background .2s; }
a.card:hover { border-color: #45455a; background: var(--card-2); }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h);
  background: rgba(15, 15, 19, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 16px; height: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.nav__logo { display: flex; align-items: center; gap: 12px; margin-right: auto; font: 400 16px/1 var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.nav__logo img { width: 42px; height: 42px; border-radius: 10px; box-shadow: 0 0 0 1px #34343f; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--dim); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.nav__toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 10px; }
.nav__toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 820px) {
  .nav__inner { gap: 8px; }
  .nav__toggle { display: block; flex: none; }
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transition: opacity .2s, visibility 0s .2s;
  }
  .nav__links.is-open { visibility: visible; opacity: 1; transition: opacity .2s; }
  .nav__links a { padding: 16px var(--gutter); font-size: 17px; color: var(--text); border-top: 1px solid var(--line); }
}
@media (max-width: 440px) { .nav__logo span { display: none; } }

/* Photos: every picture sits in the same rounded frame */
.photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--r); background: var(--card); aspect-ratio: 3 / 2; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Hero: one photo across the full width, headline left-aligned over a dark left side */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(92vh, 860px); padding: calc(var(--nav-h) + 48px) 0 clamp(36px, 6vw, 80px); }
.hero__photo { position: absolute; inset: 0; margin: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 8%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(0deg, var(--bg) 0%, rgba(15, 15, 19, 0) 30%),
  linear-gradient(90deg, rgba(15, 15, 19, .9) 0%, rgba(15, 15, 19, .55) 34%, rgba(15, 15, 19, 0) 62%); }
.hero__inner { position: relative; width: 100%; }
.hero h1 { font-size: clamp(2.9rem, 7vw, 5.6rem); line-height: .98; letter-spacing: .02em; }
.hero h1 span { display: block; color: var(--purple); }
.hero__lead { margin-top: 22px; max-width: 40ch; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: #d6d4e0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 760px) {
  .hero { display: block; min-height: 0; padding: var(--nav-h) 0 28px; }
  .hero__photo { position: relative; aspect-ratio: 4 / 3; }
  .hero__photo::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(15, 15, 19, 0) 45%); }
  .hero__inner { margin-top: -36px; }
}

/* Sections */
.section { padding: clamp(36px, 5vw, 64px) 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; margin-bottom: clamp(18px, 2.2vw, 28px); }
.section__head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.section__head p { margin-top: 6px; color: var(--dim); max-width: 52ch; }
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid--2 { grid-template-columns: 1fr; } }

/* Chapter: one per game or app. Big photo beside the text, then a rail of device photo + screenshots */
.chapters { display: grid; gap: clamp(56px, 8vw, 104px); }
.chapter { display: grid; gap: var(--gap); }
.chapter__main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.chapter--flip .chapter__main { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.chapter--flip .chapter__main > .photo { order: 2; }
.product__head { display: flex; align-items: center; gap: 14px; }
.product__head img { width: 64px; height: 64px; border-radius: 22%; box-shadow: 0 0 0 1px #34343f; flex: none; }
.product__head h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); overflow-wrap: anywhere; }
.product__head .label { margin-top: 5px; }
.chapter__line { margin-top: 22px; font-size: clamp(18px, 1.8vw, 21px); font-weight: 600; line-height: 1.35; }
.chapter__body { margin-top: 8px; color: var(--dim); max-width: 46ch; font-size: clamp(16px, 1.05vw, 19px); }
.chapter__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 24px; }
.chapter__cta span { font-size: 14px; color: var(--dim); }
.chapter__rail { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 3fr); gap: var(--gap); }
.chapter--flip .chapter__rail { grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr); }
.chapter--flip .chapter__rail > .photo { order: 2; }
.chapter__rail .photo { aspect-ratio: auto; min-height: 220px; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.shots button { padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #000; cursor: zoom-in; transition: border-color .2s; }
.shots button:hover { border-color: #5a5a70; }
.shots img { width: 100%; aspect-ratio: 600 / 1299; object-fit: cover; }
@media (max-width: 760px) {
  .chapter__main, .chapter--flip .chapter__main, .chapter__rail, .chapter--flip .chapter__rail { grid-template-columns: 1fr; }
  .chapter--flip .chapter__main > .photo, .chapter--flip .chapter__rail > .photo { order: 0; }
  .chapter__rail .photo { aspect-ratio: 3 / 2; min-height: 0; }
  .shots { gap: 10px; }
  .shots button { border-radius: var(--r-sm); }
}

/* Wide photo between sections, shown whole (never cropped) */
.band { margin-block: clamp(24px, 4vw, 56px); }

/* Two photos side by side */
.duo { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--gap); }
.duo .photo:last-child { aspect-ratio: auto; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } .duo .photo:last-child { aspect-ratio: 3 / 2; } }

/* Photo rows */
.photos { margin-bottom: clamp(40px, 6vw, 80px); }
.grid > .photos { margin-bottom: 0; }
.duo--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.duo--even .photo:last-child { aspect-ratio: 3 / 2; }
@media (max-width: 760px) { .duo--even { grid-template-columns: 1fr; } }

/* Logo mosaic: one large photo and four small */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.mosaic .photo:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic .photo:first-child { grid-row: auto; aspect-ratio: 3 / 2; }
}

/* Board games */
.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--pad); align-items: center; padding: var(--gap); }
.feature img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: var(--r-sm); }
.feature__text { padding: calc(var(--pad) - var(--gap)) calc(var(--pad) - var(--gap)) calc(var(--pad) - var(--gap)) 0; }
.feature__text h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 10px; }
.feature__text p { margin: 12px 0 22px; color: var(--dim); max-width: 46ch; }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature img { min-height: 0; aspect-ratio: 3 / 2; }
  .feature__text { padding: 4px calc(var(--pad) - var(--gap)) calc(var(--pad) - var(--gap)); }
}
.tile { padding: 0; overflow: hidden; display: flex !important; flex-direction: column; }
.tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #fff; }
.tile__body { padding: 18px var(--pad) 22px; }
.tile__body h3 { font-size: 1.3rem; margin-top: 6px; }
.tile__body p { margin-top: 6px; color: var(--dim); font-size: 15px; }

/* Contact */
.contact h3 { font-size: 1.3rem; }
.contact p { margin: 6px 0 8px; color: var(--dim); font-size: 15px; }
.contact .link { font-size: 15px; display: flex; width: fit-content; }

.footer { margin-top: clamp(24px, 4vw, 48px); padding: 28px 0 max(32px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; gap: 16px; }
.footer img { width: 40px; height: 40px; border-radius: 9px; flex: none; box-shadow: 0 0 0 1px #34343f; }
.footer p { font-size: 13px; color: var(--dim); line-height: 1.5; }

/* Screenshot zoom */
.zoom { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.zoom::backdrop { background: rgba(8, 8, 10, .9); }
.zoom img { max-width: 94vw; max-height: 86vh; width: auto; border-radius: 20px; }
.zoom__close { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; background: #fff; color: #111; }

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