/* Veldrath Guild — deep navy, muted gold, textured dark */

:root {
  --navy-950: #050810;
  --navy-900: #0a1224;
  --navy-850: #0f1a32;
  --navy-800: #152240;
  --gold-500: #c9a24a;
  --gold-400: #d4b56a;
  --gold-300: #e3cc8f;
  --ink-200: #c8d0e0;
  --ink-100: #e6eaf2;
  --muted: #7a869f;
  --line: rgba(201, 162, 74, 0.22);
  --shadow: rgba(0, 0, 0, 0.45);
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius: 6px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.reduce-motion * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-200);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(201, 162, 74, 0.08), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(80, 120, 200, 0.06), transparent 50%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 40%, var(--navy-950));
}

.texture-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gold-500);
  color: var(--navy-950);
  z-index: 100;
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 18, 36, 0.92);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink-100);
  min-width: 0;
}

.brand-mark {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px var(--shadow));
  transition: transform 0.35s ease;
}

.brand-lockup:hover .brand-mark {
  transform: rotate(-4deg) scale(1.03);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42ch;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy-850);
  color: var(--ink-100);
  cursor: pointer;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--gold-400);
  border-radius: 1px;
}

.nav-toggle-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--ink-200);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-300);
  border-bottom-color: rgba(201, 162, 74, 0.45);
}

.site-nav a[aria-current="page"] {
  color: var(--gold-400);
  border-bottom-color: var(--gold-500);
}

main {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 3rem;
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--ink-100);
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-200);
  margin: 0 0 1.25rem;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 0.75rem;
}

.hero-art {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--navy-850), var(--navy-800));
  min-height: 220px;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.95;
  transition: opacity 0.4s ease, transform 6s ease;
}

.hero-art:hover img {
  opacity: 1;
  transform: scale(1.02);
}

.hero-badge {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: rgba(5, 8, 16, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--ink-100);
}

.section {
  margin-bottom: 3rem;
}

.section-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0 0 0.35rem;
  color: var(--ink-100);
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Asymmetric storytelling blocks */
.story-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.story-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(160deg, rgba(21, 34, 64, 0.55), rgba(10, 18, 36, 0.4));
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.story-block:hover {
  border-color: rgba(201, 162, 74, 0.45);
  box-shadow: 0 12px 40px var(--shadow);
  transform: translateY(-2px);
}

.story-block h2,
.story-block h3 {
  font-family: var(--font-display);
  color: var(--gold-300);
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.story-block p {
  margin: 0 0 0.85rem;
}

.story-block p:last-child {
  margin-bottom: 0;
}

.story-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .story-row.two {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .story-row.flip {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.pull-strip {
  margin: 2rem 0;
  padding: 1.5rem 1.25rem;
  border-left: 4px solid var(--gold-500);
  background: rgba(15, 26, 50, 0.65);
  font-size: 1.05rem;
  color: var(--ink-100);
}

.media-rail {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .media-rail {
    grid-template-columns: 1fr;
  }
  .brand-tag {
    white-space: normal;
  }
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 1.25rem;
    left: 1.25rem;
    background: var(--navy-850);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: none;
    box-shadow: 0 18px 50px var(--shadow);
  }
  .site-nav.is-open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Game library: non-card layouts */
.lib-band {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(201, 162, 74, 0.12);
  align-items: start;
}

.lib-band:last-child {
  border-bottom: none;
}

.lib-icon {
  width: 140px;
  height: 100px;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--navy-800);
}

.lib-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lib-band h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink-100);
}

.lib-meta {
  font-size: 0.85rem;
  color: var(--gold-400);
  margin-bottom: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lib-columns {
  columns: 1;
  gap: 2rem;
}

@media (min-width: 900px) {
  .lib-columns {
    columns: 2;
  }
}

.lib-columns p {
  break-inside: avoid;
  margin: 0 0 1rem;
}

.timeline {
  border-left: 2px solid var(--line);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.45rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(201, 162, 74, 0.15);
}

/* Long-form article */
.prose {
  max-width: 68ch;
}

.prose::after {
  content: "";
  display: table;
  clear: both;
}

.prose h2 {
  font-family: var(--font-display);
  color: var(--ink-100);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.45rem;
}

.prose h3 {
  font-family: var(--font-display);
  color: var(--gold-300);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
}

.prose li {
  margin-bottom: 0.35rem;
}

.side-note {
  float: right;
  width: min(100%, 280px);
  margin: 0 0 1rem 1.25rem;
  padding: 1rem;
  border: 1px dashed rgba(201, 162, 74, 0.35);
  border-radius: var(--radius);
  background: rgba(10, 18, 36, 0.65);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .side-note {
    float: none;
    width: 100%;
    margin: 1rem 0;
  }
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1rem;
  max-width: 560px;
}

label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--navy-850);
  color: var(--ink-100);
  font-family: inherit;
  font-size: 1rem;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(201, 162, 74, 0.55);
  outline-offset: 2px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-gold:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-100);
}

.btn-ghost:hover {
  border-color: rgba(201, 162, 74, 0.55);
}

/* Articles list — not a uniform grid */
.article-stack article {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(201, 162, 74, 0.12);
}

.article-stack article:first-child {
  padding-top: 0;
}

.article-stack h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.article-stack h2 a {
  color: var(--ink-100);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.article-stack h2 a:hover {
  color: var(--gold-300);
  border-bottom-color: rgba(201, 162, 74, 0.45);
}

.article-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  z-index: 80;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  background: rgba(5, 8, 16, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--ink-100);
}

.cookie-body {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-200);
}

.cookie-body a {
  color: var(--gold-300);
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.25rem 2rem;
  background: linear-gradient(180deg, rgba(5, 8, 16, 0.2), var(--navy-950));
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.75rem;
}

.footer-lead {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--ink-100);
}

.footer-heading {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin: 0 0 0.5rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-copy.small {
  font-size: 0.85rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--ink-200);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  border-bottom-color: rgba(201, 162, 74, 0.45);
}

.footer-icons {
  max-width: var(--max);
  margin: 1.5rem auto 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
  opacity: 0.75;
}

.footer-icons img {
  filter: drop-shadow(0 2px 6px var(--shadow));
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-icons img:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 162, 74, 0.12);
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
  color: var(--ink-100);
}

.page-intro {
  margin: 0 0 2rem;
  max-width: 70ch;
  color: var(--ink-200);
}

.thank-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  background: rgba(15, 26, 50, 0.5);
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy .lede,
.hero-copy h1 {
  animation: fade-rise 0.7s ease both;
}

.hero-art {
  animation: fade-rise 0.9s ease 0.08s both;
}
