/* Tall Oaks Tutoring. Light only, like Rule by Rule: cream paper, oak green, Fraunces and Inter. */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: only light; /* "only" stops phones that force dark mode from repainting the page */
  --bg: #F6F1E6;
  --band: #EFE7D6;
  --card: #FFFDF8;
  --ink: #1D2620;
  --dim: #56615A;
  --line: #E4DCCB;
  --accent: #2E5E3E;
  --accent-hover: #244B31;
  --accent-ink: #FFFDF8;
  --accent-soft: #E3EDE2;
  --bark: #7A5634;
  --radius: 20px;
  --r-md: 14px;
  --shadow: 0 1px 1px rgb(29 38 32 / 0.04), 0 4px 16px rgb(29 38 32 / 0.06);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 3px solid #8FB89A;
  outline-offset: 2px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

.skip { position: absolute; left: -999px; }
.skip:focus {
  left: 16px; top: 12px; z-index: 100;
  background: var(--card); padding: 8px 12px; border-radius: 8px;
}

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgb(246 241 230 / 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.brand svg { width: 34px; height: 43px; flex: none; } /* logo 3B, 88 x 111.3 viewBox */
.brand-name { font-family: var(--serif); font-weight: 650; font-size: 1.22rem; white-space: nowrap; }
.brand-name span { color: var(--dim); font-weight: 500; }
/* Small phones: the name and the button don't both fit, so the header says "Tall Oaks". */
@media (max-width: 430px) { .brand-name span { display: none; } }
.nav { display: none; gap: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--accent); }
@media (min-width: 880px) { .nav { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 1rem; line-height: 1.25;
  text-align: center; text-decoration: none;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.92rem; white-space: nowrap; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 52px 0 40px; }
.hero-in { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 80px 0 64px; }
  .hero-in { grid-template-columns: 1.2fr 0.8fr; }
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  margin-bottom: 0.9em;
}
.lede { font-size: 1.15rem; color: var(--dim); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 24px; }
.facts {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  color: var(--dim); font-size: 0.95rem;
}
.facts li::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; vertical-align: middle;
}
.hero-art svg { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--band); }
.section-lede { color: var(--dim); max-width: 40em; font-size: 1.08rem; margin-bottom: 28px; }
.grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.door .btn { margin-top: auto; }
.door p { margin-bottom: 1.4em; }
.tag {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--bark);
  margin-bottom: 0.6em;
}
.ticks { list-style: none; padding: 0; margin: 2px 0 0; }
.ticks li { position: relative; padding-left: 28px; margin: 8px 0; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em;
  width: 13px; height: 7px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.note { margin: 24px 0 0; color: var(--dim); }

/* How it works */
.steps {
  list-style: none; counter-reset: step;
  padding: 0; margin: 28px 0 0;
  display: grid; gap: 18px;
}
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--serif); font-weight: 700;
}
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--dim); margin: 0; }

/* How I teach */
.two-col { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.15fr 0.85fr; } }
.two-col > div > p { max-width: 36em; }
.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* About */
.about { display: grid; gap: 28px; align-items: center; }
@media (min-width: 800px) { .about { grid-template-columns: 280px 1fr; } }
.photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  display: grid; place-items: center; text-align: center; padding: 20px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
  border: 2px dashed #9DBBA4;
}
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* FAQ */
.faq > * { max-width: 780px; }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 0 20px; margin-bottom: 10px;
}
.faq summary {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; font-weight: 600; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.35rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding-bottom: 18px; color: var(--dim); }

/* Closing band */
.cta-band { background: var(--accent); color: var(--accent-ink); text-align: center; }
.cta-band h2 { color: var(--accent-ink); }
.cta-band p { max-width: 36em; margin: 0 auto 1.4em; color: rgb(255 253 248 / 0.88); }
.cta-band a { color: var(--accent-ink); font-weight: 600; }
.cta-band .btn { background: var(--card); color: var(--accent); border-color: var(--card); }
.cta-band .btn:hover { background: var(--accent-soft); }

/* Footer */
.foot { padding: 28px 0 40px; color: var(--dim); font-size: 0.88rem; }
.foot p { margin: 0 0 0.5em; }
.fine { font-size: 0.8rem; max-width: 62em; }
