/* Aethernal2 — site chrome: design tokens, fonts, page background, header and footer.
   Self-contained so the forum theme can reuse it together with the header/footer partials
   (src/views/partials). Every class here is prefixed "aet-". */

/* ---- fonts (self-hosted, SIL OFL 1.1) ---- */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/cinzel-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/cinzel-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-greek-400-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-greek-600-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/inter-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/inter-greek-700-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }

/* ---- tokens: night sky blues/purples, lantern red + amber accents, rune violet ---- */
:root {
  color-scheme: dark;
  --aet-bg: #0b0d1a;
  --aet-bg-2: #11132a;
  --aet-surface: rgba(17, 19, 40, 0.80);
  --aet-surface-strong: rgba(20, 22, 46, 0.94);
  --aet-surface-hover: rgba(34, 36, 72, 0.85);
  --aet-border: rgba(170, 160, 240, 0.16);
  --aet-border-strong: rgba(170, 160, 240, 0.32);
  --aet-text: #eceaf6;
  --aet-muted: #b3b1cf;
  --aet-faint: #8d8bad;
  --aet-red: #e5484d;
  --aet-red-deep: #b9313a;
  --aet-amber: #f5a83a;
  --aet-amber-soft: #ffc978;
  --aet-rune: #a78bfa;
  --aet-rune-soft: #c9b8ff;
  --aet-ok: #4ade80;
  --aet-bad: #f87171;
  --aet-warn: #fbbf24;
  --aet-focus: #c9b8ff;
  --aet-radius: 14px;
  --aet-radius-sm: 9px;
  --aet-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.75);
  --aet-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --aet-font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --aet-header-h: 64px;
  --aet-max: 1180px;
  --aet-gutter: 16px;
}
@media (min-width: 640px) { :root { --aet-gutter: 24px; } }

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--aet-bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.aet-body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--aet-text); font-family: var(--aet-font); font-size: 16px; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
/* Page background art (fixed layer + readability overlay); the forum reuses the same image. */
body.aet-body::before {
  content: ""; position: fixed; inset: 0 0 -14vh 0; z-index: -2;
  /* parallax: the art drifts up slower than the page (--aet-par 0..1 set by the page script) */
  transform: translate3d(0, calc(var(--aet-par, 0) * -12vh), 0); will-change: transform;
  background: var(--aet-bg) url("../img/bg-1920.webp") center / cover no-repeat;
}
/* Sharper art for big and high-density screens (AI-upscaled 2026-11-02): 1920 by default, 2560 and 3840 above. */
@media (min-width: 1500px), (min-resolution: 1.5dppx) { body.aet-body::before { background-image: url("../img/bg-2560.webp"); } }
@media (min-width: 2200px), (min-width: 1300px) and (min-resolution: 2dppx) { body.aet-body::before { background-image: url("../img/bg-3840.webp"); } }
body.aet-body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(11, 13, 26, 0.55) 0%, rgba(11, 13, 26, 0.86) 60%, rgba(11, 13, 26, 0.96) 100%),
    linear-gradient(180deg, rgba(11, 13, 26, 0.35) 0%, rgba(11, 13, 26, 0.9) 100%);
}
a { color: var(--aet-rune-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--aet-amber-soft); }
:focus-visible { outline: 2px solid var(--aet-focus); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }

.aet-skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 14px; border-radius: var(--aet-radius-sm);
  background: var(--aet-surface-strong); color: var(--aet-text); transition: top .15s; }
.aet-skip:focus { top: 12px; }

/* ---- header ---- */
.aet-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 24, 0.78);
  border-bottom: 1px solid var(--aet-border);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
}
.aet-header__inner {
  max-width: var(--aet-max); margin: 0 auto; padding: 0 var(--aet-gutter);
  height: var(--aet-header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.aet-logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.aet-logo__img { display: block; height: 52px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)) brightness(1.3) saturate(1.1); transform-origin: left center; }
.aet-logo:hover .aet-logo__img, .aet-logo:focus-visible .aet-logo__img { transform: scale(1.06); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)) brightness(1.5) saturate(1.15); }
@media (prefers-reduced-motion: no-preference) { .aet-logo__img { transition: transform .25s ease, filter .25s ease; } }
@media (max-width: 420px) { .aet-logo__img { height: 44px; } }
.aet-logo__text {
  font-family: var(--aet-font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: .04em; line-height: 1;
  color: var(--aet-amber-soft);
  background: linear-gradient(180deg, #ffe2b0 0%, var(--aet-amber) 55%, var(--aet-red) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 8px rgba(229, 72, 77, 0.35));
}
.aet-logo__text--small { font-size: 1.25rem; }
.aet-logo__num { font-size: .8em; margin-left: .04em; }

.aet-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.aet-nav__link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--aet-radius-sm);
  color: var(--aet-muted); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
}
.aet-nav__link:hover { color: var(--aet-text); background: rgba(167, 139, 250, 0.10); }
.aet-nav__link[aria-current="page"] { color: var(--aet-text); box-shadow: inset 0 -2px 0 var(--aet-amber); border-radius: 0; }
.aet-nav__cta {
  margin-left: 6px; color: #fff; padding: 0 16px;
  background: linear-gradient(135deg, var(--aet-red-deep), #c9512e);
  box-shadow: 0 6px 20px -8px rgba(229, 72, 77, 0.7);
}
.aet-nav__cta:hover { color: #fff; background: linear-gradient(135deg, #c93a42, #d65e33); }
.aet-nav__cta[aria-current="page"] { box-shadow: 0 0 0 2px var(--aet-amber-soft); border-radius: var(--aet-radius-sm); }

.aet-menu { display: none; position: static; }
.aet-menu__button {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--aet-border-strong); border-radius: var(--aet-radius-sm); color: var(--aet-text); font-weight: 600;
}
.aet-menu__button::-webkit-details-marker { display: none; }
.aet-menu__icon, .aet-menu__icon::before, .aet-menu__icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.aet-menu__icon::before, .aet-menu__icon::after { content: ""; position: absolute; left: 0; }
.aet-menu__icon::before { top: -6px; }
.aet-menu__icon::after { top: 6px; }
.aet-menu[open] .aet-menu__icon { background: transparent; }
.aet-menu[open] .aet-menu__icon::before { top: 0; transform: rotate(45deg); }
.aet-menu[open] .aet-menu__icon::after { top: 0; transform: rotate(-45deg); }
.aet-nav--drawer {
  position: absolute; left: 0; right: 0; top: var(--aet-header-h);
  background: #11132a; border-bottom: 1px solid var(--aet-border);
  padding: 8px var(--aet-gutter) 16px; box-shadow: var(--aet-shadow);
}
.aet-nav--drawer .aet-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
.aet-nav--drawer .aet-nav__link { width: 100%; min-height: 48px; font-size: 1.05rem; }
.aet-nav--drawer .aet-nav__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--aet-amber); }
.aet-nav--drawer .aet-nav__cta { margin: 8px 0 0; justify-content: center; }

@media (max-width: 860px) {
  .aet-nav--wide { display: none; }
  .aet-menu { display: block; }
}

/* ---- footer ---- */
.aet-footer { margin-top: auto; border-top: 1px solid var(--aet-border); background: rgba(8, 9, 20, 0.88); }
.aet-footer__inner {
  max-width: var(--aet-max); margin: 0 auto; padding: 28px var(--aet-gutter) 32px;
  display: grid; gap: 22px; grid-template-columns: 1fr; color: var(--aet-faint); font-size: .9rem;
}
/* legal links + fan-project note on the left, logo + copyright on the right */
.aet-footer__fan { margin: 10px 0 0; max-width: 46ch; }
.aet-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.aet-footer__links a { color: var(--aet-muted); text-decoration: none; display: inline-block; padding: 6px 0; }
.aet-footer__links a:hover { color: var(--aet-amber-soft); text-decoration: underline; }
.aet-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.aet-footer__logo { display: inline-block; line-height: 0; }
.aet-footer__logo img { display: block; height: 48px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)) brightness(1.3) saturate(1.1); }
.aet-footer__logo:hover img, .aet-footer__logo:focus-visible img { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)) brightness(1.5) saturate(1.15); }
.aet-footer__copy { margin: 0; }
@media (min-width: 860px) {
  .aet-footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .aet-footer__brand { align-items: flex-end; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
