/* Retro Game Rentals
   Cartridge grey, console plum, price-sticker yellow, label red. Archivo at two widths. */
:root {
  --grey: #d4d1c9;
  --grey-2: #c3bfb5;
  --paper: #f4f2ed;
  --plum: #2d2340;
  --plum-2: #4a3d63;
  --yellow: #ffd23f;
  --red: #e63946;
  --blue: #2f6fde;
  --muted: #5d566a;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--grey); color: var(--plum);
  font: 400 17px/1.6 "Archivo", system-ui, sans-serif; font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 850; line-height: 0.98; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(38px, 5.2vw, 72px); }
h3 { font-size: 22px; font-weight: 800; }
p { margin: 0 0 1em; }
.fine { font-size: 14px; color: var(--muted); }
.lede { font-size: 20px; max-width: 36em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--paper); padding: 8px 12px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px var(--gutter); background: rgba(212, 209, 201, 0.94); backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--plum);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-stretch: 125%; font-weight: 900; font-size: 20px; letter-spacing: -0.01em; }
.brand-mark { width: 54px; height: 30px; flex: none; color: var(--plum); }
.top nav { display: flex; gap: 22px; align-items: center; font-weight: 600; font-size: 15px; }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--red); }
.nav-sister { color: var(--muted); }
.nav-cta { background: var(--plum); color: var(--paper) !important; padding: 9px 16px; border-radius: 6px; }
.nav-cta:hover { background: var(--red); }
@media (max-width: 820px) { .top nav a:not(.nav-cta) { display: none; } .brand { font-size: 17px; } }

.btn {
  font: 800 17px/1 "Archivo", sans-serif; font-stretch: 112%;
  background: var(--red); color: #fff; border: 0; border-radius: 6px; padding: 16px 22px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 0 #a3202b;
}
.btn:hover { background: #f04855; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #a3202b; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(36px, 6vw, 80px) var(--gutter) clamp(48px, 7vw, 96px); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
}
.soon { display: inline-block; background: var(--plum); color: var(--yellow); font-weight: 700; padding: 4px 12px; border-radius: 4px; font-size: 15px; }
.hero h1 { font-size: clamp(40px, 6.6vw, 98px); margin: 14px 0 22px; overflow-wrap: break-word; }
.hero > * { min-width: 0; }
.hero-sub { font-size: 19px; max-width: 32em; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border: 3px solid var(--plum); box-shadow: 14px 14px 0 var(--plum); }
.sticker {
  position: absolute; left: -36px; bottom: -36px; width: 156px; height: 156px; border-radius: 50%;
  background: var(--yellow); color: var(--plum); display: grid; place-content: center; text-align: center;
  transform: rotate(-12deg); border: 3px solid var(--plum);
  box-shadow: 0 0 0 6px var(--yellow), 0 0 0 8px var(--plum);
  animation: slap 0.55s 0.25s cubic-bezier(.3,1.6,.5,1) both;
}
.sticker-amt { font-stretch: 125%; font-weight: 900; font-size: 30px; line-height: 0.95; }
.sticker-per { font-weight: 700; font-size: 13px; line-height: 1.2; margin-top: 6px; padding: 0 14px; }
@keyframes slap { from { transform: rotate(-40deg) scale(1.8); opacity: 0; } to { transform: rotate(-12deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sticker { animation: none; } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; margin-right: 14px; }
  .sticker { left: auto; right: -6px; bottom: -30px; width: 118px; height: 118px; }
  .sticker-amt { font-size: 23px; } .sticker-per { font-size: 11px; margin-top: 4px; padding: 0 10px; }
}

/* Signup */
.signup { margin-top: 26px; max-width: 520px; }
.signup label { display: block; font-weight: 700; margin-bottom: 8px; }
.signup-row { display: flex; gap: 10px; }
.signup input {
  flex: 1; min-width: 0; font: 400 18px/1.3 "Archivo", sans-serif; padding: 14px 14px;
  border: 3px solid var(--plum); border-radius: 6px; background: var(--paper); color: var(--plum);
}
.signup input:focus { outline: none; border-color: var(--blue); }
.status { min-height: 1.5em; margin: 10px 0 0; font-weight: 700; }
.status.ok { color: #1d6b3a; }
.status.err { color: var(--red); }
@media (max-width: 460px) { .signup-row { flex-direction: column; } }

/* The deal */
.deal { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--plum); color: var(--paper); }
.deal-item { padding: 28px var(--gutter); border-right: 1px solid rgba(244,242,237,0.18); }
.deal-item:last-child { border-right: 0; }
.deal-item b { display: block; font-stretch: 125%; font-weight: 900; font-size: clamp(44px, 5vw, 72px); line-height: 1; }
.deal-item span { font-size: 17px; }
.deal-price { background: var(--yellow); color: var(--plum); }
.deal-price b { font-size: clamp(28px, 2.9vw, 48px); white-space: nowrap; padding: 0.22em 0; }
@media (max-width: 700px) { .deal { grid-template-columns: 1fr 1fr; } .deal-item:nth-child(2) { border-right: 0; } .deal-item { border-bottom: 1px solid rgba(244,242,237,0.18); } }

/* Consoles */
.consoles, .how, .library, .faq { padding: clamp(64px, 9vw, 120px) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.consoles .lede { margin: 18px 0 40px; }
.console-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.console-list li {
  background: var(--paper); border: 3px solid var(--plum); border-top: 14px solid var(--c); padding: 18px 16px 20px;
  display: flex; flex-direction: column; gap: 6px; min-height: 140px;
}
.console-list .yr { font-weight: 700; color: var(--muted); }
.console-list b { font-stretch: 125%; font-weight: 900; font-size: 25px; line-height: 1; }
@media (max-width: 1000px) { .console-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .console-list { grid-template-columns: 1fr 1fr; } .console-list li { min-height: 110px; } }

.photo-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.photo-row img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 600px) { .photo-row { grid-template-columns: 1fr 1fr; } }

/* Case */
.case { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--paper); }
.case img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.case > div { padding: clamp(40px, 6vw, 88px) var(--gutter); align-self: center; }
.case h2 { margin-bottom: 26px; }
.case-list { list-style: none; padding: 0; margin: 0 0 22px; }
.case-list li { padding: 12px 0 12px 34px; border-bottom: 1px solid var(--grey-2); position: relative; font-size: 18px; }
.case-list li::before { content: ""; position: absolute; left: 0; top: 18px; width: 18px; height: 12px; background: var(--red); border-radius: 2px; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } .case img { min-height: 260px; max-height: 340px; } }

/* How (a sequence) */
.how h2 { margin-bottom: 36px; }
.how ol { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 3px solid var(--plum); background: var(--paper); }
.how li { counter-increment: s; padding: 24px 22px 26px; border-right: 3px solid var(--plum); }
.how li:last-child { border-right: 0; }
.how li::before {
  content: counter(s); display: grid; place-content: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--yellow); border: 3px solid var(--plum); font-stretch: 125%; font-weight: 900; font-size: 22px; margin-bottom: 16px;
}
.how h3 { margin-bottom: 8px; }
.how p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 900px) {
  .how ol { grid-template-columns: 1fr 1fr; }
  .how li:nth-child(2) { border-right: 0; }
  .how li:nth-child(-n+2) { border-bottom: 3px solid var(--plum); }
}
@media (max-width: 520px) {
  .how ol { grid-template-columns: 1fr; }
  .how li { border-right: 0 !important; border-bottom: 3px solid var(--plum); }
  .how li:last-child { border-bottom: 0; }
}

/* Photo bands */
/* The row is pinned to the band's height; with an auto row, wide screens let the photos grow past it over the next section. */
.band { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; grid-template-rows: minmax(0, 1fr); height: clamp(220px, 26vw, 380px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; min-width: 0; min-height: 0; }
.band-b { grid-template-columns: 1.4fr 1fr 1fr 2fr; }
@media (max-width: 700px) {
  .band, .band-b { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .band img { aspect-ratio: 1; }
}

/* Library */
.library-head { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: end; margin-bottom: 32px; }
.library-head p { margin: 0; font-size: 18px; max-width: 40em; }
.library-head .fine { display: block; margin-top: 6px; }
@media (max-width: 760px) { .library-head { grid-template-columns: 1fr; gap: 14px; } }
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 3px solid var(--plum); }
.tab {
  font: 800 16px/1 "Archivo", sans-serif; font-stretch: 112%; color: var(--plum);
  background: var(--grey-2); border: 3px solid var(--plum); border-bottom: 0; margin-right: -3px;
  padding: 14px 18px; cursor: pointer; border-radius: 8px 8px 0 0; position: relative; top: 3px;
}
.tab[aria-selected="true"] { background: var(--paper); color: var(--plum); border-top: 8px solid var(--c, var(--red)); padding-top: 9px; z-index: 1; }
.tab:hover { background: var(--paper); }
@media (max-width: 560px) { .tab { font-size: 14px; padding: 12px 11px; } .tab[aria-selected="true"] { padding-top: 7px; } }
.library-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: var(--paper); border: 3px solid var(--plum); border-top: 0; padding: 18px 20px; }
.search { flex: 1 1 280px; max-width: 460px; }
.search input { width: 100%; font: 400 17px/1.3 "Archivo", sans-serif; padding: 12px 14px; border: 2px solid var(--plum); border-radius: 6px; background: #fff; color: var(--plum); }
.search input:focus { outline: none; border-color: var(--blue); }
.count { margin: 0; font-weight: 600; color: var(--muted); }
.games {
  list-style: none; margin: 0; padding: 12px 20px 24px; background: var(--paper); border: 3px solid var(--plum); border-top: 0;
  columns: 3 280px; column-gap: 36px;
}
.games li { break-inside: avoid; display: grid; grid-template-columns: 2.6em 1fr; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--grey-2); font-size: 16px; line-height: 1.35; }
.games .rk { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; padding-right: 6px; }
.games .note { display: block; font-size: 13px; color: var(--muted); }
.games .empty { display: block; border: 0; padding: 18px 0; }

/* FAQ */
.faq { max-width: 900px; }
.faq h2 { margin-bottom: 22px; }
details { border-top: 3px solid var(--plum); padding: 18px 0; }
details:last-child { border-bottom: 3px solid var(--plum); }
summary { cursor: pointer; font-stretch: 112%; font-weight: 800; font-size: 21px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 28px; line-height: 0.8; color: var(--red); }
details[open] summary::after { content: "\2013"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Notify */
.notify { display: grid; grid-template-columns: 1fr 1fr; background: var(--plum); color: var(--paper); }
.notify img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.notify > div { padding: clamp(40px, 6vw, 88px) var(--gutter); align-self: center; }
.notify h2 { color: var(--yellow); margin-bottom: 14px; }
.notify p { font-size: 18px; }
.signup-dark input { border-color: var(--paper); }
.signup-dark .status.ok { color: var(--yellow); }
.signup-dark .status.err { color: #ff9aa2; }
@media (max-width: 800px) { .notify { grid-template-columns: 1fr; } .notify img { min-height: 220px; max-height: 280px; } }

.sister { padding: 28px var(--gutter); background: var(--yellow); }
.sister p { margin: 0 auto; max-width: var(--max); font-size: 17px; }
.sister a { font-weight: 800; }

.foot { padding: 32px var(--gutter) 44px; background: var(--grey-2); font-size: 15px; }
.foot p { max-width: var(--max); margin: 0 auto 6px; }

/* Phone fixes: keep the console tiles and the sticker inside the viewport. */
.hero { overflow-x: clip; }
@media (max-width: 600px) {
  .console-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-list b { font-size: 20px; font-stretch: 100%; }
}
