/* Siege & Settle landing page. Colours and fonts follow the game (web/src/styles/theme.css). */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
  --parchment: #f4e9cf;
  --parchment-light: #fbf5e6;
  --parchment-dark: #e6d3a8;
  --parchment-line: #cdb685;
  --ink: #2b1d12;
  --ink-soft: #5c4630;
  --wood: #1f150d;
  --wood-2: #2b1d12;
  --on-wood: #f1e3c4;
  --on-wood-soft: #c9b48a;
  --leather: #845730;
  --gold: #d9ab3c;
  --gold-soft: #f0d58a;
  --red: #a8392a;
  --green-deep: #3f6226;
  --focus: #f0b429;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 30px -12px rgba(43, 29, 18, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-ui);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
.amp { font-style: italic; font-weight: 600; color: var(--gold); }

.eyebrow {
  font: 600 .8rem/1 var(--font-ui);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 1rem;
}
.eyebrow--ink { color: var(--leather); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  border-radius: 999px;
  font: 700 1rem/1 var(--font-ui);
  letter-spacing: .02em;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold {
  background: linear-gradient(#e8c25a, var(--gold) 55%, #b8862a);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 6px 18px -6px rgba(0, 0, 0, .6);
}
.btn--gold:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 10px 24px -6px rgba(0, 0, 0, .65); }
.btn--ghost { color: var(--on-wood); border: 1.5px solid rgba(241, 227, 196, .55); }
.btn--ghost:hover { background: rgba(241, 227, 196, .1); border-color: var(--on-wood); }
.btn--small { min-height: 38px; padding: 0 18px; font-size: .92rem; }
.btn--big { min-height: 56px; padding: 0 36px; font-size: 1.12rem; }

/* Top bar */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: linear-gradient(rgba(31, 21, 13, .92), rgba(31, 21, 13, .78));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(217, 171, 60, .25);
  color: var(--on-wood);
}
.topbar__inner { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__emblem { width: 40px; height: 40px; object-fit: contain; }
.brand__name { font: 700 1.45rem/1 var(--font-display); white-space: nowrap; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--on-wood-soft); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--on-wood); }
@media (max-width: 900px) {
  .nav { display: none; }
  .topbar__inner .btn { margin-left: auto; }
  .brand__name { font-size: 1.25rem; }
  .brand__emblem { width: 34px; height: 34px; }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: grid; place-items: center;
  padding: 120px var(--gutter) 80px;
  color: var(--on-wood);
  text-align: center;
  background: var(--wood);
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(58% 50% at 50% 48%, rgba(31, 21, 13, .62), rgba(31, 21, 13, .15) 100%),
    linear-gradient(to bottom, rgba(31, 21, 13, .55), transparent 22%, transparent 72%, var(--wood));
}
.hero__content { max-width: 760px; }
.hero h1 {
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  letter-spacing: .01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .55);
  margin-bottom: .25em;
}
.hero__lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--on-wood); max-width: 620px; margin: 0 auto 2rem; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero__note { margin: 1.5rem 0 0; font-size: .95rem; color: var(--on-wood); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.hero__facts { text-shadow: 0 1px 8px rgba(0, 0, 0, .85); list-style: none; display: flex; justify-content: center; gap: clamp(18px, 5vw, 56px); margin: 2.4rem 0 0; padding: 0; color: var(--on-wood); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.hero__facts b { display: block; font-weight: 700; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1; font-family: var(--font-display); font-variant-numeric: lining-nums; color: var(--gold-soft); letter-spacing: 0; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(241, 227, 196, .6); border-radius: 14px; }
.hero__scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-soft); animation: scrollcue 1.8s ease-in-out infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll::after { animation: none; } }

/* Sections */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head p:last-child { color: var(--ink-soft); font-size: 1.1rem; }
.section-head--light h2 { color: var(--on-wood); }

/* Pillars */
.pillars { background: var(--parchment); }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 960px) { .pillars__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.card {
  background: var(--parchment-light);
  border: 1px solid var(--parchment-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--parchment-dark); }
.card__body { padding: 22px 24px 8px; }
.card__body h3 { color: var(--ink); }
.card__body h3::after { content: ""; display: block; width: 44px; height: 2px; margin-top: 10px; background: var(--gold); }
.card__body p { color: var(--ink-soft); }

/* Story */
.story { background: var(--parchment-dark); border-block: 1px solid var(--parchment-line); }
.story__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .story__inner { grid-template-columns: 1fr; } }
.story__text p { color: var(--ink-soft); font-size: 1.1rem; }
.story__figure { margin: 0; }
.story__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--parchment-line); }

/* Features */
.features__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--parchment-line); border: 1px solid var(--parchment-line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 860px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features__grid { grid-template-columns: 1fr; } }
.features__grid li { background: var(--parchment-light); padding: 26px 26px 14px; }
.features__grid h3 { font-size: 1.35rem; }
.features__grid p { color: var(--ink-soft); font-size: 1rem; }

/* Worlds */
.worlds { background: radial-gradient(90% 80% at 50% 0%, #3a2818, var(--wood)); color: var(--on-wood); }
.worlds__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 980px; margin: 0 auto; }
@media (max-width: 760px) { .worlds__grid { grid-template-columns: 1fr; } }
.world { background: rgba(241, 227, 196, .06); border: 1px solid rgba(217, 171, 60, .3); border-radius: var(--radius); overflow: hidden; }
.world img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.world__body { padding: 22px 24px 10px; }
.world__body h3 { color: var(--gold-soft); }
.world__body p { color: var(--on-wood-soft); }

/* Gallery */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .gallery__grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid var(--parchment-line); box-shadow: var(--shadow); background: var(--parchment-dark); }
.gallery figcaption { margin-top: 10px; color: var(--ink-soft); font-size: .95rem; text-align: center; }

/* FAQ */
.faq { background: var(--parchment-light); border-top: 1px solid var(--parchment-line); }
.faq details { border-bottom: 1px solid var(--parchment-line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 40px 18px 0; position: relative;
  font: 700 1.35rem/1.3 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--font-ui); color: var(--leather); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-soft); padding-right: 40px; }

/* Finale */
.finale { position: relative; text-align: center; color: var(--on-wood); background: var(--wood); isolation: isolate; padding: clamp(90px, 12vw, 160px) var(--gutter); }
.finale__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.finale__shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 50%, rgba(31, 21, 13, .45), rgba(31, 21, 13, .85)); }
.finale h2 { font-size: clamp(2.4rem, 6vw, 4rem); text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.finale p { color: var(--on-wood-soft); font-size: 1.15rem; margin-bottom: 1.8rem; }

/* Ink button (on parchment) */
.btn--ink { background: var(--wood-2); color: var(--on-wood); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .6); }
.btn--ink:hover { background: #3a2818; }

/* World map */
.mapsec { background: radial-gradient(120% 90% at 0% 0%, #3a2818, var(--wood)); color: var(--on-wood); overflow: hidden; }
.mapsec__inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .mapsec__inner { grid-template-columns: 1fr; } }
.mapsec h2 { color: var(--on-wood); }
.mapsec p { color: var(--on-wood-soft); font-size: 1.08rem; }
.legend { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .95rem; color: var(--on-wood); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 14px; height: 14px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35) inset; }
.dot--crop { background: #e3b93c; } .dot--wood { background: #3f7a2c; } .dot--clay { background: #c8582c; }
.dot--iron { background: #8d97a3; } .dot--balanced { background: #efe3c2; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(217, 171, 60, .35); transform: perspective(1400px) rotateX(10deg); transform-origin: 50% 100%; }
.mosaic img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 900px) { .mosaic { transform: none; } }

/* Peoples */
.peoples { background: var(--parchment-light); border-bottom: 1px solid var(--parchment-line); }
.peoples__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 960px) { .peoples__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.people { position: relative; display: flex; flex-direction: column; text-align: center; background: var(--parchment); border: 1px solid var(--parchment-line); border-radius: var(--radius); padding: 0 22px 18px; box-shadow: var(--shadow); margin-top: 70px; }
.people__home { width: 150px; height: 150px; margin: -75px auto 8px; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 10px 24px -10px rgba(43, 29, 18, .7); background: #5f7d34; object-fit: cover; }
.people p { color: var(--ink-soft); }
.people__units { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; border-top: 1px solid var(--parchment-line); padding-top: 14px; }
.people__units figure, .barbs__units figure { margin: 0; }
.people__units img { width: 100%; max-width: 96px; margin: 0 auto; }
.people__units figcaption, .barbs__units figcaption { font-size: .82rem; color: var(--ink-soft); line-height: 1.25; margin-top: 4px; text-wrap: balance; overflow-wrap: break-word; hyphens: manual; min-height: 2.5em; }

/* Victory: control points */
.victory { display: grid; grid-template-columns: 1.1fr 1fr; padding: 0; background: var(--wood); color: var(--on-wood); }
@media (max-width: 900px) { .victory { grid-template-columns: 1fr; } }
.victory__art { position: relative; min-height: 420px; }
.victory__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.victory__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, transparent 60%, var(--wood)); }
@media (max-width: 900px) { .victory__art { min-height: 0; aspect-ratio: 4 / 3; } .victory__art::after { background: linear-gradient(to bottom, transparent 65%, var(--wood)); } }
.victory__text { padding: clamp(48px, 7vw, 100px) clamp(20px, 5vw, 72px); align-self: center; }
.victory h2 { color: var(--gold-soft); }
.victory p { color: var(--on-wood-soft); font-size: 1.08rem; }
.cp { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; gap: 12px; }
.cp li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: baseline; padding: 12px 16px; border: 1px solid rgba(217, 171, 60, .3); border-radius: 8px; background: rgba(241, 227, 196, .05); }
.cp b { font: 700 1.35rem/1 var(--font-display); color: var(--gold-soft); }
.cp span { color: var(--on-wood); }
.victory__note { font-size: .98rem !important; border-left: 3px solid var(--gold); padding-left: 14px; }

/* Barbarians */
.barbs { background: linear-gradient(#2a1410, #1a0d0a); color: var(--on-wood); }
.barbs__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .barbs__inner { grid-template-columns: 1fr; } .barbs__art { order: -1; } }
.barbs h2 { color: #f2b48a; }
.barbs p { color: var(--on-wood-soft); font-size: 1.08rem; }
.barbs .eyebrow { color: #e58e5f; }
.barbs__art { margin: 0; }
.barbs__art img { width: 100%; border-radius: var(--radius); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(229, 142, 95, .35); }
.barbs__units { display: grid; grid-template-columns: repeat(3, minmax(0, 112px)); gap: 14px 18px; margin-top: 1.2rem; }
.barbs__units figure { text-align: center; }
.barbs__units img { width: 100%; max-width: 96px; margin: 0 auto; }
@media (max-width: 900px) { .barbs__units { justify-content: center; } }
.barbs__units figcaption { color: var(--on-wood-soft); }

/* Wiki: the Art#30 papyrus page in its oak frame, the Art#31 table board */
.wikisec { background: var(--parchment-dark); border-block: 1px solid var(--parchment-line); }
.wikisec__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .wikisec__inner { grid-template-columns: minmax(0, 1fr); } }
.wikipage, .wikisec__text { min-width: 0; }
.wikisec__text p { color: var(--ink-soft); font-size: 1.08rem; }
.wikipage {
  border: 48px solid transparent;
  border-image: url("assets/wiki-frame.webp") 128 / 48px / 0 stretch;
  background: url("assets/papyrus.webp") 0 0 / 512px repeat;
  background-origin: border-box; background-clip: padding-box;
  padding: 6px 4px 2px; color: #3b2a1a;
  filter: drop-shadow(0 18px 30px rgba(43, 29, 18, .45));
}
@media (max-width: 560px) { .wikipage { border-width: 30px; border-image-width: 30px; } }
.wikipage__crumb { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: #6b4f30; margin: 0 0 .3rem; }
.wikipage h3 { font-size: 1.9rem; margin-bottom: .6rem; }
.wikipage__note { font-size: .9rem; color: #5c4630; margin: .8rem 0 0; }
.tb-wrap { overflow-x: auto; }
.tb { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: lining-nums tabular-nums; }
.tb thead tr { background:
  url("assets/header-left@2x.webp") left top / auto 100% no-repeat,
  url("assets/header-right@2x.webp") right top / auto 100% no-repeat,
  url("assets/header-mid@2x.webp") 0 0 / 100% 100% no-repeat; }
.tb th, .tb td { padding: 8px 10px; text-align: right; white-space: nowrap; }
.tb thead th { color: var(--on-wood); font-weight: 700; height: 44px; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.tb thead th:first-child { padding-left: 22px; text-align: left; }
.tb thead th:last-child { padding-right: 22px; }
.tb tbody th { text-align: left; font: 700 1.1rem/1.2 var(--font-display); }
.tb tbody tr + tr { border-top: 1px solid rgba(91, 64, 34, .35); }

/* Footer */
.footer { background: var(--wood); color: var(--on-wood-soft); border-top: 1px solid rgba(217, 171, 60, .25); padding: 28px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.brand--footer { color: var(--on-wood); }
.brand--footer .brand__emblem { width: 32px; height: 32px; }
.brand--footer .brand__name { font-size: 1.2rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__nav a { text-decoration: none; font-size: .95rem; }
.footer__nav a:hover { color: var(--on-wood); }
.footer__copy { margin: 0 0 0 auto; font-size: .9rem; }
@media (max-width: 640px) { .footer__copy { margin-left: 0; width: 100%; } }
@media (max-width: 560px) {
  .tb { font-size: .8rem; }
  .tb th, .tb td { padding: 6px 4px; }
  .tb thead th:first-child { padding-left: 14px; }
  .tb thead th:last-child { padding-right: 14px; }
  .tb tbody th { font-size: .95rem; }
  .wikipage { border-width: 24px; border-image-width: 24px; padding: 4px 0 0; }
}
@media (max-width: 420px) { .tb th:nth-child(6), .tb td:nth-child(6) { display: none; } }
@media (max-width: 700px) { .hero__bg { object-position: 72% 50%; } }

/* Newsletter (Art#36): the herald painting and a papyrus card with the form */
.news { position: relative; display: grid; padding: 0; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--wood); isolation: isolate; }
.news__art { position: relative; min-height: 560px; }
.news__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.news__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, transparent 55%, var(--wood)); }
.news__card {
  align-self: center; margin: clamp(32px, 5vw, 72px) clamp(16px, 5vw, 64px) clamp(32px, 5vw, 72px) clamp(-120px, -6vw, -40px);
  position: relative; z-index: 1; min-width: 0;
  padding: clamp(24px, 3.4vw, 44px);
  background: url("assets/papyrus.webp") 0 0 / 512px repeat, var(--parchment);
  border: 1px solid var(--parchment-line); border-radius: var(--radius);
  box-shadow: 0 0 0 6px rgba(217, 171, 60, .22), 0 30px 70px -24px rgba(0, 0, 0, .9);
}
.news__card h2 { color: var(--ink); }
.news__lead { color: var(--ink-soft); font-size: 1.08rem; }
.news__list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 8px; }
.news__list li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 8px 12px; border-left: 3px solid var(--gold); background: rgba(132, 87, 48, .07); border-radius: 0 6px 6px 0; }
.news__list b { font: 700 1.25rem/1.1 var(--font-display); color: var(--leather); }
.news__list span { color: var(--ink); }
.nl-form__label { display: block; font-weight: 600; margin-bottom: 6px; }
.nl-form__email {
  display: block; width: 100%; min-height: 48px; padding: 0 14px;
  font: 400 1.05rem var(--font-ui); color: var(--ink);
  background: var(--parchment-light); border: 1.5px solid var(--parchment-line); border-radius: 8px;
}
.nl-form__email:focus { border-color: var(--leather); }
.nl-form__email[aria-invalid="true"], .nl-form__consent input[aria-invalid="true"] { outline: 2px solid var(--red); outline-offset: 2px; }
.nl-form__send { margin-top: 16px; }
.nl-form__send:disabled { opacity: .6; cursor: progress; transform: none; }
.nl-form__consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 14px; font-size: .98rem; color: var(--ink); cursor: pointer; }
.nl-form__consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--leather); }
.nl-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nl-form__status { margin: 14px 0 0; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.nl-form__status.is-ok { background: rgba(63, 98, 38, .12); border: 1px solid rgba(63, 98, 38, .45); color: #2f4a1c; }
.nl-form__status.is-error { background: rgba(168, 57, 42, .1); border: 1px solid rgba(168, 57, 42, .45); color: #8a2c20; }
.nl-form__fine { margin: 14px 0 0; font-size: .88rem; color: var(--ink-soft); }
.finale__alt { margin: 1.4rem 0 0 !important; font-size: 1rem !important; }
.finale__alt a { color: var(--gold-soft); }
@media (max-width: 900px) {
  .news { grid-template-columns: minmax(0, 1fr); }
  .news__art { min-height: 0; aspect-ratio: 4 / 3; }
  .news__art::after { background: linear-gradient(to bottom, transparent 60%, var(--wood)); }
  .news__card { margin: -64px var(--gutter) 48px; }
}
@media (max-width: 480px) {
  .news__list li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .nl-form__send { width: 100%; }
}

/* Answer of a newsletter email link, under the top bar */
.nl-banner { border-top: 1px solid rgba(217, 171, 60, .25); }
.nl-banner.is-ok { background: #2f4a1c; }
.nl-banner.is-error { background: #6e2219; }
.nl-banner__inner { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 16px; }
.nl-banner__text { margin: 0; flex: 1; color: var(--on-wood); font-weight: 600; }
.nl-banner__close { flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid rgba(241, 227, 196, .45); border-radius: 50%; background: transparent; color: var(--on-wood); font-size: 1.3rem; line-height: 1; cursor: pointer; }

/* Before the launch (Art#36): <body data-prelaunch> swaps every "Play now" for "Get notified" (-> #newsletter) and
   hides the links to the game's wiki. Remove the attribute on launch day. */
body[data-prelaunch] .only-live { display: none !important; }
body:not([data-prelaunch]) .only-prelaunch { display: none !important; }
.wikisec__soon { font-weight: 600; color: var(--leather); }

/* Launch (landing-play): sign up and log in in the top bar, the hero and a closing band */
.topbar__cta { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.topbar__login { color: var(--on-wood); font: 600 .95rem/1 var(--font-ui); text-decoration: none; opacity: .9; }
.topbar__login:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.gates { position: relative; isolation: isolate; min-height: 420px; display: grid; place-items: center; text-align: center; padding: 88px var(--gutter); background: var(--wood); }
.gates__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.gates__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(20, 13, 7, .55), rgba(20, 13, 7, .78)); }
.gates__content { max-width: 680px; }
.gates h2 { color: var(--on-wood); font-size: clamp(2.2rem, 5vw, 3.4rem); text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.gates__lead { color: var(--on-wood); font-size: 1.12rem; margin: 0 auto 1.8rem; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
@media (max-width: 640px) { .topbar__login { display: none; } }

/* Analytics-01: the switch of the usage records on the privacy page, a button that reads as a link */
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }

/* GEO-01 G8: links from the home page to the inner pages. */
.faq__more { margin-top: 1.2em; font-weight: 600; }
.faq__more a { color: var(--leather); }
.world__body a { color: inherit; font-weight: 600; }

/* The one header of every page (tools/landing/header.html, written into each page by tools/landing/header.py):
   the current page in gold; under 900px the nav folds into a menu button (no script: <details>). */
.nav a[aria-current="page"], .menu__nav a[aria-current="page"] { color: var(--gold-soft); }
.menu { display: none; position: relative; }
.menu__button { list-style: none; cursor: pointer; font-size: 1.5rem; line-height: 1; padding: 6px 10px; color: var(--on-wood);
  border: 1px solid rgba(217, 171, 60, .35); border-radius: 6px; }
.menu__button::-webkit-details-marker { display: none; }
.menu[open] .menu__button { background: rgba(217, 171, 60, .15); }
.menu__nav { position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; display: flex; flex-direction: column;
  padding: 8px 0; background: rgba(31, 21, 13, .97); border: 1px solid rgba(217, 171, 60, .25); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.menu__nav a { padding: 10px 18px; text-decoration: none; color: var(--on-wood-soft); font-weight: 600; }
.menu__nav a:hover, .menu__nav a:focus-visible { color: var(--on-wood); background: rgba(217, 171, 60, .1); }
@media (max-width: 900px) {
  .menu { display: block; }
  .topbar__inner .topbar__cta { margin-left: auto; }
}
@media (max-width: 480px) { .topbar__inner { gap: 12px; } }
/* The Discord link in the one header (tools/landing/header.html). */
.topbar__discord { color: var(--on-wood); font: 600 .95rem/1 var(--font-ui); text-decoration: none; opacity: .9; }
.topbar__discord:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) { .topbar__discord { display: none; } }

/* GEO-01 G29: the trust strip under the hero, five true facts with icons (landing/assets/trust/). */
.trust { background: var(--parchment-light); border-bottom: 1px solid var(--parchment-line); padding: 22px 0; }
.trust__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px 24px; }
.trust__item { display: flex; align-items: center; gap: 12px; }
.trust__icon { width: 44px; height: 44px; flex: none; }
.trust__item p { margin: 0; line-height: 1.3; font-size: .92rem; color: var(--ink-soft); }
.trust__item b { display: block; color: var(--ink); font-size: 1rem; }
.trust__item a { color: var(--leather); }
@media (max-width: 1100px) { .trust__list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .trust__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .trust__list { grid-template-columns: 1fr; } }

/* GEO-01 G28: "Find us on" — official badges of the platforms where we really are (landing/assets/brands/, unmodified). */
.findus-band { background: var(--parchment); padding: 28px 0 36px; }
.findus { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; }
.findus__title { margin: 0; font: 600 1rem/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--leather); }
.findus__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.findus__badge { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 8px; text-decoration: none; font: 600 .95rem/1 var(--font-ui); }
.findus__badge img { display: block; height: 18px; width: auto; }
.findus__badge--discord { background: #5865F2; color: #fff; }
.findus__badge--discord:hover { background: #4752c4; }
/* G28b: itch.io's white logo on its brand red; IndieDB's own button image, at its own size (not the 18 px logo rule) */
.findus__badge--itch { background: #d63c3c; color: #fff; } /* itch.io red, one shade deeper: white text on #fa5c5c is 3.1:1, on #d63c3c 4.6:1 (WCAG AA) */
.findus__badge--itch:hover { background: #bf3434; }
.findus__button { display: inline-flex; align-items: center; min-height: 48px; border-radius: 8px; }
.findus__button img { display: block; width: 260px; height: 50px; max-width: 100%; object-fit: contain; }
.findus__button:hover img, .findus__button:focus-visible img { filter: brightness(1.12); }
.prose .findus { justify-content: flex-start; margin: 0 0 1em; }
.prose .findus__badge { color: #fff; }
.prose h3.findus__title { margin: 0; font: 600 1rem/1 var(--font-ui); }
.prose .findus__list { padding-left: 0; margin: 0; }

/* Retention R9: the phone screen before a link into the game (landing/phone.js) */
.phonegate { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 13, 7, .72); }
.phonegate.is-open { display: flex; }
.phonegate__card { position: relative; width: 100%; max-width: 420px; max-height: 100%; overflow: auto; padding: 20px 18px 14px; border-radius: var(--radius); background: var(--parchment); color: var(--ink); text-align: center; box-shadow: var(--shadow); }
.phonegate__card h2 { margin: .2em 0 .4em; font-size: 1.5rem; line-height: 1.15; }
.phonegate__card p { margin: 0 0 14px; }
.phonegate__pic { display: block; width: 100%; height: 140px; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.phonegate__btn { display: flex; width: 100%; min-height: 48px; margin: 0 0 10px; justify-content: center; text-decoration: none; }
.phonegate__try { margin: 4px 0 0; font-size: .95rem; }
.phonegate__try a { color: var(--leather); }
.phonegate__close { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--parchment); font-size: 1.6rem; color: var(--ink); cursor: pointer; }

/* I18N#5: the language links (EN | IT) of the top bar */
.topbar__lang { color: var(--on-wood-soft); font: 600 .85rem/1 var(--font-ui); white-space: nowrap; }
.topbar__lang a { color: var(--on-wood); text-decoration: none; opacity: .75; }
.topbar__lang a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.topbar__lang a[aria-current="true"] { opacity: 1; color: var(--gold-soft); }

/* 9/11/2026: on a phone the EN | IT switch overlapped the name in the top bar; under 480px it moves into the menu. */
.menu__lang { display: none; }
@media (max-width: 480px) {
  .topbar__lang { display: none; }
  .menu__nav a.menu__lang { display: block; }
}
@media (max-width: 400px) {
  .topbar__inner { gap: 8px; }
  .brand__name { font-size: 1.05rem; }
}
@media (max-width: 380px) { .topbar .brand__name { display: none; } }

/* #1272: the trailer, click-to-play (trailer.js): our poster until the click, then the youtube-nocookie player. */
.trailer { background: radial-gradient(90% 80% at 50% 0%, #3a2818, var(--wood)); color: var(--on-wood); padding: clamp(44px, 6vw, 80px) 0; }
.trailer .section-head { margin-bottom: clamp(18px, 3vw, 30px); }
.trailer__player { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); }
.trailer__poster, .trailer__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.trailer__poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .2s; }
.trailer__poster:hover img { filter: brightness(1.1); }
.trailer__poster:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.trailer__button { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(31, 21, 13, .8); border: 2px solid var(--gold); box-shadow: 0 6px 24px rgba(0, 0, 0, .6); transition: transform .2s; }
.trailer__button::after { content: ""; position: absolute; left: 33px; top: 25px; border-style: solid; border-width: 17px 0 17px 27px; border-color: transparent transparent transparent var(--gold-soft); }
.trailer__poster:hover .trailer__button, .trailer__poster:focus-visible .trailer__button { transform: translate(-50%, -50%) scale(1.08); }
.trailer__note { max-width: 960px; margin: 14px auto 0; text-align: center; font-size: .95rem; color: var(--on-wood-soft); }
.trailer__note a { color: var(--gold-soft); }
@media (max-width: 560px) { .trailer__button { width: 64px; height: 64px; } .trailer__button::after { left: 25px; top: 19px; border-width: 13px 0 13px 20px; } }
@media (prefers-reduced-motion: reduce) { .trailer__button, .trailer__poster img { transition: none; } }
/* #1273: YouTube and GitHub in the Find us strip (YouTube's red icon on its dark, GitHub's white mark on its dark). */
.findus__badge--youtube { background: #0f0f0f; color: #fff; }
.findus__badge--youtube:hover { background: #272727; }
.findus__badge--github { background: #24292f; color: #fff; }
.findus__badge--github:hover { background: #32383f; }
.findus__badge--youtube img { height: 18px; }
.findus__badge--github img { height: 20px; }
