/* APD Software — site styles. Plain CSS, no build step. */

:root {
  --cream: #f7f1e6;
  --paper: #fffbf4;
  --ink: #26221f;
  --muted: #5b534c;
  --line: #e3d7c3;
  --red: #b3261e;
  --red-deep: #8e1c16;
  --shell: #c8352c;
  --wall: #e3e5cf;
  --radius: 18px;
  --max: 1120px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--red); text-underline-offset: 0.18em; }
a:hover { color: var(--red-deep); }
a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.narrow { max-width: 760px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

/* Header */

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--shell);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}
.site-nav { display: flex; gap: 20px; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* Home */

.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 7vw, 80px); }
.hero h1 { margin-bottom: 0.15em; }
.hero .tagline {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.9em;
}
.hero .intro { font-size: 1.2rem; color: var(--muted); max-width: 34em; }

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.featured { padding-bottom: clamp(56px, 9vw, 104px); }

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 6px solid var(--shell);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 44px);
  box-shadow: 0 18px 40px -28px rgba(60, 30, 10, 0.45);
}
.feature-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.feature-head h2 { margin: 0; }
.feature-head .sub { margin: 2px 0 0; color: var(--muted); font-size: 0.98rem; }

.app-icon {
  width: 84px;
  height: 84px;
  border-radius: 22.5%;
  flex: none;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.45);
}
.app-icon.large { width: 112px; height: 112px; }

.shot {
  border-radius: 14px;
  background: #111;
  overflow: hidden;
  box-shadow: 0 16px 36px -20px rgba(0, 0, 0, 0.55);
}
.shot img { width: 100%; }

.button {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  margin-top: 8px;
}
.button:hover { background: var(--red-deep); color: #fff; }

/* Game page */

.game-header { padding: clamp(40px, 7vw, 80px) 0 28px; }
.game-title { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.game-title h1 { margin: 0; }
.game-title .tagline {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  color: var(--red);
  font-weight: 600;
}

.game-hero { padding-bottom: clamp(32px, 6vw, 64px); }

.band { padding: clamp(40px, 7vw, 80px) 0; }
.band.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }

.features {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 28px;
}
.features li { position: relative; padding-left: 22px; }
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--shell);
}

.gallery {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 0.95rem; color: var(--muted); margin-top: 10px; }
.gallery a { display: block; }

.steps { padding-left: 1.3em; margin: 0; max-width: 46em; }
.steps li { margin-bottom: 0.6em; }

.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.band.alt .panel { background: var(--cream); }
.panel p:last-child { margin-bottom: 0; }
.mode-badge {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--shell);
  color: #fff;
  font-weight: 700;
  font-family: var(--display);
  margin-bottom: 12px;
}

.character { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.character .shot { border-radius: 12px; }

/* Availability — each platform keeps its slot; swap .store-status for a
   .store-link when a store listing goes live (see README). */
.stores {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.store {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.band.alt .store { background: var(--cream); }
.store-platform { display: block; font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.store-status { display: block; color: var(--muted); }
.store-link {
  display: inline-block;
  margin-top: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
}
.store-link:hover { background: #000; color: #fff; }

.link-row { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 16px; font-weight: 600; }

/* Document pages (privacy, support) */

.doc { padding: clamp(40px, 7vw, 72px) 0 clamp(56px, 9vw, 96px); }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc h2 { font-size: 1.45rem; margin-top: 1.9em; }
.doc .meta { color: var(--muted); }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 0.35em; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 1em; }
.doc dt { font-weight: 700; }
.doc dd { margin: 0; }
.callout {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--shell);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 1.2em 0;
}
.callout p:last-child { margin-bottom: 0; }

/* Footer */

.site-footer {
  background: var(--ink);
  color: #e9e1d4;
  padding: 40px 0;
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 32px;
}
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffd9c9; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }

/* Responsive */

@media (max-width: 820px) {
  .feature-card { grid-template-columns: minmax(0, 1fr); }
  .feature-card .shot { order: -1; }
  .cols,
  .stores { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .app-icon { width: 68px; height: 68px; }
  .app-icon.large { width: 84px; height: 84px; }
  .site-nav { gap: 14px; }
  .doc dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .doc dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .store-link, a { transition: color 0.15s, background-color 0.15s; }
}
