/* Helbreath Forever — marketing site styles.
   Self-hosted fonts, no external requests, no trackers. */

@font-face {
  font-family: "Almendra";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/almendra-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Almendra";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/almendra-bold.woff2") format("woff2");
}

:root {
  --bg: #0c0810;
  --bg-2: #140f1c;
  --bg-3: #1c1424;
  --panel: #191220;
  --line: #34273f;
  --line-soft: #271d31;
  --ink: #e8dfc7;
  --ink-dim: #b3a68c;
  --ink-faint: #8a7d69;
  --gold: #c9a24b;
  --gold-bright: #e4c074;
  --bronze: #8a6a33;
  --rune: #7b4a86;
  --max: 1120px;
  --radius: 14px;
  --font-display: "Almendra", "Iowan Old Style", Georgia, serif;
  --font-body: Georgia, "Times New Roman", "Iowan Old Style", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--gold-bright);
  text-decoration-color: color-mix(in srgb, var(--gold-bright) 45%, transparent);
  text-underline-offset: 3px;
}

a:hover {
  color: #fff2d0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: #1a1206;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

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

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.brand img {
  height: 26px;
  width: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--bronze);
  border-radius: 8px;
  color: var(--gold-bright);
  font-size: 1rem;
  line-height: 1;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
}

.site-nav a {
  color: var(--ink-dim);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-bright);
}

/* Nav links must not recolour the button that shares their container. */
.site-nav a.btn {
  color: var(--ink);
}

.site-nav a.btn-primary,
.site-nav a.btn-primary:hover {
  color: #201705;
}

.nav-toggle {
  display: none;
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--bronze);
  border-radius: 10px;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, #2a2033, #1a1322);
  transition: border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.btn:hover {
  border-color: var(--gold);
  color: #fff2d0;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-color: var(--gold-bright);
  color: #201705;
}

.btn-primary:hover {
  color: #201705;
  filter: brightness(1.06);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("img/hero.webp") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(12, 8, 16, 0.72) 0%,
    rgba(12, 8, 16, 0.55) 40%,
    rgba(12, 8, 16, 0.95) 100%
  );
}

.hero .container {
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5.5rem);
  text-align: center;
}

.hero-wordmark {
  width: min(620px, 82vw);
  margin: 0 auto 1.4rem;
  filter: drop-shadow(0 6px 26px rgba(0, 0, 0, 0.7));
}

.hero .tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  color: var(--ink);
  margin: 0 auto 0.6rem;
  max-width: 42ch;
}

.hero .sub {
  color: var(--ink-dim);
  max-width: 56ch;
  margin: 0 auto 1.8rem;
}

.hero .btn-row {
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(12, 8, 16, 0.6);
  margin-bottom: 1.2rem;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fce8a;
  box-shadow: 0 0 10px #6fce8a;
}

/* Sections ---------------------------------------------------------------- */

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section + .section {
  border-top: 1px solid var(--line-soft);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 2.2rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--gold-bright);
}

.section-head p {
  color: var(--ink-dim);
  margin: 0;
}

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--rune);
  color: color-mix(in srgb, var(--rune) 70%, var(--ink));
  margin: 0 0 0.4rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.features {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.card h3 {
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.card p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.98rem;
}

.card .rune {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--bronze);
  border-radius: 10px;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

/* Screenshots ------------------------------------------------------------- */

.shots {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.shots figure {
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}

.shots img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shots figcaption {
  padding: 0.8rem 1rem;
  font-family: var(--font-display);
  color: var(--ink-dim);
  font-size: 0.95rem;
  border-top: 1px solid var(--line-soft);
}

.shots .wide {
  grid-column: 1 / -1;
}

/* Notice / beta ----------------------------------------------------------- */

.notice {
  border: 1px solid var(--bronze);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(201, 162, 75, 0.1), rgba(201, 162, 75, 0.03));
  padding: 1.3rem 1.5rem;
}

.notice h3 {
  color: var(--gold-bright);
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.notice p {
  margin: 0;
  color: var(--ink);
}

.notice p + p {
  margin-top: 0.5rem;
}

/* FAQ --------------------------------------------------------------------- */

.faq details {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--bg-2);
  padding: 0.4rem 1.1rem;
}

.faq details + details {
  margin-top: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  padding: 0.7rem 0;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  color: var(--gold);
  margin-right: 0.7rem;
}

.faq details[open] summary::before {
  content: "–";
}

.faq details p {
  margin: 0 0 0.9rem;
  color: var(--ink-dim);
}

/* Legal / prose ----------------------------------------------------------- */

.page {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
}

.prose {
  max-width: 74ch;
}

.prose h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--gold-bright);
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.2rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0.35rem;
}

.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

.prose p,
.prose li {
  color: var(--ink-dim);
}

.prose strong {
  color: var(--ink);
}

.prose ul {
  padding-left: 1.3rem;
}

.prose li + li {
  margin-top: 0.3rem;
}

.meta {
  color: var(--ink-faint);
  font-size: 0.92rem;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

.lead {
  font-size: 1.1rem;
  color: var(--ink);
}

.backlink {
  display: inline-block;
  margin-bottom: 1.4rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

th {
  font-family: var(--font-display);
  color: var(--ink);
}

td {
  color: var(--ink-dim);
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
  padding: 2.6rem 0;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1.4fr 1fr 1fr;
}

.site-footer p {
  color: var(--ink-faint);
  margin: 0.6rem 0 0;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer nav a {
  color: var(--ink-dim);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--gold-bright);
}

.footer-title {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: 0.05em;
  margin: 0 0 0.4rem;
}

.legal-note {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-faint);
  font-size: 0.86rem;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.6rem 0;
    width: 100%;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
    width: 40px;
    height: 40px;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 1.2rem;
    cursor: pointer;
  }

  .site-nav a.btn {
    margin-top: 0.6rem;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }
}
