/* ---------------------------------------------------------
   Laura Otero, Ph.D. — site styles
   --------------------------------------------------------- */

:root {
  --bg: #f5f7f9;
  --surface: #ffffff;
  --ink: #16232f;
  --ink-soft: #56697a;
  --accent: #1e4a6d;
  --accent-soft: #e3ecf3;
  --slate: #3f6c86;
  --slate-soft: #eaf1f3;
  --navy-deep: #0f1e2c;
  --border: #dde5eb;
  --radius: 12px;
  --max: 1000px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }

em, .accent-italic { font-style: italic; color: var(--accent); }

p { margin: 0 0 1.1em; }

a { color: var(--accent); text-decoration-color: rgba(30,74,109,0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Accessibility utilities ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  font-size: 0.92rem;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.home-hero a:focus-visible,
footer.site-footer a:focus-visible {
  outline-color: #9fc4e0;
}

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

/* ---------- Header ---------- */

header.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(245,247,249,0.92);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  border-bottom-color: var(--accent);
}

nav.main-nav .icon-link {
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 640px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a {
    width: 100%;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 80px 0 48px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 620px;
  height: 620px;
  background:
    radial-gradient(circle at 30% 30%, rgba(63,108,134,0.22), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(30,74,109,0.16), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(150,170,180,0.18), transparent 60%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 260px; margin: 0 auto; }
}

.hero-photo img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 20px 44px rgba(15,30,44,0.14);
}

.available-note {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- Home hero: navy treatment ---------- */

.home-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--accent) 100%);
}

.home-hero::before {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(159,196,224,0.16), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.06), transparent 60%);
}

.home-hero h1 { color: #fff; }

.home-hero em, .home-hero .accent-italic { color: #9fc4e0; }

.home-hero .available-note { color: rgba(255,255,255,0.78); }

.home-hero .available-note a { color: #fff; text-decoration-color: rgba(255,255,255,0.5); }

.home-hero .available-note a:hover { text-decoration-color: #fff; }

.home-hero .hero-photo img { box-shadow: 0 20px 44px rgba(0,0,0,0.35); }

/* ---------- Sections ---------- */

section { padding: 40px 0; }

section.tinted {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bio p { color: var(--ink-soft); max-width: 74ch; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 780px) {
  .pillars { grid-template-columns: 1fr; }
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 6px solid var(--accent);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 2px 10px rgba(30,74,109,0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(30,74,109,0.2);
}

.pillar h3 { color: var(--accent); }

.pillar p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.98rem; }

.closing-note {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  margin-top: 8px;
}

.closing-note p { margin: 0; color: var(--accent); font-size: 1.05rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: opacity 0.15s ease;
}

.btn:hover { opacity: 0.85; text-decoration: none; }

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

/* ---------- Portfolio: featured videos ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 780px) {
  .video-grid { grid-template-columns: 1fr; }
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 6px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(30,74,109,0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(30,74,109,0.2);
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #101b26;
}

.video-embed iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: 0;
}

.video-embed.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cfcfcf;
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

.lesson-embed {
  position: relative;
  height: 520px;
  background: #101b26;
}

.lesson-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 780px) {
  .lesson-embed { height: 420px; }
}

.video-card-body { padding: 18px 20px; }

.video-card-body h3 { font-size: 1.15rem; margin-bottom: 6px; }

.video-card-body p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0; }

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

/* ---------- Portfolio: category groups ---------- */

.category-group { margin-bottom: 44px; }

.category-group h2 {
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 24px;
}

.project-item {
  border: 1px solid var(--border);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow 0.18s ease;
}

.project-item summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 20px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s ease;
}

.project-item summary:hover {
  background: var(--accent-soft);
}

.project-item summary::-webkit-details-marker { display: none; }

.project-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  font-family: sans-serif;
  font-weight: 400;
  margin-left: 12px;
}

.project-item[open] summary::after { content: '\2212'; }

.project-body {
  padding: 0 22px 22px;
  color: var(--ink-soft);
}

.project-body p { margin-bottom: 0.9em; }

.project-body strong { color: var(--ink); }

.simple-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.simple-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 16px 14px;
  margin: 0 -14px;
  border-bottom: 1px solid var(--border);
  border-left: 4px solid var(--accent-soft);
  border-radius: 6px;
  transition: background 0.15s ease, border-left-color 0.15s ease;
}

.simple-list li:hover {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

.simple-list li:last-child { border-bottom: none; }

.simple-list a {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.1rem;
}

.simple-list .venue {
  display: inline-block;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 3px 11px;
  border-radius: 999px;
}

/* ---------- Contact ---------- */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(15,30,44,0.04);
}

.contact-card .btn { margin: 8px; }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--navy-deep);
  color: #c3ccd3;
  padding: 48px 0;
  text-align: center;
  margin-top: 40px;
}

footer.site-footer h2 { color: #fff; }

footer.site-footer a { color: #fff; }

footer.site-footer .fine-print {
  margin-top: 24px;
  font-size: 0.82rem;
  color: #93a2ad;
}
