/* ---------- design tokens ---------- */
:root {
  --blue: #5e81ac;
  --blue-dark: #4c6a8f;
  --cream: #f9f7eb;
  --white: #ffffff;

  --font-heading: "DM Sans", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-label: "Inter", sans-serif;

  --container: 1200px;
  --gap: 24px;
}

/* ---------- reset ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--blue);
  background: var(--cream);
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, p {
  margin: 0;
}

/* ---------- layout helpers ---------- */
.section {
  padding: clamp(40px, 6vw, 64px) 24px;
}

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

.section-blue {
  background: var(--blue);
  color: var(--white);
}

.section-cream {
  background: var(--cream);
  color: var(--blue);
}

.section-heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--blue);
  margin-bottom: 28px;
}

.narrow {
  max-width: 720px;
  margin: 0 auto;
}

.center {
  text-align: center;
}

/* ---------- nav ---------- */
.nav {
  background: rgba(94, 129, 172, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  width: 100%;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  padding: 15px 24px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--white);
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-link[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- hero (homepage) ---------- */
.hero {
  text-align: center;
  padding: clamp(48px, 8vw, 80px) 24px;
}

.hero-name {
  font-size: clamp(45px, 7vw, 70px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 32px;
}

.hero-photo {
  width: 294px;
  max-width: 70vw;
  aspect-ratio: 3813 / 5719;
  object-fit: cover;
  margin: 0 auto 32px;
}

.hero-tagline {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.3;
}

/* ---------- hero (photo-background pages: about-me / lessons / video) ---------- */
.page-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background-color: var(--blue-dark);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(94, 129, 172, 0.55);
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.15;
  max-width: 800px;
}

.page-hero .btn {
  margin-top: 24px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-light {
  background: var(--cream);
  color: var(--blue);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
}

.btn-dark {
  background: #222;
  color: var(--white);
  width: 100%;
}

/* ---------- prose ---------- */
.prose p {
  margin-bottom: 20px;
  text-align: center;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose em {
  font-style: italic;
}

/* ---------- stat cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 20px;
}

.card-title {
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.card-body {
  font-family: var(--font-label);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- numbered list ---------- */
.numbered-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.numbered-list li {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(94, 129, 172, 0.2);
  text-align: left;
}

.numbered-list .num {
  font-weight: 700;
  flex-shrink: 0;
  width: 20px;
}

/* ---------- statement callouts ---------- */
.statement {
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  max-width: 640px;
  margin: 28px auto 0;
}

/* ---------- education / bio entries ---------- */
.entry {
  margin-bottom: 20px;
  text-align: left;
}

.entry-title {
  font-weight: 700;
  margin-bottom: 4px;
}

/* ---------- two-column (lessons contact) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}

.two-col h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
}

@media (max-width: 809px) {
  .two-col {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ---------- form ---------- */
.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-family: var(--font-label);
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: #e9e7db;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--blue);
  resize: vertical;
}

/* honeypot fields -- invisible to real visitors, catches bots */
.hp-field {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ---------- video library ---------- */
.video-entry {
  max-width: 700px;
  margin: 0 auto 56px;
  text-align: center;
}

.video-entry:last-child {
  margin-bottom: 0;
}

.video-entry h3 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 20px;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 4px solid var(--blue);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.video-frame img,
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-frame .play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-frame .play-badge::after {
  content: "";
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent white;
  margin-left: 4px;
}

.video-caption {
  margin-top: 12px;
  font-size: 14px;
}

/* ---------- project cards ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.project-card {
  background: rgba(94, 129, 172, 0.08);
  border-radius: 10px;
  padding: 20px;
  text-align: left;
}

.project-card img {
  border-radius: 6px;
  margin-bottom: 16px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.project-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-card p {
  font-size: 14px;
  margin-bottom: 16px;
}

/* ---------- footer ---------- */
.footer {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 48px 24px 32px;
  position: relative;
}

.footer-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}

.footer-value {
  font-weight: 700;
  margin-bottom: 32px;
}

.footer-value:last-of-type {
  margin-bottom: 0;
}

.footer-social {
  position: absolute;
  left: 24px;
  bottom: 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- responsive ---------- */
@media (max-width: 809px) {
  .nav-inner {
    justify-content: center;
    gap: 16px 20px;
  }

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

  .footer-social {
    position: static;
    display: block;
    margin-top: 24px;
  }
}
