/* Hullbreaker — site styles */
:root {
  --bg: #0A0E14;
  --panel: #0E131A;
  --line: #1C2530;
  --line-strong: #2E3A48;
  --text: #E8E6E1;
  --text-soft: #D2D6DB;
  --text-mid: #B7BEC7;
  --muted: #8C96A3;
  --accent: #FF6A2B;          /* change this one value to recolor the site */
  --display: 'Chakra Petch', sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--text); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; font-family: var(--display); text-transform: uppercase; }
p { margin: 0; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

/* Small labels */
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow.muted { color: var(--muted); display: flex; align-items: center; gap: 12px; }
.eyebrow.muted::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
.mono-link {
  font-family: var(--mono); font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); padding: 14px 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 28px; border-radius: 2px;
  font-family: var(--display); font-weight: 600; font-size: 17px;
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--bg); border: 0; }
.btn-primary:hover { color: var(--bg); filter: brightness(1.08); }
.btn-ghost { border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(10,14,20,.92); backdrop-filter: blur(8px); z-index: 10; }
.site-header .wrap { height: 96px; display: flex; align-items: center; justify-content: space-between; }
.site-header .logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 40px; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.nav .nav-cta { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border: 1px solid var(--accent); color: var(--accent); border-radius: 2px; }
.nav .nav-cta:hover { background: var(--accent); color: var(--bg); }
.menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong); color: var(--text); border-radius: 2px; padding: 0; cursor: pointer;
}

/* Hero */
.hero { padding-top: 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 32px; }
.hero h1 { font-weight: 700; font-size: clamp(52px, 7.2vw, 104px); line-height: .95; letter-spacing: -.01em; }
.hero h1 span { display: block; }
.hero h1 .hot { color: var(--accent); text-shadow: 3px 0 0 rgba(90,200,250,.35), -3px 0 0 rgba(255,106,43,.25); }
.hero .lede { max-width: 520px; font-size: 20px; line-height: 1.55; color: var(--text-mid); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: 580px; }
.waves { display: block; width: 100%; height: 120px; margin-top: 40px; }

/* Ticker */
.ticker { background: var(--accent); color: var(--bg); overflow: hidden; white-space: nowrap; }
.ticker-track {
  display: inline-flex; gap: 40px; height: 64px; align-items: center; padding-left: 40px;
  font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .18em; text-transform: uppercase;
  animation: ticker 40s linear infinite;
}
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Sections */
.section { padding: 128px 0; }
.section-alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; gap: 24px; }
.section-head > div { display: flex; flex-direction: column; gap: 16px; }
.section h2 { font-weight: 700; font-size: clamp(40px, 4.5vw, 64px); line-height: 1; }

/* Featured game */
.game-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px; align-items: start; }
.game-media { grid-column: span 8; }
.game-info { grid-column: span 4; display: flex; flex-direction: column; gap: 28px; }
.placeholder {
  border: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, #0F151D 0 14px, #121A23 14px 28px);
  display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center;
  color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
.game-media.placeholder { aspect-ratio: 16 / 9; }
.game-media img, .game-media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span { padding: 8px 12px; border: 1px solid var(--line-strong); color: var(--text-mid); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.game-info .pitch { font-size: 19px; line-height: 1.6; color: var(--text-soft); }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }
.facts div { display: flex; flex-direction: column; gap: 6px; }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack .btn { width: 100%; }

/* Studio */
.studio-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px; margin-bottom: 72px; }
.studio-top .head { grid-column: span 4; display: flex; flex-direction: column; gap: 16px; }
.studio-top h2 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.02; }
.studio-top .body { grid-column: 7 / -1; display: flex; flex-direction: column; gap: 24px; font-size: 21px; line-height: 1.6; color: var(--text-soft); }
.studio-top .body .quiet { color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.pillar { padding: 40px 40px 0; display: flex; flex-direction: column; gap: 16px; border-left: 1px solid var(--line); }
.pillar:first-child { padding-left: 0; border-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar .num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.pillar h3 { font-weight: 600; font-size: 28px; }
.pillar p { font-size: 17px; line-height: 1.6; color: var(--muted); }

/* Devlog */
.log-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.log-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); }
.log-card:hover { border-color: var(--line-strong); color: var(--text); }
.log-card:hover h3 { color: var(--accent); }
.log-card .thumb { height: 240px; }
.log-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.log-card .body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.log-card .meta { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.log-card h3 { font-weight: 600; font-size: 24px; line-height: 1.2; transition: color .15s; }
.log-card p { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* Signup */
.signup { padding-bottom: 128px; }
.signup-box { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px; align-items: center; padding: 72px; border: 1px solid var(--line-strong); background: var(--panel); }
.signup-copy { grid-column: span 7; display: flex; flex-direction: column; gap: 24px; }
.signup-copy h2 { font-weight: 700; font-size: clamp(34px, 3.9vw, 56px); line-height: 1; }
.signup-copy p { font-size: 18px; line-height: 1.6; color: var(--text-mid); max-width: 520px; }
.signup-form { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.signup-form label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.signup-form .row { display: flex; gap: 12px; }
.signup-form input {
  flex: 1; min-width: 0; height: 56px; padding: 0 18px; background: var(--bg);
  border: 1px solid var(--line-strong); color: var(--text); font-family: var(--body); font-size: 17px; border-radius: 2px;
}
.signup-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.signup-msg { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; }
.signup-msg.ok { color: var(--accent); }
.signup-msg.error { color: #FF9A8A; }
.qr { grid-column: span 5; display: flex; justify-content: flex-end; }
.qr div { width: 340px; padding: 28px; background: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 48px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; margin-bottom: 48px; }
.footer-top > img { width: 420px; }
.footer-cols { display: flex; gap: 96px; font-size: 16px; }
.footer-cols > * { display: flex; flex-direction: column; gap: 14px; }
.footer-cols .label { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .nav { gap: 24px; }
  .game-media, .game-info { grid-column: 1 / -1; }
  .studio-top .head, .studio-top .body { grid-column: 1 / -1; }
  .signup-box { padding: 48px; }
  .signup-copy, .qr { grid-column: 1 / -1; }
  .qr { justify-content: flex-start; }
  .footer-top { flex-direction: column; }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  :root { --gutter: 20px; }
  .site-header .wrap { height: 72px; }
  .site-header .logo img { height: 32px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 16px; justify-content: center; height: 52px; border-bottom: 1px solid var(--accent); }

  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: -1; }
  .hero-art img { width: 300px; }
  .hero-copy { gap: 24px; }
  .hero .lede { font-size: 17px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; height: 52px; font-size: 16px; }
  .waves { height: 80px; margin-top: 8px; }
  .ticker-track { height: 48px; font-size: 15px; gap: 20px; padding-left: 20px; letter-spacing: .16em; }

  .section { padding: 72px 0; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }
  .eyebrow { font-size: 12px; }
  .game-grid { gap: 24px; }
  .game-info .pitch { font-size: 17px; }
  .studio-top { gap: 24px; margin-bottom: 24px; }
  .studio-top .body { font-size: 17px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:first-child, .pillar:last-child { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .pillar h3 { font-size: 22px; }
  .pillar p { font-size: 15px; }
  .log-grid { grid-template-columns: 1fr; gap: 20px; }
  .log-card .thumb { height: 180px; }
  .log-card .body { padding: 20px; }
  .signup { padding-bottom: 72px; }
  .signup-box { padding: 28px 20px; gap: 24px; }
  .signup-copy { gap: 20px; }
  .signup-form .row { flex-direction: column; }
  .signup-form input { flex: none; width: 100%; height: 52px; }
  .signup-form .btn { width: 100%; height: 52px; }
  .qr div { width: 100%; padding: 20px; }
  .qr img { width: 240px; margin: 0 auto; }
  .footer-top > img { width: 280px; }
  .footer-cols { gap: 48px; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; }
}
