/* Layout: a night-time chronicle of Valombre. One narrow reading column for the legend,
   wide bands for the film and the pictures, the launcher as the last seal at the foot. */
:root {
  --night: #0f0b18;        /* the sky over Valombre */
  --dusk: #1a1328;         /* raised bands */
  --stone: #2b2240;        /* frames and rules */
  --parchment: #ece3cf;    /* body text */
  --ash: #a99cbc;          /* secondary text */
  --amethyst: #a77bf0;     /* the stone of the Fracture */
  --gold: #e8c26a;         /* the logo's gilding */
  --gold-deep: #b88a34;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "EB Garamond", Garamond, "Times New Roman", serif;
  --measure: 38rem;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--parchment);
  font-family: var(--body);
  font-size: 1.2rem;
  line-height: 1.65;
}
img, video { max-width: 100%; display: block; }
a { color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; line-height: 1.2; margin: 0; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); color: var(--gold); letter-spacing: 0.04em; }
h3 { font-size: 1.1rem; letter-spacing: 0.06em; color: var(--parchment); }
p { margin: 0; }
.eyebrow {
  font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--amethyst);
}

/* ---------- Hero: the city at night behind the logo */
.hero {
  position: relative;
  background: linear-gradient(to bottom, rgba(15, 11, 24, 0.35), var(--night) 92%), url("images/7-valombre-la-nuit.jpg") center 40% / cover no-repeat;
  padding-block: clamp(3rem, 9vw, 6rem) clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1.4rem; }
.hero img.logo { width: min(34rem, 92%); height: auto; filter: drop-shadow(0 0 30px rgba(167, 123, 240, 0.45)); }
.tagline { font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.5rem); color: var(--parchment); max-width: 40rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.08em; text-decoration: none;
  padding: 0.8rem 1.4rem; border-radius: 3px; border: 1px solid var(--gold-deep); color: var(--gold); background: rgba(15, 11, 24, 0.6);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--gold); color: var(--night); }
.btn.primary { background: linear-gradient(to bottom, var(--gold), var(--gold-deep)); color: var(--night); border-color: var(--gold); }
.btn.primary:hover { filter: brightness(1.1); }

/* ---------- Trailer */
.film { padding-block: 1rem 4rem; }
.film figure { margin: 0; display: grid; gap: 0.7rem; }
.film video { width: 100%; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--stone); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 6px var(--dusk); }
.film figcaption { text-align: center; color: var(--ash); font-style: italic; font-size: 1rem; }

/* ---------- The legend: one reading column */
.chapter { padding-block: 3.5rem; }
.chapter .text { max-width: var(--measure); margin: 0 auto; display: grid; gap: 1.1rem; }
.chapter .text > .eyebrow { margin-bottom: -0.4rem; }
.chapter .text h3 { margin-top: 1.2rem; }
#lore p:first-of-type::first-letter {
  font-family: var(--display); float: left; font-size: 3.6rem; line-height: 0.85; padding: 0.35rem 0.6rem 0 0; color: var(--amethyst);
}
.chapter strong { color: var(--gold); font-weight: 500; }
.rule { display: flex; align-items: center; gap: 1rem; max-width: var(--measure); margin: 0 auto; color: var(--amethyst); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--stone), transparent); }
.rule span { font-size: 1.1rem; }
.plate { margin: 2.5rem auto 0; max-width: 56rem; }
.plate img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--stone); }
.plate figcaption { margin-top: 0.5rem; text-align: center; color: var(--ash); font-style: italic; font-size: 1rem; }

/* ---------- What awaits: a ledger of the world, two columns */
.world { background: var(--dusk); padding-block: 4rem; border-block: 1px solid var(--stone); }
.world header { display: grid; gap: 0.5rem; text-align: center; margin-bottom: 2.5rem; }
.ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2rem 3rem; }
.ledger div { display: grid; gap: 0.4rem; min-width: 0; padding-top: 1rem; border-top: 1px solid var(--stone); }
.ledger .count { font-family: var(--display); color: var(--amethyst); font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; }
.ledger p { color: var(--ash); font-size: 1.08rem; }

/* ---------- Pictures */
.gallery { padding-block: 4rem; }
.gallery header { text-align: center; margin-bottom: 2rem; display: grid; gap: 0.5rem; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.shots figure { margin: 0; position: relative; overflow: hidden; border: 1px solid var(--stone); }
.shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.6s ease; }
.shots figure:hover img { transform: scale(1.04); }
.shots figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem 1rem 0.7rem;
  background: linear-gradient(to top, rgba(15, 11, 24, 0.92), transparent);
  font-family: var(--display); font-size: 0.9rem; letter-spacing: 0.08em; color: var(--parchment);
}
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; } }

/* ---------- Beta call */
.beta { padding-block: 1rem 4rem; }
.beta .box {
  max-width: 46rem; margin: 0 auto; padding: 2rem clamp(1.2rem, 4vw, 2.5rem); text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; justify-items: center;
  border: 1px solid var(--gold-deep); background: rgba(232, 194, 106, 0.05);
}
.beta h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

/* ---------- Launcher, the foot of the page */
.launcher {
  padding-block: 4.5rem;
  background: radial-gradient(ellipse at center top, rgba(167, 123, 240, 0.22), transparent 65%), var(--dusk);
  border-top: 1px solid var(--stone);
  text-align: center;
}
.launcher .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; justify-items: center; }
.launcher p.lead { max-width: 34rem; color: var(--ash); }
.steps { list-style: none; padding: 0; margin: 0.5rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; width: 100%; max-width: 50rem; text-align: left; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 0 0.8rem; align-items: baseline; }
.steps .n { font-family: var(--display); font-size: 1.8rem; color: var(--amethyst); grid-row: span 2; }
.steps strong { font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.06em; color: var(--parchment); }
.steps span.d { color: var(--ash); font-size: 1rem; }
.download { font-size: 1.1rem; padding: 1rem 2rem; }
.download[aria-disabled="true"] { background: transparent; color: var(--ash); border: 1px dashed var(--ash); cursor: not-allowed; filter: none; }
.download[aria-disabled="true"]:hover { background: transparent; color: var(--ash); }
.note { font-size: 0.95rem; color: var(--ash); font-style: italic; }

footer { padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--stone); color: var(--ash); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; }
footer small { font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- The Windows warning, explained (a drawing of it, not a capture) */
.avertissement { width: 100%; max-width: 54rem; text-align: left; margin-top: 2.5rem; display: grid; gap: 1.2rem; }
.avertissement > p { color: var(--ash); font-size: 1.05rem; }
.avertissement h3 { color: var(--gold); font-size: 1.15rem; }
.ecrans { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.2rem; }
.ecran { margin: 0; }
.ecran figcaption { margin-top: 0.6rem; font-size: 1rem; color: var(--parchment); }
.ecran figcaption b { font-family: var(--display); color: var(--amethyst); margin-right: 0.4rem; }
.fenetre { background: #0b5fa5; color: #fff; font-family: "Segoe UI", system-ui, sans-serif; border-radius: 6px; padding: 1.1rem 1.2rem 1rem;
  min-height: 12.5rem; display: flex; flex-direction: column; gap: 0.55rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); font-size: 0.82rem; line-height: 1.4; }
.fenetre .t { font-size: 1.15rem; font-weight: 600; }
.fenetre .lien { text-decoration: underline; width: fit-content; }
.fenetre .pied { margin-top: auto; display: flex; justify-content: flex-end; gap: 0.5rem; }
.fenetre .bt { border: 1px solid rgba(255, 255, 255, 0.7); padding: 0.3rem 1rem; }
.fenetre .cible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; animation: cible 1.6s ease-in-out infinite; }
@keyframes cible { 50% { outline-color: rgba(232, 194, 106, 0.25); } }
.rassure { border-left: 3px solid var(--amethyst); padding: 0.4rem 0 0.4rem 1rem; color: var(--parchment); font-size: 1.02rem; }

/* ---------- Other launchers: the pack for Modrinth App and Prism Launcher */
.autres { width: 100%; max-width: 54rem; text-align: left; margin-top: 1.5rem; padding: 1.6rem 1.8rem; border: 1px solid var(--stone);
  background: rgba(15, 11, 24, 0.55); display: grid; gap: 1rem; }
.autres h3 { color: var(--gold); font-size: 1.15rem; }
.autres p, .autres li { color: var(--ash); font-size: 1.02rem; }
.autres ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.35rem; }
.autres .deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; }
.autres strong { color: var(--parchment); }
.aide { width: 100%; max-width: 54rem; margin-top: 1.5rem; color: var(--ash); font-size: 1.02rem; }
@media (prefers-reduced-motion: reduce) { .fenetre .cible { animation: none; } }

footer { padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--stone); color: var(--ash); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; }
footer small { font-size: 0.85rem; }

