@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Archivo:wght@400;500;600;700&display=swap');

:root {
  --cream: #f1e7d4;
  --paper: #fbf6ea;
  --ink: #3a2c1f;
  --ink-soft: #5c4a38;
  --sunflower: #d9a441;
  --marine: #a13d2e;
  --espresso: #2a2019;
  --line: rgba(58,44,31,.16);
  --max: 640px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  background-image:
    radial-gradient(ellipse at 15% 8%, rgba(255,255,255,.4), transparent 45%),
    radial-gradient(ellipse at 85% 92%, rgba(120,90,50,.08), transparent 50%);
  color: var(--ink);
  font-family: 'Archivo', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--marine); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--marine); outline-offset: 3px; }

h1, h2, h3 {
  font-family: 'Special Elite', monospace;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .01em;
  color: var(--espresso);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--espresso);
  color: var(--paper);
  padding: 18px 24px;
}
.site-header .wrap {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.wordmark {
  font-family: 'Special Elite', monospace;
  font-size: 1.15rem;
  color: var(--paper);
  text-decoration: none;
}
.wordmark span { color: var(--sunflower); }
nav.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav.site-nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: .92rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
nav.site-nav a:hover { border-bottom-color: var(--sunflower); }

/* ---------- Layout ---------- */
main { padding: 56px 24px 80px; }
.content {
  max-width: var(--max);
  margin: 0 auto;
}
.content-wide { max-width: 780px; margin: 0 auto; }

/* ---------- Hero (home page) ---------- */
.hero { max-width: 780px; margin: 0 auto; padding: 0 24px 40px; }
.hero-eyebrow {
  font-family: 'Special Elite', monospace;
  color: var(--marine);
  font-size: .85rem;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 18px;
}
.hero p.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.card {
  background: var(--paper);
  border: 2px solid var(--sunflower);
  border-radius: 4px;
  box-shadow: 3px 4px 0 rgba(58,44,31,.10);
  padding: 32px 34px;
  position: relative;
  margin: 36px 0;
}
.card::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 20px; height: 20px;
  background: linear-gradient(135deg, transparent 50%, var(--cream) 50%);
  border-left: 2px solid var(--sunflower);
  border-bottom: 2px solid var(--sunflower);
}
.card h2 { margin-top: 0; font-size: 1.3rem; }
.card p:last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  text-decoration: none;
  background: var(--marine);
  color: var(--paper);
  padding: 12px 24px;
  border-radius: 3px;
  border: 2px solid var(--marine);
}
.btn:hover { background: transparent; color: var(--marine); }
.btn-secondary {
  background: transparent;
  color: var(--espresso);
  border: 2px solid var(--espresso);
}
.btn-secondary:hover { background: var(--espresso); color: var(--paper); }

.section { margin: 56px auto; max-width: 780px; padding: 0 24px; }
.section h2 { font-size: 1.35rem; margin-bottom: 14px; }
.section p { color: var(--ink-soft); max-width: 62ch; }

.divider {
  max-width: 780px;
  margin: 48px auto;
  border: none;
  border-top: 1px dashed var(--line);
}

/* ---------- Legal pages ---------- */
.legal h1 { font-size: 1.7rem; margin-bottom: 4px; }
.legal .updated { color: var(--ink-soft); font-size: .9rem; margin-bottom: 36px; }
.legal h2 {
  font-size: 1.05rem;
  margin-top: 38px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 22px; }
.legal .placeholder {
  background: rgba(217,164,65,.18);
  padding: 1px 5px;
  border-radius: 2px;
  color: var(--espresso);
  font-style: normal;
}

/* ---------- Contact form ---------- */
form.contact-form { margin-top: 28px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: 'Special Elite', monospace;
  font-size: .85rem;
  margin-bottom: 6px;
  color: var(--espresso);
}
.field input, .field textarea {
  width: 100%;
  font-family: 'Archivo', sans-serif;
  font-size: 1rem;
  padding: 11px 12px;
  border: 2px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sunflower);
}
.field textarea { min-height: 140px; resize: vertical; }
.contact-alt { color: var(--ink-soft); margin-top: 40px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--espresso);
  color: var(--ink-soft);
  padding: 32px 24px;
  text-align: center;
  font-size: .85rem;
}
.site-footer a { color: var(--paper); }
.site-footer .wrap { max-width: 880px; margin: 0 auto; }
.site-footer nav { margin-top: 10px; }
.site-footer nav a { margin: 0 10px; text-decoration: none; }

@media (max-width: 560px) {
  main { padding: 40px 18px 60px; }
  .card { padding: 26px 22px; }
}

/* ---------- Nav: current page ---------- */
nav.site-nav a[aria-current="page"] { border-bottom-color: var(--sunflower); }

/* ---------- Home: game cards ---------- */
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 24px; }
.game-grid .card { margin: 0; }
.game-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.game-card:hover { transform: translateY(-2px); box-shadow: 4px 6px 0 rgba(58,44,31,.14); }
.game-card p { color: var(--ink-soft); }
.game-status { font-family: 'Special Elite', monospace; color: var(--marine) !important; font-size: .8rem; margin: 0 0 8px; }
.game-more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--marine); }
.game-card-ship { border-color: #1c2b46; }
.game-card-ship::after { border-left-color: #1c2b46; border-bottom-color: #1c2b46; }
.game-card-ship .game-status, .game-card-ship .game-more { color: #c4491f !important; }

/* ---------- Game pages: shared ---------- */
.store-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 26px; }
.store-note { color: var(--ink-soft); font-size: .92rem; }
.recipe-label { font-family: 'Special Elite', monospace; color: var(--marine); font-size: .8rem; margin: 0 0 6px; }
.feature-list { padding-left: 20px; color: var(--ink-soft); max-width: 62ch; }
.feature-list li { margin-bottom: 12px; }
.feature-list strong { color: var(--espresso); }

/* ---------- Ship Time page ---------- */
.theme-ship {
  --st-navy: #14213a;
  --st-navy-2: #1c2b46;
  --st-chart: #eef1f3;
  --st-slip: #fbfaf6;
  --st-slip-line: #1f3354;
  --st-amber: #f2b45a;
  --st-amber-ink: #3a2410;
  --st-orange: #e0592d;
  --st-aurora: #6fd8a8;
  --st-muted: #5a6780;
  background: var(--st-chart);
  color: #1b2638;
  font-family: 'Hanken Grotesk', 'Archivo', sans-serif;
}
.theme-ship .site-header, .theme-ship .site-footer { background: var(--st-navy); }
.theme-ship .site-footer { color: #8b97ad; }
.theme-ship .wordmark span { color: var(--st-amber); }
.theme-ship nav.site-nav a:hover, .theme-ship nav.site-nav a[aria-current="page"] { border-bottom-color: var(--st-aurora); }
.theme-ship h2, .theme-ship h3 { font-family: 'Hanken Grotesk', sans-serif; font-weight: 700; color: var(--st-navy); }
.theme-ship .btn { background: var(--st-orange); border-color: var(--st-orange); color: #fff; font-family: 'Hanken Grotesk', sans-serif; }
.theme-ship .btn:hover { background: transparent; color: var(--st-orange); }
.theme-ship a { color: #b8441c; }
.theme-ship a.btn { color: #fff; }
.theme-ship a.btn:hover { color: var(--st-orange); }

main.st-main { padding: 0 0 80px; }
.st-hero {
  background: radial-gradient(ellipse at 50% 0%, #2a4468 0%, var(--st-navy-2) 45%, var(--st-navy) 100%);
  color: #e6ecf5;
  padding: 64px 24px 72px;
}
.st-hero-inner { max-width: 780px; margin: 0 auto; }
.st-clocks { display: flex; gap: 22px; flex-wrap: wrap; font-family: 'DM Mono', monospace; font-weight: 500; font-size: .78rem; letter-spacing: .14em; color: var(--st-aurora); margin-bottom: 14px; }
.st-title {
  font-family: 'Big Shoulders Stencil Text', 'Archivo', sans-serif;
  font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(3.4rem, 12vw, 6.4rem); line-height: .9; margin: 0 0 16px; color: #fff;
}
.st-bar { height: 5px; max-width: 320px; background: rgba(255,255,255,.14); border-radius: 3px; overflow: hidden; }
.st-bar span { display: block; height: 100%; width: 62%; background: var(--st-aurora); border-radius: 3px; }
.st-subtitle { font-family: 'DM Mono', monospace; font-weight: 500; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--st-aurora); margin: 0 0 20px; }
.st-tagline { font-family: 'DM Mono', monospace; font-size: 1.05rem; margin: 22px 0 22px; color: var(--st-amber); }
.st-lede { font-size: 1.1rem; line-height: 1.65; max-width: 56ch; color: #c9d3e3; }
.st-soon { font-family: 'DM Mono', monospace; font-weight: 500; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; border: 1.5px solid rgba(255,255,255,.35); padding: 9px 14px; border-radius: 3px 8px 3px 6px; color: #e6ecf5; }

.st-section { max-width: 880px; margin: 64px auto 0; padding: 0 24px; }
.st-section:first-of-type { margin-top: 0; }
.st-hero + .st-section { display: grid; grid-template-columns: 330px 1fr; gap: 44px; align-items: start; margin-top: 56px; }

.st-phone { background: var(--st-chart); border: 1.5px solid #c9d0da; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(20,33,58,.14); }
.st-phone-head { background: var(--st-navy); color: #fff; padding: 16px 18px 14px; }
.st-phone-name { font-weight: 700; font-size: 1.05rem; }
.st-phone-sub { font-family: 'DM Mono', monospace; font-size: .72rem; color: #9fb0c9; margin-bottom: 12px; }
.st-window-label { display: flex; justify-content: space-between; font-family: 'DM Mono', monospace; font-weight: 500; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: #cfd8e6; margin-bottom: 6px; }
.st-bar-small { max-width: none; height: 4px; }
.st-bar-small span { background: var(--st-orange); width: 48%; }
.st-thread { padding: 18px 14px 22px; display: flex; flex-direction: column; gap: 8px; }
.st-msg { max-width: 84%; padding: 9px 13px; font-size: .92rem; line-height: 1.45; }
.st-him { align-self: flex-start; background: var(--st-slip); border: 1.5px solid var(--st-slip-line); box-shadow: 1px 2px 0 rgba(31,51,84,.18); font-family: 'DM Mono', monospace; font-size: .84rem; color: #1b2638; border-radius: 3px 14px 12px 10px; }
.st-him.st-alt { border-radius: 4px 11px 15px 9px; }
.st-her { align-self: flex-end; background: var(--st-amber); color: var(--st-amber-ink); border-radius: 14px 11px 3px 13px; }
.st-her.st-alt { border-radius: 12px 15px 4px 10px; }
.st-stamp { font-family: 'DM Mono', monospace; font-weight: 500; font-size: .62rem; letter-spacing: .12em; color: #7a8599; margin-bottom: 3px; }

.st-copy h2 { font-size: 1.5rem; margin-top: 0; }
.st-list { list-style: none; padding: 0; margin: 0; }
.st-list li { padding: 14px 0; border-top: 1px solid #d3d9e2; color: #3c4960; }
.st-list li:first-child { border-top: none; padding-top: 0; }
.st-list strong { display: block; color: var(--st-navy); margin-bottom: 2px; }

.st-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.st-notes > div { border-top: 3px solid var(--st-navy); padding-top: 14px; }
.st-notes h3 { font-size: 1.05rem; margin: 0 0 6px; }
.st-notes p { color: #4a5670; margin: 0; font-size: .96rem; }

.st-cta { text-align: left; }
.st-cta p { color: #4a5670; max-width: 56ch; }

@media (max-width: 760px) {
  .game-grid { grid-template-columns: 1fr; }
  .st-hero + .st-section { grid-template-columns: 1fr; }
  .st-phone { max-width: 360px; }
  .st-notes { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 560px) {
  .game-grid { padding: 0; }
  .st-hero { padding: 44px 18px 52px; }
  .st-section { padding: 0 18px; }
  nav.site-nav { gap: 14px; }
}
.theme-ship .wordmark, .theme-ship nav.site-nav a, .theme-ship .site-footer a { color: #fff; }
