/* Home page in the launcher theme (src/index.html, js/lt-home.js, css/lt-theme.css for the shared parts): the split hero with
   the What's new panel (the newest five ready releases of notes.json, written by build_site.py), About, Featured, more
   updates, Mods, FAQ and the closing call to action. */
.home-main { color: #E6DCD2; font-family: var(--lt-serif); }
.home-main .body { font: 500 18px/1.55 var(--lt-serif); color: #CDBFAE; margin: 0; }
.home-main .t { font: 700 26px/1.15 var(--lt-serif); color: #FAF7F0; }
.home-main a { text-decoration: none; }
.home-main h1, .home-main h2 { margin: 0; }

/* ---- the hero: picture two thirds wide, fading out to the right, an angled seam, the panel on the right */
.hr { position: relative; display: flex; flex-wrap: wrap; min-height: max(660px, min(100svh, 920px)); background: #0D0A09; overflow: hidden; }
.hl { position: relative; flex: 0 0 66.667%; min-width: 0; display: flex; align-items: flex-end; }
.ar {
  position: absolute; inset: 0 -140px 0 0; z-index: 0; background: url('../img/lt/crusader.webp') center 30% / cover;
  clip-path: polygon(0 0, 100% 0, calc(100% - 150px) 100%, 0 100%); -webkit-mask-image: linear-gradient(90deg, #000 38%, transparent 100%); mask-image: linear-gradient(90deg, #000 38%, transparent 100%);
}
.hl::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(13, 10, 9, 0.55), transparent 30%, rgba(13, 10, 9, 0.15) 55%, rgba(13, 10, 9, 0.9)); }
.hl .tx { position: relative; z-index: 4; display: flex; flex-direction: column; gap: 16px; padding: 0 56px 70px; max-width: 760px; }
.hr h1 { font: 700 clamp(36px, 4.6vw, 66px)/1.04 var(--lt-serif); letter-spacing: 0.05em; text-transform: uppercase; color: #D6C6AE; text-shadow: 0 3px 24px #000; text-wrap: balance; max-width: 880px; }
.hl .tx .body { font-size: 20px; max-width: 540px; text-shadow: 0 2px 12px #000; }
.hp {
  position: relative; z-index: 4; flex: 1 1 0; min-width: 300px; margin-left: -110px; padding: 130px 44px 44px 170px; display: flex; flex-direction: column; gap: 20px;
  background: linear-gradient(90deg, rgba(13, 10, 9, 0) 0, rgba(13, 10, 9, 0.88) 150px, #0D0A09 230px); clip-path: polygon(110px 0, 100% 0, 100% 100%, 0 100%);
}
.hr::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; box-shadow: inset 0 0 140px 70px #0D0A09; background: linear-gradient(180deg, #0D0A09, transparent 14%, transparent 80%, #0D0A09); }
.hp .hd { max-width: none; }

/* the What's new rotation: one card at a time, all stacked in one grid cell, the tallest sets the height */
.nsw { display: grid; }
.ns { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(34px); transition: opacity 0.5s, transform 0.5s, visibility 0s 0.5s; }
.ns.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ns.prev { transform: translateX(-34px); }
.ns .gi { height: 200px; overflow: hidden; background: #0D0A09; }
.ns .gi img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ns .nt { padding: 20px 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.ns .t { font-size: 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ns .body { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ns .more { text-align: right; font: 700 17px var(--lt-serif); color: #C9B48A; }
.nsd { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: -4px; }
.nd { position: relative; width: 9px; height: 9px; padding: 0; margin: 0 2px; transform: rotate(45deg); border: 1px solid rgba(214, 180, 106, 0.8); background: transparent; cursor: pointer; border-radius: 0; }
.nd::before { content: ''; position: absolute; inset: -12px; }                               /* a bigger touch target */
.nd.on { background: #D8481C; border-color: #F1DFAE; box-shadow: 0 0 9px rgba(216, 72, 28, 0.95); }
.nd:hover { border-color: #fff; }
.nd:focus-visible { outline: 2px solid #C9B48A; outline-offset: 5px; }
.np { margin-left: 8px; padding: 6px 4px; border: 0; background: none; color: #D6C6AE; font: 700 11px/1 var(--lt-label); letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; }
.np:hover { color: #fff; }
.np[hidden] { display: none; }
.pn { display: flex; align-items: center; gap: 16px; margin-top: -6px; }
.pn .pl { flex: 1; height: 1px; background: linear-gradient(90deg, #D6C6AE, rgba(201, 180, 138, 0.15)); }
.pn .pw { font: 700 15px var(--lt-label); letter-spacing: 0.2em; text-transform: uppercase; color: #C9B48A; border-bottom: 1px solid transparent; }
.pn:hover .pw, .pn:focus-visible .pw { color: #fff; border-color: #C9B48A; }
.hp-cta { margin-top: auto; }

/* ---- the landing sections */
.sec { padding: 92px clamp(16px, 4vw, 56px) 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.sec.tight { padding-top: 70px; }
.sec .hd { max-width: 640px; }
.sec .about { max-width: 62ch; text-align: center; font-size: 19px; }
.fr { display: flex; gap: 22px; width: 100%; max-width: 1280px; margin-top: 20px; flex-wrap: wrap; align-items: stretch; }
.fc { flex: 1 1 280px; min-height: 380px; }
.fc .in { display: flex; align-items: flex-end; justify-content: center; text-align: center; padding: 26px; }
.fc.mid { min-height: 430px; margin-top: -26px; }
.fc b { display: block; font: 700 22px/1.2 var(--lt-serif); letter-spacing: 0.14em; text-transform: uppercase; color: #D6C6AE; }
.fc span { display: block; font: 500 17px/1.45 var(--lt-serif); color: #CDBFAE; margin-top: 8px; }
.fc .tx { position: relative; z-index: 2; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; width: 100%; max-width: 1280px; }
.g3 .ch .gi { height: 150px; overflow: hidden; background: #0D0A09; }
.g3 .ch .gi img { display: block; width: 100%; height: 100%; object-fit: cover; }
.g3 .nt { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.g3 .body { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.g3 .t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.band .in { position: relative; min-height: 280px; display: flex; align-items: center; }
.band .bt { max-width: 560px; padding: 40px 64px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.band .bt .hd { max-width: 320px; }
.wide { width: 100%; max-width: 1280px; }
.fq { width: 100%; max-width: 760px; border-bottom: 1px solid rgba(201, 180, 138, 0.35); padding: 18px 4px; }
.fq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; font: 700 17px/1.3 var(--lt-serif); letter-spacing: 0.12em; text-transform: uppercase; color: #D6C6AE; }
.fq summary::-webkit-details-marker { display: none; }
.fq summary:focus-visible { outline: 2px solid #C9B48A; outline-offset: 4px; }
.fq summary::after {
  content: ''; flex: none; width: 26px; height: 26px; transform: rotate(45deg); border: 1.5px solid #D6C6AE;
  background: linear-gradient(#D6C6AE, #D6C6AE) center / 12px 1.5px no-repeat, linear-gradient(#D6C6AE, #D6C6AE) center / 1.5px 12px no-repeat;
}
.fq[open] summary::after { background: linear-gradient(#D6C6AE, #D6C6AE) center / 12px 1.5px no-repeat; }
.fq .body { margin-top: 12px; font-size: 17px; }
.fq .body a { color: #C9B48A; text-decoration: underline; text-underline-offset: 3px; }
.faq { width: 100%; display: flex; flex-direction: column; align-items: center; margin-top: 10px; }
.cta .in { min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; padding: 40px 20px; }
.cta .t {
  font: 700 clamp(26px, 3.4vw, 46px)/1.15 var(--lt-serif); letter-spacing: 0.06em; text-transform: uppercase; max-width: 720px; text-wrap: balance;
  background: linear-gradient(180deg, #FAF7F0, #D6C6AE 70%, #8A6D3F); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- narrower screens */
@media (max-width: 1180px) {
  .hl { flex-basis: 56%; }
  .hp { padding: 120px 28px 40px 140px; }
  .hl .tx { padding: 0 32px 60px; }
}
@media (max-width: 980px) {
  .hr { min-height: 0; }
  .hl { flex: 0 0 100%; min-height: 560px; }
  .ar { inset: 0; clip-path: none; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .hl .tx { padding: 120px 16px 48px; }
  .hp { flex: 0 0 100%; margin-left: 0; padding: 12px 16px 40px; clip-path: none; background: #0D0A09; }
  .hr::after { box-shadow: inset 0 0 60px 30px #0D0A09; }
  .g3 { grid-template-columns: 1fr; }
  .fc.mid { margin-top: 0; min-height: 380px; }
  .band .bt { padding: 32px 24px; }
}
@media (max-width: 520px) {
  .hl { min-height: 520px; }
  .hl .tx .body { font-size: 18px; }
  .sec { padding-top: 64px; }
  .sec .hd { letter-spacing: 0.22em; font-size: 17px; }
  .ns .gi { height: 160px; }
  .ns .t { font-size: 21px; }
  .fq summary { font-size: 15px; letter-spacing: 0.08em; }
}

/* ---- motion: no rotation animation, the cards just change */
@media (prefers-reduced-motion: reduce) {
  .ns, .ns.on { transition: none; transform: none; }
}
