/* Aywa Anka — White Eagle
   Dark earth · Andean gold · clean sacred feel · v1 */

:root {
  --earth-deep: #0f0c0a;
  --earth: #1a1510;
  --earth-mid: #2a2218;
  --earth-soft: #3d3226;
  --stone: #5c4e3e;
  --gold: #c9a227;
  --gold-bright: #e8c547;
  --gold-dim: #8a7020;
  --clay: #a67c52;
  --cream: #f0e6d2;
  --cream-muted: #c4b8a0;
  --fog: #9a8f7a;
  --line: rgba(201, 162, 39, 0.22);
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --max: 42rem;
  --wide: 58rem;
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--cream);
  background: var(--earth-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(201, 162, 39, 0.08), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(166, 124, 82, 0.06), transparent 50%);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover,
a:focus-visible {
  color: var(--cream);
}

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

/* —— Layout —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 12, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.nav a {
  color: var(--cream-muted);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-dim);
}

main {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  width: 100%;
}

.narrow {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
  color: var(--fog);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0.35rem 0;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

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

.site-footer .footer-domain {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold-dim);
  margin-top: 0.85rem;
}

/* —— Hero —— */
.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.hero-ornament {
  display: block;
  width: 3rem;
  height: 1px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.hero-title-gold {
  color: var(--gold-bright);
  display: block;
}

.hero-lede {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--cream-muted);
  max-width: 30rem;
  margin: 0 auto 1.75rem;
  line-height: 1.5;
}

.hero-mission {
  font-size: 0.95rem;
  color: var(--fog);
  max-width: 28rem;
  margin: 0 auto 2rem;
}

/* —— Buttons —— */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--earth-deep);
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-bright);
  color: var(--earth-deep);
  border-color: var(--gold-bright);
}

.btn-ghost {
  background: transparent;
  color: var(--gold-bright);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(201, 162, 39, 0.12);
  color: var(--cream);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

/* —— Sections —— */
.section {
  margin: 3rem 0;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--cream);
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--gold-bright);
}

p {
  margin: 0 0 1rem;
  color: var(--cream-muted);
}

.lead {
  font-size: 1.1rem;
  color: var(--cream);
}

.divider {
  border: none;
  height: 1px;
  margin: 2.5rem auto;
  max-width: 8rem;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* —— Cards —— */
.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid.card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--earth);
  border: 1px solid var(--line);
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
}

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

.card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.card a:hover h3 {
  color: var(--gold-bright);
}

/* —— Chapter list —— */
.chapter-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.chapter-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.chapter-list li.is-ending {
  background: rgba(201, 162, 39, 0.06);
  margin: 0 -0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 0.75rem;
}

.chapter-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.chapter-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--cream);
  margin: 0;
  font-weight: 500;
}

.chapter-note {
  grid-column: 2;
  font-size: 0.9rem;
  color: var(--fog);
  margin: 0.2rem 0 0;
}

/* —— Paywall —— */
.paywall {
  margin-top: 2.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--earth-mid), var(--earth));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.paywall p {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.paywall .btn {
  margin-top: 0.5rem;
}

.paywall-placeholder {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--gold-dim);
  border-radius: var(--radius);
  background: rgba(15, 12, 10, 0.35);
}

.paywall-placeholder p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--cream-muted);
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 0.25rem 0.6rem;
  margin-bottom: 1rem;
}

/* —— Portrait (Meister) —— */
.portrait {
  margin: 2rem auto;
  max-width: 22rem;
  text-align: center;
}

.portrait img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.portrait figcaption {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--fog);
  line-height: 1.5;
}

.portrait figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gold-bright);
  margin-bottom: 0.25rem;
}

/* —— Honour block —— */
.honour {
  margin: 2rem 0;
  padding: 1.5rem 1.25rem;
  border-left: 2px solid var(--gold-dim);
  background: rgba(42, 34, 24, 0.5);
}

.honour p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--cream-muted);
  margin: 0;
}

.honour cite {
  display: block;
  margin-top: 0.85rem;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog);
}

/* —— Contact form —— */
.contact-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 0.4rem;
}

input,
textarea {
  width: 100%;
  font: inherit;
  color: var(--cream);
  background: var(--earth);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--stone);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--fog);
  margin-top: 0.5rem;
}

.form-actions {
  margin-top: 0.5rem;
}

.contact-note {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  background: var(--earth);
  border-radius: var(--radius);
}

.contact-note p:last-child {
  margin-bottom: 0;
}

/* —— Mission strip —— */
.mission-strip {
  text-align: center;
  padding: 2rem 1.25rem;
  margin: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.mission-strip .btn {
  margin-top: 0.25rem;
}

/* —— Vow callout —— */
.vow {
  margin: 2rem auto;
  max-width: var(--max);
  padding: 1.5rem 1.35rem;
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(42, 34, 24, 0.4);
}

.vow p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cream);
  margin: 0;
  line-height: 1.55;
}

/* —— Utility —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center {
  text-align: center;
}

@media (max-width: 520px) {
  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.5rem 0.9rem;
    font-size: 0.82rem;
  }

  .chapter-list li {
    grid-template-columns: 2rem 1fr;
  }
}

@media (min-width: 720px) {
  .header-inner {
    padding: 1rem 1.5rem;
  }

  main {
    padding: 3rem 1.5rem 5rem;
  }

  .hero {
    padding: 3rem 0 3.5rem;
  }
}


/* Bank transfer block */
.bank-details {
  text-align: left;
}
.bank-details p {
  margin: 0.35rem 0;
  max-width: none;
}
.bank-details strong {
  color: var(--cream);
}


/* White Eagle motto */
.motto {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--gold, #c9a227);
  max-width: 36rem;
  margin: 1rem auto 1.5rem;
  font-style: italic;
}
.hero-motto, .hero .motto {
  text-align: center;
}


/* Flying White Eagle hero (restored from Grok original white-eagle-soar.mp4) */
.hero.hero-eagle {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: left;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: 0;
  margin: 0 calc(-1 * var(--page-pad, 1.25rem));
  width: calc(100% + 2 * var(--page-pad, 1.25rem));
  max-width: none;
}
.hero-eagle .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-eagle-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}
.hero-media-shade,
.hero-media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 15, 12, 0.90) 0%, rgba(20, 15, 12, 0.55) 45%, rgba(20, 15, 12, 0.22) 100%),
    linear-gradient(0deg, rgba(20, 15, 12, 0.78) 0%, transparent 48%);
  pointer-events: none;
}
.hero-eagle .hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 38rem);
  padding: 3.5rem clamp(1.15rem, 4vw, 2.5rem) 3rem;
  text-align: left;
}
.hero-eagle .hero-ornament { display: none; }
.hero-eagle .hero-title-gold,
.hero-eagle .hero-title-gold {
  display: block;
}
@media (max-width: 720px) {
  .hero.hero-eagle { min-height: 70vh; }
  .hero-eagle .hero-copy { padding: 2.5rem 1.15rem 2rem; }
}
}
