/* Islemarch website. Colours follow the game: night-sea navy, gold trim,
   teal for the player, coral for the rival. */
@font-face { font-family: "Cinzel"; src: url("fonts/Cinzel.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/AlegreyaSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/AlegreyaSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --night: #0b1730;
  --navy: #12234a;
  --navy-2: #1a3160;
  --ink: #eef1f7;
  --muted: #a9b6cf;
  --gold: #e6b552;
  --gold-2: #f6d98a;
  --gold-dark: #8a5d1c;
  --teal: #1f9c8a;
  --teal-2: #36c2ac;
  --coral: #e2604f;
  --line: rgba(230, 181, 82, 0.35);
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 500 18px/1.6 "Alegreya Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: "Cinzel", Georgia, serif; font-weight: 700; line-height: 1.2; letter-spacing: 0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; color: var(--gold-2); }
h3 { font-size: 21px; margin: 0 0 6px; color: var(--ink); }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 23, 48, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 181, 82, 0.18);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold-2); font: 700 20px "Cinzel", serif; letter-spacing: 0.06em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 16px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-2); }
@media (max-width: 720px) { .nav .opt { display: none; } .nav { gap: 16px; } }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: min(88vh, 760px);
  display: grid; align-items: center;
  background: #0d1d3d url("img/key-art.webp") 72% 50% / cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,23,48,0.92) 0%, rgba(11,23,48,0.55) 45%, rgba(11,23,48,0) 70%), linear-gradient(0deg, var(--night) 0%, rgba(11,23,48,0) 28%); }
.hero .wrap { position: relative; z-index: 1; padding: 64px 0 96px; }
.hero-copy { max-width: 600px; }
.hero h1 { margin: 0; }
.hero h1 img { width: min(520px, 100%); filter: drop-shadow(0 8px 24px rgba(0,0,0,0.55)); }
.tagline { font: 700 clamp(19px, 2.2vw, 24px)/1.35 "Cinzel", serif; color: var(--ink); margin: 18px 0 10px; }
.lede { color: var(--muted); font-size: 19px; margin: 0 0 28px; }
@media (max-width: 760px) {
  .hero { background-size: auto 470px; background-position: 84% 10px; align-items: end; min-height: 0; }
  .hero::after { background: linear-gradient(0deg, var(--night) 0%, var(--night) 45%, rgba(11,23,48,0) 75%); }
  .hero .wrap { padding: 330px 0 56px; }
}

/* Store buttons ("coming soon"). Official badges replace these at launch. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 200px; padding: 10px 18px 10px 14px;
  border-radius: 14px; border: 1.5px solid var(--line);
  background: rgba(8, 15, 32, 0.78); color: var(--ink); text-decoration: none;
}
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); line-height: 1.2; }
.store strong { display: block; font-size: 19px; line-height: 1.2; }
.store[aria-disabled="true"] { cursor: default; }
.note { font-size: 15px; color: var(--muted); margin-top: 14px; }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin: 0; }
.divider { display: block; width: 180px; height: 12px; margin: 0 0 18px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent) center / 100% 1.5px no-repeat; position: relative; }
.divider::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; background: var(--gold); transform: translate(-50%, -50%) rotate(45deg); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.card p { margin: 0; color: var(--muted); }
.card .ico { width: 44px; height: 44px; margin-bottom: 14px; color: var(--gold); }

/* Screenshots */
.shots-band { background: linear-gradient(180deg, var(--night), #0f2047 50%, var(--night)); }
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px;
  scrollbar-color: var(--gold-dark) transparent;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img {
  width: 100%; aspect-ratio: 9 / 20; object-fit: cover;
  border-radius: 22px; border: 3px solid #26355a;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}
.shots figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 10px; }
@media (max-width: 760px) { .shots { grid-auto-columns: 62%; } }

/* Trailer slot */
.trailer {
  position: relative; aspect-ratio: 16 / 9; max-width: 880px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: #0d1d3d url("img/key-art.webp") center / cover no-repeat;
  display: grid; place-items: center; text-align: center;
}
.trailer::before { content: ""; position: absolute; inset: 0; background: rgba(8, 15, 32, 0.55); }
.trailer > * { position: relative; }
.play { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; background: rgba(8,15,32,0.7); border: 2px solid var(--gold); }
.play svg { width: 32px; height: 32px; color: var(--gold-2); margin-left: 5px; }
.trailer p { margin: 0; font: 700 20px "Cinzel", serif; color: var(--ink); }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(230,181,82,0.2); text-decoration: none; color: var(--ink); font-weight: 700; }
.links a:hover { border-color: var(--gold); }
.links a span { color: var(--muted); font-weight: 500; font-size: 15px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  font: 700 17px "Alegreya Sans", sans-serif; color: #fff;
  background: linear-gradient(180deg, var(--teal-2), var(--teal) 55%, #13685d);
  border: 2px solid var(--gold); box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.button:hover { color: #fff; filter: brightness(1.08); }
.button.navy { background: linear-gradient(180deg, #24407a, var(--navy)); }

/* Footer */
.site-footer { border-top: 1px solid rgba(230,181,82,0.18); padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold-2); }

/* Text pages (privacy, press, support) */
.page { padding: 56px 0 88px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(32px, 5vw, 46px); color: var(--gold-2); margin: 0 0 8px; }
.prose h2 { font-size: 26px; margin-top: 44px; }
.prose h3 { margin-top: 26px; }
.prose p, .prose li { color: #d6dcea; }
.prose .meta { color: var(--muted); margin: 0 0 28px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 16px 0; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(230,181,82,0.2); }
.prose th { color: var(--gold-2); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 0; }
.facts dt { color: var(--gold-2); font-weight: 700; }
.facts dd { margin: 0; color: #d6dcea; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 8px; } }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 18px 0; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--navy); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 8px; }
.gallery .tall img { aspect-ratio: 9 / 16; object-fit: cover; padding: 0; }

/* Placeholders to fill in before publishing (see DEPLOY.md). */
[data-todo] { background: rgba(226, 96, 79, 0.22); outline: 1px dashed var(--coral); border-radius: 4px; padding: 0 4px; }
code { font: 500 0.88em ui-monospace, "SF Mono", Menlo, monospace; background: rgba(255,255,255,0.06); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
