/* fenicia showcase — generated by pipeline/build_site.py. Do not hand-edit. */
@font-face {
  font-family: "Marcellus";
  src: url("./fonts/Marcellus-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Questrial";
  src: url("./fonts/Questrial-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --night: #140A12;
  --paper: #F4EFE6;
  --ink: #33312E;
  --gold: #C9A227;
  --gold-hi: #F2D98C;
  --cedar: #3F7D54;
  --coast: #C5BCAD;
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);          /* one background colour, everywhere */
  color: var(--paper);
  font-family: "Questrial", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── top nav: small logo top-left + menu ──────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: 11px clamp(16px, 4vw, 40px);
  padding-top: calc(11px + env(safe-area-inset-top));
  padding-left: calc(clamp(16px, 4vw, 40px) + env(safe-area-inset-left));
  padding-right: calc(clamp(16px, 4vw, 40px) + env(safe-area-inset-right));
  background: rgba(20, 10, 18, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav .brand { display: flex; align-items: center; flex: none; }
.nav .brand img {
  height: clamp(30px, 5vw, 38px);
  width: auto;
  display: block;
}
.nav .links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
}
.nav a.link {
  color: #d9cfc2;
  text-decoration: none;
  font-size: clamp(14px, 2.4vw, 16px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 1px;
  position: relative;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav a.link.active { color: var(--gold-hi); }
.nav a.link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--gold);
}
@media (hover: hover) { .nav a.link:hover { color: #fff; } }

/* ── page container ───────────────────────────────────── */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(22px, 5vw, 42px) clamp(16px, 4vw, 40px) clamp(56px, 12vw, 110px);
  padding-left: calc(clamp(16px, 4vw, 40px) + env(safe-area-inset-left));
  padding-right: calc(clamp(16px, 4vw, 40px) + env(safe-area-inset-right));
}
.wrap.narrow { max-width: 780px; }

/* ── grid heading (was AVSNITT → now LIBANON) ─────────── */
.row-head {
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(30px, 7vw, 52px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-hi);
  margin: 2px 0 4px;
}
.row-sub {
  color: #9a9186;
  letter-spacing: 0.04em;
  margin: 0 0 clamp(20px, 4vw, 32px);
  font-size: clamp(14px, 2.4vw, 17px);
}

/* ── grid: 2 / 3 / 4 per row (streaming-style) ────────── */
.grid {
  display: grid;
  gap: clamp(12px, 2vw, 22px);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px)  { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px)  { .grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #0c0710 center/cover no-repeat;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card:active { transform: scale(0.985); }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(0, 0, 0, 0.6); }
}
.card .num {
  position: absolute;
  top: 10px; left: 10px;
  min-width: 32px; height: 32px;
  padding: 0 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Marcellus", Georgia, serif;
  font-size: 16px; letter-spacing: 0.03em;
  color: var(--night);
  background: var(--gold-hi);
  border: 1px solid var(--gold);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.card .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 10, 18, 0.42);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  opacity: 0; transition: opacity 0.18s ease;
}
.card .play::after {
  content: ""; margin-left: 4px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}
.card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (hover: hover) { .card:hover .play { opacity: 1; } }

/* ── "how it works" document page (dark) ──────────────── */
.doc h1 {
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(30px, 7vw, 48px);
  letter-spacing: 0.04em;
  color: var(--gold-hi);
  margin: 0 0 4px;
}
.doc .rule { width: 60px; height: 3px; background: var(--gold); border: 0; margin: 16px 0 28px; }
.doc p { margin: 0 0 1.1em; max-width: 64ch; color: #e7ddcf; font-size: clamp(17px, 2.6vw, 20px); }
.doc strong { color: #fff; }
.doc .cost {
  margin-top: 28px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  color: #e7ddcf;
}
.doc .cost .stamp { display: block; font-size: 0.84em; color: #9a9186; margin-top: 8px; }

/* ── player modal ─────────────────────────────────────── */
.player {
  position: fixed; inset: 0;
  background: rgba(8, 4, 8, 0.95);
  display: none;
  align-items: center; justify-content: center;
  z-index: 50;
  padding:
    calc(env(safe-area-inset-top) + 14px)
    calc(env(safe-area-inset-right) + 14px)
    calc(env(safe-area-inset-bottom) + 14px)
    calc(env(safe-area-inset-left) + 14px);
}
.player.open { display: flex; }
.player video {
  max-width: 100%; max-height: 100%;
  width: auto; height: 100%;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
}
.player .close {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 10px);
  right: calc(env(safe-area-inset-right) + 10px);
  width: 52px; height: 52px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  background: rgba(20, 10, 18, 0.55);
  color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.player .close:active { transform: scale(0.94); }

footer {
  text-align: center;
  color: #7c756b;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 6px 22px calc(40px + env(safe-area-inset-bottom));
}
