@font-face {
  font-family: Inter;
  src: url("media/inter.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #151c1b;
  --ink: #f5efdf;
  --soft: #d3d2c4;
  --line: #45504a;
  --accent: #e6c585;
  --serif: Baskerville, "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, "Segoe UI", sans-serif;
  --side: clamp(24px, 6.1vw, 118px);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
.maravela { --accent: #aacfc6; }
a { color: inherit; text-decoration: none; }
a:hover, button:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button { font: inherit; cursor: pointer; background: transparent; color: inherit; }
figure, h1, h2, h3, p { margin: 0; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, .brand, .related a { font-family: var(--serif); font-weight: 400; line-height: 1.16; }
.skip { position: absolute; z-index: 3; padding: 9px 18px; background: var(--ink); color: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.mast, footer { padding: 0 var(--side); display: flex; justify-content: space-between; align-items: center; }
.mast { height: 74px; border-bottom: 1px solid var(--line); }
.brand { font-size: clamp(23px, 2.45vw, 38px); letter-spacing: -.046em; }
.mast nav { display: flex; gap: clamp(16px, 3.3vw, 50px); font-size: 13px; }
.eyebrow { font: 600 10px/1.5 var(--sans); text-transform: uppercase; letter-spacing: .18em; }
.ruled { display: flex; align-items: center; gap: 12px; }
.ruled::before { content: ""; width: 32px; height: 1px; background: var(--accent); }

.cinema {
  position: relative;
  isolation: isolate;
  min-height: clamp(440px, 41vw, 690px);
  display: flex;
  align-items: center;
  padding: 40px var(--side) 74px;
  background: #101816 url("media/nave.webp") center 47% / cover;
}
.cinema::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10,19,17,.94), rgba(11,20,18,.83) 24%, rgba(13,21,19,.12) 65%),
              linear-gradient(0deg, rgba(10,18,15,.87), transparent 25%);
}
.cinema h1 { font-size: clamp(80px, 8.8vw, 150px); margin: 14px 0; line-height: .88; letter-spacing: -.065em; }
.cinema h1 em { color: var(--accent); font-weight: 400; }
.cinema-copy p { margin: 18px 0; max-width: 32ch; }
.actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.action { display: inline-flex; gap: 12px; align-items: center; background: #f1e7d0; color: #18251f; border-radius: 25px; font: 500 13px/1.3 var(--sans); padding: 14px 21px; }
.action span { font-size: 17px; line-height: 1; }
.text-link { font-size: 13px; border-bottom: 1px solid currentColor; padding: 4px 0; }
.film-credit { position: absolute; bottom: 14px; left: var(--side); right: var(--side); display: flex; justify-content: space-between; border-top: 1px solid #e6dfcc55; padding-top: 10px; font-size: 11px; color: #f1ecdf; }
.kepha .game-hero { background-image: url("media/sanctuary.webp"); }
.maravela .game-hero { background-image: url("media/whales.webp"); background-position: 50% 56%; }
.game-hero .cinema-copy p { max-width: 40ch; }
.game-hero h1 { margin-top: 22px; }
.section { margin: 0 var(--side); padding: 34px 0 50px; }
.section + .section { border-top: 1px solid var(--line); }
.game-story { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 6vw, 90px); align-items: baseline; }
.game-story h2 { max-width: 16ch; }
.story-copy { max-width: 60ch; color: var(--soft); line-height: 1.75; }
.story-copy p + p { margin-top: 12px; }
.section-title, .caption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.section-title { margin-bottom: 22px; }
.section h2 { font-size: clamp(34px, 3.8vw, 62px); letter-spacing: -.055em; }
.game-grid, .film-grid, .gallery, .about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 52px); }
.game-card, .film-card, .gallery a { display: block; }
.game-card img, .film-poster img { aspect-ratio: 2.35; object-fit: cover; }
.card-copy { padding-top: 18px; }
.card-copy .eyebrow { color: var(--accent); }
.card-copy h3 { font-size: clamp(34px, 3.2vw, 56px); letter-spacing: -.045em; }
.card-copy p, .about p { color: var(--soft); max-width: 50ch; line-height: 1.7; }
.card-copy p { margin: 8px 0 14px; }
.game-card:hover { text-decoration: none; }
.game-card:hover h3, .film-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.about { align-items: center; padding-block: 50px; }
.about h2 { margin-top: 10px; }
.film-poster { position: relative; }
.play { position: absolute; left: 16px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #151c1b; font-size: 24px; line-height: 1; }
.caption { margin-top: 12px; }
.caption h3 { font-size: clamp(23px, 2.1vw, 34px); letter-spacing: -.03em; }
.caption span, figcaption { font-size: 13px; color: var(--soft); }
.film-card:hover { text-decoration: none; }
.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery img { aspect-ratio: 16/9; object-fit: cover; }
figcaption { padding-top: 8px; }
.related { display: flex; justify-content: space-between; align-items: center; }
.related a { font-size: clamp(30px, 3.5vw, 56px); letter-spacing: -.04em; }
footer { min-height: 90px; border-top: 1px solid var(--line); }
footer > a:last-child { font-size: 13px; }
dialog { padding: 0; width: min(1100px, 94vw); max-height: 94dvh; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #090e0ded; }
.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 18px; }
.viewer-head h2 { font-size: clamp(20px, 2.2vw, 28px); }
.viewer-head button { border: 0; padding: 10px; font-size: 14px; }
#viewer-media :is(video, img) { display: block; width: 100%; max-height: 76dvh; object-fit: contain; background: #0c100e; }
@media (max-width: 760px) {
  :root { --side: 22px; }
  .mast { height: 68px; }
  .mast nav { gap: 16px; }
  .brand { font-size: 25px; }
  .cinema { min-height: 480px; background-position: 59% center; }
  .cinema::before { background: linear-gradient(90deg, #0b1412ec 0%, #0b14128a 75%), linear-gradient(0deg, #0a120fe0, transparent 25%); }
  .game-grid, .about, .game-story { grid-template-columns: 1fr; }
  .game-story { gap: 14px; }
  .section { padding-block: 28px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 520px) {
  .film-grid { grid-template-columns: 1fr; }
  .play { width: 36px; height: 36px; }
  .mast nav { gap: 12px; font-size: 12px; }
  .brand { font-size: 23px; }
  .game-hero h1 { font-size: clamp(60px, 17vw, 80px); }
  .section-title .eyebrow, .related .eyebrow { font-size: 9px; }
}
