/* ================================================
   ENGLISH WITH SARA — Landing Page
   Editorial minimal · June 2026
   ================================================ */

/* TOKENS */
:root {
  --bg:         #F7F3EC;
  --ink:        #1C1A17;
  --ink-muted:  #7A6F64;
  --accent:     #C2714F;
  --ipa-color:  #A5968A;
  --border:     #E2D9CF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --gutter:      clamp(24px, 6vw, 96px);
  --section-gap: clamp(80px, 10vw, 140px);
  --max-w:       1280px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* IPA */
.ipa {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ipa-color);
  letter-spacing: 0.03em;
  font-size: 0.875rem;
  font-style: normal;
}

/* SECTION LABEL */
.section-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 56px;
}

/* ——— HEADER ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
}

.site-header__name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.site-header__controls {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Dark / light toggle — minimal circle */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.theme-toggle::before {
  content: '';
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
  transition: background 0.25s, border-color 0.25s;
}
/* Filled circle = dark mode is active */
[data-theme="dark"] .theme-toggle::before {
  background: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle::before {
    background: var(--ink);
  }
}

.site-header__cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.site-header__cta:hover { color: var(--accent); border-color: var(--accent); }

/* ——— HERO ——— */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px var(--gutter) 80px;
  position: relative;
}

.hero__ipa {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 11vw, 9.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 40px;
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
  display: block;
}

.hero__tagline {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.75;
  max-width: 38ch;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-line {
  display: block;
  width: 1px;
  height: 52px;
  background: var(--border);
  transform-origin: top;
  animation: grow 2.2s ease-in-out infinite;
}
@keyframes grow {
  0%, 100% { transform: scaleY(0); opacity: 0; }
  30%       { transform: scaleY(1); opacity: 1; transform-origin: top; }
  60%       { transform: scaleY(1); opacity: 1; transform-origin: bottom; }
  90%       { transform: scaleY(0); opacity: 0; transform-origin: bottom; }
}

/* ——— SECTIONS BASE ——— */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter);
}
.section + .section {
  padding-top: 0;
}

/* ——— COURSES ——— */
.courses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.course-col {
  padding: 0 48px 0 0;
  border-right: 1px solid var(--border);
}
.course-col + .course-col { padding-left: 48px; }
.course-col:last-child { border-right: none; }

.course-col .ipa {
  display: block;
  margin-bottom: 14px;
}
.course-col__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.125rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}
.course-col__desc {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}
.course-col__meta {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.course-col--coming {
  opacity: 0.45;
}

/* ——— TEACHER ——— */
.teacher__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: center;
}

.teacher__left {
  position: sticky;
  top: 100px;
}

/* Portrait: circle photo + social icons — always centred */
.teacher__portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.teacher__photo {
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 260px;
  box-shadow: 0 0 0 3px var(--accent);
}
.teacher__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  display: block;
  transition: filter 0.3s;
}
[data-theme="dark"] .teacher__photo img {
  filter: brightness(0.82);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .teacher__photo img {
    filter: brightness(0.82);
  }
}

/* Name + blurb under portrait */
.teacher__portrait-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.teacher__portrait-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.teacher__portrait-blurb {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

/* Social icons row */
.teacher__social {
  display: flex;
  align-items: center;
  gap: 20px;
}
.social-link {
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 0.2s;
}
.social-link:hover { color: var(--accent); }

.teacher__quote {
  border-left: 2px solid var(--accent);
  padding-left: 32px;
  margin-bottom: 32px;
}
.teacher__quote p {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.4375rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}

.teacher__bio p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.teacher__bio p:last-child { margin-bottom: 0; }
.teacher__bio strong { color: var(--ink); font-weight: 500; }
.teacher__bio em { color: var(--ink); font-style: italic; }
.teacher__ipa {
  display: block;
  margin-top: 16px;
  font-size: 0.8125rem;
}

/* Booking CTA — small, underneath bio */
.teacher__booking {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.teacher__booking:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ——— AUDIENCE ——— */
.audience__list {
  list-style: none;
}
.audience__list li {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  max-width: 68ch;
}
.audience__list li:first-child { border-top: 1px solid var(--border); }
.audience__list li em {
  font-style: italic;
  color: var(--accent);
}
.audience__list li.ipa {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ipa-color);
  border-bottom: none;
  padding-bottom: 0;
}

/* ——— START ——— */
.start {
  text-align: center;
  padding-bottom: 96px;
}
.start .ipa {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.start__title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 13vw, 11rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 52px;
}
.start__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.start__cta {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  padding: 18px 44px;
  transition: background 0.25s;
}
.start__cta:hover { background: var(--ink); }
.start__book {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 17px 36px;
  transition: border-color 0.25s, color 0.25s;
}
.start__book:hover {
  border-color: var(--ink);
  color: var(--accent);
}
.start__note {
  display: block;
  margin-top: 24px;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ipa-color);
}

/* ——— FOOTER ——— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-footer p,
.site-footer .ipa {
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.site-footer__right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-footer__email {
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-footer__email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ——— RESPONSIVE ——— */
@media (max-width: 1024px) {
  .teacher__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
  }
  .teacher__left {
    position: static;
  }
  .teacher__photo {
    max-width: 200px;
  }
}

@media (max-width: 860px) {
  .courses__grid {
    grid-template-columns: 1fr;
  }
  .course-col {
    padding: 40px 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .course-col + .course-col { padding-left: 0; }
  .course-col:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
  .teacher__photo {
    max-width: 180px;
  }
}

@media (max-width: 600px) {
  .section-label { margin-bottom: 40px; }
  .hero__title { line-height: 1.0; }
  .site-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .site-footer__right {
    flex-direction: column;
    gap: 8px;
  }
}

/* ——— COMING SOON ——— */
.coming-soon {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px var(--gutter) 80px;
}

.coming-soon__ipa {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}

.coming-soon__title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 13vw, 11rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 40px;
}

.coming-soon__desc {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.75;
  max-width: 38ch;
  margin-bottom: 48px;
}

.coming-soon__back {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.coming-soon__back:hover { color: var(--accent); border-color: var(--accent); }

/* ——— DARK MODE ——— */
/* System preference — no manual override */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #161412;
    --ink:       #EDE8E1;
    --ink-muted: #968B82;
    --accent:    #C98560;
    --ipa-color: #6E635A;
    --border:    #252120;
  }
}
/* Manual toggle override */
[data-theme="dark"] {
  --bg:        #161412;
  --ink:       #EDE8E1;
  --ink-muted: #968B82;
  --accent:    #C98560;
  --ipa-color: #6E635A;
  --border:    #252120;
}
