/* Sam Oppong Tuition. Tokens and rules follow DESIGN.md. */

/* Fraunces is pre-set to SOFT 100, WONK 1 in these files (see DESIGN.md), so no font-variation-settings are needed. */
@font-face{font-family:Fraunces;font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/fraunces-normal.woff2) format("woff2")}
@font-face{font-family:Fraunces;font-style:italic;font-weight:600;font-display:swap;src:url(fonts/fraunces-italic-600.woff2) format("woff2")}
@font-face{font-family:Karla;font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/karla-latin-wght-normal.woff2) format("woff2")}
@font-face{font-family:Caveat;font-style:normal;font-weight:600;font-display:swap;src:url(fonts/caveat-latin-600-normal.woff2) format("woff2")}

:root{
  --green:#2f5d46;
  --green-ink:#24493a;
  --terracotta:#c0643a;
  /* Slightly deeper terracotta behind white button text, for 4.5:1 contrast. */
  --terracotta-btn:#b3582f;
  --sage:#eef2ec;
  --sand:#e9c7ad;
  --mint:#cfe0d4;
  --ink:#1f2a24;
  --muted:#5a6660;
  --line:#e4e8e2;
  --white:#fff;
  --booked:#eef1ec;
  --shadow:0 20px 40px -24px rgb(31 42 36/.35);
  --serif:Fraunces,Georgia,"Times New Roman",serif;
  --sans:Karla,system-ui,-apple-system,"Segoe UI",sans-serif;
  --pad:clamp(20px,5.5vw,80px);
  --section:clamp(52px,7vw,84px);
  --doodles:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27260%27%20height%3D%27260%27%20fill%3D%27none%27%20stroke%3D%27%232f5d46%27%20stroke-opacity%3D%27.16%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%3E%3Ctext%20x%3D%2722%27%20y%3D%2758%27%20font-family%3D%27Georgia%2Cserif%27%20font-style%3D%27italic%27%20font-size%3D%2740%27%20fill%3D%27%232f5d46%27%20fill-opacity%3D%27.14%27%20stroke%3D%27none%27%3E%CF%80%3C/text%3E%3Ctext%20x%3D%27170%27%20y%3D%27120%27%20font-family%3D%27Georgia%2Cserif%27%20font-size%3D%2734%27%20fill%3D%27%232f5d46%27%20fill-opacity%3D%27.14%27%20stroke%3D%27none%27%3E%E2%88%9Ax%3C/text%3E%3Ctext%20x%3D%2760%27%20y%3D%27210%27%20font-family%3D%27Georgia%2Cserif%27%20font-size%3D%2734%27%20fill%3D%27%232f5d46%27%20fill-opacity%3D%27.14%27%20stroke%3D%27none%27%3E%CE%A3%3C/text%3E%3Cpath%20d%3D%27M150%2030l40%200-40%2050z%27/%3E%3Cpath%20d%3D%27M190%20190a26%2026%200%200%201%2052%200z%20M216%20190v-26%27/%3E%3Ccircle%20cx%3D%27110%27%20cy%3D%27120%27%20r%3D%2716%27/%3E%3Cpath%20d%3D%27M20%20150q15-25%2030%200t30%200%27/%3E%3C/svg%3E");
  --grain:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27220%27%20height%3D%27220%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.8%27%20numOctaves%3D%273%27%20stitchTiles%3D%27stitch%27/%3E%3CfeColorMatrix%20values%3D%270%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20.6%200%27/%3E%3C/filter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23n%29%27/%3E%3C/svg%3E");
}

*,*::before,*::after{box-sizing:border-box}
*{min-width:0}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;position:relative;background:var(--white);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.55;overflow-x:clip}
@media (min-width:900px){body{font-size:17px}}
/* Faint film grain over the whole page. */
body::after{content:"";position:absolute;inset:0;pointer-events:none;background:var(--grain);opacity:.16;mix-blend-mode:multiply;z-index:5}

h1,h2,h3,p,ul,dl,dd,figure,blockquote{margin:0}
a{color:inherit}
img,svg{max-width:100%}
[id]{scroll-margin-top:16px}

h1,h2,h3,.lg,.amt,.rowhead,blockquote,.ftr b,.facts b,summary,.big,.chip b{font-family:var(--serif)}

h1{font-weight:600;font-style:italic;font-size:clamp(38px,5.2vw,60px);line-height:1.02;letter-spacing:-.025em;color:var(--green-ink);text-wrap:balance}
h2{font-weight:600;font-size:clamp(30px,4vw,42px);line-height:1.1;letter-spacing:-.015em;margin-bottom:12px}
h2::after{content:"";display:block;width:40px;height:2px;background:var(--terracotta);margin-top:14px}
h3{font-weight:600;font-size:19px;line-height:1.25}

:focus-visible{outline:2px solid var(--green);outline-offset:2px;border-radius:2px}
.on-green :focus-visible{outline-color:#fff}

.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:absolute;left:12px;top:-60px;z-index:20;background:var(--green);color:#fff;padding:12px 18px;border-radius:3px;font-weight:700;text-decoration:none}
.skip:focus{top:12px}

.wrap{width:min(1120px,100% - 2*var(--pad));margin-inline:auto}
.in{padding-block:var(--section)}
.alt{background:var(--doodles) 0 0/260px 260px,var(--sage)}
.sub{color:var(--muted);max-width:58ch;margin-bottom:36px}

/* Placeholder: a value Sam has not confirmed yet. Search the HTML for class="todo". */
.todo{background:rgb(255 214 0/.38);border-bottom:1.5px dashed currentColor;padding:0 3px;border-radius:2px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.draft{background:#fff3b8;color:var(--ink);font-size:14px;text-align:center;padding:8px var(--pad)}

/* Buttons */
.bt{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 24px;border:0;border-radius:3px;background:var(--green);color:#fff;font:700 15px/1.2 var(--sans);text-decoration:none;white-space:nowrap;cursor:pointer;transition:background-color .15s}
.bt:hover{background:color-mix(in srgb,var(--green) 86%,#000)}
.bt.t{background:var(--terracotta-btn)}
.bt.t:hover{background:color-mix(in srgb,var(--terracotta-btn) 88%,#000)}
@media (prefers-reduced-motion:reduce){.bt{transition:none}}

/* Top bar */
.tb{background:var(--green);color:#e3ede6;font-size:14px}
.tb .wrap{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:40px}
.tb a{display:inline-flex;align-items:center;min-height:40px;text-decoration:none}
.tb a:hover{text-decoration:underline}
.tb-contact{display:none;gap:22px}
@media (min-width:900px){.tb-contact{display:flex}}
@media (max-width:480px){.tb{font-size:13px}}

/* Nav */
.nv{position:relative;z-index:10;background:var(--white);border-bottom:1px solid var(--line)}
.nv .wrap{display:flex;align-items:center;flex-wrap:wrap;gap:8px 30px;padding-block:16px}
.lg{margin-right:auto;font-weight:600;font-size:21px;letter-spacing:-.015em;text-decoration:none;display:inline-flex;align-items:center;min-height:44px}
.lg span{color:var(--terracotta)}
.nv-menu{display:flex;align-items:center;gap:30px}
.nv-menu ul{display:flex;gap:26px;list-style:none;margin:0;padding:0;font-size:15px}
.nv-menu ul a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}
.nv-menu ul a:hover{color:var(--green);text-decoration:underline;text-underline-offset:5px}
.bu{display:none;width:44px;height:44px;margin-right:-10px;padding:0;border:0;background:none;color:var(--ink);cursor:pointer;align-items:center;justify-content:center}
.bu i{display:block;width:24px;height:16px;border-block:2px solid currentColor;position:relative}
.bu i::after{content:"";position:absolute;left:0;right:0;top:5px;border-top:2px solid currentColor}
@media (min-width:900px){.nv .wrap{padding-block:22px}}
@media (max-width:899px){
  .nv-menu{flex-basis:100%;flex-direction:column;align-items:stretch;gap:12px;padding-bottom:8px}
  .nv-menu ul{flex-direction:column;gap:0;font-size:17px}
  .nv-menu ul a{display:flex;min-height:48px;border-top:1px solid var(--line)}
  .js .bu{display:inline-flex}
  .js .nv-menu{display:none}
  .js .nv-menu.open{display:flex}
}

/* Hero */
.hero{position:relative;overflow:hidden;background:var(--doodles) 0 0/260px 260px,var(--sage);padding:36px 0 70px}
.hero-grid{position:relative;display:grid;gap:30px;align-items:center}
.shape{position:absolute;border-radius:50%;background:var(--sand)}
.shape.a{width:240px;height:240px;right:-70px;top:-70px}
.shape.b{width:80px;height:80px;left:47%;bottom:36px;background:var(--mint);display:none}
.lead{color:var(--muted);font-size:17px;margin:20px 0 28px;max-width:44ch}
.row{display:flex;gap:12px;flex-wrap:wrap}
.facts{display:flex;flex-wrap:wrap;gap:10px 28px;font-size:15px;margin-top:30px;padding:0;list-style:none}
.facts b{display:block;font-size:22px;font-weight:600;color:var(--green);line-height:1.3}
@media (min-width:960px){
  .hero{padding:64px 0 70px}
  .hero-grid{grid-template-columns:1fr 1fr;gap:60px}
  .lead{font-size:18px}
  .shape.b{display:block}
}

/* Online-lesson illustration (no photo of Sam) */
.board-wrap{position:relative;container-type:inline-size}
.board{position:relative;z-index:1;background:#fff;border-radius:10px;box-shadow:0 30px 50px -28px rgb(31 42 36/.45);overflow:hidden}
.board .top{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line);font-size:14px;color:var(--muted)}
.board .top i{width:10px;height:10px;border-radius:50%;background:var(--line)}
.board .top i:first-child{background:var(--terracotta)}
.board .top span{margin-left:8px}
.board .top b{margin-left:auto;font-weight:700;color:var(--green);font-size:13px;display:flex;align-items:center;gap:6px}
.board .top b::before{content:"";width:8px;height:8px;border-radius:50%;background:#3fa36b}
.wb{position:relative;min-height:400px;padding:36px 40px;display:flex;flex-direction:column;gap:34px;background-color:#fff;background-image:linear-gradient(var(--sage) 1px,transparent 1px),linear-gradient(90deg,var(--sage) 1px,transparent 1px);background-size:26px 26px;font-family:Caveat,"Bradley Hand","Segoe Print",cursive;font-weight:600;color:var(--green-ink)}
.wb .l{font-size:40px;line-height:1;white-space:pre}
.wb .ok{color:var(--terracotta);display:flex;align-items:center;gap:12px}
.wb .ok svg{width:30px;height:30px;flex:none}
.wb .squiggle{display:block;margin:-30px 0 0 -6px;flex:none}
.wb .graph{position:absolute;right:40px;top:120px}
.tools{display:flex;gap:8px;padding:10px 16px;border-top:1px solid var(--line)}
.tools i{width:26px;height:26px;border-radius:6px;background:var(--sage)}
.tools i:nth-child(2){background:var(--green)}
.tools i:nth-child(3){background:var(--terracotta)}
.chip{display:none;position:absolute;z-index:2;left:-34px;bottom:46px;background:#fff;border-radius:8px;box-shadow:0 18px 30px -18px rgb(31 42 36/.5);padding:12px 16px;font-size:14px;color:var(--muted)}
.chip b{display:block;font-weight:600;font-size:26px;color:var(--green);line-height:1.1}
@media (min-width:960px){.chip{display:block}}
@container (max-width:500px){
  .wb{min-height:300px;padding:30px 22px;gap:20px}
  .wb .l{font-size:30px}
  .wb .ok svg{width:22px;height:22px}
  .wb .squiggle{margin-top:-16px}
  .wb .graph{display:none}
}
@container (max-width:330px){.wb .l{font-size:26px}}

/* Feature strip, overlapping the hero */
.ftr{position:relative;z-index:2;display:grid;margin-top:-40px;background:#fff;box-shadow:var(--shadow);list-style:none;padding:0}
.ftr li{padding:26px 28px}
.ftr li+li{border-top:1px solid var(--line)}
.ftr svg{display:block;width:34px;height:34px;margin-bottom:10px}
.ftr b{display:block;font-weight:600;font-size:19px;margin-bottom:4px}
.ftr p{font-size:15px;color:var(--muted)}
@media (min-width:760px){
  .ftr{grid-template-columns:repeat(3,1fr);margin-top:-34px}
  .ftr li+li{border-top:0;border-left:1px solid var(--line)}
}

/* Subjects table: stacked on phones, a table from 760px */
.tbl{width:100%;border-collapse:collapse;font-size:16px}
.tbl thead{display:none}
.tbl tr{display:grid;gap:4px;padding:16px 0;border-bottom:1px solid var(--line)}
.tbl th,.tbl td{text-align:left;font-weight:400;padding:0;vertical-align:top}
.tbl .rowhead{font-weight:600;font-size:22px;line-height:1.2;margin-bottom:4px}
.tbl td[data-label]::before{content:attr(data-label);display:block;font-size:14px;color:var(--muted);margin-top:6px}
@media (min-width:760px){
  .tbl thead{display:table-header-group}
  .tbl tr{display:table-row}
  .tbl thead th{font-weight:700;font-size:14px;color:var(--muted);padding:10px 14px;border-bottom:2px solid var(--ink)}
  .tbl tbody th,.tbl td{padding:18px 14px;border-bottom:1px solid var(--line)}
  .tbl td[data-label]::before{content:none}
  .tbl .rowhead{white-space:nowrap}
}

/* Price */
.one{display:grid;gap:20px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:4px;padding:26px}
.amt{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 12px;font-weight:600;font-size:72px;line-height:.9;color:var(--green)}
.amt small{font-family:var(--sans);font-size:20px;line-height:1.2;font-weight:400;color:var(--muted);white-space:nowrap}
.one ul{padding-left:20px;display:grid;gap:8px}
@media (min-width:760px){
  .one{grid-template-columns:1fr 1.2fr;gap:50px;padding:40px}
  .amt{font-size:96px}
}

/* Free slots */
.av{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:3px;font-size:11px;margin:-3px}
.av col.time{width:44px}
.av th{font-weight:700;text-align:center;padding:0 0 4px}
.av abbr{text-decoration:none}
.av tbody th{font-weight:400;color:var(--muted);text-align:left;padding:0}
.av td{border-radius:6px;height:32px;padding:0;text-align:center;background:var(--booked);color:var(--muted)}
.av td.f{background:var(--green);color:#fff;font-weight:700}
.av td.x,.av thead td{background:transparent}
.av td span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.av td.f::after{content:"\2713";font-size:13px}
.key{display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:18px;padding:0;list-style:none;font-size:14px;color:var(--muted)}
.key li{display:flex;align-items:center;gap:8px}
.key i{width:16px;height:16px;border-radius:4px;background:var(--booked)}
.key .f i{background:var(--green)}
@media (min-width:640px){
  .av{border-spacing:6px;font-size:14px;margin:-6px}
  .av col.time{width:70px}
  .av td{height:41px}
  .av td:not(.x) span{position:static;width:auto;height:auto;clip-path:none}
  .av td.f::after{content:none}
}

/* About */
.ab{display:grid;gap:30px;align-items:center}
.yrs{background:var(--green);color:#eaf1ec;border-radius:4px;padding:30px}
.yrs p{color:#d6e4da;font-size:18px;margin-top:14px;max-width:26ch}
.yrs .big{font-style:italic;font-weight:600;font-size:110px;line-height:.85;color:#fff;margin-top:0}
.yrs ul{list-style:none;padding:0;margin:30px 0 0;display:grid;gap:10px}
.yrs li{border-top:1px solid rgb(255 255 255/.2);padding-top:10px;font-size:16px}
.ab-text p{color:var(--muted);margin-bottom:14px;max-width:52ch}
.ab-text h2{margin-bottom:22px}
.cr{margin-top:22px;display:grid;grid-template-columns:auto 1fr;font-size:16px}
.cr dt,.cr dd{padding:12px 0;border-top:1px solid var(--line)}
.cr dt{color:var(--muted);padding-right:28px}
@media (min-width:860px){
  .ab{grid-template-columns:.9fr 1.1fr;gap:64px}
  .yrs{padding:44px}
  .yrs .big{font-size:150px}
}

/* Reviews */
.rv{display:grid;gap:18px}
.rv figure{background:#fff;border:1px solid var(--line);border-radius:4px;padding:30px}
.rv blockquote{margin-bottom:18px;font-size:20px;line-height:1.45}
.rv figcaption{font-size:14px;color:var(--muted)}
@media (min-width:760px){.rv{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}

/* FAQ */
.fq{max-width:860px}
.fq details{border-bottom:1px solid var(--line)}
.fq summary{cursor:pointer;font-weight:700;font-size:18px;line-height:1.3;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;min-height:48px}
.fq summary::-webkit-details-marker{display:none}
.fq summary::after{content:"+";font-family:var(--sans);font-weight:400;font-size:24px;line-height:1;flex:none}
.fq details[open] summary::after{content:"\2212"}
.fq details p{color:var(--muted);padding-bottom:18px;max-width:70ch}

/* Contact */
.ct{display:grid;gap:30px}
.ct .sub{margin-bottom:0}
.ln{font-size:20px;line-height:1.3;margin-top:20px;display:grid;justify-items:start}
.ln a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;overflow-wrap:anywhere}
.ln a:hover{color:var(--green);text-decoration:underline;text-underline-offset:5px}
.fm{display:grid;gap:14px}
.fm label{display:block;font-size:15px;font-weight:700;margin-bottom:6px}
.fm input,.fm textarea{display:block;width:100%;border:1px solid #b9c2bb;background:#fff;border-radius:3px;padding:13px 14px;color:var(--ink);font:400 16px/1.4 var(--sans)}
.fm textarea{min-height:120px;resize:vertical}
.fm input:focus-visible,.fm textarea:focus-visible{outline:2px solid var(--green);outline-offset:1px;border-color:var(--green)}
.fm .bt{justify-self:start}
.fm small{font-size:14px;color:var(--muted)}
.fm-link{justify-self:start;display:inline-flex;align-items:center;min-height:44px;margin-top:-10px;font-size:14px;color:var(--green);text-underline-offset:3px}
.fm [role=status]{font-size:15px;color:var(--green-ink);font-weight:700}
.fm [role=status]:empty{display:none}
@media (min-width:860px){.ct{grid-template-columns:1fr 1fr;gap:60px}}

/* Footer */
.ft{background:var(--green);color:#e3ede6;font-size:14px}
.ft .wrap{display:flex;flex-direction:column;gap:6px;padding-block:24px}
.ft a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}
.ft a:hover{text-decoration:underline}
.ft-links{display:flex;flex-wrap:wrap;align-items:center;gap:0 22px}
@media (min-width:860px){.ft .wrap{flex-direction:row;justify-content:space-between;align-items:center;gap:20px;padding-block:20px}}

/* Privacy page */
.doc{max-width:720px}
.doc h1{font-size:clamp(34px,4.5vw,48px);margin-bottom:10px}
.doc h2{font-size:24px;margin:36px 0 10px}
.doc h2::after{content:none}
.doc p{margin-bottom:12px}
.doc .meta{color:var(--muted);margin-bottom:8px}
.doc a:not(.bt){color:var(--green);text-underline-offset:3px}
.doc .bt{margin-top:16px}

@media print{body::after,.draft,.bu,.skip{display:none}}
