/* ------------------------------------------------------------
   Drowsy Koguma Studios — dark theme
   Near-black base (matches the banner's black edges), moon-yellow
   accent, terminal-green eyebrows, rounded display type for warmth.
   ------------------------------------------------------------ */

:root {
  --bg: #0b0d14;
  --bg-alt: #0f1220;
  --surface: #151929;
  --surface-2: #1b2033;
  --border: #262c42;
  --border-strong: #343b58;
  --text: #eceef8;
  --muted: #9aa1c2;
  --yellow: #f4c95d;
  --yellow-soft: rgba(244, 201, 93, 0.14);
  --green: #7ee787;
  --font-display: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 66rem;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--yellow); }
a:hover { color: #ffdf8e; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: #fff;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--green);
  margin: 0 0 0.75rem;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--yellow); color: var(--bg); padding: 0.5rem 1rem;
}
.skip-link:focus { left: 1rem; z-index: 100; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1.5rem;
  background: rgba(11, 13, 20, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex; align-items: center; gap: 0.65rem;
  color: var(--text); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
}
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px var(--border-strong); }
.brand em { font-style: normal; color: var(--yellow); }
.brand span { white-space: nowrap; }

.site-header nav { display: flex; gap: 0.15rem; }
.site-header nav a {
  color: var(--muted); text-decoration: none; font-weight: 500;
  padding: 0.45rem 0.8rem; border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.site-header nav a:hover { color: #fff; background: var(--surface-2); }

/* ---------- Hero ---------- */
.hero { background: #000; text-align: center; }

.hero-banner { position: relative; max-width: 1500px; margin: 0 auto; }
.hero-banner img { width: 100%; }
.hero-banner::after {           /* fade the banner's bottom edge into the page */
  content: ""; position: absolute; inset: auto 0 0 0; height: 14%;
  background: linear-gradient(to bottom, rgba(11,13,20,0) 0%, var(--bg) 100%);
  pointer-events: none;
}

.hero-copy {
  background: var(--bg);
  padding: 0.5rem 1.5rem 5rem;
}
.hero-copy > * { max-width: 44rem; margin-left: auto; margin-right: auto; }
.hero h1 { margin-bottom: 0.6em; }
.lede { color: var(--muted); font-size: 1.15rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.75rem; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--yellow); color: #1a1405;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--yellow);
  box-shadow: 0 8px 24px -8px rgba(244, 201, 93, 0.55);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { background: #ffdf8e; border-color: #ffdf8e; color: #1a1405; transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(244, 201, 93, 0.7); }
.button-ghost { background: transparent; color: var(--yellow); box-shadow: none; }
.button-ghost:hover { background: var(--yellow-soft); border-color: var(--yellow); color: var(--yellow); box-shadow: none; }

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  scroll-margin-top: 4rem;
}
.section-alt {
  max-width: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  scroll-margin-top: 5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--yellow-soft); color: var(--yellow);
  margin-bottom: 1.1rem;
}
.card p { color: var(--muted); }

.links { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem; font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
}
.pill small {
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--green);
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: 3rem;
  align-items: center;
}
.about-logo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.about-copy p { color: var(--muted); }
.about-copy strong { color: var(--yellow); }

@media (max-width: 700px) {
  .about { grid-template-columns: 1fr; text-align: center; }
  .about-logo { max-width: 60vw; margin: 0 auto; }
}

/* ---------- Contact ---------- */
.contact-card {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--radius);
  background:
    radial-gradient(60% 80% at 50% 0%, var(--yellow-soft), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
}
.contact-card p { color: var(--muted); }
.contact-email { margin-top: 1.5rem; }
.contact-email a {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 0.1em;
}
.contact-email a:hover { color: var(--yellow); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.site-footer img { margin: 0 auto 0.75rem; border-radius: 50%; opacity: 0.9; }
.site-footer p { margin: 0.2em 0; }
.footer-note { opacity: 0.7; }

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  .site-header { padding: 0.6rem 1rem 0.4rem; flex-wrap: wrap; row-gap: 0.2rem; }
  .site-header nav { flex-basis: 100%; margin-left: -0.55rem; }
  .site-header nav a { padding: 0.35rem 0.55rem; font-size: 0.95rem; }
  .brand span { font-size: 0.95rem; }
  .section { padding: 3.5rem 1.25rem; }
  .card { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .card, .site-header nav a { transition: none; }
  .card:hover, .button:hover { transform: none; }
}

/* ---------- 404 page ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.page-404 { display: flex; flex-direction: column; min-height: 100vh; }
.not-found {
  flex: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}
.not-found-banner {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  background: #2b2f52;             /* matches the artwork's background */
  margin-bottom: 2.25rem;
}
.not-found-banner img { width: 100%; }
.not-found .eyebrow { margin-bottom: 1rem; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin: 0; }

@media (max-width: 560px) {
  .not-found { padding: 1.5rem 1rem 3rem; }
  .not-found-banner { border-radius: 12px; margin-bottom: 1.5rem; }
}
