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

:root {
  --night: #090d0c;
  --night-soft: #101714;
  --forest: #17221b;
  --parchment: #dfd0aa;
  --parchment-light: #f1e5c3;
  --gold: #d7a83f;
  --gold-bright: #f2cc68;
  --rust: #9b4e2f;
  --ink: #1b1a15;
  --muted: #9f9a86;
  --border: rgba(215, 168, 63, 0.28);
  --display: 'Cinzel', Georgia, serif;
  --body: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--parchment);
  background: var(--night);
  font-family: var(--body);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

.site-header {
  height: 84px;
  padding: 0 clamp(24px, 6vw, 92px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(9, 13, 12, .78);
  backdrop-filter: blur(12px);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  color: var(--night);
  background: var(--gold);
  border: 3px double var(--night);
  outline: 1px solid var(--gold);
  font-weight: 800;
  clip-path: polygon(50% 0, 90% 18%, 82% 80%, 50% 100%, 18% 80%, 10% 18%);
}
.brand strong { display: block; color: var(--parchment-light); letter-spacing: .12em; font-size: 15px; }
.brand small { display: block; color: var(--gold); letter-spacing: .18em; font-size: 7px; margin-top: 3px; }

nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
nav a { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #c7bea7; transition: color .2s; }
nav a:hover { color: var(--gold-bright); }
.nav-cta { border: 1px solid var(--gold); padding: 12px 18px; box-shadow: inset 0 0 0 2px var(--night), inset 0 0 0 3px rgba(215,168,63,.35); }

.achievement-sidebar { position: fixed; z-index: 15; top: 108px; right: 18px; width: 340px; filter: drop-shadow(0 18px 36px rgba(0,0,0,.55)); }
.achievement-sidebar details { background: rgba(12,17,15,.97); border: 1px solid #775b28; backdrop-filter: blur(14px); }
.achievement-sidebar summary { min-height: 69px; padding: 12px 15px; display: grid; grid-template-columns: 40px 1fr 20px; align-items: center; gap: 11px; cursor: pointer; list-style: none; border-bottom: 1px solid transparent; }
.achievement-sidebar summary::-webkit-details-marker { display: none; }
.achievement-sidebar details[open] summary { border-bottom-color: var(--border); }
.achievement-orb { display: grid; place-items: center; width: 38px; height: 38px; color: var(--gold-bright); background: radial-gradient(circle, #74561f, #211b0e 68%); border: 1px solid #a27b31; clip-path: polygon(50% 0, 95% 25%, 87% 80%, 50% 100%, 13% 80%, 5% 25%); }
.achievement-sidebar summary strong { display: block; color: var(--parchment-light); font: 600 12px var(--display); letter-spacing: .04em; }
.achievement-sidebar summary small { display: block; margin-top: 4px; color: #777363; font-size: 7px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.sidebar-toggle { color: var(--gold); font-size: 24px; transform: rotate(90deg); transition: transform .2s; }
.achievement-sidebar details:not([open]) .sidebar-toggle { transform: rotate(180deg); }
.achievement-body { padding: 4px 16px 15px; max-height: min(610px, calc(100vh - 200px)); overflow-y: auto; }
.feed-status { min-height: 100px; padding: 28px 12px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #958f7e; font-size: 10px; line-height: 1.6; text-align: center; }
.feed-status[hidden] { display: none; }
.feed-spinner { width: 15px; height: 15px; flex: 0 0 auto; border: 2px solid rgba(215,168,63,.2); border-top-color: var(--gold); border-radius: 50%; animation: feed-spin .8s linear infinite; }
@keyframes feed-spin { to { transform: rotate(360deg); } }
.feed-message { color: #aaa38f; border-bottom: 1px solid var(--border); }
.achievement-feed { margin: 0; padding: 0; list-style: none; }
.achievement-feed li { padding: 15px 0; display: grid; grid-template-columns: 34px 1fr; gap: 10px; border-bottom: 1px solid rgba(215,168,63,.16); }
.feed-icon { display: grid; place-items: center; align-self: start; width: 30px; height: 30px; color: var(--gold); border: 1px solid #5b4722; background: #121914; font-size: 13px; }
.achievement-feed li > span:last-child { min-width: 0; }
.achievement-feed strong { display: block; margin-bottom: 4px; color: var(--gold-bright); font: 600 10px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.achievement-feed strong + span { display: block; color: #c2b9a2; font-size: 10px; line-height: 1.45; }
.achievement-feed time { display: block; margin-top: 5px; color: #68685e; font-size: 7px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.wom-link { margin-top: 14px; padding: 10px 4px 2px; display: flex; align-items: center; justify-content: space-between; color: #99804c; font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.wom-link:hover { color: var(--gold-bright); }

.hero {
  min-height: 770px;
  height: 100vh;
  max-height: 980px;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(205, 150, 52, .18), transparent 28%),
    linear-gradient(to bottom, rgba(8,12,12,.18), rgba(7,10,9,.68) 70%, var(--night)),
    linear-gradient(120deg, #111b19 0%, #293128 48%, #0b1110 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .28;
  background:
    linear-gradient(34deg, transparent 58%, rgba(0,0,0,.8) 58.3%, transparent 58.7%) 0 0/120px 80px,
    radial-gradient(ellipse at center, transparent 0 45%, rgba(0,0,0,.45) 75%);
}

.mountains {
  position: absolute;
  z-index: -1;
  left: -5%;
  right: -5%;
  bottom: 0;
  height: 48%;
  opacity: .64;
  background: #090d0c;
  clip-path: polygon(0 64%, 8% 49%, 15% 65%, 26% 27%, 34% 60%, 44% 35%, 51% 65%, 63% 18%, 72% 56%, 81% 31%, 91% 61%, 100% 40%, 100% 100%, 0 100%);
}

.mountains::after {
  content: '';
  position: absolute;
  inset: 24% 0 0;
  opacity: .42;
  background: #18231c;
  clip-path: polygon(0 70%, 12% 40%, 20% 63%, 31% 25%, 43% 66%, 57% 29%, 67% 59%, 78% 22%, 89% 54%, 100% 32%, 100% 100%, 0 100%);
}

.sky { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.star { position: absolute; width: 2px; height: 2px; background: var(--gold-bright); box-shadow: 0 0 8px var(--gold); }
.star-one { left: 18%; top: 24%; }.star-two { right: 22%; top: 30%; }.star-three { right: 35%; top: 18%; }

.hero-content { text-align: center; padding: 110px 24px 80px; position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 22px; color: var(--gold); font-family: var(--display); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; }
.eyebrow span { width: 34px; height: 1px; background: var(--gold); }
.eyebrow.dark { color: #70531f; }
.eyebrow.dark span { background: #8a6829; }

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 12px;
  color: var(--parchment-light);
  font: 800 clamp(54px, 10vw, 138px)/.9 var(--display);
  letter-spacing: -.035em;
  text-shadow: 0 4px 0 #51371c, 0 8px 24px #000;
}
.hero-kicker { color: var(--gold-bright); font: 600 clamp(16px, 2vw, 24px)/1.4 var(--display); letter-spacing: .05em; }
.hero-copy { color: #b9b39f; font-size: 14px; line-height: 1.8; }
.hero-actions { margin-top: 34px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.button { min-height: 52px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; transition: transform .2s, filter .2s, border-color .2s; }
.button:hover { transform: translateY(-3px); filter: brightness(1.12); }
.button-primary { color: #18140b; background: linear-gradient(#e6bb53, #b98625); border: 1px solid #f5d97c; box-shadow: inset 0 0 0 3px rgba(84,48,9,.22), 0 10px 24px rgba(0,0,0,.3); }
.button-secondary { color: var(--parchment-light); border: 1px solid rgba(223,208,170,.44); background: rgba(10,13,12,.48); }
.button-secondary:hover { border-color: var(--gold); }
.discord-icon { font-size: 17px; }

.online-plaque { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 9px; letter-spacing: .16em; color: #999481; }
.online-plaque strong { color: #dbd2ba; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #7faf57; box-shadow: 0 0 10px #7faf57; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .45; } }

.intro { padding: 110px clamp(24px, 7vw, 110px) 125px; color: var(--ink); background-color: var(--parchment); background-image: linear-gradient(rgba(94,70,31,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(94,70,31,.06) 1px, transparent 1px); background-size: 26px 26px; position: relative; }
.intro::before, .join-panel::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(90,60,17,.25); pointer-events: none; }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 66px; }
.section-heading h2, .join-panel h2 { font: 700 clamp(30px, 4vw, 50px)/1.18 var(--display); color: #262218; margin-bottom: 22px; }
.section-heading > p:last-child { max-width: 610px; margin: auto; color: #645d4d; line-height: 1.75; font-size: 14px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1120px; margin: auto; }
.stat-card { padding: 42px 38px; min-height: 300px; text-align: center; border: 1px solid rgba(89,63,25,.25); position: relative; }
.stat-card + .stat-card { border-left: 0; }
.stat-card.featured { background: rgba(113,78,28,.07); }
.stat-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 22px; color: #75501d; font-size: 24px; transform: rotate(45deg); border: 1px solid #9d7734; }
.stat-icon::first-letter { transform: rotate(-45deg); }
.stat-card > strong { display: block; color: #ad7d27; font: 700 13px var(--display); letter-spacing: .16em; }
.stat-card h3 { margin: 10px 0 14px; color: #272219; font: 700 18px var(--display); }
.stat-card p { color: #6e6655; font-size: 12px; line-height: 1.7; }

.history-section { padding: 120px clamp(24px, 8vw, 130px); position: relative; isolation: isolate; overflow: hidden; background: #0b100e; border-top: 1px solid rgba(215,168,63,.16); border-bottom: 1px solid rgba(215,168,63,.16); }
.history-section::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 15% 35%, rgba(141,91,31,.18), transparent 34%), linear-gradient(115deg, transparent 0 54%, rgba(215,168,63,.035) 54% 54.2%, transparent 54.2%); }
.history-year { position: absolute; z-index: -1; right: -1vw; top: 4px; color: rgba(215,168,63,.045); font: 800 clamp(130px, 24vw, 350px)/1 var(--display); letter-spacing: -.08em; }
.history-layout { max-width: 1120px; margin: auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(55px, 10vw, 140px); }
.history-heading .eyebrow { justify-content: flex-start; }
.history-heading h2 { max-width: 510px; color: var(--parchment-light); font: 700 clamp(38px, 5vw, 64px)/1.08 var(--display); }
.history-story { padding-top: 34px; color: #999482; font-size: 13px; line-height: 1.85; }
.history-story p { margin-bottom: 19px; }
.history-story .history-lead { color: #d0c6aa; font: 500 17px/1.75 var(--display); }
.history-story strong { color: var(--gold-bright); }
.history-values { margin-top: 38px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.history-values div { padding: 20px 10px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--border); }
.history-values div:last-child { border-right: 0; }
.history-values strong { color: var(--gold); font: 700 10px var(--display); }
.history-values span { color: #d5cbb0; font: 600 11px var(--display); text-transform: uppercase; letter-spacing: .08em; }
.history-section blockquote { max-width: 1120px; margin: 75px auto 0; padding: 30px 0 0; border-top: 1px solid var(--border); color: var(--gold-bright); font: 600 clamp(20px, 3vw, 34px)/1.4 var(--display); text-align: center; }
.history-section cite { display: block; margin-top: 12px; color: #777363; font: normal 8px var(--body); letter-spacing: .16em; text-transform: uppercase; }

.adventures { padding: 120px clamp(24px, 8vw, 130px); display: grid; grid-template-columns: minmax(280px, .8fr) minmax(400px, 1.2fr); align-items: center; gap: clamp(60px, 10vw, 160px); background: radial-gradient(circle at 15% 50%, #253023 0, #111814 46%, #090d0c 80%); position: relative; isolation: isolate; overflow: hidden; }
.adventures::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #101814 5%, rgba(9,13,12,.94) 40%, rgba(9,13,12,.55)), url('assets/trump-clan-elder.png') right center/cover no-repeat; opacity: .23; filter: grayscale(.2) sepia(.15); }
.adventures::after { content: 'MAKE GIELINOR GREAT AGAIN'; position: absolute; z-index: -1; right: 4%; bottom: 18px; color: rgba(215,168,63,.13); font: 700 clamp(15px, 2vw, 28px) var(--display); letter-spacing: .16em; }
.adventure-copy .eyebrow { justify-content: flex-start; }
.adventure-copy h2 { font: 700 clamp(36px, 5vw, 60px)/1.08 var(--display); color: var(--parchment-light); }
.adventure-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.8; font-size: 13px; }
.text-link { display: inline-block; margin-top: 20px; color: var(--gold); font: 700 11px var(--display); text-transform: uppercase; letter-spacing: .14em; }
.text-link span { font-size: 18px; margin-left: 8px; }
.activity-list { border-top: 1px solid var(--border); }
.activity-row { min-height: 112px; display: grid; grid-template-columns: 44px 60px 1fr auto; align-items: center; gap: 16px; border-bottom: 1px solid var(--border); transition: background .25s, padding .25s; }
.activity-row:hover { padding: 0 16px; background: rgba(215,168,63,.06); }
.activity-number { font: 600 10px var(--display); color: #776e57; }
.rune-icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #705725; color: var(--gold); font-size: 20px; clip-path: polygon(50% 0, 100% 22%, 91% 81%, 50% 100%, 9% 81%, 0 22%); background: #121a15; }
.activity-row strong { font: 600 clamp(16px, 2vw, 21px) var(--display); color: #ded3b6; }
.activity-row small { color: #777363; font-size: 8px; letter-spacing: .15em; }

.events-section { padding: 110px clamp(24px, 7vw, 110px) 120px; color: var(--ink); background: var(--parchment); background-image: linear-gradient(135deg, rgba(120,83,28,.07) 25%, transparent 25%, transparent 75%, rgba(120,83,28,.07) 75%); background-size: 30px 30px; }
.events-heading { max-width: 1120px; margin: 0 auto 48px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.events-heading .eyebrow { justify-content: flex-start; margin-bottom: 13px; }
.events-heading h2 { margin: 0; font: 700 clamp(38px, 5vw, 62px)/1 var(--display); color: #272219; }
.events-heading > p { max-width: 390px; margin: 0; color: #6d6554; font-size: 13px; line-height: 1.7; }
.events-grid { max-width: 1120px; margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(89,63,25,.28); }
.event-card { min-height: 340px; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(89,63,25,.28); background: rgba(255,255,255,.14); transition: transform .25s, background .25s; }
.event-card:last-child { border-right: 0; }
.event-card:hover { transform: translateY(-7px); background: rgba(255,255,255,.34); }
.event-card.event-featured { background: #1a241d; color: var(--parchment); box-shadow: inset 0 0 0 5px #1a241d, inset 0 0 0 6px rgba(215,168,63,.35); }
.event-date { width: 64px; height: 72px; display: grid; place-content: center; text-align: center; border: 1px solid #9d7734; color: #9a6e21; background: rgba(255,255,255,.15); }
.event-date strong { font: 700 27px/1 var(--display); }
.event-date span { margin-top: 5px; font-size: 8px; font-weight: 800; letter-spacing: .2em; }
.event-featured .event-date { color: var(--gold-bright); background: rgba(215,168,63,.06); }
.event-tag { color: #9a6e21; font-size: 8px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.event-info h3 { margin: 10px 0 14px; color: #2d271c; font: 700 20px/1.25 var(--display); }
.event-info p { min-height: 60px; color: #6a6252; font-size: 12px; line-height: 1.7; }
.event-info small { color: #81765e; font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.event-featured .event-info h3 { color: var(--parchment-light); }
.event-featured .event-info p { color: #aaa38f; }
.event-featured .event-info small { color: var(--gold); }
.events-note { margin: 24px auto 0; text-align: center; color: #7b715c; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.join-section { padding: 90px clamp(20px, 8vw, 130px); background: #0c110f; }
.join-panel { max-width: 1040px; margin: auto; padding: 75px 30px; position: relative; text-align: center; background: var(--parchment); color: var(--ink); box-shadow: 0 26px 80px rgba(0,0,0,.4); }
.mini-crown { display: block; color: #a37624; font-size: 29px; margin-bottom: 18px; }
.join-panel h2 { margin-bottom: 14px; }
.join-panel > p:not(.eyebrow) { color: #6e6655; font-size: 13px; margin-bottom: 28px; }
.join-panel .button { margin-bottom: 17px; }
.join-panel > small { display: block; color: #867c67; font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }

footer { min-height: 120px; padding: 30px clamp(24px, 6vw, 92px); display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; border-top: 1px solid rgba(255,255,255,.07); color: #656559; }
footer p { margin: 0; text-align: center; font-size: 9px; line-height: 1.5; }
footer > a { text-align: right; color: #928568; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.footer-brand { transform: scale(.85); transform-origin: left center; }

@media (max-width: 800px) {
  .site-header { height: 72px; }
  nav > a:not(.nav-cta) { display: none; }
  .achievement-sidebar { position: absolute; top: 590px; left: 20px; right: 20px; width: auto; }
  .achievement-body { max-height: 340px; }
  h1 { font-size: clamp(43px, 15vw, 80px); }
  .hero { min-height: 850px; padding-bottom: 160px; }
  .stats-grid { grid-template-columns: 1fr; max-width: 500px; }
  .stat-card + .stat-card { border-left: 1px solid rgba(89,63,25,.25); border-top: 0; }
  .history-layout { grid-template-columns: 1fr; gap: 20px; }
  .history-story { padding-top: 0; }
  .history-section blockquote { margin-top: 55px; }
  .adventures { grid-template-columns: 1fr; gap: 56px; }
  .adventures::before { background-position: 62% center; opacity: .16; }
  .activity-row { grid-template-columns: 36px 50px 1fr; }
  .activity-row small { display: none; }
  .events-heading { align-items: start; flex-direction: column; gap: 20px; }
  .events-grid { grid-template-columns: 1fr; max-width: 520px; }
  .event-card { min-height: 280px; border-right: 0; border-bottom: 1px solid rgba(89,63,25,.28); }
  .event-card:last-child { border-bottom: 0; }
  footer { grid-template-columns: 1fr; gap: 22px; text-align: center; }
  .footer-brand { justify-content: center; transform-origin: center; }
  footer > a { text-align: center; }
}

@media (max-width: 480px) {
  .site-header { padding: 0 16px; }
  .brand-mark { width: 36px; }
  .brand strong { font-size: 12px; }
  .nav-cta { padding: 10px 12px; font-size: 9px; }
  .hero-actions .button { width: 100%; max-width: 310px; }
  .online-plaque { font-size: 7px; }
  .intro, .adventures { padding-left: 20px; padding-right: 20px; }
  .stat-card { padding: 36px 24px; }
  .history-section { padding-left: 20px; padding-right: 20px; }
  .history-values span { font-size: 9px; }
  .join-panel { padding: 62px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
