/* Astrid Regndottir — shared styles.
   Colours taken from the She Hungers siren art: blood-forest background,
   gold-ring outlines, cream text, and a name that glows like her eyes. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #160404;     /* the dark forest */
  --panel: #24060a;
  --line: #4a0d10;
  --gold: #e9bb55;   /* her rings */
  --glow: #f3e076;   /* her eyes */
  --cream: #f4e6c1;
  --muted: #c9a98a;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--cream);
  background: var(--bg);
}

/* Faint glow rising from the bottom of the screen, in the deep crimson of the siren's hair. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(130% 50% at 50% 100%, rgba(117, 27, 19, 0.30), rgba(87, 3, 9, 0.10) 55%, transparent 80%);
}

a { color: var(--gold); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- top navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 10px 8px;
  background: var(--bg);
}
.nav a {
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}
.nav a:hover { color: var(--cream); }
.nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- layout ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 32px;
}
main.wide { max-width: 900px; }

/* ---------- profile header ---------- */
.profile { text-align: center; }
.medallion {
  width: 128px;
  height: 128px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 0 22px rgba(233, 187, 85, 0.35);
}
.medallion img { display: block; width: 100%; height: 100%; object-fit: cover; }

h1, h2 { font-weight: 800; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); color: var(--glow); text-shadow: 0 0 18px rgba(243, 224, 118, 0.45); }
.rule {
  width: min(280px, 72%);
  height: 1px;
  margin: 16px auto;
  border: 0;
  background: var(--line);
}
.bio { margin: 0 auto; max-width: 30em; }
.bio span { display: block; }

/* ---------- link box ---------- */
.linkbox {
  margin-top: 22px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: var(--panel);
  border-radius: 20px;
}
.btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 14px 6px 6px;
  border-radius: 14px;
  border: 2px solid var(--gold);
  background: var(--bg);
  color: var(--cream);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--glow); box-shadow: 0 0 14px rgba(243, 224, 118, 0.35); }
.btn:active { transform: translateY(0); }
.btn .thumb {
  flex-shrink: 0;
  width: 96px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
}
.btn .label { flex: 1; min-width: 0; }
.btn .arrow { flex-shrink: 0; color: var(--gold); font-size: 1.1rem; }

.btn.primary {
  justify-content: center;
  padding: 6px 16px;
  text-align: center;
  border-color: var(--gold);
  background: var(--bg);
  color: var(--cream);
}
.btn.plain { justify-content: center; padding: 6px 16px; text-align: center; }

.socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.btn.social {
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 8px;
  font-size: 0.9rem;
}
.btn.social svg { width: 20px; height: 20px; flex-shrink: 0; fill: var(--gold); }

/* ---------- inner pages ---------- */
.page-title { text-align: center; margin-bottom: 6px; }
.lede { text-align: center; color: var(--muted); max-width: 34em; margin: 0 auto; }

.kits { margin-top: 24px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.kit {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  background: var(--panel);
  color: var(--cream);
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s;
}
.kit:hover { transform: translateY(-3px); border-color: var(--gold); }
.kit img { display: block; width: 100%; aspect-ratio: 460 / 215; object-fit: cover; }
.kit .kit-body { padding: 14px 16px 16px; }
.kit h2 { font-size: 1.3rem; }
.kit p { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
.kit .go { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--gold); }

.section {
  margin-top: 20px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.section h2 { font-size: 1.45rem; margin-bottom: 8px; }
.section p { margin: 0 0 10px; }
.section p:last-child { margin-bottom: 0; }
.section .tag { color: var(--gold); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }

.studio { display: flex; gap: 18px; align-items: center; }
.studio .logo { flex-shrink: 0; width: 180px; }
.studio .logo img { display: block; width: 100%; height: auto; }

.game { display: grid; gap: 18px; align-items: start; }
.game .media { display: grid; gap: 10px; }
.game video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #000;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.actions .btn { min-height: 48px; }
@media (min-width: 760px) {
  .game { grid-template-columns: 1fr 1fr; }
  .game.flip .media { order: 2; }
}

.contact { text-align: center; }
.contact .btn { display: inline-flex; margin-top: 8px; font-size: 1.05rem; overflow-wrap: anywhere; }

footer {
  padding: 18px 16px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 400px) {
  .btn .thumb { width: 76px; height: 40px; }
  .btn { font-size: 0.94rem; }
  .nav a { padding: 8px 8px; font-size: 0.72rem; letter-spacing: 0.05em; }
  .btn.social span { display: none; }
  .studio { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .kit, .nav a { transition: none; }
}

/* ---------- home link box: taller buttons, easy to hit on mobile ---------- */
.linkbox { gap: 12px; }
.linkbox .btn { min-height: 100px; padding: 10px 18px 10px 10px; gap: 14px; border-width: 3px; border-radius: 16px; font-size: 1.12rem; }
.linkbox .btn .thumb { width: 168px; height: 78px; border-radius: 11px; }
.linkbox .btn .arrow { font-size: 1.3rem; }
.linkbox .btn.primary { min-height: 94px; padding: 12px 18px; font-size: 1.25rem; font-weight: 800; }
.linkbox .btn.social { min-height: 48px; padding: 6px 8px; gap: 8px; border-width: 2px; border-radius: 14px; font-size: 0.9rem; }
@media (max-width: 400px) {
  .linkbox .btn { min-height: 94px; font-size: 1.02rem; gap: 12px; }
  .linkbox .btn .thumb { width: 128px; height: 68px; }
  .linkbox .btn.primary { min-height: 88px; font-size: 1.15rem; }
  .linkbox .btn.social { min-height: 48px; font-size: 0.9rem; }
}

/* About: self-sketch floating in the upper right of the bio block */
.bio-section::after { content: ""; display: block; clear: both; }
.self-sketch { float: right; width: 200px; height: auto; margin: -6px -4px 8px 18px; shape-outside: url(assets/img/self-sketch.png); shape-image-threshold: 0.1; shape-margin: 8px; }
.signoff { color: var(--gold); font-style: italic; }
@media (max-width: 600px) {
  .self-sketch { width: 130px; margin: -4px -4px 6px 12px; }
}
