/* Right to Repair — website pages */
:root {
  --ink: #17121f; --ink2: #0f0c15; --panel: #1d2f3b; --panel2: #243a48; --wall: #2f4858;
  --paper: #f4efe6; --muted: #a9b4bd; --gold: #f2c14e; --gold2: #c99832; --neon: #ff6b8b;
  --green: #5cc98a; --red: #e2574c; --blue: #4f8fd9; --trim: #c9a26b;
  --px: 'DotGothic16', system-ui, sans-serif; --hd: 'Silkscreen', 'DotGothic16', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-synthesis: none; margin: 0; background: var(--ink); color: var(--paper); font-family: var(--px); font-size: 18px; line-height: 1.5; }
a { color: var(--gold); }
a:hover { color: #ffd56a; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: min(1080px, 92vw); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 8px; }
.skip:focus { left: 8px; z-index: 10; }

/* header */
.site-head { background: var(--panel2); box-shadow: 0 3px 0 var(--ink); position: sticky; top: 0; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; gap: 16px; padding: 10px 0; flex-wrap: wrap; }
.brand { font-family: var(--hd); font-size: 15px; color: var(--neon); text-decoration: none; text-shadow: 2px 2px 0 var(--ink); line-height: 1; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.site-nav a { font-family: var(--hd); font-size: 12px; color: var(--paper); text-decoration: none; padding: 6px 9px; }
.site-nav a:hover { background: var(--panel); }
.site-nav a[aria-current="page"] { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.site-nav a.play { background: var(--gold); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }

/* buttons */
.btn {
  font-family: var(--px); font-size: 18px; color: var(--ink); background: var(--paper); border: 0; padding: 10px 18px; cursor: pointer;
  box-shadow: 0 0 0 2px var(--ink), inset -2px -3px 0 #c8c0b2; text-decoration: none; display: inline-block;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn.primary { background: var(--gold); box-shadow: 0 0 0 2px var(--ink), inset -2px -3px 0 var(--gold2); }
.btn.primary:hover { background: #ffd56a; }
.btn.ghost { background: var(--panel2); color: var(--paper); box-shadow: 0 0 0 2px var(--ink), inset -2px -3px 0 #182833; }
.btn:focus-visible, a:focus-visible { outline: 2px dashed var(--gold); outline-offset: 3px; }
.btns { display: flex; gap: 14px; flex-wrap: wrap; margin: 20px 0 8px; }

/* hero */
.hero { background: radial-gradient(ellipse at 30% 40%, #355369 0%, #2f4858 30%, #17121f 80%); padding: 48px 0 40px; box-shadow: 0 3px 0 var(--ink); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; align-items: center; }
.logo { font-family: var(--hd); font-size: clamp(40px, 7vw, 68px); line-height: 1.02; color: var(--neon); text-shadow: 4px 4px 0 var(--ink), 0 0 18px rgba(255, 107, 139, .45); margin: 0 0 16px; }
.lead { font-size: 21px; margin: 0 0 6px; }
.shot { box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--trim), 0 0 0 9px var(--ink), 8px 12px 0 rgba(0, 0, 0, .35); image-rendering: pixelated; display: block; width: 100%; height: auto; }
.small { font-size: 15px; color: var(--muted); }
.ver-badge { display: inline-block; font-family: var(--hd); font-size: 11px; background: var(--ink); color: var(--gold); padding: 3px 7px; box-shadow: 0 0 0 2px var(--gold2); }

/* sections */
main section { padding: 36px 0; }
main section + section { box-shadow: 0 -3px 0 var(--ink) inset; }
h1, h2, h3 { line-height: 1.2; }
h1.page { font-family: var(--hd); font-size: clamp(26px, 4.5vw, 38px); color: var(--gold); margin: 36px 0 10px; text-shadow: 3px 3px 0 var(--ink); }
h2 { font-family: var(--hd); font-size: 20px; color: var(--gold); margin: 0 0 14px; }
h3 { font-size: 21px; margin: 0 0 6px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--panel2); padding: 16px 18px; box-shadow: 0 0 0 3px var(--ink), 5px 5px 0 rgba(0, 0, 0, .3); }
.card p { margin: 0; }
.card .tag { font-family: var(--hd); font-size: 10px; color: var(--ink); background: var(--gold); padding: 2px 6px; display: inline-block; margin-bottom: 8px; }
.card .tag.later { background: var(--muted); }
.rb { display: inline-block; font-family: var(--hd); font-size: 11px; color: var(--ink); background: var(--rb); padding: 2px 7px; box-shadow: 0 0 0 2px var(--ink); }
table { width: 100%; border-collapse: collapse; background: var(--panel2); box-shadow: 0 0 0 3px var(--ink); font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; vertical-align: top; border-bottom: 2px solid var(--ink); }
th { font-family: var(--hd); font-size: 11px; color: var(--gold); background: var(--panel); }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; background: var(--panel2); padding: 12px 14px 12px 54px; position: relative; box-shadow: 0 0 0 2px var(--ink); }
.steps li::before { content: counter(s); position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; background: var(--gold); color: var(--ink); font-family: var(--hd); font-size: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.keys kbd { font-family: var(--hd); font-size: 11px; background: var(--paper); color: var(--ink); padding: 2px 6px; box-shadow: 0 0 0 2px var(--ink); }
ul.clean { padding-left: 20px; }
ul.clean li { margin-bottom: 6px; }

/* story cards */
.stories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.story { background: var(--paper); color: var(--ink); padding: 16px 18px; box-shadow: 0 0 0 3px var(--ink), 6px 6px 0 rgba(0, 0, 0, .35); }
.story .when { font-family: var(--hd); font-size: 12px; color: #6b4630; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.story h3 { margin: 8px 0; font-size: 22px; }
.story p { margin: 0 0 8px; }
.story .game { font-style: italic; color: #4b4250; font-size: 16px; }
.story .src { font-size: 15px; margin: 0; }
.story a { color: #2f6fb8; }

/* roadmap */
.roadmap { list-style: none; padding: 0; display: grid; gap: 10px; }
.roadmap li { display: grid; grid-template-columns: 70px 1fr; gap: 14px; background: var(--panel2); padding: 12px 14px; box-shadow: 0 0 0 2px var(--ink); }
.roadmap li.now { box-shadow: 0 0 0 3px var(--gold); background: #2d5068; }
.roadmap .v { font-family: var(--hd); font-size: 20px; color: var(--gold); }
.roadmap b { display: block; }

/* footer */
.site-foot { background: var(--panel); box-shadow: 0 -3px 0 var(--ink); padding: 22px 0 30px; margin-top: 30px; font-size: 15px; color: var(--muted); }
.site-foot .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.site-foot nav a { margin-right: 12px; }

@media (max-width: 860px) {
  .hero .wrap, .two { grid-template-columns: 1fr; }
  .cards, .stories { grid-template-columns: 1fr; }
  .site-nav { margin-left: 0; }
  body { font-size: 17px; }
  table { font-size: 15px; }
  th, td { padding: 8px; }
}

/* 0.7 additions */
.cards.four { grid-template-columns: repeat(4, 1fr); }
.thumb { display: block; width: 100%; height: auto; image-rendering: pixelated; box-shadow: 0 0 0 2px var(--ink); margin-bottom: 10px; }
.catnav { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.catnav a { text-decoration: none; }
.stories .story p { font-size: 16px; }
@media (max-width: 1000px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards.four { grid-template-columns: 1fr; } }
