@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&display=swap');

/* Matthew Cawood — brand site design system.
   Dark, premium, high-end — cohesive with the app, the Book-a-Lesson page,
   and the signup flow. Single source of truth: re-skins every page at once. */
:root{
  --bg:#0a0a0b;          /* near-black page */
  --bg2:#101013;
  --surface:#141416;     /* cards */
  --surface-2:#1b1b1f;   /* tinted panels */
  --surface-3:#222228;
  --panel:#16161a;
  --border:#26262b;
  --border-2:#34343b;
  --text:#f2f1ef;        /* warm off-white */
  --heading:#ffffff;
  --muted:#9a9aa2;
  --muted-2:#6c6c74;
  --accent:#f5c518;      /* gold */
  --accent-ink:#1a1400;  /* text on gold */
  --gold-dim:#e8c43a;
  --gold-deep:#caa413;
  --maxw:1120px;
  --radius:16px;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --serif:"Fraunces",Georgia,"Times New Roman",serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);
  line-height:1.65;-webkit-font-smoothing:antialiased;font-size:17px}
/* ambient gold glow at the top of every page */
body::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(54% 36% at 50% -6%, rgba(245,197,24,.07), transparent 62%)}
header.site, section, footer.site{position:relative;z-index:1}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{color:var(--heading);margin:0;line-height:1.15;letter-spacing:-0.02em;font-weight:700}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 22px}
.narrow{max-width:760px;margin:0 auto;padding:0 22px}
.eyebrow{font-size:.72rem;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-deep);margin:0 0 14px}
.muted{color:var(--muted)}
section{padding:84px 0}
/* Fraunces display headings */
.serif,.hero h1,.sec-head h2,.page-intro h1,.article-head h1,.news h2,.about-grid h2,.about-teaser h2,.archive h2{
  font-family:var(--serif);font-weight:600;letter-spacing:-.015em;color:#fff}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:8px;border:none;cursor:pointer;font-family:inherit;font-weight:800;
  border-radius:12px;padding:14px 26px;font-size:1rem;background:var(--accent);color:var(--accent-ink);
  box-shadow:0 18px 40px -18px rgba(245,197,24,.55);transition:transform .14s cubic-bezier(.16,1,.3,1),box-shadow .2s,background .2s}
.btn:hover{transform:translateY(-2px);background:var(--gold-dim);box-shadow:0 22px 48px -18px rgba(245,197,24,.7)}
.btn-ghost{background:transparent;color:var(--text);border:1.5px solid var(--border-2);box-shadow:none}
.btn-ghost:hover{border-color:var(--accent);background:rgba(245,197,24,.06);color:#fff}

/* header / nav */
header.site{position:sticky;top:0;z-index:40;background:rgba(10,10,11,.72);
  -webkit-backdrop-filter:saturate(150%) blur(12px);backdrop-filter:saturate(150%) blur(12px);border-bottom:1px solid var(--border)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:18px;height:68px}
.brand{display:flex;align-items:center;gap:11px;font-weight:800;color:#fff;letter-spacing:-.01em}
.brand img{width:34px;height:34px;border-radius:9px}
.brand-mark{width:34px;height:34px;border-radius:9px}
.brand small{display:block;font-size:.62rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--muted-2);margin-top:1px}
.nav-links{display:flex;align-items:center;gap:4px}
.nav-links a{padding:8px 11px;border-radius:9px;font-weight:600;font-size:.92rem;color:#e9e9ec;white-space:nowrap;transition:background .15s}
.nav-links a:hover{background:rgba(255,255,255,.06)}
.nav-links a[aria-current=page]{color:var(--gold-dim)}
.nav-links a.cta{background:var(--accent);color:var(--accent-ink);font-weight:800}
.nav-links a.cta:hover{background:var(--gold-dim)}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:8px}
.nav-toggle svg{width:26px;height:26px;stroke:#fff;fill:none;stroke-width:2}
@media(max-width:1024px){
  .nav-links{position:fixed;inset:68px 0 auto 0;flex-direction:column;align-items:stretch;gap:2px;
    background:var(--bg2);border-bottom:1px solid var(--border);padding:12px 18px 18px;
    transform:translateY(-130%);transition:transform .22s ease;box-shadow:0 28px 50px -30px rgba(0,0,0,.8)}
  .nav-links.open{transform:none}
  .nav-links a{padding:13px 12px;font-size:1.05rem}
  .nav-toggle{display:inline-flex}
}

/* hero */
.hero{padding:80px 0 64px}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:54px;align-items:center}
@media(max-width:860px){.hero-grid{grid-template-columns:1fr;gap:34px;text-align:center}}
.hero h1{font-size:clamp(2.7rem,6vw,4.6rem);line-height:1.02;text-wrap:balance}
.hero .lede{font-size:1.18rem;color:var(--muted);margin:22px 0 32px;max-width:540px}
@media(max-width:860px){.hero .lede{margin-left:auto;margin-right:auto}}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:860px){.hero-cta{justify-content:center}}
.hero-photo{position:relative}
.hero-photo::after{content:"";position:absolute;inset:-1px;border-radius:22px;pointer-events:none;
  box-shadow:0 60px 120px -50px rgba(245,197,24,.22)}
.hero-photo img{width:100%;border-radius:22px;border:1px solid var(--border-2);
  box-shadow:0 50px 90px -50px rgba(0,0,0,.9);aspect-ratio:4/5;object-fit:cover}
.hero-tags{display:flex;gap:8px;justify-content:center;margin-top:18px;flex-wrap:wrap}
.tag{font-size:.74rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-dim);
  background:var(--surface);border:1px solid var(--border);border-radius:100px;padding:6px 14px}

/* generic section heading */
.sec-head{text-align:center;max-width:680px;margin:0 auto 48px}
.sec-head h2{font-size:clamp(2rem,4vw,2.8rem)}
.sec-head p{color:var(--muted);margin-top:14px;font-size:1.05rem}

/* about teaser */
.about-teaser{background:linear-gradient(180deg,var(--bg2),var(--bg));border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.about-grid{display:grid;grid-template-columns:300px 1fr;gap:48px;align-items:center;max-width:920px;margin:0 auto}
@media(max-width:760px){.about-grid{grid-template-columns:1fr;text-align:center;gap:28px}}
.about-grid img{width:100%;border-radius:18px;border:1px solid var(--border-2);aspect-ratio:1;object-fit:cover;
  box-shadow:0 40px 80px -50px rgba(0,0,0,.9)}
.about-grid h2{font-size:clamp(1.8rem,3.5vw,2.4rem);margin-bottom:16px}
.about-grid p{color:var(--text);margin:0 0 16px}
.about-grid em{color:var(--gold-dim);font-style:normal}

/* feature cards */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media(max-width:820px){.cards{grid-template-columns:1fr}}
.card{background:linear-gradient(180deg,var(--surface),#0f0f11);border:1px solid var(--border);border-radius:var(--radius);
  padding:28px 26px;transition:transform .15s cubic-bezier(.16,1,.3,1),border-color .2s,box-shadow .25s}
.card:hover{transform:translateY(-4px);border-color:var(--border-2);box-shadow:0 34px 64px -38px rgba(0,0,0,.9)}
.card .ic{width:46px;height:46px;border-radius:13px;background:rgba(245,197,24,.08);border:1px solid rgba(245,197,24,.16);
  display:flex;align-items:center;justify-content:center;margin-bottom:18px}
.card .ic svg{width:22px;height:22px;stroke:var(--gold-dim);fill:none;stroke-width:1.8}
.card h3{font-size:1.14rem;margin-bottom:9px;color:#fff}
.card p{color:var(--muted);font-size:.95rem;margin:0}

/* newsletter band */
.news{position:relative;background:linear-gradient(180deg,var(--bg2),var(--bg));border-top:1px solid var(--border);border-bottom:1px solid var(--border);overflow:hidden}
.news::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(60% 80% at 50% 120%, rgba(245,197,24,.10), transparent 64%)}
.news-inner{max-width:620px;margin:0 auto;text-align:center;position:relative}
.news h2{font-size:clamp(1.9rem,4vw,2.7rem)}
.news p{color:var(--muted);margin:14px 0 26px;font-size:1.05rem}
.subscribe{display:flex;gap:10px;max-width:460px;margin:0 auto}
@media(max-width:520px){.subscribe{flex-direction:column}}
.subscribe input{flex:1;border:1.5px solid var(--border-2);background:var(--surface);border-radius:12px;padding:14px 16px;font-size:1rem;font-family:inherit;color:var(--text)}
.subscribe input::placeholder{color:var(--muted-2)}
.subscribe input:focus{outline:none;border-color:var(--accent)}
.form-note{font-size:.82rem;color:var(--muted-2);margin-top:12px;min-height:1.2em}

/* socials */
.socials{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:8px}
.socials a{width:48px;height:48px;border-radius:14px;background:var(--surface);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;transition:transform .14s,border-color .2s,background .2s}
.socials a:hover{transform:translateY(-3px);border-color:var(--accent);background:rgba(245,197,24,.06)}
.socials svg{width:22px;height:22px;fill:var(--text)}
.socials a:hover svg{fill:var(--gold-dim)}

/* footer */
footer.site{background:#070708;border-top:1px solid var(--border);color:#b7b7be;padding:56px 0 34px}
footer.site .wrap{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:32px}
@media(max-width:760px){footer.site .wrap{grid-template-columns:1fr;gap:24px}}
footer.site h4{color:#fff;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;margin-bottom:14px}
footer.site a{color:#b7b7be;display:block;padding:4px 0;font-size:.95rem;transition:color .15s}
footer.site a:hover{color:var(--accent)}
footer.site .brand-f{font-weight:800;font-size:1.18rem;color:#fff;margin-bottom:8px}
footer.site p{color:#85858d!important}
footer.site .legal{grid-column:1/-1;border-top:1px solid var(--border);margin-top:20px;padding-top:20px;
  font-size:.82rem;color:#74747b;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}

/* ── page intro (archive / simple pages) ── */
.page-intro{padding:66px 0 10px;text-align:center}
.page-intro h1{font-size:clamp(2.4rem,5.4vw,3.6rem);line-height:1.04}
.page-intro p{color:var(--muted);font-size:1.1rem;margin:16px auto 0;max-width:600px}

/* ── MMT archive ── */
.archive{padding:42px 0 92px}
.archive-search{max-width:460px;margin:0 auto 40px;position:relative}
.archive-search input{width:100%;border:1.5px solid var(--border-2);background:var(--surface);border-radius:13px;
  padding:14px 16px 14px 44px;font-size:1rem;font-family:inherit;color:var(--text)}
.archive-search input::placeholder{color:var(--muted-2)}
.archive-search input:focus{outline:none;border-color:var(--accent)}
.archive-search svg{position:absolute;left:15px;top:50%;transform:translateY(-50%);width:18px;height:18px;stroke:var(--muted-2);fill:none;stroke-width:2}
.year-group{margin-bottom:42px}
.year-group h2{font-size:1rem;font-family:var(--font);font-weight:800;color:var(--muted-2);letter-spacing:.06em;
  border-bottom:1px solid var(--border);padding-bottom:10px;margin-bottom:8px}
.tip-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:18px}
@media(max-width:860px){.tip-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.tip-grid{grid-template-columns:1fr}}
.tip{display:block;background:var(--surface);border:1px solid var(--border);border-radius:16px;overflow:hidden;
  transition:transform .15s cubic-bezier(.16,1,.3,1),box-shadow .25s,border-color .2s}
.tip:hover{transform:translateY(-4px);box-shadow:0 34px 64px -38px rgba(0,0,0,.95);border-color:var(--border-2)}
/* repeatable dark "title-card" thumbnail — no per-article image needed */
.tip .tip-card{aspect-ratio:16/10;position:relative;display:flex;align-items:center;justify-content:center;
  text-align:center;padding:26px 22px;color:#fff;overflow:hidden;
  background:radial-gradient(130% 90% at 50% -10%, #4a3f31 0%, #2a241d 45%, #161310 100%)}
.tip .tip-card::before{content:"";position:absolute;inset:0;
  background:radial-gradient(80% 60% at 50% 118%, rgba(245,197,24,.30), transparent 62%)}
.tip .tip-card::after{content:"";position:absolute;left:0;right:0;bottom:0;height:14px;
  background:repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 6px, transparent 6px 10px, rgba(0,0,0,.25) 10px 11px);
  opacity:.5;mask-image:linear-gradient(transparent, #000)}
.tip .tip-title{position:relative;font-family:var(--serif);font-weight:600;font-size:1.2rem;line-height:1.24;
  letter-spacing:-.005em;text-shadow:0 1px 14px rgba(0,0,0,.4);
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tip .tip-meta{padding:13px 18px 14px;font-size:.7rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--gold-deep)}
.no-results{text-align:center;color:var(--muted);padding:40px 0;display:none}

/* ── single article ── */
.article-head{padding:56px 0 0;text-align:center}
.article-head .date{font-size:.78rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--gold-deep)}
.article-head h1{font-size:clamp(2.1rem,4.6vw,3.1rem);max-width:760px;margin:16px auto 0;line-height:1.1}
.article-cover{max-width:900px;margin:34px auto 0;padding:0 22px}
.article-cover img{width:100%;border-radius:18px;border:1px solid var(--border-2)}
.article{max-width:720px;margin:0 auto;padding:46px 22px 20px;font-size:1.1rem;line-height:1.82;color:var(--text)}
.article h2{font-size:1.6rem;margin:40px 0 14px;font-family:var(--serif);font-weight:600;color:#fff;letter-spacing:-.01em}
.article h3{font-size:1.28rem;margin:32px 0 12px;color:#fff}
.article h4{font-size:1.06rem;margin:24px 0 10px;color:#fff}
.article p{margin:0 0 20px;color:var(--text)}
.article a{color:var(--gold-dim);text-decoration:underline;text-underline-offset:2px;text-decoration-color:rgba(232,196,58,.4)}
.article a:hover{text-decoration-color:var(--gold-dim)}
.article strong{color:#fff;font-weight:700}
.article ul,.article ol{margin:0 0 20px;padding-left:1.3em}
.article li{margin:0 0 8px}
.article li::marker{color:var(--gold-deep)}
.article img{width:100%;border-radius:14px;border:1px solid var(--border-2);margin:24px 0}
.article blockquote{margin:26px 0;padding:16px 24px;border-left:3px solid var(--accent);
  background:var(--surface-2);border-radius:0 12px 12px 0;color:#e9e8e5;font-style:italic}
.article hr{border:none;border-top:1px solid var(--border-2);margin:32px auto;width:70px}
.article-foot{max-width:720px;margin:10px auto 0;padding:0 22px 80px}
.article-nav{display:flex;justify-content:space-between;gap:14px;border-top:1px solid var(--border);padding-top:28px;margin-top:32px}
.article-nav a{max-width:46%;color:var(--muted);font-size:.92rem}
.article-nav a b{display:block;color:#fff;font-weight:700;margin-top:3px}
.article-nav a:hover b{color:var(--gold-dim)}
.article-nav a.next{text-align:right;margin-left:auto}
.back-link{display:inline-flex;gap:7px;align-items:center;color:var(--muted);font-weight:600;font-size:.92rem;margin-bottom:6px}
.back-link:hover{color:var(--gold-dim)}

/* ── Light reading mode: individual articles only (dark chrome kept) ──
   Scoped via :has() — the archive has no .article-head, so it stays dark.
   Warm cream sheet + near-black serif, matching the email/brand warmth. */
body:has(.article-head){background:#faf7f3;color:#2a2520}
body:has(.article-head)::before{display:none}                       /* no dark glow on light pages */
body:has(.article-head) header.site{background:rgba(12,12,14,.92)}  /* keep a crisp dark nav bar */
body:has(.article-head) .article-head .date{color:#b07d0a}
body:has(.article-head) .article-head h1{color:#1f1a14}
body:has(.article-head) .article{color:#2a2520}
body:has(.article-head) .article h2,
body:has(.article-head) .article h3,
body:has(.article-head) .article h4{color:#1f1a14}
body:has(.article-head) .article p{color:#2a2520}
body:has(.article-head) .article a{color:#9a6f12;text-decoration-color:rgba(154,111,18,.42)}
body:has(.article-head) .article a:hover{text-decoration-color:#9a6f12}
body:has(.article-head) .article strong{color:#1a1410}
body:has(.article-head) .article li::marker{color:#b07d0a}
body:has(.article-head) .article img,
body:has(.article-head) .article-cover img{border-color:#e6ddd0}
body:has(.article-head) .article blockquote{background:#f1ece3;color:#42382e;border-left-color:var(--accent)}
body:has(.article-head) .article hr{border-top-color:#e0d6c8}
body:has(.article-head) .article-nav{border-top-color:#e6ddd0}
body:has(.article-head) .article-nav a{color:#8a7d6e}
body:has(.article-head) .article-nav a b{color:#1f1a14}
body:has(.article-head) .article-nav a:hover b{color:#9a6f12}
body:has(.article-head) .back-link{color:#8a7d6e}
body:has(.article-head) .back-link:hover{color:#9a6f12}

/* ── scroll reveal (cards fade up as they enter view) ── */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .55s cubic-bezier(.16,1,.3,1),transform .55s cubic-bezier(.16,1,.3,1)}
.reveal.visible{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}
/* ── premium on-load entrance for the top of each page ── */
@media(prefers-reduced-motion:no-preference){
  .hero>.wrap,.page-intro>.wrap,.store-hero>.wrap{animation:riseIn .75s cubic-bezier(.16,1,.3,1) both}
  @keyframes riseIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
}
