:root {
  --ink: #17202a;
  --muted: #5b6470;
  --paper: #f7f4ee;
  --white: #ffffff;
  --navy: #17283a;
  --navy-2: #20384f;
  --gold: #b28a4a;
  --gold-light: #dbc49d;
  --line: #ded8cd;
  --shadow: 0 20px 60px rgba(15, 28, 42, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 999;
  padding: 0.65rem 1rem;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: rgba(23, 40, 58, 0.97);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
}

.header-inner,
.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  text-decoration: none;
  line-height: 1.2;
}

.brand strong {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.015em;
}

.brand span {
  display: block;
  margin-top: 0.2rem;
  color: var(--gold-light);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 2px;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current='page'] {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 2px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  width: 20px;
  height: 2px;
  display: block;
  position: relative;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.menu-toggle[aria-expanded='true'] span { background: transparent; }
.menu-toggle[aria-expanded='true'] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] span::after { top: 0; transform: rotate(-45deg); }

.hero {
  min-height: calc(100svh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: stretch;
  background: var(--navy);
  color: var(--white);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 8rem) max(2rem, calc((100vw - 1180px) / 2));
  padding-right: clamp(2.5rem, 7vw, 7rem);
  background:
    linear-gradient(125deg, rgba(178,138,74,0.12), transparent 42%),
    var(--navy);
}

.hero-image { min-height: 560px; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.12;
}

h1 { margin-bottom: 1.4rem; font-size: clamp(2.8rem, 6.5vw, 6.4rem); }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { margin-bottom: 0.65rem; font-size: clamp(1.35rem, 2.2vw, 1.8rem); }

.hero-lead {
  max-width: 39rem;
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--navy);
  background: var(--gold);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.button:hover,
.button:focus-visible { background: #c59b58; }
.button--outline { color: var(--white); background: transparent; border-color: rgba(255,255,255,0.45); }
.button--outline:hover,
.button--outline:focus-visible { background: rgba(255,255,255,0.09); }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--white { background: var(--white); }
.section--navy { color: var(--white); background: var(--navy); }
.section--compact { padding-block: clamp(3rem, 6vw, 5rem); }

.section-heading { max-width: 760px; margin-bottom: 2.4rem; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.section--navy .section-heading p { color: rgba(255,255,255,0.72); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  min-height: 500px;
  display: flex;
  position: relative;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-2);
  box-shadow: var(--shadow);
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.feature-card:hover img { transform: scale(1.035); }
.feature-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(8,18,28,0.9) 100%); }
.feature-card__copy { position: relative; z-index: 1; padding: 1.6rem; }
.feature-card__copy p { margin: 0 0 1rem; color: rgba(255,255,255,0.78); }
.text-link { color: var(--gold-light); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 0.24em; }

.page-hero {
  padding: clamp(4.5rem, 9vw, 8.5rem) 0 clamp(3rem, 6vw, 5rem);
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(178,138,74,0.13), transparent 40%),
    var(--navy);
}

.page-hero h1 { max-width: 850px; font-size: clamp(2.9rem, 7vw, 5.7rem); }
.page-hero p { max-width: 760px; margin: 0; color: rgba(255,255,255,0.78); font-size: 1.15rem; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.prose { max-width: 760px; }
.prose p:first-child { margin-top: 0; }
.prose a { color: #755622; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.stat-card { padding: 2rem; color: var(--white); background: var(--navy); box-shadow: var(--shadow); }
.stat-card strong { display: block; color: var(--gold-light); font-family: Georgia, serif; font-size: clamp(2.6rem, 5vw, 4.6rem); font-weight: 500; line-height: 1; }
.stat-card span { display: block; margin-top: 0.7rem; color: rgba(255,255,255,0.72); }

.book-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.book-grid figure,
.gallery figure { margin: 0; }
.book-grid figure { display: flex; flex-direction: column; align-items: center; }
.book-grid img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  box-shadow: 0 16px 30px rgba(18,25,33,0.16);
}
.book-grid figcaption,
.gallery figcaption { margin-top: 0.65rem; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }

.content-figure {
  margin: 0;
  padding: 0.75rem;
  background: var(--white);
  box-shadow: var(--shadow);
}

.content-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.publication-list,
.broadcast-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.publication-list {
  columns: 2 310px;
  column-gap: 3rem;
}

.publication-list li {
  break-inside: avoid;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.publication-list small { display: block; color: var(--muted); }

.broadcast-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; }
.broadcast-list li { position: relative; padding: 0.8rem 0 0.8rem 1.3rem; border-bottom: 1px solid var(--line); }
.broadcast-list li::before { content: ''; width: 6px; height: 6px; position: absolute; top: 1.45rem; left: 0; border-radius: 50%; background: var(--gold); }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.gallery figure { grid-column: span 4; }
.gallery figure:nth-child(1) { grid-column: span 8; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 14px 30px rgba(18,25,33,0.1); }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.video-frame { margin: 0; overflow: hidden; background: #0c1620; box-shadow: var(--shadow); }
.video-frame iframe { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2.5rem, 8vw, 7rem);
  align-items: start;
}

.contact-card { padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--white); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: 0.92rem; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid #b9b5ad;
  border-radius: 2px;
  color: var(--ink);
  background: var(--white);
}
.form-field input:focus,
.form-field textarea:focus { outline: 3px solid rgba(178,138,74,0.25); border-color: var(--gold); }
.form-field textarea { min-height: 170px; resize: vertical; }
.form-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.9rem; }
.form-status { min-height: 1.7em; margin: 0.8rem 0 0; color: #416132; font-weight: 700; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.site-footer { color: var(--white); background: #0e1a27; }
.footer-main { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding-block: 2.5rem; }
.footer-title { margin: 0; font-family: Georgia, serif; font-size: 1.3rem; }
.footer-sub { margin: 0.25rem 0 0; color: rgba(255,255,255,0.62); font-size: 0.88rem; }
.footer-logos { display: flex; align-items: center; gap: 1.2rem; }
.footer-logos img { max-width: 120px; max-height: 42px; width: auto; height: auto; object-fit: contain; }
.footer-logos .gingerweb { max-width: 108px; }
.footer-bottom { padding-block: 1rem; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.55); font-size: 0.8rem; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { min-height: 520px; }
  .hero-image { min-height: 520px; }
  .feature-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 420px; }
  .book-grid { grid-template-columns: repeat(3, 1fr); }
  .book-grid img { max-height: 320px; }
  .content-grid, .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 72px; }
  .brand span { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 0.6rem 1.25rem 1rem; background: var(--navy); box-shadow: 0 14px 24px rgba(0,0,0,0.2); }
  .site-nav[data-open='true'] { display: block; }
  .site-nav ul { display: block; }
  .site-nav a { padding: 0.8rem; }
  .hero-copy { min-height: 500px; padding: 4rem 1.25rem; }
  .hero-image { min-height: 430px; }
  .header-inner, .container { width: min(100% - 2rem, 1180px); }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .book-grid img { max-height: 260px; }
  .broadcast-list { grid-template-columns: 1fr; }
  .gallery figure,
  .gallery figure:nth-child(1) { grid-column: span 12; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-logos { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
