/* The Ancient Order of Elves — deep forest green and gold, moonlit. */

:root {
  --green-950: #08170f;
  --green-900: #0d2018;
  --green-800: #122a1e;
  --green-700: #1a3828;
  --gold: #c9a227;
  --gold-bright: #e3c565;
  --gold-dim: #9a7d24;
  --cream: #f2ead8;
  --cream-dim: #cfc4a8;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--green-950);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.075rem;
  line-height: 1.65;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  text-align: center;
  overflow: hidden;
  background: var(--green-900);
}

.hero-art img {
  display: block;
  width: 100%;
  height: min(72vh, 640px);
  object-fit: cover;
  object-position: center 38%;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(8, 23, 15, 0.42) 0%,
    rgba(8, 23, 15, 0.08) 34%,
    rgba(8, 23, 15, 0.10) 62%,
    rgba(8, 23, 15, 0.88) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  margin-top: -9.5rem;
  padding: 0 1.25rem 3rem;
}

.emblem {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(8, 23, 15, 0.55), 0 10px 34px rgba(0, 0, 0, 0.6);
  background: var(--green-900);
}

.hero h1 {
  margin: 1.1rem auto 0.6rem;
  max-width: 20ch;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1.15;
  color: var(--gold-bright);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}

.welcome {
  margin: 0 auto;
  max-width: 52ch;
  font-style: italic;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--cream);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

/* ---------- Sections ---------- */

main {
  background:
    radial-gradient(1100px 480px at 50% -60px, rgba(201, 162, 39, 0.07), transparent 70%),
    var(--green-950);
}

.section {
  max-width: 62rem;
  margin: 0 auto;
  padding: 3.2rem 1.25rem 0.6rem;
}

.section h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}

.rule {
  width: 11rem;
  height: 1px;
  margin: 1rem auto 1.6rem;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  position: relative;
}

.rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3.5px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--gold);
}

.section p { margin: 0 auto 1.1rem; max-width: 68ch; }
.section p:last-child { margin-bottom: 0; }

strong { color: var(--gold-bright); font-weight: 600; }

/* ---------- Life in the Order ---------- */

.strands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 0.4rem;
}

.strand {
  background: linear-gradient(180deg, var(--green-800), var(--green-900));
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 10px;
  padding: 1.4rem 1.3rem 1.2rem;
}

.strand h3 {
  margin: 0 0 0.6rem;
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  text-align: center;
}

.strand p { font-size: 0.99rem; color: var(--cream); margin: 0; }

/* ---------- Guild Tools ---------- */

.tool-card {
  display: block;
  max-width: 44rem;
  margin: 0.4rem auto 0;
  text-decoration: none;
  color: var(--cream);
  background: linear-gradient(180deg, var(--green-700), var(--green-900));
  border: 1px solid var(--gold-dim);
  border-radius: 12px;
  padding: 1.6rem 1.7rem 1.4rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover, .tool-card:focus-visible {
  border-color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  outline: none;
}

.tool-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--gold-bright);
}

.tool-card p { margin: 0 0 0.7rem; max-width: none; }
.tool-card .tool-note { color: var(--cream-dim); font-style: italic; margin-bottom: 0.9rem; }

.tool-link {
  color: var(--gold-bright);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 2px;
}

/* ---------- Herald ---------- */

.chronicle-note {
  text-align: center;
  font-style: italic;
  color: var(--cream-dim);
}

/* ---------- Footer ---------- */

footer {
  margin-top: 3.6rem;
  padding: 2.4rem 1.25rem 2.6rem;
  text-align: center;
  background: var(--green-900);
  border-top: 1px solid rgba(201, 162, 39, 0.3);
}

.emblem-small {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  margin-bottom: 0.9rem;
}

footer p { margin: 0 auto 0.7rem; max-width: 68ch; }
footer .footer-hall { color: var(--cream-dim); font-style: italic; }
footer .legal { color: var(--cream-dim); font-size: 0.86rem; margin-bottom: 0; }

footer a { color: var(--gold-bright); }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .strands { grid-template-columns: 1fr; }
  .hero-inner { margin-top: -7rem; }
  .emblem { width: 128px; height: 128px; }
  .section { padding-top: 2.4rem; }
}
