/* ==========================================================
   Tutoring — Minimalist White Theme
   Fonts: Playfair Display (headings) · Inter (body)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Delicious+Handrawn&family=Playwrite+NZ+Guides&family=Send+Flowers&family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Colour palette */
  --clr-bg:           #f8f7f4;
  --clr-bg-alt:       #ffffff;
  --clr-text:         #1c1917;
  --clr-text-muted:   #78716c;
  --clr-accent:       #4338ca;   /* indigo-700 */
  --clr-accent-hover: #3730a3;
  --clr-border:       #e7e5e4;

  /* Layout */
  --max-width:  780px;
  --radius:     6px;
  --transition: 180ms ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Navigation ────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f8f7f4;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--clr-border);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.nav-brand {
    font-family: "Delicious Handrawn", cursive;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--clr-text);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  text-decoration: none;
  letter-spacing: 0.025em;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--clr-text);
}

.nav-cta {
  background: var(--clr-accent);
  color: #fff !important;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  transition: background var(--transition) !important;
}

.nav-cta:hover {
  background: var(--clr-accent-hover) !important;
  color: #fff !important;
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  padding: 7rem 1.5rem 6rem;
  border-bottom: 1px solid var(--clr-border);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 3.5rem;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-kicker {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--clr-text);
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--clr-text-muted);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.hero-portrait-wrap {
  flex-shrink: 0;
}

.hero-portrait {
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.12);
  display: block;
}

.btn {
  display: inline-block;
  background: var(--clr-accent);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background var(--transition), transform var(--transition);
}

.btn:hover {
  background: var(--clr-accent-hover);
  transform: translateY(-1px);
}

/* ── Sections ───────────────────────────────────────────── */

.section {
  padding: 2rem 1.5rem;
}


.section-alt {
  background: var(--clr-bg-alt);
}

/* ── Prose (rendered Markdown) ──────────────────────────── */

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--clr-text);
}

.prose h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.prose h2 {
  font-size: 1.65rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--clr-border);
}

.prose h3 {
  font-size: 1.2rem;
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
}

.prose h4 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--clr-text);
  margin-bottom: 1.25rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.prose li {
  margin-bottom: 0.45rem;
  line-height: 1.75;
}

.prose ul > li {
  list-style: none;
  position: relative;
  padding-left: 0.35rem;
}

.prose ul > li::before {
  content: "—";
  position: absolute;
  left: -1.1rem;
  color: var(--clr-accent);
  font-weight: 600;
}

.prose a {
  color: var(--clr-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong {
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: 2.5rem 0;
}

/* ── Testimonials (blockquotes) ─────────────────────────── */

.prose blockquote {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-left: 3px solid var(--clr-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.75rem;
  margin: 1.75rem 0;
}

.section-alt .prose blockquote {
  background: #fff;
}

.prose blockquote p {
  font-style: italic;
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.prose blockquote p:last-child {
  font-style: normal;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--clr-text);
  margin-bottom: 0;
}

/* ── Pricing table ──────────────────────────────────────── */

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.prose thead th {
  background: var(--clr-accent);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.75rem 1rem;
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text);
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose tbody tr:nth-child(even) td {
  background: var(--clr-bg-alt);
}

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  background: var(--clr-text);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.footer-acknowledgement {
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  max-width: 640px;
  margin: 0 auto 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-style: italic;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 640px) {
  .nav-links {
    gap: 1rem;
  }

  /* Hide text nav items on small screens, keep the CTA */
  .nav-links li:not(:last-child) {
    display: none;
  }

  .hero {
    padding: 4rem 1.5rem 3.5rem;
  }

  .hero-inner {
    flex-direction: column-reverse;
    gap: 2rem;
    text-align: center;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-portrait {
    width: 160px;
    height: 160px;
  }

  .section {
    padding: 1rem 1rem;
  }

  .prose blockquote {
    padding: 1rem 1.25rem;
  }
}
