:root {
  color-scheme: light;
  --paper: #f8f1df;
  --paper-2: #f2ead8;
  --white: #fffaf0;
  --ink: #123d4d;
  --muted: #50646a;
  --orange: #b44727;
  --line: #d7cdb8;
  --green: #e9e5d5;
  --green-2: #e3dfd0;
  --tank: #4f86e6;
  --healer: #55b58d;
  --dps: #d6473d;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  background: var(--paper);
  color: var(--ink);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 1rem;
  background: var(--paper);
  z-index: 5;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1480px;
  margin: auto;
  padding: 24px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.7px;
}

.monogram {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  margin-right: 12px;
  font-family: Georgia, serif;
  font-size: 15px;
  letter-spacing: -2px;
}

.dot {
  color: var(--orange);
}

.header-inner nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-link {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  text-decoration: none;
  font-weight: bold;
}

.header-link:hover {
  color: var(--orange);
}

.header-cta {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* Hero */
.hero {
  max-width: 1480px;
  margin: auto;
  padding: 64px 5% 72px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 6%;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 24px;
}

.eyebrow span {
  color: var(--orange);
  margin-right: 7px;
}

h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(44px, 5.5vw, 82px);
  font-weight: normal;
  letter-spacing: -3px;
  line-height: 1.04;
  margin: 0 0 26px;
}

h1 em,
h2 em {
  color: var(--orange);
  font-weight: normal;
}

.intro {
  font-size: 17px;
  line-height: 1.8;
  max-width: 430px;
  color: var(--muted);
  margin: 0 0 30px;
}

.intro strong {
  color: var(--ink);
  font-weight: 600;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  border: 1px solid var(--ink);
  border-radius: 2px;
  transition: background .15s, color .15s, border-color .15s;
}

.button:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--paper);
}

.button-ghost {
  background: transparent;
  color: var(--ink);
}

.button-ghost:hover {
  color: var(--paper);
}

.postscript {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.sun {
  display: inline-block;
  font-size: 44px;
  color: var(--orange);
  animation: sun-spin 60s linear infinite;
}

@keyframes sun-spin {
  to { transform: rotate(360deg); }
}

.postscript p {
  font-family: Georgia, serif;
  line-height: 1.5;
  font-size: 15px;
  margin: 0;
}

.postscript p span {
  font-style: italic;
  color: var(--muted);
}

.poster {
  margin: 0;
  transform: rotate(2deg);
  transition: transform .25s ease;
}

.poster:hover {
  transform: rotate(0) translateY(-4px);
}

.poster picture {
  display: block;
}

.poster img {
  display: block;
  width: 100%;
  height: auto;
  border: 8px solid #fff9e9;
  box-shadow: 0 12px 28px #412c1b24;
}

.poster figcaption {
  text-align: center;
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 18px;
  color: var(--muted);
}

/* Launch strip */
.launch-strip {
  background: var(--ink);
  color: var(--paper);
}

.launch-inner {
  max-width: 1480px;
  margin: auto;
  padding: 34px 5%;
  display: grid;
  grid-template-columns: minmax(300px, .9fr) 1.4fr;
  gap: 36px;
  align-items: center;
}

.launch-countdown .eyebrow {
  color: #e9c38e;
  margin-bottom: 14px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 420px;
}

.cd-box {
  border: 1px solid rgba(248, 241, 223, .25);
  background: rgba(248, 241, 223, .06);
  border-radius: 3px;
  padding: 10px 4px 8px;
  text-align: center;
}

.cd-box b {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cd-box span {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #b9b3a4;
}

.launch-date {
  margin: 12px 0 0;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #d8d1c0;
}

.launch-date strong {
  color: var(--paper);
}

.launch-date span {
  margin-left: 8px;
  color: #a9a394;
}

.launch-status {
  margin: 6px 0 0;
  font-size: 12px;
  color: #b9b3a4;
}

.launch-strip.is-live .launch-status {
  color: #f0c98e;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: rgba(248, 241, 223, .18);
  border: 1px solid rgba(248, 241, 223, .18);
}

.fact {
  background: var(--ink);
  padding: 12px 14px;
  min-width: 0;
}

.fact dt {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #a9a394;
}

.fact dd {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.35;
}

.fact a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(248, 241, 223, .35);
}

.fact a:hover {
  color: #f0c98e;
  border-color: #f0c98e;
}

.noscript {
  max-width: 1480px;
  margin: 0 auto;
  padding: 14px 5%;
  background: #fff3cd;
  color: #664d03;
  font-size: 14px;
  line-height: 1.5;
}

/* Section shell */
.section {
  padding: 72px 5%;
}

.section-inner {
  max-width: 1480px;
  margin: auto;
}

.section-alt {
  background: var(--green);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head h2 {
  font-family: Georgia, serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: normal;
  letter-spacing: -1.6px;
  line-height: 1.08;
  margin: 0 0 14px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 62ch;
}

.section-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.section-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 16px 0 0;
  max-width: 70ch;
}

.text-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.text-link:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.loading-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

/* Guild intro */
.guild-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 6%;
  align-items: center;
}

.guild-inner h2 {
  font-family: Georgia, serif;
  font-size: clamp(36px, 4vw, 55px);
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: -1.6px;
  margin: 0;
}

.guild-description {
  max-width: 440px;
}

.guild-description p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 18px;
}

.guild-description strong {
  color: var(--ink);
  font-weight: 600;
}

/* Recruitment board */
.role-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.role-card {
  --role-color: var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, .55);
  padding: 14px 16px;
}

.role-card.Tank { --role-color: var(--tank); }
.role-card.Healer { --role-color: var(--healer); }
.role-card.DPS { --role-color: var(--dps); }

.role-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: bold;
}

.role-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--role-color);
  flex: none;
}

.role-card b {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: normal;
  line-height: 1;
}

.role-card small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: .6px;
  text-transform: uppercase;
  text-align: right;
}

.need-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.need-card {
  --class-color: var(--line);
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--class-color);
  padding: 16px 18px;
}

.need-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.role-pill {
  font-size: 9px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  font-weight: bold;
  padding: 4px 7px;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.role-pill.Tank { color: var(--tank); }
.role-pill.Healer { color: var(--healer); }
.role-pill.DPS { color: var(--dps); }

.need-slots {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.need-card h3 {
  margin: 12px 0 6px;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: normal;
  line-height: 1.15;
}

.need-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.need-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
}

.class-crest {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: cover;
  background: var(--class-color);
  border: 1px solid rgba(18, 61, 77, .25);
  border-radius: 3px;
  flex: none;
}

.class-crest-text {
  display: grid;
  place-items: center;
  color: #0d1c22;
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 13px;
}

.class-name {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Roster */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.roster-card {
  --class-color: var(--line);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 16px;
}

.roster-card.is-example {
  border-style: dashed;
  background: transparent;
}

.roster-card .class-crest {
  width: 48px;
  height: 48px;
  border-radius: 4px;
}

.roster-card .class-crest-text {
  font-size: 18px;
}

.roster-card h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: normal;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.roster-card .char-name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: normal;
  color: var(--muted);
}

.roster-card .rank {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--orange);
}

.roster-card .meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.roster-card .note {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.roster-card .role-pill {
  display: inline-block;
  margin-top: 8px;
}

/* Calendar */
.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.event {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 16px 18px;
}

.event.is-next {
  border-left: 4px solid var(--orange);
}

.event.is-past {
  opacity: .65;
}

.event-date {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 16px;
}

.event-date .month {
  display: block;
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: bold;
}

.event-date b {
  display: block;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: normal;
  line-height: 1.1;
}

.event-date .weekday {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.event-body h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: normal;
  line-height: 1.2;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.event-category {
  border: 1px solid currentColor;
  padding: 3px 6px;
  border-radius: 2px;
  font-weight: bold;
}

.event-category.Launch { color: var(--orange); }
.event-category.Raid { color: #6b4e9a; }
.event-category.Planning { color: #2f6b5e; }
.event-category.Group { color: #4f6f8f; }

.event-body p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.next-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--paper);
  background: var(--orange);
  padding: 3px 6px;
  border-radius: 2px;
  vertical-align: 2px;
}

/* Scrapbook */
.scrapbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  padding: 8px 0 4px;
}

.polaroid {
  --tilt: 0deg;
  margin: 0;
  background: #fffdf7;
  border: 1px solid var(--line);
  padding: 12px 12px 16px;
  box-shadow: 0 12px 24px rgba(65, 44, 27, .12);
  transform: rotate(var(--tilt));
  transition: transform .25s ease, box-shadow .25s ease;
}

.polaroid:nth-child(1) { --tilt: -2.5deg; }
.polaroid:nth-child(2) { --tilt: 1.5deg; }
.polaroid:nth-child(3) { --tilt: -1deg; }

.polaroid:hover {
  transform: rotate(0) translateY(-5px);
  box-shadow: 0 18px 32px rgba(65, 44, 27, .18);
}

.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--green);
}

.polaroid figcaption {
  margin-top: 12px;
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.3;
}

.polaroid figcaption span {
  display: block;
  margin-top: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

/* Join */
.join {
  background: var(--ink);
  color: var(--paper);
}

.join .eyebrow.light {
  color: #e9c38e;
}

.join .section-head h2 em {
  color: #f0a47e;
}

.join .section-head p {
  color: #c9c2af;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin: 36px 0 32px;
  padding: 0;
}

.steps li {
  border-top: 1px solid rgba(248, 241, 223, .25);
  padding-top: 16px;
}

.step-num {
  font-family: Georgia, serif;
  font-size: 28px;
  color: #f0a47e;
}

.steps h3 {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: normal;
  margin: 8px 0;
}

.steps p {
  margin: 0;
  color: #c9c2af;
  font-size: 14px;
  line-height: 1.7;
}

.steps strong {
  color: var(--paper);
}

.join-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.join .button {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.join .button:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--paper);
}

.join-cta p {
  margin: 0;
  max-width: 46ch;
  font-size: 12px;
  line-height: 1.6;
  color: #b9b3a4;
}

/* Footer */
footer {
  padding: 28px 5%;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1480px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
}

.footer-name {
  font-weight: bold;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  gap: 18px;
}

.footer-inner a {
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--orange);
}

/* 404 */
.not-found {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 760px;
  margin: auto;
  padding: 64px 7%;
}

.not-found h1 {
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr 1fr;
  }

  .launch-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 7% 56px;
    gap: 44px;
  }

  .poster {
    width: 90%;
    max-width: 500px;
    justify-self: center;
  }

  .guild-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .guild-description {
    max-width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 1000px) {
  .need-grid,
  .roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 20px 6%;
  }

  .wordmark {
    font-size: 16px;
  }

  .header-inner nav {
    gap: 14px;
  }

  .header-link {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .header-link:not(.header-cta) {
    display: none;
  }

  h1 {
    font-size: clamp(40px, 8.5vw, 64px);
    letter-spacing: -2px;
  }

  .eyebrow {
    font-size: 10px;
    margin-bottom: 20px;
  }

  .intro {
    max-width: 100%;
    font-size: 16px;
  }

  .section {
    padding: 52px 7%;
  }

  .section-head {
    margin-bottom: 26px;
  }

  .section-head h2 {
    font-size: clamp(32px, 7vw, 44px);
    letter-spacing: -1.2px;
  }

  .launch-inner {
    padding: 28px 7%;
  }

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

  .role-summary {
    gap: 8px;
  }

  .role-card {
    padding: 12px;
  }

  .role-name {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .role-card b {
    font-size: 26px;
  }

  .event {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .event-date {
    padding-right: 12px;
  }

  .event-date b {
    font-size: 26px;
  }

  .event-body h3 {
    font-size: 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-inner nav {
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .need-grid,
  .roster-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    justify-content: space-between;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .role-summary {
    grid-template-columns: 1fr;
  }

  .role-card {
    justify-content: flex-start;
    gap: 14px;
  }

  .role-card b {
    margin-left: auto;
  }

  .polaroid {
    margin: 0 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sun {
    animation: none;
  }

  .button,
  .poster,
  .polaroid {
    transition: none;
  }

  .poster:hover,
  .polaroid:hover {
    transform: none;
  }
}
