/* The palette starts with the original crest's gold, violet, cream, and copper. */
:root {
  color-scheme: light;
  --gold: #e4b552;
  --ink: #2c233b;
  --night: #251e35;
  --violet: #453863;
  --lavender: #eae3f0;
  --cream: #f5efe2;
  --muted: #66586f;
  --line: #cbbfd3;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--lavender); }
body {
  margin: 0;
  background: var(--lavender);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.1; }
p { margin: 0; }
a { color: var(--violet); text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
img { display: block; max-width: 100%; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(1120px, 86%); margin-inline: auto; }
.eyebrow, .wordmark-kind {
  font: 650 .65rem/1.4 var(--sans);
  letter-spacing: .19em;
  text-transform: uppercase;
}
.skip-link {
  position: absolute;
  z-index: 5;
  top: .75rem;
  left: 1rem;
  padding: .6rem 1.2rem;
  transform: translateY(-160%);
  background: var(--cream);
}
.skip-link:focus { transform: none; }

.masthead {
  background: var(--night);
  color: var(--cream);
  border-bottom: 1px solid #6b566c;
}
.masthead-inner, .wordmark, nav, .nav-invite, .invite, .hero-label {
  display: flex;
  align-items: center;
}
.masthead-inner { min-height: 72px; justify-content: space-between; gap: 1rem; }
.wordmark { gap: .65rem; }
.wordmark-text { display: flex; align-items: baseline; gap: inherit; }
.wordmark img { width: 40px; height: 40px; }
.wordmark-name { color: var(--gold); font: 1.75rem/1 var(--serif); letter-spacing: -.035em; }
.wordmark-kind { transform: translateY(-3px); margin-left: .14rem; padding-left: .95rem; border-left: 1px solid #756174; color: #d1c3d8; font-size: .60rem; }
.masthead nav { transform: translateY(.25rem); }
nav { gap: 1.8rem; }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #e6ddeb;
  font-size: .84rem;
  font-weight: 550;
  text-decoration: none;
}
nav a:hover { color: var(--gold); text-decoration: underline; }
.nav-invite { gap: .35rem; }
.nav-invite svg { width: 15px; height: 15px; color: #d8b778; }

.hero {
  position: relative;
  isolation: isolate;
  color: var(--cream);
  background: #332a44 url("assets/twilight.svg") center bottom / 100% 100% no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #211b31c9 0%, #251e348c 35%, #35283f17 62%, transparent 83%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: center;
  column-gap: 2rem;
  min-height: 465px;
  padding-block: 38px 47px;
}
.hero-copy { padding-block: .9rem; }
.hero-label { gap: .7rem; color: #f0d79e; font-size: .64rem; }
.label-rule { position: relative; width: 29px; height: 1px; background: #d2ae6e; }
.label-rule::after { content: ""; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; transform: rotate(45deg); background: #e4b552; }
.hero h1 {
  margin: .12em 0 0 -.045em;
  width: fit-content;
  color: var(--gold);
  font-size: clamp(5.9rem, 9.1vw, 8.7rem);
  font-weight: 500;
  letter-spacing: -.068em;
  line-height: .97;
}
.tagline { margin-top: .24em; font: italic clamp(1.65rem, 2.45vw, 2.18rem)/1.2 var(--serif); letter-spacing: -.02em; color: var(--gold); }
.welcome { max-width: 28.5rem; margin-top: 1.05rem; font-size: 1rem; line-height: 1.62; color: #f7f0f6; }
.invite {
  width: fit-content;
  min-height: 49px;
  margin-top: 1.4rem;
  padding: .7rem 1.12rem;
  gap: .68rem;
  border: 1px solid #edcf91;
  border-radius: 5px;
  background: #edc474;
  color: #2a2035;
  box-shadow: 0 3px 8px #1e142b33;
  text-decoration: none;
  font: 700 .94rem/1.4 var(--sans);
}
.invite:hover { background: #f7d38a; }
.invite:focus-visible { outline-color: var(--cream); }
.discord-icon { width: 23px; height: 23px; }
.invite-arrow { width: 17px; height: 17px; margin-left: .6rem; }
.crest-display {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, 425px);
  aspect-ratio: 44 / 41;
  background: radial-gradient(ellipse closest-side, #55426388 15%, #7d64801f 79%, transparent);
}
.star-chart { position: absolute; inset: 0; width: 100%; height: 100%; color: #e9c889; }
.hero-crest { position: relative; width: 64%; height: auto; filter: drop-shadow(0 6px 8px #24192e59); }

.guilds { position: relative; background: var(--lavender); border-top: 2px solid #b6956b; }
.section-jewel {
  position: absolute;
  top: -13px;
  left: calc(50% - 12px);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  transform: rotate(45deg);
  background: var(--night);
  border: 1px solid #c6a474;
  color: #e8c785;
}
.section-jewel svg { width: 14px; height: 14px; transform: rotate(-45deg); }
.guilds-inner { padding-block: 41px 30px; }
.section-heading { text-align: center; }
.section-heading .eyebrow { display: flex; align-items: center; justify-content: center; gap: .76rem; color: #675171; }
.section-heading .eyebrow span { height: 1px; width: 25px; background: #b29caa; }
.section-heading h2 { margin-top: .35rem; font-size: clamp(2.3rem, 3.5vw, 3.05rem); letter-spacing: -.045em; }
.guild-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 970px; margin: 24px auto 0; }
.realm {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.25vw, 2.4rem);
  padding: 24px clamp(1.3rem, 2.5vw, 2.5rem);
  background: #f5f0f7;
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 2px 5px #3e2b4d05;
}
.realm::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 12px;
  height: 12px;
  border-top: 1px solid #bfa98a;
  border-right: 1px solid #bfa98a;
}
.realm-logo { flex: none; width: 68px; height: auto; }
.realm-copy .eyebrow { font-size: .6rem; color: var(--muted); letter-spacing: .15em; }
.realm-copy h3 { margin: .05rem 0 .4rem; font-size: 2.1rem; letter-spacing: -.04em; }
.realm-location { font-size: .89rem; line-height: 1.5; font-weight: 600; }
.realm-detail { color: var(--muted); font-size: .8rem; }
.realm-detail span { white-space: nowrap; }
.realm-detail [aria-hidden] { padding-inline: .18rem; }
.end-ornament { display: flex; width: fit-content; align-items: center; margin: 26px auto 0; gap: 10px; color: #9a805d; }
.end-ornament i { width: 49px; height: 1px; background: linear-gradient(90deg, transparent, #bca689); }
.end-ornament i:last-child { transform: rotate(180deg); }
.end-ornament svg { width: 10px; height: 10px; }

.site-footer {
  padding: 1.5rem 6%;
  border-top: 1px solid var(--line);
  background: var(--night);
  color: #d1c3d8;
  font-size: .8125rem;
  text-align: center;
}
.site-footer p { max-width: 95ch; margin-inline: auto; }
.site-footer p + p { margin-top: .4rem; }
.site-copyright { color: var(--cream); }

/* A standalone policy document can import this theme and use the reading column. */
.prose { width: min(68ch, 88%); margin: clamp(2rem, 6vw, 6rem) auto; }
.prose h1 { font-size: clamp(2.6rem, 5.3vw, 4rem); letter-spacing: -.04em; }
.prose h2 { margin-block: 1.4em .4em; font-size: 1.9rem; }
.prose h3 { margin-block: 1.1em .4em; font-size: 1.45rem; }
.prose p, .prose ul, .prose ol { margin-block: 1em; }

.policy-banner {
  display: grid;
  justify-items: center;
  gap: .8rem;
  padding: clamp(1.75rem, 4vw, 3rem) 6% clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.hero.policy-banner h1 {
  margin: 0;
  font-size: clamp(2.45rem, 5.5vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.policy-home { display: block; color: var(--gold); border-radius: 6px; }
.back-to-top {
  position: fixed;
  z-index: 10;
  right: calc(1.25rem + env(safe-area-inset-right, 0px));
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e4b55266;
  border-radius: 9px;
  background: #453863cc;
  color: var(--cream);
  box-shadow: 0 2px 8px #251e3526;
  cursor: pointer;
}
.back-to-top[hidden] { display: none; }
.back-to-top svg { width: 23px; height: 23px; }
.back-to-top:hover { background: #453863e8; }
.back-to-top:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.policy-divider { margin: 0; border: 0; border-top: 2px solid #b6956b; }
.policy-copy { margin-block: clamp(2rem, 4vw, 3.5rem) 4rem; line-height: 1.7; }
.policy-copy h2 { padding-top: 1em; border-top: 1px solid var(--line); }
.policy-copy h2:first-child { padding-top: 0; margin-top: 0; border: 0; }
.policy-copy h3 { color: var(--violet); font: 600 1.08rem/1.4 var(--sans); }
.policy-copy ul { padding-inline-start: 1.4em; }
.policy-copy li + li { margin-top: .35em; }
.policy-copy li::marker { color: var(--violet); }
.policy-copy blockquote {
  margin: 1.2rem 0;
  padding: 1.1rem 1.4rem;
  border-inline-start: 3px solid var(--gold);
  background: #f5f0f7;
  font: italic 1.25rem/1.5 var(--serif);
}
.policy-copy blockquote p { margin: 0; }

@media (max-width: 880px) {
  .container { width: 89%; }
  .hero-inner { column-gap: 1rem; }
  .hero-label { font-size: .59rem; }
  .hero h1 { font-size: clamp(5.3rem, 11.8vw, 6.6rem); }
  .guild-list { gap: 1rem; }
  .realm { padding: 20px; gap: 1rem; }
}
@media (max-width: 650px) {
  .masthead-inner { min-height: 62px; }
  .wordmark { gap: .45rem; }
  .wordmark img { width: 32px; height: 32px; }
  .wordmark-name { font-size: 1.5rem; }
  .wordmark-kind { display: none; }
  nav { gap: 1.1rem; }
  nav a { font-size: .8rem; }
  .hero { background-size: auto 100%; background-position: 67% bottom; }
  .hero::before { background: linear-gradient(180deg, #251e3422 0%, #251e344f 45%, #251e34ae 76%, #251e346b); }
  .hero-inner { grid-template-columns: 1fr; padding-block: 14px 43px; gap: 0; }
  .crest-display { grid-row: 1; width: clamp(148px, 43vw, 210px); }
  .hero-copy { padding: .4rem 0 0; text-align: center; }
  .hero-label { justify-content: center; }
  .hero h1 { margin: .09em auto 0; font-size: clamp(5.25rem, 16.8vw, 6.5rem); }
  .tagline { font-size: 1.7rem; }
  .welcome { margin: .85rem auto 0; font-size: .95rem; max-width: 29rem; }
  .invite { margin: 1.18rem auto 0; }
  .guilds-inner { padding-top: 34px; }
  .guild-list { grid-template-columns: 1fr; max-width: 450px; gap: .8rem; margin-top: 20px; }
  .realm { gap: 1.45rem; padding: 18px 22px; }
  .realm-copy h3 { font-size: 1.85rem; }
}
@media (forced-colors: active) {
  .invite, .realm { border: 1px solid ButtonText; }
}
