:root {
  --bg: #f6f2e8;
  --surface: #fffdf7;
  --surface-strong: #fff9ec;
  --ink: #1f2430;
  --ink-muted: #4f5869;
  --border: #d5ccb6;
  --shadow: 0 20px 44px rgba(26, 37, 56, 0.14);
  --shadow-soft: 0 10px 22px rgba(26, 37, 56, 0.1);
  --gold: #9f6b1f;
  --gold-strong: #7b4f15;
  --sage: #30534c;
  --sage-strong: #213d38;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", "Avenir Next", "Trebuchet MS", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(1200px 800px at 14% -12%, rgba(202, 170, 117, 0.22) 0%, transparent 62%),
    radial-gradient(1000px 740px at 92% -16%, rgba(48, 83, 76, 0.24) 0%, transparent 66%),
    linear-gradient(180deg, #f8f4ea 0%, #f5efe1 58%, #f3ecdd 100%);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
  color: var(--ink-muted);
}

a {
  color: inherit;
}

code {
  font-family: "Space Mono", "Menlo", monospace;
  font-size: 0.9em;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  width: auto;
  height: auto;
  padding: 0.55rem 0.8rem;
  border-radius: 0.45rem;
  background: #fff;
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(246, 242, 232, 0.88);
  border-bottom: 1px solid rgba(159, 107, 31, 0.18);
}

.header-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: "Space Mono", "Menlo", monospace;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(140deg, var(--gold) 0%, #c58e3f 42%, #80601e 100%);
  box-shadow: 0 6px 16px rgba(95, 67, 29, 0.28);
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 0.48rem 0.75rem;
  font: inherit;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.primary-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 600;
  padding: 0.55rem 0.82rem;
  border-radius: 10px;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 253, 247, 0.95);
  box-shadow: var(--shadow-soft);
}

main {
  padding: 2.3rem 0 4rem;
}

.hero {
  background:
    radial-gradient(600px 380px at 14% 12%, rgba(159, 107, 31, 0.12) 0%, transparent 74%),
    linear-gradient(132deg, rgba(48, 83, 76, 0.09), rgba(197, 142, 63, 0.15)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.8rem);
  box-shadow: var(--shadow);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-family: "Space Mono", "Menlo", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-strong);
  background: rgba(48, 83, 76, 0.13);
}

.hero h1 {
  margin-top: 0.85rem;
  font-size: clamp(2.1rem, 5vw, 3.7rem);
}

.hero p {
  margin-top: 0.9rem;
  max-width: 68ch;
  font-size: clamp(1rem, 2.6vw, 1.16rem);
}

.hero-note {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(159, 107, 31, 0.25);
}

.cta-row {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.button.primary {
  background: linear-gradient(130deg, var(--sage) 0%, #39675f 100%);
  color: #fff;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  border-color: rgba(159, 107, 31, 0.26);
}

.section {
  margin-top: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.15rem, 3.2vw, 1.75rem);
  box-shadow: var(--shadow-soft);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.45rem);
}

.section-head p {
  margin-top: 0.35rem;
}

.video-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.95rem;
}

.loading,
.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed rgba(79, 88, 105, 0.34);
  border-radius: 12px;
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.7);
}

.video-card {
  background: var(--surface-strong);
  border: 1px solid rgba(159, 107, 31, 0.22);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
}

.video-card h3 {
  font-size: 1.36rem;
}

.video-link {
  text-decoration: none;
  color: inherit;
}

.video-link:hover h3 {
  color: var(--sage-strong);
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(48, 83, 76, 0.25);
  background: #efe8d9;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sage-strong);
  background: rgba(48, 83, 76, 0.14);
}

.author-feature {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(210px, 290px) minmax(0, 1fr);
  gap: 1.05rem;
  align-items: start;
}

.author-cover-wrap {
  margin: 0;
}

.author-cover {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(159, 107, 31, 0.32);
  box-shadow: 0 14px 30px rgba(26, 37, 56, 0.22);
}

.author-copy {
  border: 1px solid rgba(159, 107, 31, 0.22);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--surface-strong);
}

.author-copy h3 {
  font-size: 1.65rem;
}

.author-copy p {
  margin-top: 0.55rem;
}

.author-copy .cta-row {
  margin-top: 0.95rem;
}

.contact-card {
  border: 1px solid rgba(159, 107, 31, 0.22);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--surface-strong);
}

.contact-card h3 {
  font-size: 1.42rem;
}

.contact-card p {
  margin-top: 0.45rem;
}

.contact-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.85rem;
}

.page-intro {
  max-width: 68ch;
}

.form-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.contact-form {
  position: relative;
}

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

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(159, 107, 31, 0.28);
  border-radius: var(--radius-sm);
  padding: 0.68rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.field textarea {
  min-height: 170px;
  resize: vertical;
}

.alert {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(159, 107, 31, 0.25);
  padding: 0.8rem 0.9rem;
  background: #fffef8;
}

.alert p {
  margin: 0;
}

.alert p + p {
  margin-top: 0.45rem;
}

.alert.success {
  border-color: #7cb99f;
  background: #ecfff4;
  color: #194c36;
}

.alert.error {
  border-color: #e1a7a1;
  background: #fff5f2;
  color: #7d2f2a;
}

.split {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.card {
  border: 1px solid rgba(159, 107, 31, 0.22);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--surface-strong);
}

.card h2 {
  font-size: 1.6rem;
}

.card p {
  margin-top: 0.5rem;
}

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

.site-footer {
  border-top: 1px solid rgba(159, 107, 31, 0.24);
  background: rgba(250, 245, 235, 0.85);
}

.footer-row {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-row a {
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal-in 500ms ease forwards;
}

.reveal.delay-1 {
  animation-delay: 80ms;
}

.reveal.delay-2 {
  animation-delay: 160ms;
}

.reveal.delay-3 {
  animation-delay: 240ms;
}

.reveal.delay-4 {
  animation-delay: 320ms;
}

@keyframes reveal-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .header-row {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    right: 1rem;
    top: calc(100% + 0.5rem);
    min-width: 220px;
    background: rgba(255, 253, 247, 0.97);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    width: 100%;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .author-cover-wrap {
    max-width: 340px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.2rem, var(--max-width));
  }

  main {
    padding-top: 1.5rem;
  }

  .hero {
    border-radius: 18px;
  }

  .section {
    border-radius: 18px;
  }

  .author-cover-wrap {
    max-width: 100%;
  }

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

  .footer-row {
    min-height: 0;
    padding: 1rem 0;
    flex-direction: column;
    align-items: flex-start;
  }
}
