:root {
  color-scheme: dark;
  --bg: #090d0e;
  --bg-2: #101718;
  --surface: #151d1e;
  --surface-2: #1b2525;
  --text: #edf4ef;
  --muted: #b7c5bd;
  --faint: #84938b;
  --ice: #b9f2ff;
  --teal: #4dd4c6;
  --brass: #d4a95c;
  --blood: #b34a4a;
  --line: rgba(185, 242, 255, 0.18);
  --line-strong: rgba(212, 169, 92, 0.36);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  --max: 1180px;
  --narrow: 840px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(77, 212, 198, 0.12), transparent 32rem),
    linear-gradient(180deg, var(--bg), #0d1210 42rem, var(--bg));
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: var(--ice);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brass);
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  color: #fbfffb;
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.35rem, 7vw, 5.4rem);
  line-height: 0.98;
}

h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

h3 {
  margin-top: 1.55rem;
  font-size: 1.18rem;
}

p,
ul,
ol,
dl {
  margin: 1rem 0 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.45rem;
}

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.08rem 0.32rem;
  background: rgba(255, 255, 255, 0.05);
  color: #f4dfaa;
  font-size: 0.95em;
}

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

.narrow {
  width: min(100% - 2rem, var(--narrow));
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  background: var(--brass);
  color: #15110a;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(185, 242, 255, 0.13);
  background: rgba(9, 13, 14, 0.88);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 4.6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand span {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.5rem 0.72rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero,
.article-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(77, 212, 198, 0.12), transparent 42%),
    linear-gradient(180deg, #101819, var(--bg));
}

.frost-hero::before,
.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    linear-gradient(135deg, transparent 47%, rgba(185, 242, 255, 0.2) 48%, transparent 50%),
    linear-gradient(45deg, transparent 48%, rgba(212, 169, 92, 0.12) 49%, transparent 51%);
  background-size: 72px 72px, 118px 118px;
  mask-image: linear-gradient(90deg, black, transparent 80%);
}

.hero-grid {
  position: relative;
  display: grid;
  min-height: 78vh;
  align-items: center;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) 360px;
  padding: 4.5rem 0 3rem;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--brass);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.deck {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0.72rem 1rem;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--ice);
  color: #092124;
}

.button.ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.rune-panel {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at center, rgba(179, 74, 74, 0.16), transparent 18rem);
  box-shadow: var(--shadow);
}

.rune-panel p {
  margin: 0;
  color: var(--faint);
  font-size: 0.95rem;
}

.rune-ring {
  position: relative;
  width: min(74vw, 260px);
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.rune-ring::before,
.rune-ring::after {
  content: "";
  position: absolute;
  inset: 17%;
  border: 2px solid rgba(185, 242, 255, 0.45);
  transform: rotate(45deg);
}

.rune-ring::after {
  inset: 31%;
  border-color: rgba(212, 169, 92, 0.5);
  transform: rotate(0deg);
}

.rune-ring span {
  position: absolute;
  width: 2px;
  height: 52%;
  top: 24%;
  left: 50%;
  background: linear-gradient(var(--ice), transparent);
  transform-origin: bottom;
}

.rune-ring span:nth-child(1) { transform: rotate(0deg); }
.rune-ring span:nth-child(2) { transform: rotate(90deg); }
.rune-ring span:nth-child(3) { transform: rotate(180deg); }
.rune-ring span:nth-child(4) { transform: rotate(270deg); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--faint);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.section-band,
.content-band {
  padding: 4rem 0;
}

.section-band {
  background: var(--bg);
}

.content-band {
  border-top: 1px solid rgba(185, 242, 255, 0.1);
  background: var(--bg-2);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.guide-grid,
.related-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card,
.related-grid a {
  display: block;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem;
  background: linear-gradient(180deg, var(--surface), rgba(21, 29, 30, 0.68));
  color: var(--text);
  text-decoration: none;
}

.guide-card:hover,
.related-grid a:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.guide-card span,
.related-grid span {
  color: var(--brass);
  font-size: 0.86rem;
  font-weight: 800;
}

.guide-card h3 {
  margin-top: 0.45rem;
}

.guide-card p,
.related-grid p {
  color: var(--muted);
}

.article-hero {
  padding: 4.2rem 0 3rem;
}

.article-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.15rem, 6vw, 4.6rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
  color: var(--faint);
  font-size: 0.9rem;
}

.article-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
}

.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, var(--narrow));
  gap: 3rem;
  align-items: start;
  padding: 3rem 0 5rem;
}

.toc {
  position: sticky;
  top: 6rem;
  border-left: 2px solid var(--line);
  padding-left: 1rem;
}

.toc h2 {
  margin: 0 0 0.7rem;
  color: var(--brass);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 0.32rem 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.article-content {
  min-width: 0;
}

.article-content section:first-child h2 {
  margin-top: 0;
}

.answer-box {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 1.2rem;
  background:
    linear-gradient(135deg, rgba(212, 169, 92, 0.12), transparent 60%),
    var(--surface);
}

.answer-box h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.fact-list {
  display: grid;
  gap: 0.75rem;
}

.fact-list div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.fact-list dt {
  color: var(--brass);
  font-weight: 800;
}

.fact-list dd {
  margin: 0;
  color: var(--muted);
}

.faq h3 {
  color: var(--ice);
}

.related-guides {
  margin-top: 3rem;
}

.related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
  background: #070a0b;
  color: var(--muted);
}

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

.site-footer h2 {
  margin-top: 0;
  color: var(--text);
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

@media (max-width: 880px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.85rem 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 3.2rem;
  }

  .rune-panel {
    min-height: 280px;
  }

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

  .article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .toc {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1rem 0 0;
  }

  .toc a {
    display: inline-block;
    margin-right: 0.85rem;
  }
}

@media (max-width: 560px) {
  .shell,
  .narrow {
    width: min(100% - 1.1rem, var(--max));
  }

  .site-nav a {
    padding: 0.45rem 0.55rem;
  }

  h1 {
    max-width: 11ch;
  }

  .button {
    width: 100%;
  }

  .fact-list div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .article-hero,
  .section-band,
  .content-band {
    padding-block: 2.7rem;
  }
}
