@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --background: #110f17;
  --panel: #1a1722;
  --panel-light: #22202c;
  --line: #302a3d;
  --text: #f6f2fd;
  --muted: #b9b0c8;
  --accent: #c4a5ff;
  --primary: #b995ff;
  --display: "Unbounded", "Arial Black", Arial, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--background); color: var(--text); font: 500 1rem/1.65 var(--body); }
button, input { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, dl, dd { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.18; }
h2 { font-size: clamp(1.42rem, 3vw, 2.35rem); letter-spacing: -.055em; }
h3 { line-height: 1.3; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: #ceb9ff; color: #170d25; }

.container { width: min(100% - 6rem, 74rem); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 4; inset: .75rem auto auto .75rem; padding: .6rem 1rem; background: var(--panel-light); }

.site-header { position: relative; z-index: 1; background: #14121b; border-bottom: 1px solid #302940; }
.header-inner {
  min-height: 4.5rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .85rem; width: fit-content; color: var(--text);
  font: 700 .91rem/1 var(--display); letter-spacing: .04em; text-decoration: none;
}
.crest {
  display: inline-grid; position: relative; flex: 0 0 1.8rem; width: 1.8rem; height: 1.8rem;
  margin: .18rem; place-items: center; background: var(--accent);
  clip-path: polygon(50% 0%, 93% 22%, 93% 67%, 50% 100%, 7% 67%, 7% 22%);
}
.crest::before {
  content: ""; position: absolute; inset: 2px; background: #20172d; clip-path: inherit;
}
.crest::after {
  content: ""; width: .95rem; height: 1.12rem; background: var(--accent);
  clip-path: polygon(50% 0, 100% 62%, 75% 62%, 75% 100%, 56% 100%, 56% 46%, 50% 37%, 44% 46%, 44% 100%, 25% 100%, 25% 62%, 0 62%);
}
.main-nav { display: flex; align-items: stretch; gap: 1.9rem; min-height: 4.5rem; }
.main-nav a {
  display: grid; place-items: center; position: relative; padding: .25rem .15rem;
  color: var(--muted); font-size: .91rem; text-decoration: none; white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current] { color: var(--text); }
.main-nav a[aria-current]::after {
  position: absolute; inset: auto 0 -1px; height: 2px; content: ""; background: var(--accent);
}
.game-link {
  justify-self: end; padding: .35rem .75rem; border: 1px solid #49385f; border-radius: .3rem; color: var(--accent);
  font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; white-space: nowrap;
}
.game-link:hover { background-color: #302440; color: var(--text); }

.hero {
  min-height: 35rem; display: grid; align-items: center; background-color: #211a2d;
  background-image: linear-gradient(0deg, var(--background) 0%, #110f1740 38%, transparent 75%),
    linear-gradient(90deg, #110f17e8 0%, #15111dd1 23%, #15111d48 62%, transparent 88%), url("hero.jpg");
  background-position: center, center, center 20%; background-size: cover;
}
.hero-inner { padding: 4.5rem 0 6.5rem; }
.eyebrow {
  display: flex; gap: .72rem; align-items: center; color: var(--accent); margin-bottom: 1.25rem;
  font-size: .77rem; font-weight: 800; letter-spacing: .145em; text-transform: uppercase;
}
.tiny-diamond { flex: 0 0 .45rem; width: .45rem; height: .45rem; background: currentColor; transform: rotate(45deg); }
.hero h1 { font-size: clamp(2.2rem, 7.5vw, 6.9rem); font-weight: 800; letter-spacing: -.075em; }
.hero-lead { max-width: 30rem; margin-top: 1.45rem; color: #ddd3e9; font-size: clamp(1.04rem, 1.6vw, 1.2rem); }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.button {
  display: inline-flex; gap: .4rem; align-items: center; justify-content: center; width: fit-content;
  min-height: 3rem; padding: .65rem 1.13rem; border: 1px solid transparent; border-radius: .36rem;
  font-size: .94rem; font-weight: 800; line-height: 1.35; text-decoration: none; cursor: pointer;
}
.button-primary { background: var(--primary); color: #181124; }
.button-primary:hover { background: #d2bbff; }
.button-secondary { border-color: #6c5a83; background: #1c1728df; color: var(--text); }
.button-secondary:hover { background: #302342; border-color: var(--accent); }
.button-small { min-height: 2.6rem; padding: .55rem .9rem; font-size: .87rem; }
.text-link {
  width: fit-content; color: var(--accent); font-weight: 800; text-decoration-color: #a788c5; text-underline-offset: .22em;
}
.text-link:hover { color: var(--text); }

.quick-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); position: relative; margin-top: -2.4rem;
  border: 1px solid var(--line); border-radius: .46rem; background: #1a1722; box-shadow: 0 .5rem 2.3rem #09070d42;
}
.quick-facts > div {
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .9rem; padding: 1rem 1.5rem;
}
.quick-facts > div + div { border-left: 1px solid var(--line); }
.quick-facts dt { color: var(--muted); font-size: .85rem; }
.quick-facts dd { font-weight: 800; font-size: 1.02rem; }
.fact-icon {
  display: grid; grid-row: span 2; flex: 0 0 2.6rem; place-items: center; width: 2.6rem; height: 2.6rem;
  color: var(--accent); background: #2a203c; border: 1px solid #422f59; border-radius: .36rem;
}
.fact-icon::before, .fact-icon::after { content: ""; display: block; grid-area: 1 / 1; }
.icon-calendar::before { width: 1rem; height: .92rem; border: 1.5px solid currentColor; border-radius: .12rem; }
.icon-calendar::after { width: .85rem; height: .45rem; margin-top: -.35rem; border-bottom: 1.5px solid currentColor; }
.icon-group::before { width: .43rem; height: .43rem; margin: -.55rem .45rem 0 0; border-radius: 50%; background: currentColor; box-shadow: .52rem 0 currentColor; }
.icon-group::after { width: .57rem; height: .36rem; margin: .48rem .47rem 0 0; border-radius: .4rem .4rem .08rem .08rem; background: currentColor; box-shadow: .59rem 0 currentColor; }
.icon-book::before { width: 1rem; height: .9rem; border: 1.5px solid currentColor; border-radius: .1rem; transform: skewY(-7deg); }
.icon-book::after { width: 1px; height: .85rem; background: currentColor; }

.section { margin-top: 4.4rem; }
.section-heading { display: flex; gap: 1.25rem; align-items: end; justify-content: space-between; margin-bottom: 1.4rem; }
.section-heading p { margin-top: .48rem; color: var(--muted); }
.section-heading .button { flex-shrink: 0; }
.raid-grid, .profession-grid, .video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }
.raid-card, .profession-card, .video-card {
  overflow: hidden; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel);
}
.raid-card:target { border-color: var(--accent); }
.raid-art {
  position: relative; display: flex; align-items: start; min-height: 9.5rem; aspect-ratio: 2.1;
  padding: .9rem; background-color: #291f3a; background-size: cover; background-position: center;
}
.raid-art-barrow { background-image: linear-gradient(0deg, #17131e35, transparent 65%), url("barrow.jpg"); }
.raid-art-hyjal { background-image: linear-gradient(0deg, #17131e35, transparent 65%), url("hyjal.jpg"); }
.raid-art-onyxia { background-image: linear-gradient(0deg, #17131e35, transparent 65%), url("onyxia.jpg"); }
.raid-size {
  padding: .2rem .58rem; border: 1px solid #a396b66a; border-radius: .25rem; background-color: #16121be8;
  color: var(--text); font-size: .76rem; font-weight: 800; white-space: nowrap;
}
.raid-copy { padding: 1.15rem; }
.raid-location { color: var(--accent); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.raid-copy h3 { margin-top: .3rem; font-size: 1.22rem; font-weight: 800; }
.raid-copy h3 a { text-decoration: none; }
.raid-copy h3 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.raid-original { margin-top: .2rem; color: var(--muted); font-size: .83rem; }
.raid-result {
  display: flex; align-items: center; justify-content: space-between; gap: .25rem; margin: 1.1rem 0 .5rem;
  color: var(--muted); font-size: .86rem;
}
.raid-result strong { color: var(--text); font-size: 1.05rem; letter-spacing: .025em; }
.raid-result strong span { color: var(--muted); font-size: .87rem; }
.progress-track, progress {
  display: block; width: 100%; height: .3rem; overflow: hidden; border: 0; border-radius: .25rem;
  background: #393043; color: var(--primary); accent-color: var(--primary);
}
progress::-webkit-progress-bar { background: #393043; }
progress::-webkit-progress-value { background: var(--primary); }
progress::-moz-progress-bar { background: var(--primary); }
.raid-card details { margin-top: .95rem; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); }
.raid-card details p { margin: .3rem 0 .2rem; }
.raid-card summary { padding: .65rem 0 .15rem; color: var(--text); font-weight: 700; cursor: pointer; }
.raid-copy > .text-link { display: inline-block; margin-top: .65rem; }

.forge-banner {
  display: flex; align-items: center; min-height: 18rem; overflow: hidden; margin-bottom: 4.4rem;
  border: 1px solid #3f303c; border-radius: .56rem; background-color: #241a20;
  background-image: linear-gradient(90deg, #1a151efc 0%, #1a151ee8 34%, #1a151e29 74%), url("forge.jpg");
  background-position: center, center 53%; background-size: cover;
}
.forge-copy { max-width: 39rem; padding: 2.2rem; }
.forge-copy h2 { letter-spacing: -.05em; }
.forge-copy p:not(.eyebrow) { max-width: 29rem; margin: .8rem 0 1.4rem; color: #e1d4e2; }
.forge-copy .eyebrow { margin-bottom: .75rem; color: #ffc399; }

.page-hero {
  padding: 4rem 0 3.8rem; border-bottom: 1px solid var(--line);
  background-color: #21192b; background-size: cover; background-position: center;
}
.raid-hero { background-image: linear-gradient(90deg, #15111cf5 1%, #1a1426b5 54%, #180f2c4a), url("hero.jpg"); background-position: center, center 33%; }
.professions-hero { background-image: linear-gradient(90deg, #17121bf5 10%, #221928d9 47%, #23172038), url("forge.jpg"); background-position: center, center 51%; }
.page-hero h1 { font-size: clamp(1.85rem, 5vw, 3.9rem); letter-spacing: -.065em; overflow-wrap: anywhere; }
.page-hero p:not(.eyebrow) { max-width: 35rem; margin-top: .8rem; color: #e1d8eb; font-size: 1.05rem; }
.page-hero .button { margin-top: 1.2rem; }
.page-content { padding-bottom: 4rem; }
.page-section { margin-top: 3rem; }
.info-bar {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; margin-top: 1.65rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: .4rem;
}
.info-bar p { color: var(--muted); font-size: .92rem; }
.info-bar > div { flex: 1; }
.info-bar .text-link { flex-shrink: 0; font-size: .9rem; }
kbd { display: inline-block; padding: 0 .25rem; border: 1px solid #665378; border-radius: .2rem; color: #f4edff; }

.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button {
  padding: .5rem .72rem; border: 1px solid var(--line); border-radius: .3rem;
  background: var(--panel); color: var(--muted); font-size: .87rem; white-space: nowrap; cursor: pointer;
}
.filters button:hover { background: var(--panel-light); color: var(--text); }
.filters button[aria-pressed="true"] { border-color: #8062a6; background: #352448; color: #eddfff; font-weight: 800; }
.raid-prep { display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 2rem; margin-top: 3rem; padding: 1.4rem 0 0; border-top: 1px solid var(--line); }
.raid-prep p { margin-bottom: .5rem; color: var(--muted); }

.profession-search { display: block; flex: 0 1 16rem; }
.profession-search input {
  display: block; width: 100%; min-height: 2.8rem; padding: .55rem .8rem; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: .36rem;
}
.profession-search input::placeholder { color: var(--muted); }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.result-count { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.empty-message { padding: 1.25rem; background: var(--panel); border: 1px solid var(--line); border-radius: .4rem; }
.profession-card summary {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .65rem .85rem; align-items: center;
  min-height: 7.6rem; padding: 1rem; cursor: pointer; list-style: none;
}
.profession-card summary:hover { background: var(--panel-light); }
.profession-card summary:focus-visible { outline-offset: -3px; }
.profession-card summary::-webkit-details-marker { display: none; }
.profession-card summary::after {
  content: ""; grid-area: 1 / 3; width: .45rem; height: .45rem; margin-right: .25rem;
  border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.profession-card[open] summary::after { transform: rotate(225deg); }
.profession-symbol {
  display: grid; width: 2.3rem; height: 2.3rem; place-items: center; border-radius: .35rem; background: #2e2141;
  color: var(--accent); font: 700 1.35rem/1 "Segoe UI Symbol", sans-serif;
}
.profession-gather .profession-symbol { background: #20352f; color: #92d0bb; }
.profession-extra .profession-symbol { background: #3a2924; color: #ffc09b; }
.profession-type { display: block; color: var(--muted); font-size: .77rem; }
.profession-card strong { font-weight: 800; }
.profession-intro { grid-column: 1 / -1; align-self: start; color: var(--muted); font-size: .89rem; }
.profession-detail { padding: 1rem; background: #15121d; border-top: 1px solid var(--line); font-size: .94rem; }
.profession-pair { margin-top: .8rem; color: var(--muted); }
.profession-links { display: flex; gap: .4rem .8rem; flex-wrap: wrap; margin-top: .7rem; font-size: .86rem; }

.video-section { padding-top: 2rem; border-top: 1px solid var(--line); }
.video-preview {
  display: grid; place-items: center; position: relative; background: #261c32; aspect-ratio: 16 / 9;
}
.video-preview img { position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: .83; }
.video-preview:hover img { opacity: 1; }
.video-preview:focus-visible { outline-offset: -4px; }
.play-mark {
  position: relative; display: grid; place-items: center; width: 3.15rem; aspect-ratio: 1; border-radius: 50%;
  background: #181123ed; border: 1px solid #c4a5ffb0;
}
.play-mark::after { content: ""; margin-left: .23rem; border: .52rem solid transparent; border-right: 0; border-left: .72rem solid var(--text); }
.video-preview:hover .play-mark { background: #4a3468; }
.video-copy { padding: 1rem; }
.video-author { margin-bottom: .25rem; color: var(--muted); font-size: .84rem; }
.video-copy h3 { font-size: 1.07rem; }
.video-copy .text-link { display: inline-block; margin-top: .7rem; font-size: .86rem; }
.video-dialog {
  width: min(100% - 2rem, 53rem); max-height: 94vh; padding: 1rem; overflow: auto;
  border: 1px solid #746089; border-radius: .5rem; background: var(--panel); color: var(--text);
}
.video-dialog::backdrop { background: #0a070de3; }
.dialog-header { display: flex; gap: .7rem; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.dialog-header h2 { font: 800 1.1rem/1.3 var(--body); letter-spacing: 0; }
.video-dialog iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #050407; }
.dialog-link { display: inline-block; margin-top: .65rem; }

.site-footer { border-top: 1px solid var(--line); background: #14121b; }
.footer-inner { display: flex; align-items: center; gap: 1rem 1.8rem; min-height: 5.3rem; padding-block: 1rem; }
.footer-inner p { flex: 1; color: var(--muted); font-size: .85rem; }
.footer-inner nav { display: flex; gap: 1rem; color: var(--muted); font-size: .85rem; }
.footer-inner nav a { text-decoration: none; }
.footer-inner nav a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 64rem) {
  .container { width: min(100% - 3.5rem, 74rem); }
  .quick-facts > div { padding-inline: 1rem; }
  .page-section .section-heading { align-items: start; }
  [data-raid-filters] { justify-content: end; }
}

@media (max-width: 49rem) {
  .container { width: calc(100% - 2rem); }
  .main-nav { gap: .85rem; }
  .hero { min-height: 30rem; }
  .hero-inner { padding-block: 3.8rem 5.6rem; }
  .section { margin-top: 3.2rem; }
  .page-section .section-heading:not(.catalog-heading) { flex-direction: column; }
  .raid-grid, .profession-grid, .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .quick-facts > div { column-gap: .55rem; padding: .8rem .7rem; }
  .quick-facts dd { font-size: .9rem; }
  .quick-facts .fact-icon { width: 2rem; height: 2rem; }
  .forge-banner { margin-bottom: 3rem; }
  .footer-inner { flex-wrap: wrap; gap: .65rem 1.3rem; }
}

@media (max-width: 35rem) {
  .header-inner { min-height: auto; grid-template-columns: 1fr auto; gap: 0 .65rem; }
  .header-inner .brand, .game-link { margin-block: .65rem .4rem; }
  .game-link { grid-area: 1 / 2; }
  .main-nav { grid-column: 1 / -1; min-height: 2.85rem; justify-content: space-between; }
  .main-nav a { padding-inline: .3rem; }
  .hero {
    min-height: 29rem;
    background-image: linear-gradient(0deg, var(--background) 0%, #110f17c4 25%, #15111d55 100%),
      linear-gradient(90deg, #15111de6, #15111d25), url("hero.jpg");
    background-position: center, center, 63% 22%;
  }
  .hero-inner { padding: 3.35rem 0 5rem; }
  .hero h1 { font-size: clamp(1.85rem, 9.9vw, 3.2rem); }
  .hero-lead { margin-top: 1.05rem; }
  .hero .actions { margin-top: 1.35rem; }
  .hero .button { padding-inline: .9rem; }
  .eyebrow { font-size: .71rem; letter-spacing: .11em; }
  .quick-facts { grid-template-columns: 1fr; }
  .quick-facts > div { padding: .65rem .9rem; column-gap: .75rem; }
  .quick-facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .quick-facts dd { font-size: .97rem; }
  .section-heading { flex-direction: column; align-items: start; gap: .8rem; }
  .raid-grid, .profession-grid, .video-grid, .raid-prep { grid-template-columns: 1fr; }
  .forge-banner { min-height: 17rem; background-position: center, 60% center; }
  .forge-copy { padding: 1.25rem; }
  .page-hero { padding: 2.85rem 0 2.5rem; }
  .page-content { padding-bottom: 3rem; }
  .info-bar { flex-wrap: wrap; align-items: start; gap: .55rem .75rem; padding: .85rem; }
  .info-bar > div { flex-basis: 70%; }
  .info-bar > a { margin-left: 3.35rem; }
  .raid-prep { gap: .6rem; }
  .profession-search { width: 100%; flex: none; }
  .catalog-tools { flex-wrap: wrap; }
  .footer-inner p { flex-basis: 100%; }
}
