@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #100d0c;
  --char: #181412;
  --char-raised: #221c19;
  --char-high: #2e2622;
  --bone: #f3ebdf;
  --ash: #a89b8a;
  --bronze: #d08b45;
  --bronze-bright: #e6a562;
  --ember: #d9432a;
  --ember-bright: #ff7a59;
  --line: rgba(243, 235, 223, 0.1);
  --line-strong: rgba(243, 235, 223, 0.2);
  --mythic: #e6a562;
  --heroic: #b18cf2;
  --normal: #5fce8b;
  --display: "Fraunces", Georgia, serif;
  --body: "Manrope", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--bone);
  font: 500 1rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code { font: 600 0.9em ui-monospace, Consolas, monospace; color: var(--bronze-bright); }
[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-family: var(--display);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

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

.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--ash); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #d9cfc1; max-width: 42rem; }
.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--bronze-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 60;
  padding: 8px 14px;
  background: var(--bronze);
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid var(--bronze);
  border-radius: 4px;
  background: var(--bronze);
  color: var(--ink);
  font: 800 0.92rem/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms, border-color 150ms, color 150ms;
}
.button:hover { background: var(--bronze-bright); border-color: var(--bronze-bright); }
.button--ghost { background: rgba(16, 13, 12, 0.55); border-color: var(--line-strong); color: var(--bone); }
.button--ghost:hover { background: var(--char-high); border-color: var(--bronze); }
.button--small { min-height: 38px; padding: 7px 14px; font-size: 0.84rem; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--bronze-bright);
  font-weight: 700;
  text-decoration: none;
}
.text-link::after { content: " →"; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link--back { margin: 0 0 1.5rem; }
.text-link--back::after { content: none; }
.text-link--back::before { content: "← "; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 13, 12, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.site-header .brand { flex: none; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav { display: flex; gap: 14px; margin-left: auto; }
.site-nav a, .mobile-nav a {
  color: var(--ash);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--bone); }
.site-nav a[aria-current] { box-shadow: 0 2px 0 var(--bronze); }
.mobile-nav { display: none; }

.site-nav { align-items: center; }
.quick-links { position: relative; }
.quick-links summary {
  color: var(--ash);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.quick-links summary::-webkit-details-marker { display: none; }
.quick-links summary::after { content: " ▾"; font-size: 0.8em; }
.quick-links summary:hover, .quick-links[open] summary, .quick-links summary.is-current { color: var(--bone); }
.quick-links summary.is-current { box-shadow: 0 2px 0 var(--bronze); }
.quick-links__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 18px);
  z-index: 50;
  display: grid;
  width: 280px;
  padding: 8px;
  background: var(--char-raised);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.quick-links__menu a, .mobile-nav__links a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px;
  border-radius: 4px;
  color: var(--bone);
  font-size: 0.9rem;
  line-height: 1.3;
}
.quick-links__menu--left { right: auto; left: 0; }
.quick-links__group {
  margin: 6px 8px 2px;
  color: var(--bronze-bright);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.quick-links__menu .quick-links__all { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0; color: var(--ash); font-size: 0.84rem; }
.quick-links__menu a:hover { background: var(--char-high); }
.site-nav .quick-links__menu a[aria-current] { background: var(--char-high); box-shadow: none; }
.quick-links__menu img, .mobile-nav__links img { flex: none; width: 24px; height: 24px; object-fit: contain; }
.quick-links__menu small, .mobile-nav__links small { display: block; color: var(--ash); font-size: 0.76rem; font-weight: 500; }

.site-nav a, .site-nav summary, .site-header .brand span, .site-header__cta { white-space: nowrap; }

@media (max-width: 1200px) {
  .site-nav { display: none; }
  .site-header__cta { margin-left: auto; }
  .mobile-nav { display: block; }
  .mobile-nav summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 9px;
    cursor: pointer;
    list-style: none;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { display: block; height: 2px; background: var(--bone); }
  .mobile-nav nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: grid;
    padding: 8px var(--gutter) 16px;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav a { padding: 11px 0; font-size: 1rem; }
  .mobile-nav a[aria-current] { color: var(--bronze-bright); }
  .mobile-nav nav { max-height: calc(100vh - 68px); overflow-y: auto; }
  .mobile-nav__heading {
    margin: 12px 0 2px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--ash);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .mobile-nav__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
  .mobile-nav .mobile-nav__links a { padding: 8px 0; color: var(--bone); font-size: 0.92rem; }
}
@media (max-width: 440px) {
  .brand span { display: none; }
  .site-footer .brand span, .admin-bar .brand span { display: inline; }
}

/* Home hero */
.hero { position: relative; display: flex; min-height: min(86vh, 760px); overflow: hidden; isolation: isolate; }
.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 13, 12, 0.96) 0%, rgba(16, 13, 12, 0.72) 48%, rgba(16, 13, 12, 0.18) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 34%);
}
.hero__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-block: 72px 56px; }
.hero__text { max-width: 44rem; }
.hero h1 { font-size: clamp(2.8rem, 8.6vw, 5.75rem); line-height: 0.98; font-weight: 700; }

/* Styled after an in-game debuff tooltip */
.debuff {
  flex: 0 0 300px;
  display: flex;
  gap: 12px;
  padding: 14px;
  background: rgba(10, 8, 12, 0.92);
  border: 1px solid rgba(217, 67, 42, 0.6);
  border-radius: 5px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
  font-size: 0.86rem;
  line-height: 1.45;
}
.debuff img { flex: none; width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--ink); }
.debuff p { margin: 0 0 0.3em; }
.debuff__name { font-family: var(--display); font-size: 1.02rem; font-weight: 700; color: #fff; }
.debuff__type { color: #ff8a73; font-weight: 700; }
.debuff__time { margin-top: 0.5em !important; color: var(--bronze-bright); }

@media (max-width: 900px) {
  .hero__inner { flex-direction: column; align-items: flex-start; padding-block: 56px 36px; }
  .hero::after { background: linear-gradient(0deg, var(--ink) 4%, rgba(16, 13, 12, 0.72) 60%, rgba(16, 13, 12, 0.5) 100%); }
  .debuff { flex: none; width: min(100%, 340px); }
}

/* Stat strip */
.stat-strip { background: var(--char); border-block: 1px solid var(--line); }
.stat-strip__grid { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 16px; margin-block: 0; padding-block: 24px; }
.stat-strip__grid div { display: flex; flex-direction: column; min-width: 0; }
.stat-strip dd { order: 1; margin: 0; font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--bronze-bright); line-height: 1.2; }
.stat-strip dt { order: 2; color: var(--ash); font-size: 0.84rem; overflow-wrap: anywhere; }
@media (max-width: 720px) { .stat-strip__grid { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); } }

/* Sections */
.section { padding-block: clamp(48px, 7vw, 84px); }
.section--band { background: var(--char); border-block: 1px solid var(--line); }
.section--narrow { max-width: 820px; }
.section--narrow-copy { max-width: 760px; }
.section--cta { max-width: 680px; text-align: center; }
.section--cta .button-row { justify-content: center; }
.section__head { margin-bottom: 28px; }
.section__spaced { margin-top: 44px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); }
.split--centre { align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Inner page heroes */
.page-hero {
  position: relative;
  padding-block: clamp(56px, 9vw, 104px) clamp(36px, 5vw, 56px);
  overflow: hidden;
  isolation: isolate;
  background: var(--char);
  border-bottom: 1px solid var(--line);
}
.page-hero__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero:has(.page-hero__image)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(16, 13, 12, 0.95), rgba(16, 13, 12, 0.66));
}

/* News */
.post-list { display: grid; gap: 12px; }
.post-card a {
  display: block;
  padding: 18px 20px;
  background: var(--char);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 150ms, background 150ms;
}
.post-card a:hover { background: var(--char-raised); border-color: var(--bronze); }
.post-card h3 { margin-bottom: 0.35em; }
.post-card p:last-child { margin: 0; font-size: 0.93rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 0.6rem; color: var(--ash); font-size: 0.82rem; }
.tag {
  padding: 2px 9px;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: var(--bronze-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag--recruitment { color: var(--normal); }
.tag--event { color: var(--heroic); }
.tag--community { color: #7ec1ef; }

.article { max-width: 780px; padding-block: 44px 76px; }
.article h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); }
.article__cover { width: 100%; margin-bottom: 28px; border-radius: 6px; }
.prose { font-size: 1.07rem; }
.prose img { margin-block: 1.5em; border-radius: 6px; }
.prose a { color: var(--bronze-bright); }
.prose blockquote { margin: 1.5em 0; padding-left: 18px; border-left: 3px solid var(--bronze); color: var(--ash); }
.prose hr { margin-block: 2em; border: 0; border-top: 1px solid var(--line-strong); }

/* Raid progress */
.raid-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.raid-show { display: flex; flex-direction: column; overflow: hidden; background: var(--char); border: 1px solid var(--line-strong); border-radius: 6px; }
.raid-show__banner { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 104px; padding: 14px 18px; overflow: hidden; background: var(--char-high); }
.raid-show__banner img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.raid-show__banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16, 13, 12, 0.92), rgba(16, 13, 12, 0.35)); }
.raid-show__banner p { margin: 0 0 2px; color: var(--bronze-bright); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.raid-show__banner h3 { margin: 0; font-size: 1.35rem; }
.raid-show__body { display: grid; gap: 18px; padding: 16px 18px 18px; }
.raid-show__difficulties { display: grid; gap: 10px; align-content: start; }
.raid-show__bosses { display: flex; flex-direction: column; gap: 14px; justify-content: space-between; min-width: 0; }
.raid-show--feature .raid-show__banner { min-height: 150px; padding: 20px 24px; }
.raid-show--feature .raid-show__banner h3 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.raid-show--feature .raid-show__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 22px 24px 24px; }
@media (max-width: 860px) { .raid-show--feature .raid-show__body { grid-template-columns: 1fr; padding: 16px 18px 18px; } }

.difficulty { --difficulty: var(--normal); padding: 11px 13px; background: var(--ink); border: 1px solid var(--line); border-radius: 4px; }
.difficulty--heroic { --difficulty: var(--heroic); }
.difficulty--mythic { --difficulty: var(--mythic); }
.difficulty__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 9px; }
.difficulty h4 { margin: 0; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.difficulty__count { padding: 0 7px; border: 1px solid var(--difficulty); border-radius: 3px; color: var(--difficulty); font-size: 0.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.difficulty__week { color: var(--ember-bright); font-size: 0.75rem; font-weight: 800; }
.difficulty__ranks { display: flex; gap: 12px; margin: 0 0 0 auto; }
.difficulty__ranks div { display: flex; gap: 4px; align-items: baseline; }
.difficulty__ranks dt { color: var(--ash); font-size: 0.66rem; font-weight: 700; text-transform: uppercase; }
.difficulty__ranks dd { margin: 0; font-size: 0.86rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.segments { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.segments span { height: 6px; border-radius: 1px; background: var(--char-high); }
.segments .is-killed { background: var(--difficulty); }
.segments .is-fresh { background: var(--ember-bright); }

.bosses { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px 6px; margin: 0; padding: 0; list-style: none; }
.raid-show--single .bosses { grid-template-columns: 96px; }
.boss { --ring: var(--line-strong); text-align: center; }
.boss--normal { --ring: var(--normal); }
.boss--heroic { --ring: var(--heroic); }
.boss--mythic { --ring: var(--mythic); }
.boss__art { position: relative; display: block; width: 64px; height: 64px; margin: 0 auto 6px; background: var(--char-high); border: 2px solid var(--ring); border-radius: 6px; }
.boss__frame { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 3px; }
.boss__art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.4); }
.boss--none .boss__art img { filter: grayscale(1) brightness(0.55); }
.boss__art b { position: absolute; top: -7px; left: -7px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; background: var(--ring); color: var(--ink); font-size: 0.7rem; font-weight: 800; }
.boss__name { display: block; color: var(--ash); font-size: 0.72rem; font-weight: 700; line-height: 1.25; }
.boss:not(.boss--none) .boss__name { color: var(--bone); }
.raid-latest { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ash); font-size: 0.82rem; }
.raid-latest strong { color: var(--bone); }
.raid-latest time { color: var(--bronze-bright); font-weight: 700; }
.raid-latest__tag { padding: 0 6px; border-radius: 3px; background: var(--normal); color: var(--ink); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; }
.raid-latest__tag--heroic { background: var(--heroic); }
.raid-latest__tag--mythic { background: var(--mythic); }

.history-heading { margin-top: 28px; color: var(--bronze-bright); }
.history { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.history th, .history td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.history thead th { color: var(--ash); font-size: 0.78rem; font-weight: 700; }
.history tbody th { font-weight: 600; }
.history td { width: 92px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .history thead { display: none; }
  .history, .history tbody, .history tr { display: block; }
  .history tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .history th, .history td { padding: 0; border: 0; }
  .history tbody th { display: block; margin-bottom: 4px; }
  .history td { display: inline-block; width: auto; margin-right: 14px; font-size: 0.86rem; }
  .history td::before { content: attr(data-label) " "; color: var(--ash); font-weight: 600; }
}

/* Gallery */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 400px);
  gap: 12px;
  padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-color: var(--char-high) transparent;
}
.gallery__item { position: relative; display: block; scroll-snap-align: start; border-radius: 5px; overflow: hidden; background: var(--char-raised); }
.gallery__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 300ms; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item span {
  position: absolute;
  inset: auto 0 0;
  padding: 26px 12px 9px;
  background: linear-gradient(0deg, rgba(16, 13, 12, 0.92), transparent);
  font-size: 0.84rem;
  font-weight: 700;
}
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 6, 5, 0.95);
  color: var(--bone);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 84vh; margin-inline: auto; }
.lightbox figcaption { margin-top: 10px; text-align: center; color: var(--ash); }
.lightbox button { position: absolute; border: 0; background: rgba(16, 13, 12, 0.7); color: var(--bone); font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox__close { top: 12px; right: 12px; width: 46px; height: 46px; }
.lightbox__nav { top: 50%; width: 46px; height: 70px; transform: translateY(-50%); }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }

/* Community links */
.community { display: grid; grid-template-columns: 1fr 350px; gap: 24px; align-items: start; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  background: var(--char-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 150ms;
}
.link-card:hover { border-color: var(--bronze); }
.link-card img { flex: none; width: 32px; height: 32px; object-fit: contain; }
.link-card strong { display: block; line-height: 1.3; }
.link-card small { color: var(--ash); }
.discord-widget { width: 100%; max-width: 350px; height: 460px; border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 900px) { .community { grid-template-columns: 1fr; } }

.bot-teaser { padding: 26px; background: var(--char); border: 1px solid var(--line-strong); border-left: 3px solid var(--bronze); border-radius: 6px; }

/* Achievements */
.achievement-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.achievement { display: flex; gap: 14px; padding: 16px; background: var(--char); border: 1px solid var(--line); border-radius: 6px; }
.achievement > img, .achievement__blank { flex: none; width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--char-high); }
.achievement h3 { margin-bottom: 0.25em; font-size: 1.05rem; }
.achievement p { margin-bottom: 0.45em; font-size: 0.88rem; }
.achievement__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 !important; color: var(--bronze-bright); font-size: 0.78rem !important; font-weight: 700; }
@media (max-width: 400px) { .achievement-grid { grid-template-columns: 1fr; } }

/* Raid night */
.raid-night { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.raid-night > :only-child { grid-column: 1 / -1; }
.next-raid { padding: 24px; background: var(--char); border: 1px solid var(--line-strong); border-radius: 6px; }
.next-raid--live { border-color: var(--ember); }
.next-raid--live .eyebrow { color: var(--ember-bright); }
.next-raid h2 { margin-bottom: 0.2em; }
.next-raid__time { margin: 0; color: var(--bone); font-weight: 700; }
.next-raid__countdown { display: block; margin-top: 14px; color: var(--bronze-bright); font-family: var(--display); font-size: clamp(2rem, 6vw, 3.2rem); font-variant-numeric: tabular-nums; line-height: 1.1; }
.next-raid .muted { margin: 10px 0 0; }
.raid-week { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.raid-week li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 12px 14px; background: var(--char); border: 1px solid var(--line); border-radius: 4px; }
.raid-week span { font-variant-numeric: tabular-nums; }
.raid-week small { flex-basis: 100%; }
.boss-brief { margin-top: 12px; background: var(--char); border: 1px solid var(--line); border-radius: 6px; }
.boss-brief summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 18px; cursor: pointer; }
.boss-brief .boss__art { margin: 0; }
.boss-brief strong { font-size: 1.08rem; }
.boss-brief__down { padding: 1px 8px; border: 1px solid var(--normal); border-radius: 3px; color: var(--normal); font-size: 0.74rem; font-weight: 800; }
.boss-brief > .prose, .boss-brief > .muted { margin: 0; padding: 0 18px 18px; }
@media (max-width: 760px) { .raid-night { grid-template-columns: 1fr; } }

/* Guild roster */
.character-link { color: var(--class, var(--bone)); font-weight: 700; text-decoration: none; }
.character-link:hover { text-decoration: underline; }
.role-leader-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.role-leaders { padding: 18px; background: var(--char); border: 1px solid var(--line); border-radius: 6px; }
.role-leaders h3 { margin-bottom: 0.6em; color: var(--bronze-bright); font-family: var(--body); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.role-leaders ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.class-icon { flex: none; width: 24px; height: 24px; border-radius: 5px; }
.class-icon--blank { display: inline-block; background: var(--char-high); }
.character-cell { display: flex; align-items: center; gap: 10px; }
.character-cell .class-icon { width: 28px; height: 28px; }
.role-leaders li { display: flex; align-items: center; gap: 10px; }
.role-leaders li .character-link { flex: 1; min-width: 0; }
.role-leaders li span { font-weight: 800; font-variant-numeric: tabular-nums; }
.key-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.key-list li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--char-raised); border: 1px solid var(--line); border-radius: 4px; }
.key-list strong { flex: none; min-width: 3.4em; color: var(--bronze-bright); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.key-list span { min-width: 0; }
.key-list small { display: block; color: var(--ash); }
.roster-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.roster-filters[hidden] { display: none; }
.character-table { width: 100%; border-collapse: collapse; }
.character-table th, .character-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.character-table thead th { color: var(--ash); font-size: 0.78rem; }
.character-table th:nth-child(2) { font-weight: 600; text-align: left; }
.character-table small { display: block; color: var(--ash); font-weight: 500; }
.character-table__rank { width: 3em; color: var(--ash); }
@media (max-width: 560px) {
  .character-table__gear { display: none; }
  .character-table th, .character-table td { padding-inline: 6px; }
}

/* Raid team */
.raid-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.raid-facts div { padding: 18px; background: var(--char); border: 1px solid var(--line); border-radius: 6px; }
.raid-facts h2 { margin-bottom: 0.3em; font-family: var(--body); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bronze-bright); }
.raid-facts p { margin: 0; }
.count { color: var(--ash); font-size: 0.7em; }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.roster a { --class: var(--bone); display: block; padding: 10px 12px; background: var(--char); border: 1px solid var(--line); border-left: 3px solid var(--class); border-radius: 4px; text-decoration: none; }
.roster a:hover { background: var(--char-raised); }
.roster strong { display: block; color: var(--class); }
.roster small { color: var(--ash); }
.class-death-knight { --class: #e8485f !important; }
.class-demon-hunter { --class: #c15be8 !important; }
.class-druid { --class: #ff8a2b !important; }
.class-evoker { --class: #3fbfa0 !important; }
.class-hunter { --class: #abd473 !important; }
.class-mage { --class: #5fc8ea !important; }
.class-monk { --class: #00ff96 !important; }
.class-paladin { --class: #f58cba !important; }
.class-priest { --class: #ffffff !important; }
.class-rogue { --class: #fff569 !important; }
.class-shaman { --class: #4f9cf0 !important; }
.class-warlock { --class: #a48cf0 !important; }
.class-warrior { --class: #c79c6e !important; }

/* SummonStone */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; }
.feature { padding: 20px; background: var(--char); border: 1px solid var(--line); border-radius: 6px; }
.section--band .feature { background: var(--char-raised); }
.feature h2, .feature h3 { margin-bottom: 0.4em; font-size: 1.15rem; color: var(--bronze-bright); }
.feature p { margin: 0; font-size: 0.94rem; }
.steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-left: 44px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bronze);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.86rem;
}
.command-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.search input { width: min(100%, 300px); }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--ink);
  color: var(--bone);
  font: 500 1rem/1.5 var(--body);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--bronze); outline-offset: 0; }
.command-group { margin-top: 32px; }
.command-group h3 { color: var(--bronze-bright); }
.commands { margin: 0; border-top: 1px solid var(--line); }
.commands > div { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: 4px 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.commands dt { min-width: 0; overflow-wrap: anywhere; }
.commands dd { margin: 0; color: var(--ash); }
@media (max-width: 640px) { .commands > div { grid-template-columns: 1fr; } }

/* Guilds */
.guild-game { margin-top: 36px; }
.guild-game:first-child { margin-top: 0; }
.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.guild-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--char);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 150ms, background 150ms;
}
.guild-card:hover { background: var(--char-raised); border-color: var(--bronze); }
.guild-card img { flex: none; width: 64px; height: 64px; object-fit: contain; }
.guild-card strong { display: block; font-family: var(--display); font-size: 1.2rem; line-height: 1.2; }
.guild-card small { color: var(--ash); }
.guild-card .post-meta { margin: 8px 0 0; }
.guild-page { display: grid; grid-template-columns: 120px minmax(0, 720px); gap: 32px; }
.guild-page__logo { width: 120px; height: 120px; object-fit: contain; }
.guild-page h2 { margin-top: 1.4em; }
.guild-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.guild-links a {
  display: inline-block;
  padding: 8px 14px;
  background: var(--char);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.guild-links a:hover { border-color: var(--bronze); }
.tag--status-recruiting { color: var(--normal); }
.tag--status-coming-soon { color: var(--ash); }
@media (max-width: 640px) { .guild-page { grid-template-columns: 1fr; gap: 16px; } }

/* Notices */
.notice { padding: 13px 16px; background: var(--char); border: 1px solid var(--line-strong); border-left: 3px solid var(--bronze); border-radius: 4px; }

.not-found { max-width: 680px; padding-block: clamp(70px, 14vw, 150px); text-align: center; }
.not-found .lead { margin-inline: auto; margin-bottom: 1.6em; }
.not-found h1 { color: var(--ember); }

/* Footer */
.site-footer { background: var(--char); border-top: 1px solid var(--line); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-block: 44px 26px; }
.site-footer h2 { margin-bottom: 0.7em; font-family: var(--body); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); }
.site-footer nav a { display: block; padding: 3px 0; color: var(--bone); font-size: 0.92rem; text-decoration: none; }
.site-footer nav a:hover { color: var(--bronze-bright); }
.site-footer .muted { margin-top: 10px; font-size: 0.9rem; }
.site-footer__legal { padding-block: 16px 22px; border-top: 1px solid var(--line); color: var(--ash); font-size: 0.78rem; }
@media (max-width: 680px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__grid > div { grid-column: 1 / -1; } }

/* Admin */
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px var(--gutter); background: var(--char); border-bottom: 1px solid var(--line); }
.admin-bar nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 0.9rem; }
.admin-bar nav a { color: var(--ash); text-decoration: none; }
.admin-main { width: min(100%, 880px); margin-inline: auto; padding: 32px var(--gutter) 64px; }
.admin h1 { font-size: 2rem; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.admin-head h1, .admin-head .text-link { margin: 0; }
.admin-card { display: grid; gap: 16px; padding: 22px; background: var(--char); border: 1px solid var(--line); border-radius: 6px; }
.admin-card > *:last-child { margin-bottom: 0; }
.admin-login { max-width: 400px; margin: 8vh auto 0; }
.admin-card label { display: grid; gap: 5px; color: var(--ash); font-size: 0.86rem; font-weight: 700; }
.admin-card .button { justify-self: start; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table thead th { color: var(--ash); font-size: 0.78rem; }
.admin-table tbody th { font-weight: 600; }
.admin-table a { color: var(--bone); }
.status { padding: 2px 8px; border-radius: 3px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.status--published { background: rgba(95, 206, 139, 0.14); color: var(--normal); }
.status--draft { background: var(--char-high); color: var(--ash); }
.editor__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.editor__help { margin: -8px 0 0; font-size: 0.83rem; }
.editor__upload { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.editor__upload label { color: var(--bone); cursor: pointer; }
.editor textarea { min-height: 300px; resize: vertical; }
.editor__delete { margin-top: 18px; }
.editor h2 { margin: 8px 0 0; font-size: 1.3rem; }
.night-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.night-row legend { margin-bottom: 4px; color: var(--bronze-bright); font-size: 0.78rem; font-weight: 800; }
.boss-editor { display: grid; gap: 6px; }
.boss-editor textarea, .editor textarea[name="briefing"] { min-height: 96px; }
.admin-card .boss-editor__target { display: flex; align-items: center; gap: 8px; color: var(--bone); font-size: 0.95rem; }
.boss-editor__target input { width: auto; }
@media (max-width: 640px) { .night-row { grid-template-columns: 1fr 1fr; } }
.form-error { padding: 10px 14px; border: 1px solid var(--ember); border-radius: 4px; color: #ffb3a6; }
.form-saved { padding: 10px 14px; border: 1px solid var(--normal); border-radius: 4px; color: var(--normal); }
.admin-bar nav a:hover { color: var(--bone); }
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.admin-shot { display: grid; gap: 10px; padding: 10px; background: var(--char); border: 1px solid var(--line); border-radius: 6px; }
.admin-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.admin-shot form { display: flex; align-items: center; gap: 8px; }
.admin-shot input:not([type="hidden"]) { min-width: 0; padding: 7px 9px; font-size: 0.9rem; }
.admin-shot__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 0.82rem; }
.admin-shot__actions form { gap: 12px; }
.order-form { display: flex; gap: 12px; font-size: 0.86rem; }
.logo-preview { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--ink); }
.link-button:disabled { opacity: 0.4; cursor: default; text-decoration: none; }
.link-button { padding: 0; border: 0; background: none; color: var(--ash); font: inherit; text-decoration: underline; cursor: pointer; }
.link-button--danger { color: #ff9a88; }

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