/* Elbe Games – design rework 2026-11-03 ("Modernist" design system, maritime palette).
   Light page, dark hero, square corners, Archivo only. Shared by index + legal pages. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 100%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 100%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --color-bg: #eef4f6;
  --color-surface: #e1ebef;
  --color-text: #061a2b;
  --color-accent: #ff8a4c;
  --color-divider: color-mix(in srgb, #061a2b 35%, transparent);

  --color-neutral-100: #f2f7f9; --color-neutral-200: #e1ebef; --color-neutral-300: #c8d7de;
  --color-neutral-400: #9cb7c4; --color-neutral-500: #7895a4; --color-neutral-600: #587585;
  --color-neutral-700: #3d5868; --color-neutral-800: #24404f; --color-neutral-900: #0f2a3b;

  --color-accent-100: #fff3ec; --color-accent-200: #ffe1d0; --color-accent-300: #ffc3a3;
  --color-accent-400: #ffa274; --color-accent-500: #ff8a4c; --color-accent-600: #ec6a28;
  --color-accent-700: #b84a12; --color-accent-800: #7f330c; --color-accent-900: #4a1f09;

  --eg-deep: #041420; --eg-sea: #0a2a42; --eg-lamp: #ffe2a8;

  --font: "Archivo", system-ui, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px;
  --nav-h: 64px;
  --gutter: clamp(20px, 5vw, 72px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font); font-size: 15px; line-height: 1.55; font-weight: 400;
  text-wrap: pretty;
}
h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--color-accent-700); }
img { display: block; max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--color-accent); color: var(--color-text); padding: 10px 16px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Buttons & tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font); font-weight: 800; font-size: 14px; line-height: 1.2;
  color: var(--color-text); background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
}
.btn-wide { min-width: 220px; justify-content: space-between; gap: 24px; }
.btn-primary { background: var(--color-accent); color: var(--color-text); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-text); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
.btn-outline-light { color: var(--color-bg); border: 2px solid var(--color-neutral-600); padding-inline: var(--space-6); }
.btn-outline-light:hover { color: var(--color-bg); background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-outline-dark { color: var(--color-text); border: 2px solid var(--color-text); padding-inline: var(--space-6); }
.btn-outline-dark:hover { background: var(--color-text); color: var(--color-accent); }

.tag { display: inline-flex; align-items: center; font-size: 11px; letter-spacing: 0.02em; padding: 3px 10px; }
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

.eyebrow {
  margin: 0 0 20px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; color: var(--color-accent-700);
}
.display { margin-left: -0.05em; font-size: clamp(40px, 5.6vw, 72px); line-height: 1; letter-spacing: -0.03em; }
.square { display: inline-block; width: 10px; height: 10px; background: var(--color-accent); flex: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: var(--space-6);
  padding: 0 var(--gutter);
  background: var(--color-bg); border-bottom: 2px solid var(--color-divider);
}
.nav__brand {
  display: flex; align-items: center; gap: 10px; margin-right: auto;
  font-weight: 800; font-size: 20px; letter-spacing: -0.01em; color: var(--color-text);
}
.nav__links { display: flex; gap: var(--space-6); font-size: 15px; font-weight: 600; }
main { padding-top: var(--nav-h); }

/* ---------- Hero (dark) ---------- */
.hero { position: relative; overflow: hidden; background: var(--color-text); color: var(--color-bg); }
.hero__grid {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(56px, 9vw, 128px) var(--gutter) 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 48px clamp(24px, 5vw, 96px); align-items: end;
}
.hero__text { min-width: 0; padding-bottom: 104px; }
.hero .eyebrow { margin-bottom: 32px; color: var(--color-accent-400); }
.hero h1 { margin-left: -0.058em; font-size: clamp(52px, 8.4vw, 124px); line-height: 0.96; letter-spacing: -0.035em; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--color-accent-500); }
.hero__lead { margin-top: 36px; max-width: 54ch; font-size: 18px; line-height: 1.6; color: var(--color-neutral-300); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: 36px; }

/* Decorative only: the 130vw beam overlaps the hero text, so it must never catch clicks. */
.lighthouse {
  position: relative; justify-self: end; width: 300px; height: 392px; pointer-events: none;
  margin-bottom: -40px; margin-right: clamp(0px, 4vw, 48px);
}
.lighthouse svg { position: relative; display: block; }
.lighthouse__beam {
  position: absolute; right: 50%; top: 45px; width: 130vw; height: 140vw;
  transform-origin: 100% 50%; transform: translateY(-50%);
  background: conic-gradient(from 262deg at 100% 50%, transparent 0deg, rgba(255,226,168,.05) 4deg,
    rgba(255,226,168,.16) 8deg, rgba(255,226,168,.05) 12deg, transparent 16deg);
  -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 85%);
  mask-image: linear-gradient(to left, #000 10%, transparent 85%);
  animation: eg-beam 12s ease-in-out infinite;
}
.lighthouse__glow {
  position: absolute; left: 50%; top: 45px; width: 110px; height: 110px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 168, .55), transparent 65%);
}

.waves { position: relative; z-index: 1; height: 110px; margin-top: -70px; overflow: hidden; }
.waves svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; display: block; }
.waves .w1 { fill: var(--eg-sea); animation: eg-drift 24s linear infinite; }
.waves .w2 { fill: var(--eg-deep); animation: eg-drift 16s linear infinite reverse; }

@keyframes eg-beam { 0%, 100% { transform: translateY(-50%) rotate(-10deg); } 50% { transform: translateY(-50%) rotate(12deg); } }
@keyframes eg-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px clamp(24px, 5vw, 96px); align-items: end; padding-bottom: 40px;
}
.section-head__lead { max-width: 44ch; font-size: 18px; line-height: 1.6; color: var(--color-neutral-700); }

/* ---------- Games ("Flotte") ---------- */
.fleet {
  display: grid; gap: 2px; background: var(--color-divider);
  border-top: 2px solid var(--color-divider); border-bottom: 2px solid var(--color-divider);
}
.fleet__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 2px; }

.game {
  background: var(--color-bg); display: flex; flex-direction: column; gap: 14px;
  padding: 32px clamp(0px, 2vw, 32px) 36px;
}
.game__media { display: block; overflow: hidden; margin-bottom: 10px; }
.game__media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.game__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-700);
}
.game__meta .tag { text-transform: none; letter-spacing: 0.02em; font-weight: 400; }
.game h3 { font-size: 32px; line-height: 1.05; letter-spacing: -0.025em; }
.game__tagline { font-weight: 700; color: var(--color-accent-700); }
.game__desc { font-size: 16px; line-height: 1.6; color: var(--color-neutral-700); }
.game__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.game__links { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: auto; padding-top: 10px; }
.store-badge img { height: 44px; width: auto; }
.game__links .more { margin-left: auto; font-weight: 600; font-size: 15px; }
.game__links .soon { font-size: 14px; color: var(--color-neutral-700); }

/* Optional wrapper around the text of a card (needed for the wide layout below). */
.game__body { display: flex; flex-direction: column; gap: 14px; flex: 1; }

/* An unpaired last card would leave an empty cell in the 2-column grid:
   it spans the full row instead, image left / text right (like the flagship). */
.fleet__grid > .game:last-child:nth-child(odd) {
  grid-column: 1 / -1; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px clamp(24px, 4vw, 64px); align-items: center;
}
.fleet__grid > .game:last-child:nth-child(odd) .game__media { margin-bottom: 0; }

.game--featured {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 32px 2px; padding: 32px 0; align-items: center;
}
.game--featured .game__media { margin: 0 clamp(0px, 2vw, 32px); }
.game--featured .game__body { display: flex; flex-direction: column; gap: 14px; padding-inline: clamp(0px, 2vw, 32px); }
.game--featured .game__meta { color: var(--color-text); }
.game--featured h3 { font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: -0.03em; }
.game--featured .game__tagline { font-size: 18px; }
.game--featured .game__links { margin-top: 0; }

/* ---------- Studio ---------- */
.studio { background: var(--color-surface); border-top: 2px solid var(--color-divider); border-bottom: 2px solid var(--color-divider); }
.studio .display { margin-bottom: 56px; max-width: 14ch; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.point { border-top: 2px solid var(--color-text); padding: 24px 0 32px; display: flex; flex-direction: column; gap: 12px; }
.point__num { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-feature-settings: "tnum" 1; }
.point h3 { font-size: 24px; letter-spacing: -0.015em; }
.point p { font-size: 16px; line-height: 1.6; color: var(--color-neutral-700); }

/* ---------- Contact ---------- */
.contact { background: var(--color-accent); color: var(--color-text); }
.contact .wrap { padding-block: clamp(72px, 10vw, 136px); }
.contact h2 { margin-left: -0.058em; font-size: clamp(64px, 12vw, 176px); line-height: 0.9; letter-spacing: -0.045em; }
.contact__sub { margin-top: 24px; max-width: 20ch; font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.02em; }
.contact__text { margin-top: 20px; max-width: 40ch; font-size: 20px; line-height: 1.5; font-weight: 600; }
.contact .btn { margin-top: 36px; min-width: 280px; justify-content: space-between; gap: 24px; }

/* ---------- Footer ---------- */
.footer {
  max-width: 1200px; margin: 0 auto; padding: 28px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
  font-size: 14px; color: var(--color-neutral-700);
}
.footer__brand { font-weight: 800; color: var(--color-text); margin-right: auto; }
.footer a[aria-current="page"] { color: var(--color-accent-700); }

/* ---------- Legal subpages ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--color-text); color: var(--color-bg); }
.page-hero .wrap { padding-top: clamp(48px, 7vw, 96px); padding-bottom: 72px; }
.page-hero .eyebrow { margin-bottom: 24px; color: var(--color-accent-400); }
.page-hero h1 { margin-left: -0.05em; font-size: clamp(44px, 7vw, 96px); line-height: 0.96; letter-spacing: -0.035em; }
.page-hero h1 .accent { color: var(--color-accent-500); }
.page-hero .waves { margin-top: -40px; height: 80px; }

.legal { max-width: 1200px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.legal__body { max-width: 68ch; }
.legal section { border-top: 2px solid var(--color-text); padding: 24px 0 32px; }
.legal section h2 { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 24px; letter-spacing: -0.015em; margin-bottom: 12px; }
.legal p { font-size: 16px; line-height: 1.6; color: var(--color-neutral-700); }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--color-accent-700); text-decoration: underline; }
.legal address { font-style: normal; font-size: 18px; line-height: 1.6; font-weight: 600; color: var(--color-text); }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .nav__links a:not(:last-child) { display: none; }
  .lighthouse { justify-self: center; margin-right: 0; }
  .hero__text { padding-bottom: 0; }
  .btn-wide, .contact .btn { min-width: 0; width: 100%; }
}

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