/* ==========================================================================
   PERSONAL BRAND SITE — STYLESHEET
   Author: (your name here)
   Structure: 1) Tokens  2) Reset  3) Layout utils  4) Header
              5) Hero  6) Sections (PDFs / Merch / Consult / Free / Footer)
              7) Components (cards, buttons, tags)  8) Responsive
   No build step, no framework. Drop-in ready for Cloudflare Pages.
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* 1) DESIGN TOKENS                                                        */
/* ---------------------------------------------------------------------- */
:root {
  /* Color: deep slate + warm gold accent + muted teal secondary */
  --color-ink:        #161B26;   /* near-black slate, primary text/bg */
  --color-slate:      #1C2333;   /* header/footer/dark panels */
  --color-slate-soft: #2A3247;   /* dark panel borders / hover fills */
  --color-paper:      #FAFAF8;   /* page background */
  --color-paper-dim:  #F0EEE8;   /* card background on paper */
  --color-line:       #DEDAD1;   /* hairline borders on light bg */
  --color-gold:       #C9A227;   /* primary CTA accent */
  --color-gold-dark:  #A9860F;   /* CTA hover */
  --color-teal:       #3E7C7B;   /* secondary accent, links, tags */
  --color-muted:      #6B7280;   /* secondary text */

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  --step-3: clamp(2.25rem, 1.85rem + 1.8vw, 3.25rem);
  --step-4: clamp(3rem, 2.3rem + 3vw, 4.5rem);

  /* Layout */
  --max-w: 1160px;
  --pad-page: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-card: 0 1px 2px rgba(22,27,38,0.06), 0 8px 24px -12px rgba(22,27,38,0.18);
}

/* ---------------------------------------------------------------------- */
/* 2) RESET                                                                */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------------- */
/* 3) LAYOUT UTILITIES                                                     */
/* ---------------------------------------------------------------------- */
.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-page);
}
section { padding-block: clamp(3.5rem, 6vw, 6rem); }
.section-head {
  max-width: 620px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 1px;
  display: inline-block;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}
.section-head p {
  margin-top: 0.85rem;
  color: var(--color-muted);
  font-size: 1.05rem;
}
.section-alt { background: var(--color-paper-dim); }

/* Language-code pill tag — the site's signature motif.
   Doubles as: (a) a flashcard-style language marker on PDF/resource cards,
   (b) a status-tag echo of Kanban/Jira boards for the PO audience. */
.lang-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  border: 1px solid currentColor;
  color: var(--color-teal);
  background: rgba(62,124,123,0.07);
}
.lang-tag.gold { color: var(--color-gold-dark); background: rgba(201,162,39,0.1); }

/* ---------------------------------------------------------------------- */
/* 4) HEADER / NAV                                                        */
/* ---------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
  gap: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.brand .dot { color: var(--color-gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

.main-nav ul {
  display: flex;
  gap: clamp(1rem, 2vw, 1.9rem);
  font-size: 0.92rem;
  font-weight: 500;
}
.main-nav a {
  position: relative;
  padding-block: 0.25rem;
  color: var(--color-ink);
}
.main-nav a:hover { color: var(--color-teal); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

/* ---------------------------------------------------------------------- */
/* 5) HERO                                                                 */
/* ---------------------------------------------------------------------- */
.hero {
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-kicker {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--color-ink);
}
.hero h1 em {
  font-style: normal;
  color: var(--color-teal);
}
.hero-bio {
  margin-top: 1.5rem;
  max-width: 46ch;
  color: var(--color-muted);
  font-size: 1.08rem;
}
.hero-actions {
  margin-top: 2.1rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* Hero side panel: a "translation card" — mimics a bilingual flashcard,
   tying the language-teaching identity directly into the hero. */
.hero-card {
  background: var(--color-slate);
  color: var(--color-paper);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.hero-card-row {
  display: flex;
  justify-content: space-between;
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--color-slate-soft);
}
.hero-card-row:last-child { border-bottom: none; }
.hero-card-row span:first-child { color: #9CA6BF; }
.hero-card-row span:last-child { color: var(--color-paper); font-weight: 500; }

/* ---------------------------------------------------------------------- */
/* 6) BUTTONS                                                              */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--color-gold);
  color: var(--color-ink);
}
.btn-primary:hover { background: var(--color-gold-dark); }
.btn-outline {
  border-color: var(--color-ink);
  color: var(--color-ink);
  background: transparent;
}
.btn-outline:hover { border-color: var(--color-teal); color: var(--color-teal); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

/* ---------------------------------------------------------------------- */
/* CARD GRIDS (shared by PDFs / Merch / Free resources)                   */
/* ---------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }

.card-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-slate) 0%, #303A54 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.card-media .glyph {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: rgba(250,250,248,0.9);
  letter-spacing: -0.02em;
}
.card-media .lang-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  color: var(--color-paper);
  border-color: rgba(250,250,248,0.5);
  background: rgba(250,250,248,0.08);
}

.card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.card-body p {
  color: var(--color-muted);
  font-size: 0.92rem;
  flex: 1;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
  gap: 0.75rem;
}
.price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-ink);
}
.price .was {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 0.35rem;
}

/* Merch cards: swap media gradient tone slightly for visual distinction */
.card-media.merch { background: linear-gradient(135deg, #2E2A24 0%, #4A4238 100%); }

/* ---------------------------------------------------------------------- */
/* CONSULTATION SECTION                                                   */
/* ---------------------------------------------------------------------- */
.consult-panel {
  background: var(--color-slate);
  color: var(--color-paper);
  border-radius: var(--radius-md);
  padding: clamp(2rem, 5vw, 3.25rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}
.consult-panel h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
}
.consult-panel .section-head p { color: #C6CADA; }
.consult-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.consult-list li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: #DEE1EC;
}
.consult-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  margin-top: 0.55rem;
  background: var(--color-gold);
  border-radius: 1px;
}

/* Embed slot for Calendly / Cal.com — replace the placeholder <div> with
   the provider's <iframe> or embed script. Kept as a bordered slot so the
   layout doesn't jump once the real widget is dropped in. */
.embed-slot {
  background: var(--color-slate-soft);
  border: 1px dashed rgba(250,250,248,0.35);
  border-radius: var(--radius-md);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.embed-slot .embed-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #9CA6BF;
  line-height: 1.6;
}

/* ---------------------------------------------------------------------- */
/* FREE RESOURCES                                                         */
/* ---------------------------------------------------------------------- */
.free-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.free-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  transition: border-color 0.15s ease;
}
.free-item:hover { border-color: var(--color-teal); }
.free-item .file-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-paper-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-teal);
}
.free-item-body { flex: 1; }
.free-item-body h4 { font-size: 0.98rem; font-weight: 600; }
.free-item-body span { font-size: 0.82rem; color: var(--color-muted); }

/* ---------------------------------------------------------------------- */
/* ABOUT                                                                   */
/* ---------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-portrait {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--color-slate) 0%, #384367 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}
.about-portrait span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #9CA6BF;
}
.about-copy p { color: var(--color-muted); margin-bottom: 1rem; }
.about-copy p:last-child { margin-bottom: 0; }
.credential-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* ---------------------------------------------------------------------- */
/* FOOTER / CONTACT / SOCIALS                                             */
/* ---------------------------------------------------------------------- */
.site-footer {
  background: var(--color-slate);
  color: var(--color-paper);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
.footer-top h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
}
.footer-top p { color: #B7BCCF; margin-top: 0.9rem; max-width: 42ch; }
.footer-actions { margin-top: 1.75rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }
.btn-on-dark { border-color: rgba(250,250,248,0.4); color: var(--color-paper); }
.btn-on-dark:hover { border-color: var(--color-gold); color: var(--color-gold); }

.social-list { display: flex; gap: 0.75rem; margin-top: 1.75rem; }
.social-list a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(250,250,248,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.social-list a:hover { border-color: var(--color-gold); background: rgba(201,162,39,0.12); }
.social-list svg { width: 18px; height: 18px; fill: var(--color-paper); }

/* Responsive video embed wrapper — keeps a 16:9 box regardless of iframe */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--color-slate-soft);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-bottom {
  border-top: 1px solid var(--color-slate-soft);
  padding-block: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #8B92A8;
}
.footer-bottom a:hover { color: var(--color-gold); }

/* ---------------------------------------------------------------------- */
/* 8) RESPONSIVE                                                          */
/* ---------------------------------------------------------------------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .consult-panel { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 260px; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-paper);
    border-bottom: 1px solid var(--color-line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--pad-page) 1rem; }
  .main-nav a { display: block; padding-block: 0.75rem; border-bottom: 1px solid var(--color-line); }
  .grid { grid-template-columns: 1fr; }
  .free-list { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
}
