/* ==========================================================================
   Warriors of Syndar — global stylesheet
   Dark arcane palette, gold accents, Lato typography, generous spacing.
   Inspired by the visual language of dmhubapp.com.
   ========================================================================== */

:root {
  --bg: #0e1015;
  --bg-elevated: #141922;
  --bg-panel: #11151d;
  --accent: #e3cfa4;
  --accent-strong: #cead8a;
  --accent-bright: #f4e6c8;
  --accent-soft: rgba(227, 207, 164, 0.12);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.68);
  --text-dim: rgba(255, 255, 255, 0.44);
  --border: rgba(227, 207, 164, 0.24);
  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --font: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset & base elements
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--accent-bright);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--accent);
  color: #101319;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 50;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #101319;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
  color: #101319;
}

/* Ambient background glow that sits behind every page. */
.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% -5%, rgba(227, 207, 164, 0.16), transparent 70%),
    radial-gradient(45% 35% at 88% 22%, rgba(94, 124, 196, 0.12), transparent 70%),
    radial-gradient(50% 40% at 8% 62%, rgba(227, 207, 164, 0.06), transparent 70%);
}

.container {
  width: min(calc(100% - var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 2rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn--primary {
  background: linear-gradient(180deg, #f0dfb8, var(--accent-strong));
  color: #12151c;
  box-shadow: 0 12px 30px rgba(206, 173, 138, 0.18);
}

.btn--primary:hover {
  color: #12151c;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(206, 173, 138, 0.3);
}

.btn--ghost {
  border-color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--accent);
}

.btn--ghost:hover {
  background: var(--accent-strong);
  color: #12151c;
  transform: translateY(-2px);
}

.btn--small {
  min-height: 2.4rem;
  padding: 0.45rem 1.1rem;
  border-width: 1px;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}

/* --------------------------------------------------------------------------
   Header: utility bar, wordmark, primary navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 10;
  padding-top: clamp(1rem, 2.5vw, 1.75rem);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.topbar__group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar__link {
  padding: 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.topbar__link:hover {
  color: var(--accent);
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--text-muted);
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.social:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
}

.social svg {
  width: 1rem;
  height: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: fit-content;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.site-header > .brand {
  margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
}

.brand__mark {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  color: var(--accent);
  filter: drop-shadow(0 0 12px rgba(227, 207, 164, 0.35));
}

.brand__text {
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand__accent {
  display: block;
  color: var(--accent);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.24em;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}

/* Header lives inside the hero so socials + wordmark sit on the artwork. */
.hero .site-header {
  flex: 0 0 auto;
  padding-top: clamp(1rem, 3vh, 2rem);
}

.hero .site-header .brand__text,
.hero .site-header .brand__accent,
.hero .site-header .topbar__link {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.hero .site-header .social svg {
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.5));
}

.hero__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 7vh, 4.5rem) var(--gutter) 0;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.8;
  filter: saturate(0.9) brightness(0.7) contrast(1.02);
  transform: scale(1.02);
}

/* Darkening layer that keeps the header and hero copy readable over the artwork. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(14, 16, 21, 0.55) 0%, rgba(14, 16, 21, 0.3) 35%, rgba(14, 16, 21, 0.72) 78%, var(--bg) 100%),
    radial-gradient(75% 65% at 50% 42%, transparent 0%, rgba(14, 16, 21, 0.45) 100%);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "";
  width: clamp(1.5rem, 5vw, 3.5rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.hero__eyebrow::after {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.hero__title {
  max-width: 20ch;
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  font-size: clamp(2.6rem, 7.2vw, 5.5rem);
  font-weight: 200;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__title span {
  display: block;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Coming-soon teaser: reuses the hero block with a slightly smaller subtitle. */
.hero--soon .hero__title {
  max-width: 24ch;
}

.hero--soon .hero__title span {
  font-size: 0.72em;
  letter-spacing: 0.08em;
}

.hero__lead {
  max-width: 46rem;
  margin: 1.5rem auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.hero__actions,
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.hero__actions .btn,
.cta__actions .btn {
  flex: 1 1 15rem;
  max-width: 20rem;
}

.hero__note {
  display: inline-block;
  margin-top: 1.75rem;
  border-bottom: 1px solid transparent;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__note:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Sections & features
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section--tight {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.section__head {
  max-width: 780px;
  margin: 0 auto clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}

.section__title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section__title span {
  color: var(--accent);
  font-weight: 700;
}

.section__lead {
  margin-top: 1.1rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.features {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
}

.feature--reverse .feature__visual {
  order: 2;
}

.feature__visual {
  position: relative;
  isolation: isolate;
  min-height: clamp(300px, 36vw, 420px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.feature__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.82);
  transition:
    transform 0.6s var(--ease),
    filter 0.6s var(--ease);
}

.feature:hover .feature__image {
  transform: scale(1.04);
  filter: saturate(1) brightness(0.95);
}

/* Scrim so the index and tag badges stay legible over the photo. */
.feature__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 16, 21, 0.12) 40%, rgba(14, 16, 21, 0.88) 100%);
  pointer-events: none;
}

.feature__index {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  z-index: 1;
  color: var(--text-dim);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
}

.feature__tag {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(14, 16, 21, 0.65);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.feature__kicker {
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.feature__title {
  margin-top: 0.6rem;
  color: var(--accent);
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.feature__text {
  margin-top: 1rem;
  color: var(--text-muted);
}

.checklist {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.75rem;
  padding: 1.1rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.015);
}

.checklist li {
  display: flex;
  gap: 0.7rem;
  color: var(--text);
  font-size: 0.98rem;
}

.checklist li::before {
  content: "✓";
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Chronicle cards (also reused by future article lists)
   -------------------------------------------------------------------------- */

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-panel));
  overflow: hidden;
  transition:
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-panel);
  overflow: hidden;
}

/* Blends the photo into the card so bright skies never fight the dark theme. */
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 16, 21, 0.05) 35%, rgba(14, 16, 21, 0.85) 100%);
  pointer-events: none;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.9);
  transition:
    transform 0.6s var(--ease),
    filter 0.6s var(--ease);
}

.card:hover .card__image {
  transform: scale(1.06);
  filter: saturate(1) brightness(1);
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.6rem;
}

.card__category {
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.card__title {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
}

.card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card__link {
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card__link:hover {
  color: var(--accent-bright);
}

/* --------------------------------------------------------------------------
   Call to action band
   -------------------------------------------------------------------------- */

.cta {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 9vw, 7rem);
}

.cta__inner {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(227, 207, 164, 0.14), transparent 60%),
    linear-gradient(180deg, #151a24, #0f131a);
  box-shadow: var(--shadow-lg);
  text-align: center;
  overflow: hidden;
}

.cta__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(227, 207, 164, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 207, 164, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(80% 80% at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}

.cta__inner > * {
  position: relative;
  z-index: 1;
}

.cta__eyebrow {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.cta__title {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cta__title span {
  color: var(--accent);
  font-weight: 700;
}

.cta__text {
  max-width: 38rem;
  margin: 1rem auto 0;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) 2.5rem;
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 40%);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: min(100%, var(--container));
  margin-inline: auto;
  text-align: center;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
}

.footer__link {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer__link:hover {
  color: var(--accent-bright);
}

.footer__divider {
  width: min(520px, 80%);
  height: 1px;
  background: var(--accent);
  opacity: 0.35;
}

.footer__socials {
  display: flex;
  gap: 1.25rem;
}

.footer__legal {
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.footer__legal a {
  color: var(--accent);
}

.footer__legal .sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__eyebrow,
.hero__title,
.hero__lead,
.hero__actions,
.hero__note {
  animation: fade-up 0.9s var(--ease) both;
}

.hero__title {
  animation-delay: 0.08s;
}

.hero__lead {
  animation-delay: 0.16s;
}

.hero__actions {
  animation-delay: 0.24s;
}

.hero__note {
  animation-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive adjustments
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .feature {
    grid-template-columns: 1fr;
  }

  .feature--reverse .feature__visual {
    order: 0;
  }

  .feature__visual {
    min-height: 300px;
  }

  .feature__body {
    order: 1;
  }

  .card__media {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .topbar__group:first-child {
    order: 2;
  }

  .site-header > .brand {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }

  .brand__text {
    letter-spacing: 0.2em;
  }

  .hero__actions .btn,
  .cta__actions .btn {
    flex: 1 1 100%;
    max-width: none;
  }

  .footer__links {
    gap: 0.5rem 1rem;
  }
}
