/* DDHSTUDIOS — brass, sea-glass, deep space */
@font-face {
  font-family: Outfit;
  src: url("/fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("/fonts/outfit-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("/fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("/fonts/outfit-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #10141c;
  --bg-raised: #171c26;
  --cream: #fff4e0;
  --cream-dim: #c9b59a;
  --brass: #e29a48;
  --brass-hot: #ffb067;
  --sea: #48baa8;
  --sea-bright: #7ee0d0;
  --gold: #f0d7a4;
  --stroke: rgba(255, 244, 224, 0.12);
  --stroke-strong: rgba(226, 154, 72, 0.42);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-ui: Outfit, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --max: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.25rem);
  --radius: 1.25rem;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--cream);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(72, 186, 168, 0.16), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(226, 154, 72, 0.12), transparent 50%),
    radial-gradient(800px 700px at 50% 120%, rgba(72, 186, 168, 0.08), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass); }
a:hover { color: var(--brass-hot); }

:focus-visible {
  outline: 2px solid var(--sea-bright);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 20;
  background: var(--brass);
  color: #1a1208;
  padding: 0.5rem 0.8rem;
  border-radius: 0.4rem;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
}
.brand:hover { color: var(--cream); }
.brand img, .brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  flex: none;
}
.brand-name {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
}
nav ul {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
nav a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}
nav a:hover, nav a[aria-current="page"] {
  color: var(--cream);
  background: rgba(255, 244, 224, 0.06);
}

/* Hero */
.hero {
  padding: 2.4rem 0 3.5rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; padding-top: 3.2rem; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--brass);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: var(--brass);
}
h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(3rem, 7vw, 5.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.lede {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--cream-dim);
  max-width: 34rem;
  margin: 0 0 1.75rem;
}
.hero-actions, .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1.2;
}
.btn-primary {
  background: var(--brass);
  color: #1a1208;
}
.btn-primary:hover { background: var(--brass-hot); color: #1a1208; }
.btn-sea {
  background: var(--sea);
  color: #06221e;
}
.btn-sea:hover { background: var(--sea-bright); color: #06221e; }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--stroke);
}
.btn-ghost:hover { border-color: var(--cream-dim); color: var(--cream); }
.btn-note {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--cream-dim);
}

/* Phone frames */
.hero-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: end;
}
.phone {
  background: #07090d;
  border: 1px solid var(--stroke-strong);
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}
.phone:nth-child(2) {
  transform: rotate(3.5deg) translateY(1.2rem);
}
.phone img { width: 100%; }

/* Featured */
.section { padding: 1rem 0 4.5rem; }
.section-head { margin-bottom: 1.5rem; }
.kicker {
  color: var(--sea);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.game-card {
  display: grid;
  gap: 1.75rem;
  background: linear-gradient(180deg, rgba(255,244,224,0.04), rgba(255,244,224,0.015));
  border: 1px solid var(--stroke);
  border-radius: calc(var(--radius) + 0.35rem);
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .game-card { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
}
.game-card h2 { margin-bottom: 0.4rem; }
.game-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sea-bright);
  border: 1px solid rgba(72, 186, 168, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin-bottom: 0.7rem;
}
.shot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.shot-row a {
  display: block;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #07090d;
}
.shot-row img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.shot-row a:hover { border-color: var(--brass); }

/* How to play */
.steps {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
.step {
  background: rgba(255, 244, 224, 0.03);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.2rem;
}
.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.charge {
  display: inline-block;
  font-weight: 600;
}
.charge-brass { color: var(--brass-hot); }
.charge-sea { color: var(--sea-bright); }
.step p { margin: 0; color: var(--cream-dim); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.gallery figure { margin: 0; }
.gallery a {
  display: block;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #07090d;
}
.gallery img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.gallery figcaption {
  font-size: 0.8rem;
  color: var(--cream-dim);
  padding: 0.45rem 0.15rem 0;
}

/* Contact / footer */
.contact {
  border-top: 1px solid var(--stroke);
  padding: 3rem 0 2rem;
}
.contact a { font-weight: 600; }

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 1.3rem 0 2.4rem;
  color: var(--cream-dim);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}
.site-footer a { color: var(--cream-dim); text-decoration: none; }
.site-footer a:hover { color: var(--cream); }

/* Privacy */
.prose {
  max-width: 40rem;
  padding: 1.5rem 0 4rem;
}
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.prose h2 {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 2rem 0 0.6rem;
}
.prose p { color: var(--cream-dim); }
.prose .meta { color: var(--cream-dim); font-size: 0.92rem; }

/* 404 */
.lost {
  min-height: 60vh;
  display: grid;
  align-content: center;
  padding: 3rem 0 5rem;
}
.lost p { color: var(--cream-dim); max-width: 28rem; }

@media (max-width: 700px) {
  .hero-shots { max-width: 22rem; margin-inline: auto; }
  .shot-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  nav a { padding: 0.35rem 0.5rem; font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone, .phone:nth-child(2) { transform: none; }
}
