/* Gears of War: E-Day guide (CGN). One stylesheet for every page. */
:root {
  --ink: #0a0908;
  --ink-2: #110e0d;
  --ink-3: #191513;
  --line: #2f2926;
  --line-2: #463d38;
  --paper: #d7d2c5;
  --bone: #eee9dc;
  --text: #d9d3c8;
  --muted: #a1978d;
  --red: #c62819;
  --red-2: #e0493b;
  --green: #7fb277;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --wrap: 1200px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #8f1710 #080504; }
body::-webkit-scrollbar { width: 12px; }
body::-webkit-scrollbar-track { background: #080504; border-left: 1px solid #25100e; }
body::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #b42016, #5c0906); border: 2px solid #080504; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--red-2); }
a:hover { color: #ff7a6c; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); color: var(--bone); line-height: 1.05; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--bone); color: var(--ink); padding: .8rem 1rem; font-weight: 700; }
.skip:focus { left: 0; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.label { font: 600 .78rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); margin: 0 0 .6rem; }
.muted { color: var(--muted); }

/* Header */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 2rem; height: 68px; padding: 0 max(20px, calc((100% - 1280px) / 2)); background: rgba(10, 9, 8, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--bone); text-decoration: none; flex: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 38px; border: 2px solid var(--red); color: var(--red-2); font: 800 1.3rem/1 var(--display); }
.brand b { display: block; font: 700 1.15rem/1 var(--display); letter-spacing: .1em; }
.brand small { display: block; font: 500 .72rem/1.3 var(--mono); letter-spacing: .12em; color: var(--muted); }
.topbar nav { display: flex; gap: .2rem; margin-left: auto; }
.topbar nav a { padding: .5rem .7rem; color: #cfc8bd; text-decoration: none; font: 600 1rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; border-bottom: 2px solid transparent; }
.topbar nav a:hover { color: #fff; }
.topbar nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }
.hub-link { flex: none; padding-left: 1rem; border-left: 1px solid var(--line-2); color: var(--muted); text-decoration: none; font: 600 .78rem var(--mono); letter-spacing: .08em; }
.hub-link:hover { color: var(--red-2); }
.menu { display: none; margin-left: auto; min-height: 44px; padding: 0 1rem; background: none; border: 1px solid var(--line-2); color: var(--bone); font: 600 .85rem var(--mono); letter-spacing: .1em; cursor: pointer; }

/* Home hero */
.hero { position: relative; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: center; gap: 40px; padding: 44px max(20px, calc((100% - 1200px) / 2)) 40px; overflow: hidden; }
.hero > img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.62) contrast(1.15) brightness(.55); z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #060404f5 0%, #080303d0 38%, #05030366 70%, #05030399 100%), linear-gradient(0deg, var(--ink) 0%, transparent 35%); }
.hero-copy { max-width: 640px; }
.hero-logo { width: min(440px, 88%); height: auto; margin: .4rem 0 1rem; filter: drop-shadow(0 12px 18px #000); }
.hero-copy .lead { font-size: 1.2rem; line-height: 1.6; color: #e2dcd2; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.button { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .75rem 1.2rem; border: 1px solid #ffffff55; color: #fff; text-decoration: none; font: 700 1.05rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.button.primary { background: var(--red); border-color: var(--red); }
.button:hover { color: #fff; filter: brightness(1.2); }
.launch-card { background: #0b0605ee; border: 1px solid #ffffff2a; border-top: 3px solid var(--red); padding: 1.3rem 1.3rem 1.1rem; }
.launch-card .label { margin-bottom: .3rem; }
.launch-card h2 { font-size: 1.9rem; margin: 0 0 .2rem; }
.launch-when { margin: 0; color: var(--text); font-size: .98rem; }
.launch-local { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); margin: 1rem -1.3rem; border-block: 1px solid #5a1712; background: #160605; }
.countdown div { display: flex; flex-direction: column; align-items: center; padding: .7rem 0; border-right: 1px solid #4a130f; }
.countdown div:last-child { border-right: 0; }
.countdown b { font: 800 2.1rem/1 var(--display); color: #f2ebe2; font-variant-numeric: tabular-nums; }
.countdown small { font: 600 .72rem var(--mono); letter-spacing: .1em; color: #c38a83; margin-top: .3rem; }
.countdown[hidden] { display: none; }
.milestones { list-style: none; margin: 0; padding: 0; }
.milestones li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: .55rem 0; border-top: 1px solid #2c1f1c; font-size: .95rem; }
.milestones li b { font: 700 1.05rem var(--display); color: var(--bone); letter-spacing: .04em; }
.milestones li.done { opacity: .55; }
.milestones li.next b { color: var(--red-2); }

/* Fact strip */
.strip { background: var(--paper); color: var(--ink); }
.strip dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0 auto; padding: 1.2rem 0; }
.strip dl div { padding: .2rem 1rem; border-left: 1px solid #8d877c; }
.strip dt { font: 600 .74rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #5c574f; }
.strip dd { margin: .2rem 0 0; font: 700 1.1rem/1.2 var(--display); }

/* Sections */
.section { padding: 48px 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 1.2rem; }
.section-head h2 { margin: 0; }
.section-head > p { max-width: 460px; margin: 0; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--ink-2); border: 1px solid var(--line); border-top: 3px solid var(--line-2); padding: 1.3rem 1.4rem; }
.card.hot { border-top-color: var(--red); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.1em; margin: .4rem 0 1rem; }
.card li { margin-bottom: .3rem; }
.card .more { display: inline-block; margin-top: .6rem; font: 700 1rem var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.mode-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.mode-card img { height: 170px; width: 100%; object-fit: cover; filter: saturate(.8) brightness(.8); }
.mode-card > div { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.mode-card .more { margin-top: auto; padding-top: .6rem; }
.card ul.chips, .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 .8rem; padding: 0; list-style: none; }
.chips li { margin: 0; }
.chips li { font: 600 .76rem var(--mono); letter-spacing: .06em; padding: .25rem .55rem; border: 1px solid var(--line-2); color: var(--muted); }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { text-align: left; vertical-align: top; padding: .75rem .9rem; border-bottom: 1px solid var(--line); }
thead th { font: 600 .78rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--ink-2); }
tbody th { font: 700 1.05rem var(--display); color: var(--bone); letter-spacing: .02em; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td small { display: block; color: var(--muted); font-size: .86rem; }
tr.done td, tr.done th { color: var(--muted); }
tr.next th { color: var(--red-2); }

.callout { border: 1px solid var(--line-2); border-left: 3px solid var(--red); background: #140c0a; padding: 1rem 1.2rem; margin: 0 0 1.4rem; }
.callout p:last-child { margin: 0; }
.callout.info { border-left-color: #8a8175; background: var(--ink-2); }
.source { font-size: .9rem; color: var(--muted); }
.source a { font-weight: 600; }
.pill { display: inline-block; font: 600 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: .2rem .5rem; border: 1px solid #3e7042; color: var(--green); vertical-align: middle; }
.pill.open { border-color: #7a5a2a; color: #d9a55a; }

.unknowns { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.unknowns li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.unknowns strong { display: block; font: 700 1.25rem var(--display); color: var(--bone); }
.unknowns p { margin: .2rem 0 0; color: var(--muted); }
.unknowns .pill { align-self: start; }

/* Feed */
.feed-status { color: var(--muted); }
.feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feed-card { background: var(--ink-2); border: 1px solid var(--line); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; }
.feed-card small { font: 600 .78rem var(--mono); color: var(--muted); letter-spacing: .06em; }
.feed-card h3 { font-size: 1.25rem; margin: .4rem 0; }
.feed-card p { color: var(--muted); font-size: .95rem; }
.feed-card a { margin-top: auto; font-weight: 600; }

.sources-list { columns: 2; column-gap: 40px; padding-left: 1.1em; }
.sources-list li { break-inside: avoid; margin-bottom: .5rem; }

/* Guide pages */
.page-hero { position: relative; min-height: 0; display: flex; align-items: flex-end; padding: 40px max(20px, calc((100% - 1200px) / 2)) 28px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.7) brightness(.6); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #070404f2 0%, #07040499 55%, #07040433 100%), linear-gradient(0deg, var(--ink), transparent 60%); }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.02em; margin: .2rem 0 .6rem; }
.page-hero h1 em { font-style: normal; color: var(--red-2); }
.page-hero p:not(.label) { max-width: 640px; font-size: 1.15rem; color: #e2dcd2; margin: 0; }
.guide-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; padding: 48px 0 80px; }
.toc { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: .1rem; font-size: .95rem; }
.toc b { font: 600 .76rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.toc a { color: var(--text); text-decoration: none; padding: .3rem 0 .3rem .7rem; border-left: 2px solid var(--line); }
.toc a:hover { color: #fff; border-left-color: var(--red); }
.article { min-width: 0; }
.article > section { padding: 0 0 2.6rem; margin-bottom: 2.6rem; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.article > section:last-child { border-bottom: 0; }
.article h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.article h3 { margin-top: 1.4rem; }
.article ul, .article ol { padding-left: 1.2em; }
.article li { margin-bottom: .4rem; }
.article .grid { margin: 1rem 0 1.2rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 0; font: 700 1.2rem var(--display); color: var(--bone); min-height: 44px; }
.faq details > div { padding: 0 0 1rem; }

/* Footer */
.footer { padding: 40px 0 48px; background: #070605; }
.footer .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.footer p { color: var(--muted); font-size: .92rem; margin: .8rem 0 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: flex-end; }
.footer nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.footer nav a:hover { color: var(--red-2); }

@media (max-width: 1100px) {
  .topbar { gap: 1.2rem; }
  .topbar nav a { padding: .5rem .35rem; font-size: .92rem; }
  .hub-link { display: none; }
}
@media (max-width: 960px) {
  .menu { display: inline-flex; align-items: center; }
  .topbar nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: .5rem 20px 1rem; background: #0a0908f7; border-bottom: 1px solid var(--line); }
  .topbar nav.open { display: flex; }
  .topbar nav a { padding: .8rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 30px; padding-bottom: 28px; gap: 24px; }
  .launch-card { max-width: 460px; }
  .strip dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 0; }
  .grid.three, .grid.four, .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-body { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: .4rem; }
  .toc b { width: 100%; margin: 0; }
  .toc a { border: 1px solid var(--line); padding: .35rem .6rem; font-size: .9rem; }
  .footer .wrap { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .guide-body { width: calc(100% - 32px); }
  .hero, .page-hero { padding-left: 16px; padding-right: 16px; }
  .hero-copy .lead { font-size: 1.08rem; }
  .strip dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 0; }
  .strip dl div:last-child { grid-column: 1 / -1; }
  .launch-card .milestones { display: none; }
  .mode-card img { height: 130px; }
  .grid.two, .grid.three, .grid.four, .feed-grid { grid-template-columns: 1fr; }
  .section { padding: 34px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .countdown b { font-size: 1.8rem; }
  .sources-list { columns: 1; }
  .unknowns li { grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; padding: .8rem 0; }
  .table-scroll { overflow-x: visible; }
  .table-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-scroll table, .table-scroll tbody, .table-scroll tr, .table-scroll th, .table-scroll td { display: block; width: auto; }
  .table-scroll tr { padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
  .table-scroll th, .table-scroll td { border: 0; padding: .1rem 0; }
  .table-scroll td small { display: inline; font-size: inherit; }
  .launch-card .countdown { margin-bottom: 0; }
  .table-scroll td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font: 600 .8rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
  .page-hero { min-height: 0; padding-top: 28px; padding-bottom: 22px; }
}
.article .card h3, .card h3:first-child { margin-top: 0; }
