/* slabon.pl: Texas Oil Baron. Palette from the game's paper UI (cardstock, ink, gold). */
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("fonts/PlayfairDisplay-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --ink: #23160c;
  --ink-2: #3a2614;
  --ink-soft: #5b412a;
  --paper: #f5e3bd;
  --paper-2: #ecd3a2;
  --paper-edge: #d9b77c;
  --gold: #deb258;
  --gold-deep: #b9862f;
  --oil: #120b06;
  --sky: #2f6fb3;
  --red: #a8382a;
  --white: #fffaf0;
  --shadow: 0 10px 30px rgba(35, 22, 12, 0.28);
  --radius: 6px;
  --wrap: 1160px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --display: "Playfair Display", Georgia, serif;
  --body: "IBM Plex Sans", "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; }
h2 { font: 900 clamp(2rem, 4.2vw, 3.1rem) / 1.05 var(--display); letter-spacing: -0.01em; }
h3 { font: 700 1.45rem/1.15 var(--head); text-transform: uppercase; letter-spacing: 0.02em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 12px; }
.eyebrow { font: 700 0.95rem/1 var(--head); text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-deep); margin-bottom: 0.8em; }
.lead { font-size: 1.15rem; max-width: 62ch; }
.muted { color: var(--ink-soft); font-size: 0.9rem; }

/* ===== Header ===== */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(35, 22, 12, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--gold-deep);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font: 700 1.25rem/1 var(--head); text-transform: lowercase; letter-spacing: 0.02em; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; align-items: center; }
.nav a { color: var(--paper); text-decoration: none; font: 700 1rem/1 var(--head); text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 0; }
.nav a:hover { color: var(--gold); }
.nav .lang { border: 1px solid var(--ink-soft); padding: 5px 8px; border-radius: 3px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 1.15rem/1 var(--head); text-transform: uppercase; letter-spacing: 0.06em;
  text-decoration: none; padding: 15px 22px; border-radius: var(--radius);
  border: 2px solid var(--ink); transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn-primary:hover { background: #ebc46c; color: var(--ink); box-shadow: 0 6px 0 var(--ink); }
.btn-ghost { background: rgba(255, 250, 240, 0.92); color: var(--ink); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-2); color: var(--gold); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Hero ===== */
.hero { position: relative; color: var(--white); background: var(--oil); overflow: hidden; }
.hero-art { position: absolute; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 11, 6, 0.10) 0%, rgba(18, 11, 6, 0.05) 35%, rgba(18, 11, 6, 0.72) 78%, rgba(18, 11, 6, 0.92) 100%);
}
.hero .wrap { position: relative; z-index: 2; min-height: min(88vh, 860px); display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 56px; }
.hero-logo { width: min(560px, 88%); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55)); margin-bottom: 18px; }
.hero h1 { font: 900 clamp(1.7rem, 3.6vw, 2.7rem) / 1.12 var(--display); max-width: 24ch; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.hero p { max-width: 60ch; font-size: 1.1rem; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
.badge {
  align-self: flex-start; display: inline-block; margin-bottom: 20px;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
  font: 700 1rem/1.2 var(--head); text-transform: uppercase; letter-spacing: 0.08em;
  padding: 8px 12px; border-radius: 3px; box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1.2deg);
}

/* ===== Sections ===== */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark h2 { color: var(--white); }
.section-dark a { color: var(--gold); }
.section-strata {
  background:
    linear-gradient(180deg, #8f4a26 0 14px, #b8743f 14px 26px, transparent 26px),
    repeating-linear-gradient(180deg, #2b1a0d 0 2px, #26170b 2px 6px);
  color: var(--paper); padding-top: calc(clamp(56px, 8vw, 104px) + 26px);
}
.section-strata h2 { color: var(--white); }
.section-paper2 { background: var(--paper-2); }
.section-head { margin-bottom: 36px; }

/* ===== Video facade ===== */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #000; box-shadow: var(--shadow); border: 2px solid var(--ink);
}
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.video button:hover img { transform: scale(1.03); }
.video .play {
  position: absolute; left: 50%; top: 50%; width: 86px; height: 86px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(222, 178, 88, 0.95); border: 3px solid var(--ink);
  display: grid; place-items: center; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
}
.video .play::before { content: ""; border-left: 26px solid var(--ink); border-top: 16px solid transparent; border-bottom: 16px solid transparent; margin-left: 7px; }
.video .label {
  position: absolute; left: 12px; bottom: 12px; background: rgba(18, 11, 6, 0.82); color: var(--paper);
  font: 700 1rem/1 var(--head); text-transform: uppercase; letter-spacing: 0.06em; padding: 7px 10px; border-radius: 3px;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { margin-top: 14px; font-size: 0.85rem; opacity: 0.75; }

/* ===== Features ===== */
.intro-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 4px 4px 0 var(--ink); display: flex; flex-direction: column; }
.feature figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 2px solid var(--ink); }
.feature figure img { width: 100%; height: 100%; object-fit: cover; }
.feature .body { padding: 18px 20px 22px; }
.feature .num { font: 700 0.9rem/1 var(--head); color: var(--gold-deep); letter-spacing: 0.12em; margin-bottom: 8px; display: block; }
.feature p { margin: 0; font-size: 0.98rem; }

/* ===== Weather strip ===== */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.trio figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 2px solid #000; aspect-ratio: 4 / 3; }
.trio img { width: 100%; height: 100%; object-fit: cover; }
.trio figcaption { position: absolute; left: 10px; bottom: 10px; background: var(--paper); color: var(--ink); font: 700 1rem/1 var(--head); text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 9px; border-radius: 3px; }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--ink); aspect-ratio: 16 / 9; background: #000; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s, opacity 0.3s; }
.gallery a:hover img { transform: scale(1.04); opacity: 0.92; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(10, 6, 3, 0.9); }
dialog.lightbox img { max-width: 96vw; max-height: 86vh; border-radius: 4px; }
dialog.lightbox .lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--paper); padding: 10px 2px 0; font: 700 1rem/1 var(--head); text-transform: uppercase; letter-spacing: 0.05em; }
dialog.lightbox button { font: inherit; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 3px; padding: 7px 12px; cursor: pointer; }

/* ===== CTA band ===== */
.cta { background: var(--gold); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); text-align: center; }
.cta .wrap { padding: 56px 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta h2 { margin: 0; }
.cta .btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 4px 0 #000; }
.cta .btn-primary:hover { color: var(--gold); }

/* ===== Studio ===== */
.studio { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.studio img { width: 200px; }

/* ===== Footer ===== */
.site-foot { background: var(--oil); color: #cdb894; padding: 40px 0 48px; font-size: 0.92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; justify-content: space-between; }
.site-foot a { color: var(--paper); text-decoration: none; }
.site-foot a:hover { color: var(--gold); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }

/* ===== Press kit ===== */
.pk-hero { background: var(--ink); color: var(--paper); padding: 56px 0 40px; border-bottom: 3px solid var(--gold-deep); }
.pk-hero h1 { font: 900 clamp(2.2rem, 5vw, 3.6rem) / 1 var(--display); color: var(--white); }
.pk-hero img { width: min(420px, 80%); margin-bottom: 18px; }
.pk-grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.facts { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--ink); padding: 8px 20px 18px; position: sticky; top: 80px; }
.facts dl { margin: 0; }
.facts dt { font: 700 0.92rem/1 var(--head); text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-deep); margin-top: 16px; }
.facts dd { margin: 4px 0 0; font-size: 0.95rem; }
.pk-section { margin-bottom: 56px; }
.pk-section p + h2 { margin-top: 1.4em; }
.pk-section h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); border-bottom: 3px solid var(--ink); padding-bottom: 8px; }
.pk-list { padding-left: 1.2em; }
.pk-list li { margin-bottom: 0.4em; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.dl-card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.dl-card .thumb { aspect-ratio: 16 / 9; background: repeating-conic-gradient(#e8d5ae 0 25%, #f3e4c4 0 50%) 50% / 18px 18px; display: grid; place-items: center; border-bottom: 2px solid var(--ink); overflow: hidden; }
.dl-card .thumb.dark { background: #2a1a0e; }
.dl-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dl-card .thumb.contain img { object-fit: contain; padding: 10px; }
.dl-card .meta { padding: 10px 12px 12px; font-size: 0.9rem; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.dl-card .meta strong { font: 700 1rem/1.1 var(--head); text-transform: uppercase; letter-spacing: 0.03em; }
.dl-card .meta a { font: 700 0.95rem/1 var(--head); text-transform: uppercase; white-space: nowrap; }
.zip-box { background: var(--gold); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--ink); padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 56px; }
.zip-box h2 { margin: 0; border: 0; padding: 0; font-size: 1.8rem; }
.quote { border-left: 4px solid var(--gold-deep); padding: 4px 0 4px 16px; margin: 0 0 1em; }
.plain-page { max-width: 760px; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .intro-split, .pk-grid, .studio { grid-template-columns: 1fr; }
  .facts { position: static; }
  .studio img { width: 150px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .features, .trio { grid-template-columns: 1fr; }
  .site-head .wrap { flex-wrap: wrap; gap: 6px 16px; padding: 8px 0; }
  .nav { margin-left: 0; gap: 2px 14px; }
  .nav a { font-size: 0.92rem; }
  .brand img { height: 32px; }
  .hero .wrap { min-height: min(82vh, 720px); padding-top: 96px; }
  .btn { padding: 13px 16px; font-size: 1.02rem; }
  .video .play { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .video img, .gallery img { transition: none; }
}
