  :root {
    --bg: #0d0a0c;
    --bg2: #15100f;
    --ink: #eadfcb;
    --dim: #a99c88;
    --gold: #e0b56a;
    --ember: #ff8a3a;
    --ember-deep: #a3361a;
    --violet: #8a6cff;
    --line: rgba(224, 181, 106, 0.22);
    --maxw: 1120px;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0; background: var(--bg); color: var(--ink);
    font: 500 17px/1.6 "Source Sans 3", system-ui, sans-serif;
    font-variant-numeric: tabular-nums;  /* the game's UI font: Source Sans 3, weight 500, tabular figures */
    -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; height: auto; display: block; }
  a { color: var(--gold); }
  /* Headings like the game's: IM Fell English, which has no bold cut; the game emboldens it
     (visual.titleFontWeight), here a hairline stroke in the text colour does the same. */
  h1, h2, h3, .fell { font-family: "IM Fell English", Georgia, serif; font-weight: 400; letter-spacing: 0.04em; margin: 0; -webkit-text-stroke: 0.035em currentColor; paint-order: stroke fill; }
  b, strong { font-weight: 700; }
  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

  /* top bar */
  .bar {
    position: fixed; inset: 0 0 auto 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 20px; background: linear-gradient(rgba(10,7,8,0.92), rgba(10,7,8,0.65));
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  }
  .bar .mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
  .bar .mark img { height: 42px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6)); }
  .bar nav { display: flex; gap: 22px; align-items: center; }
  .bar nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; opacity: 0.85; }
  .bar nav a:hover { opacity: 1; color: var(--gold); }
  .bar nav .navlinks { display: flex; gap: 22px; }

  /* buttons */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: "IM Fell English", serif; font-size: 18px; letter-spacing: 0.14em; text-transform: uppercase;
    color: #fff3df; text-decoration: none; padding: 14px 30px; border-radius: 3px;
    background: linear-gradient(#7c2a14, #4a160b); border: 1px solid #c2643a;
    box-shadow: 0 0 0 1px #1a0806 inset, 0 8px 30px rgba(255, 110, 40, 0.25);
    transition: transform .15s, box-shadow .15s, filter .15s;
  }
  .btn:hover { transform: translateY(-1px); filter: brightness(1.12); box-shadow: 0 0 0 1px #1a0806 inset, 0 10px 38px rgba(255, 120, 50, 0.4); }
  .btn.ghost { background: linear-gradient(#24262e, #121318); border-color: #5a5f6e; box-shadow: 0 0 0 1px #050506 inset; }
  .btn.small { font-size: 14px; padding: 8px 16px; letter-spacing: 0.1em; }

  section { padding: 120px 0; position: relative; }
  .eyebrow { color: var(--ember); font-weight: 700; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 12px; }
  h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin-bottom: 18px; }
  .lead { color: var(--dim); font-size: 18px; max-width: 640px; }

  /* split */
  .split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 54px; align-items: center; }
  .frame { position: relative; border: 1px solid var(--line); padding: 6px; background: linear-gradient(#1d1512, #0f0b0a); box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
  .frame::after { content: ""; position: absolute; inset: 6px; box-shadow: inset 0 0 40px rgba(0,0,0,0.55); pointer-events: none; }

  /* gallery */
  .gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 14px; margin-top: 40px; }
  .gallery .frame:first-child { grid-row: span 2; }
  .gallery .frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
  .gallery .frame:first-child img { aspect-ratio: auto; height: 100%; min-height: 100%; }
  .strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
  .strip img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

  /* notes */
  .notes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 40px; }
  .note { border: 1px solid var(--line); background: var(--bg2); padding: 28px 28px 22px; border-radius: 4px; }
  .note .ver { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
  .note .ver h3 { font-size: 28px; color: var(--ink); }
  .note .ver span { color: var(--dim); font-size: 14px; }
  .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; margin-left: 8px; vertical-align: middle; }
  .tag.now { background: #3a1a0e; color: var(--ember); border: 1px solid #6b2c14; }
  .tag.soon { background: #1d1736; color: #b3a2ff; border: 1px solid #3a2f6e; }
  .note ul { margin: 0; padding-left: 18px; }
  .note li { margin: 6px 0; color: #d9cdb8; }
  .note li::marker { color: var(--ember); }
  .note.soon { background: linear-gradient(180deg, rgba(138,108,255,0.08), var(--bg2) 60%); }

  /* install */
  .install { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; counter-reset: step; }
  .install div { border-top: 2px solid var(--ember-deep); padding-top: 16px; color: var(--dim); }
  .install div::before { counter-increment: step; content: counter(step); display: block; font-family: "IM Fell English", serif; font-size: 34px; color: var(--gold); line-height: 1; margin-bottom: 8px; }
  .install b { color: var(--ink); }

  .final { text-align: center; padding: 110px 0 120px; background: radial-gradient(ellipse at 50% 100%, rgba(255,110,40,0.16), transparent 60%); }
  .final h2 { margin-bottom: 26px; }

  footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: 14px; }
  footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
  footer .studio { display: flex; align-items: center; gap: 12px; }
  footer .studio img { width: 44px; height: auto; opacity: 0.9; }
  footer b { color: var(--ink); font-weight: 600; }

  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
  .reveal.on { opacity: 1; transform: none; }

  @media (max-width: 900px) {
    .split, .notes { grid-template-columns: 1fr; gap: 30px; }
    .features { grid-template-columns: 1fr; }
    .install { grid-template-columns: 1fr; }
    .bar nav .navlinks { display: none; }
    section { padding: 64px 0; }
  }
  @media (max-width: 560px) {
    .features, .gallery, .strip { grid-template-columns: 1fr; }
    .gallery .frame:first-child { grid-row: auto; }
    .btn { width: 100%; }
    .bar .btn { width: auto; }
    .hero .ctas { flex-direction: column; }
  }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
  }

  /* release notes */
  .highlights { margin-top: 34px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; }
  .more { display: inline-block; margin-top: 18px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
  .more:hover { border-color: var(--gold); }
  .page { padding: 130px 0 80px; }
  .page h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 10px; }
  .page .lead { margin-bottom: 40px; }
  .release { border: 1px solid var(--line); background: var(--bg2); border-radius: 4px; padding: 34px 36px 26px; margin-bottom: 30px; }
  .release header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 8px; }
  .release header h2 { font-size: 36px; margin: 0; }
  .release header span { color: var(--dim); }
  .release .intro { color: var(--ink); font-size: 18px; margin: 14px 0 6px; }
  .release h3 { font-size: 22px; color: var(--gold); margin: 24px 0 6px; }
  .release ul { margin: 0; padding-left: 20px; }
  .release li { margin: 7px 0; color: #d9cdb8; }
  .release li::marker { color: var(--ember); }
  .release li b { color: var(--ink); }
  .release.older { padding: 22px 28px; }
  .release.older header { border: 0; margin: 0; padding: 0; }
  .release.older header h2 { font-size: 26px; }
  details.release summary { cursor: pointer; list-style: none; }
  details.release summary::-webkit-details-marker { display: none; }
  details.release summary h2::after { content: "  +"; color: var(--ember); font-size: 22px; }
  details.release[open] summary h2::after { content: "  –"; }
  @media (max-width: 900px) { .highlights { grid-template-columns: 1fr; } .release { padding: 24px 20px 18px; } }

  /* mailing list sign-up (Matt 2026-11-12) */
  .signup { max-width: 640px; margin: 48px auto 0; padding: 26px 28px; text-align: left;
    background: rgba(28, 20, 36, 0.85) url(img/stone.webp) center/cover; border: 1px solid var(--line); border-radius: 10px; }
  .signup h3 { font-size: 26px; color: var(--gold); margin-bottom: 6px; }
  .signup p { margin: 0 0 14px; color: var(--dim); }
  .signup .row { display: flex; gap: 10px; flex-wrap: wrap; }
  .signup input[type=email] { flex: 1 1 240px; min-width: 0; padding: 12px 14px; font: inherit; color: var(--ink);
    background: rgba(10, 7, 8, 0.75); border: 1px solid var(--line); border-radius: 6px; }
  .signup input[type=email]:focus { outline: none; border-color: var(--gold); }
  .signup .btn { margin: 0; }
  .signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
  .signup .consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; color: var(--dim); line-height: 1.45; }
  .signup .consent input { margin-top: 3px; accent-color: var(--ember); }
  .signup .msg { margin: 12px 0 0; min-height: 1em; font-weight: 600; }
  .signup .msg.ok { color: #9ee08f; }
  .signup .msg.bad { color: #ff9b7a; }
  /* pages the mail links land on, and the privacy page */
  .msgpage { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 40px 16px; }
  .msgpage > a img { width: min(360px, 80vw); }
  .msgbox { max-width: 560px; text-align: center; padding: 30px 28px; background: rgba(28, 20, 36, 0.85) url(img/stone.webp) center/cover;
    border: 1px solid var(--line); border-radius: 10px; }
  .msgbox h2 { color: var(--gold); font-size: 32px; margin-bottom: 12px; }
  .msgbox p { color: var(--ink); margin: 0 0 22px; }
  .legal { max-width: 760px; margin: 0 auto; padding: 110px 16px 60px; }
  .legal h1 { color: var(--gold); font-size: 40px; margin-bottom: 18px; }
  .legal h2 { color: var(--gold); font-size: 24px; margin: 28px 0 8px; }
  .legal .todo { background: rgba(255, 138, 58, 0.15); border: 1px dashed var(--ember); padding: 2px 6px; border-radius: 4px; }
  button.btn { cursor: pointer; font-family: "IM Fell English", serif; }
  button.btn:disabled { opacity: 0.6; cursor: default; }
  .legal .dim { color: var(--dim); }
  footer a { color: var(--dim); }
  footer a:hover { color: var(--gold); }

  /* Release showcases (0.6.0): artwork cut out on the dark page next to what it means for play. */
  .showcase { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 26px; align-items: center; margin: 22px 0 26px; }
  .showcase.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .showcase.flip > img, .showcase.flip > .art { order: 2; }
  .showcase img { filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.65)); margin: 0 auto; }
  .showcase .tall { max-height: 340px; width: auto; }
  .showcase h3 { margin-top: 0; }
  .showcase p { margin: 0 0 10px; }
  .note .art { margin: 2px auto 12px; max-width: 360px; filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.6)); }
  @media (max-width: 720px) {
    .showcase, .showcase.flip { grid-template-columns: 1fr; }
    .showcase.flip > img, .showcase.flip > .art { order: 0; }
  }

  /* Download buttons with the system's logo (Matt 2026-11-13: "recognise it very quickly"). */
  .btn svg.os { width: 1.15em; height: 1.15em; flex: none; }
  .downloads { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
  .downloads .tag { font-size: 11px; letter-spacing: 0.08em; }
  .exp-note { max-width: 640px; margin: 14px auto 0; text-align: center; color: var(--dim, #b9ad98); font-size: 15px; }

  /* ===== Landing page redesign (Matt 2026-11-13): more art, fewer boxes, more air ===== */
  .btn.big { font-size: 20px; padding: 17px 36px; }
  button.btn.ghost { color: #fff3df; }

  /* hero: muted gameplay loop behind the logo */
  .hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center;
    padding: 110px 16px 70px; isolation: isolate; overflow: hidden; background: #0d0a0c url(img/hero_poster.webp) center/cover no-repeat; }
  .hero .bgvid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(ellipse at 50% 45%, rgba(13,10,12,0.5), rgba(13,10,12,0.15) 70%),
      linear-gradient(rgba(13,10,12,0.35), transparent 30%, transparent 70%, var(--bg)); }
  .hero-in { max-width: 1000px; }
  .hero img.logo { width: min(980px, 92vw); margin: 0 auto 6px; filter: drop-shadow(0 8px 40px rgba(0,0,0,0.85)); }
  .hero h1 { font-size: clamp(28px, 4.6vw, 50px); line-height: 1.2; text-shadow: 0 3px 22px #000; }
  .hero .sell { max-width: 640px; margin: 16px auto 34px; font-size: clamp(17px, 2vw, 20px); color: #efe4cf; text-shadow: 0 2px 12px #000; }
  .hero .ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
  .hero .meta { margin-top: 24px; color: #e6dac4; font-size: 16px; letter-spacing: 0.06em; text-shadow: 0 1px 8px #000, 0 0 2px #000; }

  /* facts strip */
  .facts { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, transparent, rgba(255,138,58,0.06), transparent); }
  .facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; align-items: end; }
  .facts b { display: flex; align-items: flex-end; justify-content: center; height: 54px; font-family: "IM Fell English", serif; font-weight: 400;
    font-size: 50px; line-height: 1; color: var(--gold); -webkit-text-stroke: 0.03em currentColor; }
  .facts b img { height: 54px; width: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6)); }
  .facts span { display: block; margin-top: 8px; color: var(--dim); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }

  /* story over a full-width scene */
  .scene { min-height: 82vh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 140px 0; }
  .scene .scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
  .scene::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(13,10,12,0.95) 0%, rgba(13,10,12,0.75) 38%, rgba(13,10,12,0.1) 75%),
      linear-gradient(var(--bg), transparent 18%, transparent 82%, var(--bg)); }
  .scene .wrap { width: 100%; }
  .scene-text { max-width: 560px; }
  .scene-text .lead { color: #d9cdb8; text-shadow: 0 1px 8px rgba(0,0,0,0.8); }

  /* features: art on top, no frames */
  .features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 80px 56px; }
  .feature .fart { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; margin-bottom: 22px; box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
  .feature .fart img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
  .feature:hover .fart img { transform: scale(1.04); }
  .feature h3 { font-size: 30px; margin-bottom: 10px; color: #f0c977; }
  .feature p { margin: 0; color: #d0c4ae; font-size: 17px; }
  .feature .runes { margin-top: 18px; max-width: 360px; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.6)); }

  /* three moments of a night (Matt 2026-11-16): a looping video beside its text, alternating sides */
  .moments-sec { padding: 40px 0 20px; }
  .moment { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: center; margin: 0 0 96px; }
  .moment.flip .mvid { order: 2; }
  .moment .mvid { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #000; box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
  .moment .mvid video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .moment h3 { font-size: 34px; margin: 6px 0 12px; color: #f0c977; }
  .moment p { margin: 0; color: #d0c4ae; font-size: 17px; }
  @media (max-width: 900px) {
    .moment { grid-template-columns: 1fr; gap: 22px; margin-bottom: 64px; }
    .moment.flip .mvid { order: 0; }
  }

  /* gameplay gallery */
  .gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
  .g { margin: 0; position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
  .g.wide { grid-column: span 2; grid-row: span 2; }
  .g img, .g video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .g figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; font-weight: 600; font-size: 15px;
    color: var(--ink); background: linear-gradient(transparent, rgba(0,0,0,0.75)); }
  /* mirrored: big loop left on top, big loop right below, two small shots beside each */
  .gal .g:nth-child(4) { grid-column: 1; grid-row: 3; }
  .gal .g:nth-child(5) { grid-column: 1; grid-row: 4; }
  .gal .g:nth-child(6) { grid-column: 2 / span 2; grid-row: 3 / span 2; }
  .downloads .btn { text-transform: none; letter-spacing: 0.06em; font-size: 22px; }

  /* latest update banner */
  .update { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center;
    padding: 56px 56px; border-radius: 10px;
    background: radial-gradient(ellipse at 20% 50%, rgba(138,108,255,0.18), transparent 60%), linear-gradient(135deg, #1a1325, #120d10); }
  .update .uart img { width: 100%; filter: drop-shadow(0 16px 40px rgba(0,0,0,0.7)); }
  .update h2 { margin-bottom: 16px; }
  .update ul { margin: 0; padding-left: 18px; }
  .update li { margin: 10px 0; color: #d9cdb8; font-size: 17px; }
  .update li::marker { color: var(--violet); }
  .update li b { color: var(--ink); }

  /* download */
  .dl-line { margin: 18px 0 0; color: var(--dim); font-size: 15px; }
  .dl-line b { color: var(--ink); }
  .howto { max-width: 900px; margin: 22px auto 0; text-align: left; }
  .howto summary { cursor: pointer; text-align: center; color: var(--gold); font-weight: 600; list-style: none; }
  .howto summary::-webkit-details-marker { display: none; }
  .howto summary::after { content: " +"; color: var(--ember); }
  .howto[open] summary::after { content: " –"; }
  .howto .install { margin-top: 24px; }

  /* gameplay player */
  dialog.player { padding: 0; border: 0; background: #000; width: min(1280px, 94vw); max-width: none; border-radius: 8px; overflow: visible; }
  dialog.player::backdrop { background: rgba(5,3,4,0.88); backdrop-filter: blur(4px); }
  dialog.player video { width: 100%; display: block; border-radius: 8px; }
  dialog.player .close { position: absolute; top: -44px; right: -4px; background: none; border: 0; color: var(--ink); font-size: 36px; line-height: 1; cursor: pointer; }

  @media (max-width: 900px) {
    .facts .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
    .scene::before { background: linear-gradient(rgba(13,10,12,0.55), rgba(13,10,12,0.9) 60%), linear-gradient(var(--bg), transparent 18%, transparent 82%, var(--bg)); }
    .features { grid-template-columns: 1fr; gap: 60px; }
    .gal { grid-template-columns: 1fr 1fr; }
    .g.wide, .gal .g:nth-child(n) { grid-column: auto; grid-row: auto; }
    .g.wide { grid-column: span 2; }
    .update { grid-template-columns: 1fr; padding: 32px 22px; gap: 26px; }
  }
  @media (max-width: 560px) {
    .gal { grid-template-columns: 1fr; }
    .g.wide { grid-column: auto; }
    .facts b { font-size: 40px; }
  }
