:root {
  --ink: #102033;
  --ink-soft: #405168;
  --navy: #0c1b2e;
  --navy-2: #153456;
  --paper: #f7f4ee;
  --paper-2: #ede7dc;
  --white: #ffffff;
  --line: #d9d1c3;
  --gold: #b9833f;
  --gold-dark: #8c602b;
  --green: #2f765f;
  --shadow: 0 18px 50px rgba(12, 27, 46, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  border-radius: 6px;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 238, 0.92);
  border-bottom: 1px solid rgba(16, 32, 51, 0.12);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  color: var(--paper);
  background: var(--navy);
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: Georgia, "Times New Roman", serif;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--ink);
  background: rgba(16, 32, 51, 0.07);
}

.language-link {
  border: 1px solid rgba(16, 32, 51, 0.18);
}

.hero {
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(12, 27, 46, 0.98), rgba(21, 52, 86, 0.92) 58%, rgba(47, 118, 95, 0.82)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 68px);
}

.hero-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: clamp(620px, 86vh, 760px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(32px, 7vw, 90px);
  padding: 64px 0 48px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #d8b27b;
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6.6rem);
  font-weight: 700;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.06rem, 1.8vw, 1.28rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--navy);
  background: #f0c98d;
}

.button-primary:hover,
.button-primary:focus {
  background: #ffd99d;
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover,
.button-secondary:focus {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.13);
}

.button-dark {
  color: var(--white);
  background: var(--navy);
}

.button-dark:hover,
.button-dark:focus {
  background: var(--navy-2);
}

.button-outline {
  color: var(--navy);
  border-color: rgba(16, 32, 51, 0.24);
  background: transparent;
}

.book-cover {
  justify-self: end;
  width: min(340px, 100%);
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.content-section {
  padding: clamp(56px, 9vw, 96px) 0;
}

.section-dark {
  color: var(--white);
  background: var(--navy);
}

.section-muted {
  background: var(--paper-2);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head p,
.lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section-dark .section-head p,
.section-dark .lead {
  color: rgba(255,255,255,0.72);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(16, 32, 51, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.section-dark .card {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
}

.card p,
.feature-list,
.credential-list {
  color: var(--ink-soft);
}

.section-dark .card p,
.section-dark .feature-list,
.section-dark .credential-list {
  color: rgba(255,255,255,0.72);
}

.feature-list,
.credential-list {
  padding-left: 20px;
}

.feature-list li,
.credential-list li {
  margin: 8px 0;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(16, 32, 51, 0.12);
  box-shadow: 0 12px 34px rgba(16, 32, 51, 0.08);
}

.download-panel + .download-panel {
  margin-top: 14px;
}

.donation-box {
  padding: 26px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.form {
  display: grid;
  gap: 14px;
}

.field-group {
  display: grid;
  gap: 6px;
}

label {
  font-weight: 720;
  font-size: 0.94rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(16, 32, 51, 0.24);
  border-radius: 6px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.amount-choice {
  min-height: 42px;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 6px;
  font-weight: 760;
  cursor: pointer;
}

.amount-choice:hover,
.amount-choice:focus,
.amount-choice.is-active {
  background: rgba(240, 201, 141, 0.24);
  border-color: #f0c98d;
}

.form-note,
.fine-print {
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
}

.muted {
  color: var(--ink-soft);
}

.status {
  min-height: 24px;
  font-size: 0.94rem;
  font-weight: 680;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255,255,255,0.72);
  background: #081421;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: rgba(255,255,255,0.84);
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 16px;
  color: var(--white);
  background: rgba(8, 20, 33, 0.96);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.94rem;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.small-button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.24);
  color: var(--white);
  background: transparent;
  font-weight: 760;
  cursor: pointer;
}

.small-button.accept {
  color: var(--navy);
  background: #f0c98d;
  border-color: #f0c98d;
}

.center-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    linear-gradient(135deg, rgba(12,27,46,0.96), rgba(21,52,86,0.9)),
    var(--navy);
}

.center-card {
  width: min(720px, 100%);
  padding: clamp(26px, 6vw, 48px);
  color: var(--ink);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.center-card h1 {
  color: var(--navy);
  font-size: clamp(2.2rem, 7vw, 4.2rem);
}

.center-card p {
  color: var(--ink-soft);
}

.center-card .fine-print {
  color: var(--ink-soft);
}

@media (max-width: 880px) {
  .nav {
    min-height: auto;
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-inner,
  .grid-two {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .book-cover {
    justify-self: start;
    max-width: 280px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .download-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions button {
    flex: 1;
  }
}
