@font-face {
  font-family: "metal";
  src: url("../fonts/metal.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #1b1d1f;
  --panel: #222528;
  --panel-2: #2a2e33;
  --border: #34383d;
  --text: #e6e6e6;
  --muted: #b7bcc2;
  --accent: #7fd3ff;
  --link: #9ddcff;
  --link-hover: #c8ebff;
  --button: #2a2e33;
  --button-hover: #32373d;
  --shadow: rgba(0, 0, 0, 0.30);
}

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

html,
body {
  min-height: 100%;
  background: var(--bg) !important;
  color: var(--text) !important;
}

body {
  margin: 0;
  font: 16px/1.6 Georgia, "Times New Roman", Times, serif;
  text-rendering: optimizeLegibility;
}

a,
a:visited {
  color: var(--link);
}

a:hover,
a:focus {
  color: var(--link-hover);
  text-decoration: underline;
}

body.frostgard-dark {
  background: var(--bg) !important;
}

/* Header / footer shell */
body.frostgard-dark #header,
body.frostgard-dark .header,
body.frostgard-dark #footer,
body.frostgard-dark .footer,
body.frostgard-dark .hero,
body.frostgard-dark .breadcrumbs,
body.frostgard-dark .page-toc,
body.frostgard-dark .modular-hero {
  background: transparent !important;
  box-shadow: none !important;
}

body.frostgard-dark #header,
body.frostgard-dark .header {
  border-bottom: 0 !important;
}

body.frostgard-dark #footer,
body.frostgard-dark .footer {
  border-top: 0 !important;
  color: var(--muted) !important;
  margin-top: 1.5rem;
  padding-top: 0;
}

/* General body wrappers */
body.frostgard-dark #body,
body.frostgard-dark .body-wrapper,
body.frostgard-dark #body-wrapper,
body.frostgard-dark .default-content,
body.frostgard-dark .main-content,
body.frostgard-dark .modular-row {
  background: transparent !important;
}

/* Main centered card */
body.frostgard-dark .container,
body.frostgard-dark #body > .container,
body.frostgard-dark .default-content .container,
body.frostgard-dark .content-wrapper,
body.frostgard-dark .page,
body.frostgard-dark .blog-listing,
body.frostgard-dark .item,
body.frostgard-dark .content-item {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background: var(--panel) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 8px 24px var(--shadow) !important;
  padding: 28px 24px 34px !important;
  margin-top: 40px !important;
  margin-bottom: 40px !important;
}

/* Make actual readable content narrower so it stops hugging the edges */
body.frostgard-dark .page-content,
body.frostgard-dark .page-content > .e-content,
body.frostgard-dark .e-content,
body.frostgard-dark article,
body.frostgard-dark .blog-content,
body.frostgard-dark .item-content,
body.frostgard-dark .list-item .content,
body.frostgard-dark .listing-item .content,
body.frostgard-dark .modular-text,
body.frostgard-dark .default-content {
  max-width: 62ch;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Completely remove logo / branding area */
body.frostgard-dark .navbar-section.logo,
body.frostgard-dark .logo,
body.frostgard-dark .logo-text,
body.frostgard-dark .site-title,
body.frostgard-dark .brand,
body.frostgard-dark .navbar-brand,
body.frostgard-dark .site-name,
body.frostgard-dark #header .logo,
body.frostgard-dark .mobile-logo {
  display: none !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Header/nav cleanup after logo removal */
body.frostgard-dark #header .navbar,
body.frostgard-dark .navbar {
  align-items: center;
}

body.frostgard-dark #header .navbar-section:not(.logo) {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Nav */
body.frostgard-dark .navigation,
body.frostgard-dark #header .navigation,
body.frostgard-dark .menu,
body.frostgard-dark .dropmenu {
  text-align: center;
  margin-top: 0.5rem;
}

body.frostgard-dark #header a,
body.frostgard-dark .navigation a,
body.frostgard-dark .menu a,
body.frostgard-dark .dropmenu ul li a {
  color: var(--muted) !important;
  background: transparent !important;
  border: 0 !important;
}

body.frostgard-dark #header a:hover,
body.frostgard-dark .navigation a:hover,
body.frostgard-dark .menu a:hover,
body.frostgard-dark .dropmenu ul li a:hover {
  color: var(--accent) !important;
  background: transparent !important;
}

/* Typography */
body.frostgard-dark h1,
body.frostgard-dark h2,
body.frostgard-dark h3,
body.frostgard-dark h4,
body.frostgard-dark h5,
body.frostgard-dark h6 {
  color: var(--text) !important;
  font-weight: 700;
  line-height: 1.25;
}

body.frostgard-dark h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-family: metal, Georgia, serif;
  letter-spacing: 0.02em;
  margin: 0 0 0.35em 0;
  text-align: center;
}

body.frostgard-dark h2 {
  font-size: 1.45rem;
  margin-top: 2rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

body.frostgard-dark h3,
body.frostgard-dark h4,
body.frostgard-dark h5,
body.frostgard-dark h6 {
  text-align: left;
}

body.frostgard-dark p,
body.frostgard-dark li,
body.frostgard-dark dd,
body.frostgard-dark dt,
body.frostgard-dark td,
body.frostgard-dark th,
body.frostgard-dark label,
body.frostgard-dark .block-content {
  color: var(--text) !important;
}

body.frostgard-dark .meta,
body.frostgard-dark .taxonomy,
body.frostgard-dark .summary,
body.frostgard-dark .note,
body.frostgard-dark .post-meta,
body.frostgard-dark .blog-date,
body.frostgard-dark .author,
body.frostgard-dark .subtitle,
body.frostgard-dark small {
  color: var(--muted) !important;
}

/* Keep intro/title centered, but normal body text left-aligned */
body.frostgard-dark .page-header,
body.frostgard-dark .page-title,
body.frostgard-dark .page-summary,
body.frostgard-dark .post-meta,
body.frostgard-dark .blog-header {
  text-align: center;
}

body.frostgard-dark .page-summary,
body.frostgard-dark .summary,
body.frostgard-dark .subtitle {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted) !important;
  text-align: center;
}

/* Blog listing items */
body.frostgard-dark .list-item,
body.frostgard-dark .listing-item {
  max-width: 62ch;
  margin: 0 auto 2rem auto !important;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

body.frostgard-dark .list-item h2,
body.frostgard-dark .list-item .title,
body.frostgard-dark .listing-item h2,
body.frostgard-dark .listing-item .title {
  text-align: center;
}

body.frostgard-dark .list-item p,
body.frostgard-dark .listing-item p,
body.frostgard-dark .list-item .summary,
body.frostgard-dark .listing-item .summary {
  text-align: left;
}

/* Buttons */
body.frostgard-dark .button,
body.frostgard-dark .btn,
body.frostgard-dark a.button,
body.frostgard-dark input[type="submit"],
body.frostgard-dark input[type="button"],
body.frostgard-dark button,
body.frostgard-dark .pagination a,
body.frostgard-dark .pagination span {
  display: inline-block;
  background: var(--button) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  padding: 11px 18px !important;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, border-color 0.15s ease;
}

body.frostgard-dark .button:hover,
body.frostgard-dark .btn:hover,
body.frostgard-dark a.button:hover,
body.frostgard-dark input[type="submit"]:hover,
body.frostgard-dark input[type="button"]:hover,
body.frostgard-dark button:hover,
body.frostgard-dark .pagination a:hover {
  background: var(--button-hover) !important;
  border-color: #4a5057 !important;
  text-decoration: none !important;
}

/* Code */
body.frostgard-dark code,
body.frostgard-dark kbd,
body.frostgard-dark tt {
  background: #181a1c;
  color: #d7e9f7;
  border: 1px solid var(--border);
  padding: 0.1em 0.35em;
}

body.frostgard-dark pre code {
  background: transparent;
  border: 0;
  padding: 0;
}

body.frostgard-dark pre {
  padding: 1rem;
  overflow-x: auto;
  background: var(--panel) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 8px 24px var(--shadow) !important;
}

/* Tables */
body.frostgard-dark table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 8px 24px var(--shadow) !important;
}

body.frostgard-dark th,
body.frostgard-dark td {
  border: 1px solid var(--border);
  padding: 0.7rem;
}

body.frostgard-dark th {
  background: var(--panel-2);
}

/* Forms */
body.frostgard-dark input,
body.frostgard-dark textarea,
body.frostgard-dark select {
  background: #181a1c !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Blockquotes */
body.frostgard-dark blockquote {
  border-left: 4px solid var(--accent);
  margin: 1.5rem 0;
  padding: 0.5rem 1rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

/* Images */
body.frostgard-dark img {
  max-width: 100%;
  height: auto;
}

body.frostgard-dark .page img,
body.frostgard-dark .content img,
body.frostgard-dark .list-item img {
  border: 1px solid var(--border);
  box-shadow: none;
}

@media (max-width: 768px) {
  body.frostgard-dark {
    font-size: 17px;
  }

  body.frostgard-dark h1 {
    font-size: 1.9rem !important;
  }

  body.frostgard-dark .container,
  body.frostgard-dark #body > .container,
  body.frostgard-dark .default-content .container,
  body.frostgard-dark .content-wrapper,
  body.frostgard-dark .page,
  body.frostgard-dark .blog-listing,
  body.frostgard-dark .item,
  body.frostgard-dark .content-item {
    padding: 22px 16px 28px !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
  }
}
