/* Shared site shell and interaction language for every public route. */
:root {
  --site-ink: #153d33;
  --site-ink-soft: #53655d;
  --site-green: #1d5948;
  --site-gold: #d99a26;
  --site-cream: #fbf8f1;
  --site-paper: #fffdf8;
  --site-line: rgba(21, 61, 51, .14);
  --site-shadow: 0 16px 38px rgba(31, 52, 44, .12);
  --site-motion: 180ms ease;
}

html { scroll-padding-top: 88px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--site-line);
  background: rgba(255, 253, 248, .96);
  color: var(--site-ink);
  backdrop-filter: blur(14px);
}

.site-header > .nav-shell {
  width: min(100%, 1390px);
  min-height: 54px;
  margin-inline: auto;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--site-ink);
  font-family: inherit;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.025em;
  text-decoration: none;
}

.site-header .brand-mark { width: 44px; height: 44px; flex: 0 0 auto; }
.site-header .brand-copy { display: flex; flex-direction: column; line-height: 1.3; }
.site-header .brand-copy strong { color: var(--site-ink); font-size: 18px; }
.site-header .brand-copy small { color: var(--site-ink-soft); font-size: 11px; font-weight: 450; letter-spacing: 0; }

.site-header nav,
.site-header .primary-nav,
.site-header .nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(4px, 1vw, 12px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header nav a {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--site-ink-soft);
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color var(--site-motion), color var(--site-motion);
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header nav a[aria-current="page"] {
  background: #edf2eb;
  color: var(--site-ink);
}

.site-header nav a:focus-visible,
.site-header .brand:focus-visible,
.site-header .menu-button:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--site-gold);
  outline-offset: 2px;
}

.site-header nav a::after { content: none; }

.site-header .menu-button {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--site-line);
  border-radius: 10px;
  background: var(--site-paper);
  color: var(--site-ink);
  cursor: pointer;
  transition: background-color var(--site-motion), border-color var(--site-motion);
}

.site-header .menu-button:hover,
.site-header .menu-button[aria-expanded="true"] {
  border-color: rgba(21, 61, 51, .28);
  background: #edf2eb;
}

.button-primary,
.button-secondary,
.button,
.episode-cta {
  min-height: 44px;
  justify-content: center;
  border-radius: 11px;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--site-motion), color var(--site-motion), background-color var(--site-motion), border-color var(--site-motion), box-shadow var(--site-motion);
}

.button-primary,
.button {
  background: var(--site-green);
  color: var(--site-paper);
  box-shadow: none;
}

.button-primary:hover,
.button:hover { background: #124536; color: var(--site-paper); }

.button-secondary {
  border: 1px solid rgba(21, 61, 51, .28);
  background: transparent;
  color: var(--site-ink);
}

.button-secondary:hover { background: #edf2eb; }

.button-primary:hover,
.button-secondary:hover,
.button:hover,
.episode-cta:hover { transform: translateY(-1px); }

.button-primary:focus-visible,
.button-secondary:focus-visible,
.button:focus-visible,
.episode-cta:focus-visible {
  outline: 2px solid var(--site-gold);
  outline-offset: 3px;
}

/* Link cards share one response; informational cards stay visually quiet. */
.project-card[href],
.build-card-link[href] {
  border-color: var(--site-line);
  transition: transform var(--site-motion), border-color var(--site-motion), background-color var(--site-motion), box-shadow var(--site-motion);
}

.project-card[href]:hover,
.build-card-link[href]:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 89, 72, .46);
  background: var(--site-paper);
  box-shadow: 0 14px 32px rgba(31, 52, 44, .1);
}

.project-card[href]:active,
.build-card-link[href]:active { transform: translateY(-1px); }

.project-card[href]:focus-visible,
.build-card-link[href]:focus-visible {
  outline: 2px solid var(--site-gold);
  outline-offset: 3px;
}

.site-footer {
  border-top: 1px solid var(--site-line);
  background: var(--site-paper);
  color: var(--site-ink-soft);
}

.site-footer a {
  color: var(--site-ink-soft);
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color var(--site-motion), text-decoration-color var(--site-motion);
}

.site-footer a:hover {
  color: var(--site-ink);
  text-decoration: underline;
  text-decoration-color: var(--site-gold);
}

.site-footer .footer-brand { color: var(--site-ink); text-decoration: none; }
.site-footer .footer-brand img { width: 44px; }
.site-footer .footer-brand-copy small { color: var(--site-ink-soft); }
.site-footer .footer-note { color: var(--site-ink-soft); }
.site-footer .footer-links,
.site-footer .footer-nav { align-items: center; gap: 8px 18px; }
.site-footer .footer-row { width: min(100%, 1390px); margin-inline: auto; }

@media (max-width: 860px) {
  .site-header { min-height: 70px; padding: 9px 20px; }
  .site-header > .nav-shell { min-height: 50px; }
  .site-header .brand-mark { width: 42px; height: 42px; }
  .site-header .menu-button { display: inline-grid; }
  .site-header > nav.primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--site-line);
    border-radius: 14px;
    background: rgba(255, 253, 248, .99);
    box-shadow: var(--site-shadow);
  }
  .site-header > nav.primary-nav.is-open { display: flex; }
  .site-header .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--site-line);
    border-radius: 14px;
    background: rgba(255, 253, 248, .99);
    box-shadow: var(--site-shadow);
  }
  .site-header .nav-links.is-open { display: flex; }
  .site-header nav a { justify-content: flex-start; min-height: 44px; padding-inline: 13px; }
  .site-footer { padding: 24px 20px; }
  .site-footer .footer-row { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .site-header { padding-inline: 16px; }
  .site-header .brand { gap: 8px; font-size: 16px; }
  .site-header .brand-mark { width: 40px; height: 40px; }
  .site-header .brand-copy strong { font-size: 16px; }
  .site-header .brand-copy small { font-size: 10px; }
  .site-footer { padding-inline: 16px; }
  .site-footer .footer-nav,
  .site-footer .footer-links { justify-content: flex-start; }
  .site-footer .footer-note { display: block; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *,
  .site-footer *,
  .project-card[href],
  .build-card-link[href],
  .button-primary,
  .button-secondary,
  .button,
  .episode-cta { transition: none !important; }
}

.person-card-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--site-motion), border-color var(--site-motion), background-color var(--site-motion), box-shadow var(--site-motion);
}
.person-card-link:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 89, 72, .42);
  box-shadow: 0 16px 30px rgba(31, 52, 44, .11);
}
.person-card-link:focus-visible,
.episode-link-card:focus-visible {
  outline: 2px solid var(--site-gold);
  outline-offset: 3px;
}
.episode-link-card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--site-motion), border-color var(--site-motion), background-color var(--site-motion), box-shadow var(--site-motion);
}
.episode-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 89, 72, .42);
  background: var(--site-paper);
  box-shadow: 0 14px 32px rgba(31, 52, 44, .1);
}
.episode-link-card:active,
.person-card-link:active { transform: translateY(-1px); }
.site-footer { padding: 25px clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
@media (max-width: 860px) {
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-block: 18px;
  }
  .site-footer .footer-note {
    margin-top: 0;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .site-footer { padding-block: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .person-card-link,
  .episode-link-card { transition: none !important; }
}
@media (max-width: 520px) { .site-header > nav.primary-nav, .site-header .nav-links { max-width: none; } }



.site-footer .footer-contact { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.site-footer .footer-contact-label { color: var(--site-ink); font-weight: 600; }
.site-footer .footer-contact-email { color: var(--site-ink-soft); user-select: all; }
@media (max-width: 860px) { .site-footer .footer-contact { align-items: flex-start; } }
