:root {
  --bg: #f6f0e8;
  --ink: #102232;
  --ink-soft: #47545f;
  --surface: #fffaf3;
  --surface-muted: #ece1d2;
  --gold: #c29250;
  --gold-dark: #8c6129;
  --teal: #0b2a3a;
  --teal-soft: #183d50;
  --line: rgba(16, 34, 50, 0.14);
  --shadow: 0 18px 46px rgba(16, 34, 50, 0.16);
  --container: min(1140px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

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

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 240, 232, 0.9);
  border-bottom: 1px solid rgba(16, 34, 50, 0.09);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  max-width: 370px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.05;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.brand img {
  width: 112px;
  height: auto;
  flex: 0 0 auto;
}

.brand span {
  display: block;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--gold-dark);
}

.hero {
  padding: 42px 0 58px;
}

.hero-grid,
.edition-grid,
.split-grid,
.support-grid,
.form-grid-section,
.author-grid {
  display: grid;
  gap: 34px;
  align-items: center;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.72fr);
}

.hero-text-only {
  display: block;
}

.hero-text-only .hero-copy {
  max-width: 880px;
}

.edition-grid {
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1fr);
}

.split-grid,
.support-grid,
.form-grid-section,
.author-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-copy {
  padding: 18px 0;
}

.kicker,
.section-label,
.form-title {
  margin: 0 0 16px;
  color: var(--gold-dark);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0 0 20px;
  color: var(--ink);
  line-height: 1.02;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 5.4vw, 4.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

p {
  margin: 0 0 14px;
  line-height: 1.66;
}

.lead {
  color: var(--teal-soft);
  font-size: 1.22rem;
}

.hero-media img,
.edition-media img,
.image-panel,
.certificate,
.author-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media img,
.edition-media img {
  object-fit: contain;
}

.image-panel,
.certificate {
  object-fit: cover;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--gold), #d1ad70);
  color: #fffaf3;
}

.section {
  padding: 66px 0;
}

.section-dark {
  background: linear-gradient(135deg, var(--teal), var(--teal-soft));
  color: #fff7eb;
}

.section-dark h2,
.section-dark .lead,
.section-dark .section-label {
  color: #fff7eb;
}

.section-soft {
  background: rgba(255, 250, 243, 0.72);
}

.narrow-copy {
  max-width: 880px;
}

.content-block,
.form-card {
  width: 100%;
  padding: 30px;
  background: rgba(255, 250, 243, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.content-block.full {
  box-shadow: none;
}

.topics {
  margin: 0;
  color: var(--gold-dark);
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 700;
}

.support-grid .certificate {
  background: #fffaf3;
}

.form-section {
  padding-top: 42px;
}

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

.full-width {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
}

input,
textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(16, 34, 50, 0.16);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(194, 146, 80, 0.26);
  border-color: rgba(194, 146, 80, 0.55);
}

.author-section {
  background: #101d27;
  color: #fff7eb;
}

.author-section .content-block {
  color: var(--ink);
}

.author-section .content-block .section-label {
  color: var(--gold-dark);
}

.author-image {
  max-height: 760px;
  object-fit: cover;
  object-position: center top;
}

.contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 24px 0 42px;
}

.contact-lines a {
  color: #fff7eb;
  font-weight: 700;
}

.toast-stack {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}

.toast {
  width: min(500px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: 8px;
  color: #fffaf3;
  text-align: center;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 14px 34px rgba(16, 34, 50, 0.24);
}

.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-info,
.toast-warning {
  background: rgba(140, 97, 41, 0.94);
}

.toast-success {
  background: rgba(34, 110, 74, 0.94);
}

.toast-error {
  background: rgba(152, 38, 38, 0.94);
}

@media (max-width: 920px) {
  .hero-grid,
  .edition-grid,
  .split-grid,
  .support-grid,
  .form-grid-section,
  .author-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 46px 0;
  }

  .content-block,
  .form-card {
    padding: 22px;
  }

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

  .button {
    width: 100%;
  }
}
