/* UO Reforged site. Black-and-gold frame like the launcher, parchment panels for reading. */

@font-face {
  font-family: "UO Classic";
  src: url("../fonts/UOClassic.ttf") format("truetype");
  font-display: swap;
}

:root {
  --night: #100b07;
  --night-2: #1a120b;
  --night-3: #241910;
  --gold: #d6ae58;
  --gold-hi: #f6dc94;
  --gold-lo: #8c6a2c;
  --parch: #eadfc4;
  --parch-2: #ddcca6;
  --parch-edge: #b89c68;
  --ink: #2b1e10;
  --ink-soft: #5c4a33;
  --link: #7a3d12;
  --link-hover: #a4501a;
  --online: #5fbf4a;
  --offline: #c4473a;
  --radius: 3px;
  --title-font: "UO Classic", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body-font: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.55 var(--body-font);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(120, 80, 30, .18), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, .6), transparent 70%),
    var(--night);
  background-attachment: fixed;
}

a { color: var(--link); }
a:hover { color: var(--link-hover); }

code {
  font: 600 .92em/1 Consolas, "Courier New", monospace;
  background: rgba(90, 60, 20, .12);
  padding: .1em .35em;
  border-radius: 2px;
}

.muted { color: var(--ink-soft); }
.small { font-size: .88rem; }

/* Gold blackletter text, as on the launcher and the Discord banner */
.gold-text,
.hero-title,
.hero-kicker {
  font-family: var(--title-font);
  font-weight: normal;
  background: linear-gradient(180deg, #fff1c4 0%, var(--gold-hi) 30%, var(--gold) 62%, #9b7432 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(16, 11, 7, .97), rgba(16, 11, 7, .92));
  border-bottom: 1px solid var(--gold-lo);
  box-shadow: 0 1px 0 rgba(246, 220, 148, .12), 0 6px 18px rgba(0, 0, 0, .5);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a {
  color: #e2cf9f;
  text-decoration: none;
  font-size: 16px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
}
.nav a:hover { color: var(--gold-hi); border-color: rgba(214, 174, 88, .35); }
.nav a[aria-current="page"] { color: var(--gold-hi); border-color: var(--gold-lo); background: rgba(214, 174, 88, .08); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--title-font);
  font-size: 20px;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
  text-align: center;
  padding: 12px 22px 10px;
  border-radius: var(--radius);
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }

.btn-gold {
  color: #2a1a06;
  background: linear-gradient(180deg, #fbe7a6 0%, #e2bb62 45%, #b98a35 100%);
  border: 1px solid #f9e4a0;
  box-shadow: 0 0 0 1px #5d4214, 0 3px 10px rgba(0, 0, 0, .45), inset 0 -2px 0 rgba(90, 60, 10, .35);
  text-shadow: 0 1px 0 rgba(255, 240, 190, .5);
}
.btn-gold:hover { color: #1c1103; }

.btn-dark {
  color: var(--gold-hi);
  background: rgba(10, 7, 4, .72);
  border: 1px solid var(--gold-lo);
  box-shadow: inset 0 0 0 3px rgba(10, 7, 4, .72), inset 0 0 0 4px rgba(214, 174, 88, .45), 0 3px 10px rgba(0, 0, 0, .45);
}
.btn-dark:hover { color: #fff1c4; }

.btn-small { font-size: 17px; padding: 9px 16px 7px; }
.btn-large { font-size: 26px; padding: 15px 30px 12px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-lo);
}

.hero-art {
  position: absolute;
  inset: 0;
  /* the painting is 1024 px wide: shown at its own size on the right (sharp), fading into the night on the left */
  background: url("../img/hero.jpg") right 35% / 1024px auto no-repeat var(--night);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--night) 0, var(--night) calc(100% - 1024px), rgba(12, 8, 5, .88) calc(100% - 920px), rgba(12, 8, 5, .6) calc(100% - 760px), rgba(12, 8, 5, .15) calc(100% - 420px), rgba(12, 8, 5, .2) 100%),
    linear-gradient(180deg, rgba(12, 8, 5, .35) 0%, transparent 25%, transparent 70%, var(--night) 100%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 64px;
}

.hero-kicker { font-size: 32px; margin: 0; line-height: 1; }
.hero-title {
  font-size: clamp(60px, 8.5vw, 104px);
  line-height: .9;
  margin: 4px 0 30px -4px;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .6)) drop-shadow(0 0 24px rgba(0, 0, 0, .55));
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 0;
  padding: 8px 14px;
  color: #e9dcc0;
  font-size: 16px;
  background: rgba(10, 7, 4, .66);
  border: 1px solid rgba(214, 174, 88, .35);
  border-radius: var(--radius);
}
.hero-status b { color: var(--gold-hi); font-weight: 600; }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8b7d63;
  flex: none;
}
[data-state="online"] .dot { background: var(--online); box-shadow: 0 0 8px var(--online); }
[data-state="offline"] .dot { background: var(--offline); box-shadow: 0 0 8px var(--offline); }

/* ---------- page and parchment panels ---------- */

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 20px 56px;
}

.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}
.side { display: grid; gap: 28px; }

.panel {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 250, 235, .55), transparent 75%),
    linear-gradient(180deg, var(--parch), var(--parch-2));
  border: 1px solid #3b2a14;
  outline: 1px solid var(--gold-lo);
  outline-offset: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 245, 215, .6), inset 0 0 40px rgba(120, 85, 35, .28), 0 10px 26px rgba(0, 0, 0, .55);
  border-radius: 2px;
  padding: 0 24px 22px;
}

.panel-title {
  font-family: var(--title-font);
  font-weight: normal;
  font-size: 28px;
  line-height: 1;
  color: #f3dc9e;
  margin: 0 -24px 20px;
  padding: 14px 24px 10px;
  background: linear-gradient(180deg, #2c1f12, #1b130b);
  border-bottom: 1px solid var(--gold-lo);
  box-shadow: 0 1px 0 rgba(246, 220, 148, .25);
  text-shadow: 0 2px 0 #000;
}

.panel h3 {
  font-family: var(--title-font);
  font-weight: normal;
  font-size: 22px;
  line-height: 1.1;
  margin: 0 0 4px;
  color: #3d2810;
}
.panel p { margin: 0 0 12px; }

/* ---------- news ---------- */

.featured {
  display: block;
  margin: 0 0 22px;
  padding: 18px 20px;
  color: #f0e4c6;
  text-decoration: none;
  background:
    linear-gradient(90deg, rgba(16, 11, 7, .9), rgba(16, 11, 7, .55)),
    url("../img/hero.jpg") 70% 40% / cover;
  border: 1px solid var(--gold-lo);
  box-shadow: inset 0 0 0 3px rgba(16, 11, 7, .6), inset 0 0 0 4px rgba(214, 174, 88, .4);
}
a.featured:hover { color: #fff; }
.featured .tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}
.featured h3 { color: var(--gold-hi); font-size: 28px; margin-bottom: 6px; }
.featured p { margin: 0; max-width: 46ch; }

.news-list { display: grid; gap: 0; }

.news-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(92, 66, 30, .28);
}
.news-item:first-child { border-top: 0; padding-top: 0; }

.news-date {
  text-align: center;
  align-self: start;
  padding: 6px 0 5px;
  background: linear-gradient(180deg, #2c1f12, #1b130b);
  border: 1px solid var(--gold-lo);
  color: var(--gold-hi);
  line-height: 1.05;
}
.news-date .m { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.news-date .d { display: block; font-family: var(--title-font); font-size: 28px; }
.news-date.none .d { font-size: 18px; padding: 4px 0; }

.news-item h3 { font-size: 23px; }
.news-item h3 a { color: inherit; text-decoration: none; }
.news-item h3 a:hover { color: var(--link-hover); text-decoration: underline; }
.news-item p { margin: 0; }
.news-item[hidden] { display: none; }

.news-more {
  justify-self: center;
  margin-top: 14px;
  font: 18px/1 var(--title-font);
  color: #3d2810;
  background: rgba(90, 60, 20, .08);
  border: 1px solid rgba(92, 66, 30, .45);
  border-radius: var(--radius);
  padding: 9px 18px 7px;
  cursor: pointer;
}
.news-more:hover { background: rgba(90, 60, 20, .16); color: var(--link-hover); }

/* ---------- side panels ---------- */

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 16px 46px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-family: var(--title-font);
  font-size: 22px;
  padding-top: 3px;
  color: var(--gold-hi);
  background: linear-gradient(180deg, #2c1f12, #1b130b);
  border: 1px solid var(--gold-lo);
  border-radius: 50%;
}
.steps li:last-child { padding-bottom: 0; }
.steps p { margin-bottom: 10px; font-size: 16px; }

.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0 0 12px;
}
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 600; }

/* ---------- features ---------- */

.features { margin-top: 28px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.feature-grid article { border-left: 2px solid rgba(140, 106, 44, .5); padding-left: 14px; }
.feature-grid p { font-size: 16px; margin: 0; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--gold-lo);
  background: #0c0805;
  color: #a8987a;
  font-size: 14px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 32px;
  text-align: center;
}
.footer-inner p { margin: 8px auto; max-width: 70ch; }
.footer a { color: var(--gold); }
.footer a:hover { color: var(--gold-hi); }

/* ---------- smaller screens ---------- */

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

@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar-inner { flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; width: 100%; margin: 0; justify-content: center; }
  .nav a { padding: 4px 8px; font-size: 15px; }
  .topbar .btn-small { margin-left: auto; }
  .hero { min-height: 0; }
  .hero-art { background-size: cover; background-position: 70% 35%; }
  .hero-art::after { background: linear-gradient(180deg, rgba(12, 8, 5, .55), rgba(12, 8, 5, .8) 60%, var(--night)); }
  .hero-kicker { font-size: 28px; }
  .btn-large { font-size: 22px; padding: 13px 22px 10px; }
  .feature-grid { grid-template-columns: 1fr; }
  .panel { padding: 0 16px 18px; }
  .panel-title { margin: 0 -16px 18px; padding: 12px 16px 9px; }
}
