/* Helbreath Reignited - site styles. Plain CSS, no build step. */
:root {
  --bg: #0e0b09;
  --stone: #1c1713;
  --stone-2: #26201a;
  --panel: #191410;
  /* Frame color: lava red, matching the title art */
  --bronze: #c2361b;
  --bronze-hi: #ff6a2e;
  --bronze-lo: #6e1a0c;
  --gold: #f0c674;
  --almond: #e8d29a;
  --ember: #e2582a;
  --ember-hi: #ffb14a;
  --text: #e6dccb;
  --muted: #a99d89;
  --ok: #7fbf6a;
  --test: #e8c25a;
  --plan: #7f9fd6;
  --radius: 4px;
  --wrap: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(226, 88, 42, 0.18), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #14100d, #0b0907 60%);
  background-attachment: fixed;
  font-family: "Crimson Text", Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: var(--ember-hi); }

h1, h2, h3, .brand, .nav a, .btn, .tag, .eyebrow {
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.04em;
}
h1, h2, h3 { color: var(--almond); line-height: 1.2; font-weight: 700; }
h2 { font-size: 1.7rem; margin: 0 0 0.6rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.3rem; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(180deg, #1d1712, #120e0b);
  border-bottom: 2px solid var(--bronze-lo);
  box-shadow: 0 1px 0 var(--bronze), 0 6px 18px rgba(0,0,0,0.6);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--almond); text-decoration: none; font-weight: 700; font-size: 1.1rem;
}
.brand img { height: 40px; width: auto; border-radius: 3px; }
.hero-art {
  width: 100%; height: auto; margin: 0 auto 4px; border-radius: var(--radius);
  border: 1px solid var(--bronze-lo);
  box-shadow: 0 0 0 3px #0f0c09, 0 0 0 4px var(--bronze-lo), 0 0 40px rgba(226,88,42,0.25);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.brand small { display: block; font-size: 0.62rem; color: var(--muted); letter-spacing: 0.25em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--text); text-decoration: none; font-size: 0.85rem;
  padding: 6px 12px; border: 1px solid transparent; border-radius: var(--radius);
}
.nav a:hover { border-color: var(--bronze-lo); color: var(--gold); }
.nav a[aria-current="page"] {
  border-color: var(--bronze); color: var(--gold);
  background: rgba(194,54,27, 0.12);
}

/* Hero */
.hero { text-align: center; padding: 28px 0 40px; }
.hero .logo { width: 120px; height: 140px; margin: 0 auto 8px; filter: drop-shadow(0 0 24px rgba(226,88,42,0.45)); }
.hero h1 {
  font-size: clamp(2.2rem, 7vw, 4rem); margin: 0;
  background: linear-gradient(180deg, #fff1cf, var(--gold) 45%, var(--bronze) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
}
.hero .sub { font-family: "Cinzel", serif; color: var(--ember-hi); letter-spacing: 0.35em; font-size: 0.9rem; margin: 6px 0 18px; }
.hero p.lead { max-width: 640px; margin: 0 auto 26px; font-size: 1.2rem; color: var(--text); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-size: 0.85rem; font-weight: 700;
  padding: 10px 20px; border-radius: var(--radius);
  color: #fff1cf; background: linear-gradient(180deg, var(--bronze-hi), var(--bronze));
  border: 1px solid #3a2810; box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 6px rgba(0,0,0,0.5);
}
.btn:hover { color: #fff; background: linear-gradient(180deg, #ff8a4a, var(--bronze-hi)); }
.btn.ghost { color: var(--almond); background: transparent; border-color: var(--bronze); box-shadow: none; }
.btn.ghost:hover { color: var(--gold); background: rgba(194,54,27,0.12); }
.btn.disabled { opacity: 0.55; pointer-events: none; }

/* Stone panel, like the game's dialog frames */
.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%),
    var(--panel);
  border: 1px solid var(--bronze-lo);
  outline: 1px solid #000; outline-offset: 0;
  box-shadow: inset 0 0 0 3px #0f0c09, inset 0 0 0 4px var(--bronze-lo), 0 8px 24px rgba(0,0,0,0.55);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 10px; height: 10px;
  background: var(--bronze); transform: rotate(45deg); top: -6px;
  box-shadow: 0 0 0 1px #000;
}
.panel::before { left: 14px; }
.panel::after { right: 14px; }

section { margin: 0 0 40px; }
.eyebrow { color: var(--ember-hi); font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; margin: 0 0 4px; }
.page-title { padding: 44px 0 20px; text-align: center; }
.page-title h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: 0 0 6px; }
.page-title p { color: var(--muted); max-width: 640px; margin: 0 auto; }

.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.pillar { text-align: center; }
.pillar .icon { font-size: 2rem; line-height: 1; margin-bottom: 8px; color: var(--gold); }
.pillar p { margin: 0; color: var(--muted); }

/* Screenshot placeholders */
.shots { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.shot {
  aspect-ratio: 16 / 9; border: 1px solid var(--bronze-lo); border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(194,54,27,0.07) 0 10px, transparent 10px 20px),
    #120e0b;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-family: "Cinzel", serif; font-size: 0.8rem; letter-spacing: 0.15em;
  overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
a.shot { position: relative; text-decoration: none; }
a.shot:hover img { transform: scale(1.04); }
a.shot span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 6px;
  font-family: "Crimson Text", Georgia, serif; font-size: 0.9rem; letter-spacing: 0;
  color: var(--text); text-align: left;
  background: linear-gradient(transparent, rgba(8,4,3,0.9));
}
a.shot:hover { border-color: var(--bronze); }

/* Release */
.release { text-align: center; }
.release .date {
  font-family: "Cinzel", serif; font-size: clamp(2.4rem, 8vw, 3.6rem); font-weight: 700;
  color: var(--gold); margin: 4px 0; text-shadow: 0 0 22px rgba(226,88,42,0.4);
}
.release .note { color: var(--muted); font-size: 1rem; margin: 0 0 22px; }
.stages { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; margin: 0 auto; max-width: 720px; }
.stage { flex: 1 1 160px; padding: 10px 8px; position: relative; }
.stage .dot {
  width: 18px; height: 18px; margin: 0 auto 6px; border-radius: 50%;
  border: 2px solid var(--bronze); background: #120e0b;
}
.stage.now .dot { background: var(--ember); border-color: var(--ember-hi); box-shadow: 0 0 12px var(--ember); }
.stage.done .dot { background: var(--bronze); }
.stage b { display: block; font-family: "Cinzel", serif; color: var(--almond); font-size: 0.9rem; }
.stage span { color: var(--muted); font-size: 0.9rem; }

/* Status lists */
.tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 3px; vertical-align: middle;
  border: 1px solid currentColor;
}
.tag.ok { color: var(--ok); }
.tag.test { color: var(--test); }
.tag.plan { color: var(--plan); }
.tag.idea { color: var(--muted); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-top: 1px solid rgba(194,54,27,0.18); }
.list li:first-child { border-top: 0; }
.list li strong { color: var(--almond); }
.list li p { margin: 2px 0 0; color: var(--muted); font-size: 1rem; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 0 0 24px; color: var(--muted); font-size: 0.95rem; }

/* Dev log */
.log { border-left: 2px solid var(--bronze-lo); margin-left: 6px; padding-left: 20px; }
.log-entry { position: relative; margin-bottom: 26px; }
.log-entry::before {
  content: ""; position: absolute; left: -27px; top: 8px; width: 10px; height: 10px;
  background: var(--bronze); transform: rotate(45deg); box-shadow: 0 0 0 2px var(--bg);
}
.log-entry time { font-family: "Cinzel", serif; color: var(--ember-hi); font-size: 0.85rem; letter-spacing: 0.1em; }
.log-entry ul { margin: 6px 0 0; padding-left: 20px; }
.log-entry li { margin: 3px 0; }

.callout { border-left: 3px solid var(--ember); padding: 10px 16px; background: rgba(226,88,42,0.07); margin: 0 0 24px; }

/* Footer */
.site-footer {
  margin-top: 40px; padding: 26px 0 34px; text-align: center; color: var(--muted); font-size: 0.9rem;
  border-top: 2px solid var(--bronze-lo); box-shadow: 0 -1px 0 var(--bronze);
  background: linear-gradient(180deg, #120e0b, #0b0907);
}
.site-footer p { margin: 4px 0; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .site-header .wrap { justify-content: center; }
  .panel { padding: 22px 16px; }
  .hero { padding-top: 40px; }
}
