/* Dreadwater Games: shared styles for the site. Night fog, sailcloth text, brass fittings,
   and one green thing watching. */
@font-face { font-family: "Dreadwater"; src: url("assets/fonts/dreadwater.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Dreadwater Weathered"; src: url("assets/fonts/dreadwater_weathered.woff2") format("woff2"); font-display: swap; }
:root {
  --sea: #0c1615;        /* page ground */
  --deep: #050b0b;       /* the bottom of the about page */
  --fog: #172624;        /* raised surfaces */
  --fog-2: #263836;      /* hairlines and borders */
  --sail: #e6e0cc;       /* body text */
  --sail-dim: #a3a291;   /* secondary text */
  --brass: #c49a5c;      /* labels, links */
  --eye: #6ee7a8;        /* the eye: used sparingly */
  --flare: #e0453a;      /* one call to action */
  --paper: #e9dfc4;
  --ink: #2a2a3a;
  --discord: #5865f2;

  /* Dreadwater (the studio's own face, from tools/fonts/make_dreadwater.py) for headings and display lines,
     its weathered cut for the big titles, and Cinzel for everything set small, where Dreadwater's hairlines fade. */
  --f-cinzel: "Cinzel", Georgia, "Times New Roman", serif;
  --f-dread: "Dreadwater", var(--f-cinzel);
  --f-worn: "Dreadwater Weathered", "Dreadwater", var(--f-cinzel);
  --f-display: var(--f-dread);
  --f-caps: var(--f-worn);
  --f-body: var(--f-cinzel);
  --f-mono: var(--f-cinzel);
  --f-hand: var(--f-cinzel);

  --nav-h: 60px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--sea); color: var(--sail);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
em, i { font-style: normal; }   /* Cinzel has no italic */
button, input, select, textarea { font-family: inherit; }
a { color: var(--brass); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--eye); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.label { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--sea) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fog-2);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--sail); text-decoration: none; min-width: 0; }
.brand img { flex: none; width: 40px; height: 40px; border-radius: 50%; }
.brand .word { font-family: var(--f-display); font-size: 1.2rem; letter-spacing: .02em; white-space: nowrap; }
.brand .word small { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .2em; color: var(--sail-dim); margin-left: 6px; text-transform: uppercase; }
.nav ul { list-style: none; display: flex; gap: clamp(14px, 3vw, 30px); margin: 0; padding: 0; }
.nav ul a {
  position: relative; font-family: var(--f-mono); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sail-dim); text-decoration: none; padding: 8px 0; white-space: nowrap;
}
.nav ul a:hover { color: var(--sail); }
.nav ul a[aria-current="page"] { color: var(--sail); }
.nav ul a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--eye);
  box-shadow: 0 0 10px var(--eye);
}
/* Three games' worth of links don't fit beside the brand on a phone: the links drop to a second row. */
@media (max-width: 720px) {
  :root { --nav-h: 96px; }
  .nav .wrap { flex-wrap: wrap; justify-content: center; align-content: center; gap: 2px 16px; }
  .nav ul { width: 100%; justify-content: center; gap: 16px; }
  .nav ul a { font-size: .7rem; letter-spacing: .06em; padding: 6px 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; border-radius: 2px;
  font-family: var(--f-mono); font-size: .86rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--sail); color: var(--sail); background: transparent; cursor: pointer;
  transition: background .2s, box-shadow .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { background: rgba(230,224,204,.08); }
.btn.discord { background: var(--discord); border-color: var(--discord); color: #fff; }
.btn.discord:hover { background: #4752e0; box-shadow: 0 0 26px rgba(88,101,242,.45); }
.steam-badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 9px 18px 9px 12px; border: 1px solid rgba(230,224,204,.35);
  background: rgba(5,11,11,.55); color: var(--sail); text-decoration: none; border-radius: 2px;
}
.steam-badge svg { width: 30px; height: 30px; flex: none; }
.steam-badge span { display: grid; line-height: 1.15; }
.steam-badge small { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sail-dim); }
.steam-badge b { font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; }
a.steam-badge:hover { border-color: var(--sail); }

/* Footer */
footer { border-top: 1px solid var(--fog-2); padding-block: 36px 48px; background: var(--deep); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; font-family: var(--f-mono); font-size: .8rem; color: var(--sail-dim); }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--sail-dim); text-decoration: none; }
footer .studio { display: inline-flex; align-items: center; gap: 12px; }
footer .studio img { width: 32px; height: 32px; border-radius: 50%; }
footer a:hover { color: var(--sail); }
