/* Akordia legal-site — warm night stage */
:root {
  --ink: #070b14;
  --ink-elevated: #0e1524;
  --stage: #121a2c;
  --fog: rgba(212, 168, 75, 0.07);
  --brass: #d4a84b;
  --brass-soft: #e8c87a;
  --brass-dim: rgba(212, 168, 75, 0.35);
  --paper: #ebe6da;
  --paper-muted: #a39e90;
  --paper-faint: #6e6a60;
  --line: rgba(235, 230, 218, 0.08);
  --focus: #e8c87a;
  --radius: 999px;
  --max: 42rem;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(212, 168, 75, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(40, 70, 120, 0.22), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(212, 168, 75, 0.06), transparent 45%),
    repeating-linear-gradient(
      180deg,
      transparent,
      transparent 27px,
      var(--line) 27px,
      var(--line) 28px
    );
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brass-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

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

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ——— Site chrome ——— */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  font-variation-settings: "SOFT" 50, "WONK" 0.4;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-decoration: none;
}

.brand-mark:hover {
  color: var(--brass-soft);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--paper-muted);
  text-decoration: none;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15em;
  width: 100%;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--paper);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-footer {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--paper-faint);
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--paper-muted);
}

.site-footer a:hover {
  color: var(--brass-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}

/* ——— Home (hero) ——— */
.page-home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-home .site-header {
  position: relative;
  z-index: 1;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
  width: 100%;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 5.25rem);
  font-weight: 500;
  font-variation-settings: "SOFT" 60, "WONK" 0.55, "opsz" 144;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--paper);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 40, "WONK" 0.2;
  line-height: 1.3;
  max-width: 18em;
  margin: 0 0 0.85rem;
  color: var(--brass-soft);
}

.hero-lead {
  margin: 0 0 2.25rem;
  max-width: 28rem;
  color: var(--paper-muted);
  font-size: 1.05rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--brass-dim);
  border-radius: var(--radius);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  background: rgba(14, 21, 36, 0.55);
  backdrop-filter: blur(6px);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.hero-links a:hover {
  border-color: var(--brass);
  background: rgba(212, 168, 75, 0.1);
  color: var(--brass-soft);
  transform: translateY(-1px);
}

.hero-links a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Index motions */
@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-glow {
  0%,
  100% {
    text-shadow: 0 0 0 transparent;
  }
  50% {
    text-shadow: 0 0 48px rgba(212, 168, 75, 0.18);
  }
}

.page-home .hero-brand {
  animation:
    fade-rise 0.85s ease both,
    soft-glow 6s ease-in-out 1.2s infinite;
}

.page-home .hero-headline {
  animation: fade-rise 0.85s ease 0.12s both;
}

.page-home .hero-lead {
  animation: fade-rise 0.85s ease 0.22s both;
}

.page-home .hero-links {
  animation: fade-rise 0.85s ease 0.34s both;
}

.page-home .hero-links li:nth-child(1) a::after,
.page-home .hero-links li:nth-child(2) a::after,
.page-home .hero-links li:nth-child(3) a::after {
  content: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-brand,
  .page-home .hero-headline,
  .page-home .hero-lead,
  .page-home .hero-links {
    animation: none;
  }

  .site-nav a::after {
    transition: none;
  }

  .hero-links a {
    transition: none;
  }
}

/* ——— Legal pages ——— */
.page-legal .site-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1.75rem;
  font-size: 0.9rem;
  color: var(--paper-muted);
  text-decoration: none;
}

.legal-back:hover {
  color: var(--brass-soft);
}

.legal-back svg {
  width: 0.9em;
  height: 0.9em;
  flex-shrink: 0;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  font-weight: 500;
  font-variation-settings: "SOFT" 50, "WONK" 0.35;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--paper);
}

.legal-meta {
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--paper-faint);
  font-size: 0.9rem;
}

.legal-meta a {
  color: var(--paper-muted);
}

.legal-intro {
  margin: 0 0 0.5rem;
  color: var(--paper-muted);
  font-size: 1.05rem;
}

.legal-section {
  margin-top: 2.25rem;
  padding-top: 0.25rem;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  font-variation-settings: "SOFT" 40, "WONK" 0.15;
  margin: 0 0 0.65rem;
  color: var(--brass-soft);
  letter-spacing: -0.01em;
}

.legal-section p,
.legal-section li {
  color: var(--paper-muted);
}

.legal-section p {
  margin: 0.55rem 0;
}

.legal-section ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.legal-section li {
  margin: 0.4rem 0;
  padding-left: 0.15rem;
}

.legal-section li::marker {
  color: var(--brass-dim);
}

.legal-section strong {
  color: var(--paper);
  font-weight: 600;
}

.legal-crosslinks {
  margin: 3rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--paper-faint);
}

.legal-crosslinks a {
  color: var(--paper-muted);
}

@media (min-width: 640px) {
  .site-header,
  .hero,
  .site-footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .page-legal .site-main {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
  }
}
