@font-face { font-family: 'Caslon'; src: url('fonts/libre-caslon-display-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Source Sans'; src: url('fonts/source-sans-3-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Source Sans'; src: url('fonts/source-sans-3-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --ink: #152d38;
  --paper: #faf5e9;
  --gold: #d7bf8d;
  --muted: #4e5b5c;
  --rule: #c9ccbf;
  --serif: 'Caslon', Georgia, serif;
  --sans: 'Source Sans', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1.125rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { color: var(--paper); background: #456475; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #b25d29; outline-offset: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
p + p { margin-top: 1rem; }
.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 5; top: 8px; left: 8px; padding: 12px 20px; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.wordmark { font: 2rem/1.1 var(--serif); text-decoration: none; letter-spacing: -.025em; }
nav { display: flex; align-items: center; gap: 32px; font-size: 1rem; }
nav a { text-decoration: none; padding-block: 12px; }
nav a:hover { text-decoration: underline; }
nav a:last-child { font-weight: 600; }
nav a span { margin-left: 6px; }
.hero { position: relative; margin-inline: 20px; background: var(--ink); color: var(--paper); }
.hero-frame { pointer-events: none; position: absolute; inset: 18px; border: 1px solid #d7bf8d4d; }
.hero-frame i { position: absolute; width: 31px; height: 31px; border-color: var(--gold); border-style: solid; border-width: 0; }
.hero-frame i::after { content: ''; position: absolute; inset: 7px; border: inherit; }
.hero-frame i:nth-child(1) { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.hero-frame i:nth-child(2) { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.hero-frame i:nth-child(3) { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.hero-frame i:nth-child(4) { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }
.hero-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(35px, 7vw, 106px); align-items: center; padding-block: 65px 70px; }
.eyebrow { font: 600 .76rem/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.hero .eyebrow { color: var(--gold); margin-bottom: 22px; }
h1 { font-size: clamp(3.3rem, 5.6vw, 4.8rem); line-height: 1.02; letter-spacing: -.035em; max-width: 13ch; }
.introduction { font: 1.55rem/1.4 var(--sans); }
.service-area { margin-top: 24px; color: #d5dedb; font-size: 1.0625rem; line-height: 1.6; }
.hero-action { margin-top: 32px; padding-top: 27px; border-top: 1px solid #d7bf8d59; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; }
.rate { white-space: nowrap; font-size: 1rem; }
.rate span { font: 2.4rem/1 var(--serif); margin-right: 5px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 50px; padding: 12px 21px; background: var(--paper); color: var(--ink); text-decoration: none; font: 600 1rem/1.5 var(--sans); border: 1px solid var(--paper); transition: background .15s, color .15s; }
.button:hover { background: var(--gold); border-color: var(--gold); }
.button span { font-size: 1.3em; line-height: 1; }
.hero a:focus-visible, .contact a:focus-visible { outline-color: var(--gold); }
.section { padding-block: 60px; }
h2 { font-size: clamp(2.25rem, 3.3vw, 2.8rem); line-height: 1.1; letter-spacing: -.025em; }
.tutoring .section-heading { margin-bottom: 30px; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 45px; }
.service { border-top: 1px solid var(--rule); padding-top: 20px; }
h3 { font-size: 1.9rem; line-height: 1.15; margin-bottom: 16px; }
.service p { color: var(--muted); font-size: 1.0625rem; }
.service strong { color: var(--ink); font-weight: 600; }
.other-subjects { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 1rem; }
.about { background: #e9eadd; }
.about-inner { padding-block: 36px; display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 72px; align-items: center; }
.portrait { margin: 0; }
.portrait img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.portrait figcaption { margin-top: 9px; color: var(--muted); font: .8rem/1.4 var(--sans); }
.about-copy { max-width: 62ch; margin-top: 20px; }
.rate-large { margin-block: 24px 16px; }
.rate-large span { font-size: 2.8rem; }
.contact { background: var(--ink); color: var(--paper); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: 100px; padding-block: 55px 60px; }
.contact-details > p:not(.rate) { color: #d5dedb; max-width: 34ch; }
.contact-copy { max-width: 540px; }
.contact-copy > p { color: #d5dedb; }
.contact .button { margin-top: 28px; }
.email-address { display: block; width: fit-content; max-width: 100%; overflow-wrap: anywhere; margin-top: 20px; font-size: 1rem; }
.site-footer { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: .9rem; }
.site-footer > span { font: 1.5rem/1.2 var(--serif); }
.site-footer a { text-decoration: none; padding-block: 12px; }
.site-footer a:hover { text-decoration: underline; }

@media (min-width: 1500px) { .hero { max-width: 1480px; margin-inline: auto; } }
@media (max-width: 950px) {
  .wrap { width: calc(100% - 72px); }
  .hero-inner { gap: 34px; padding-block: 58px; }
  .introduction { font-size: 1.3rem; }
  .services { gap: 28px; }
  h3 { font-size: 1.8rem; }
  .about-inner, .contact-inner { gap: 45px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 48px); }
  .site-header { min-height: 86px; gap: 15px; }
  .wordmark { max-width: 190px; font-size: 1.65rem; }
  nav { font-size: .95rem; }
  nav .desktop-link { display: none; }
  .hero { margin-inline: 10px; }
  .hero-frame { inset: 10px; }
  .hero-inner { grid-template-columns: 1fr; gap: 23px; padding-block: 36px 38px; }
  .hero .eyebrow { margin-bottom: 18px; }
  h1 { font-size: clamp(2.7rem, 10.6vw, 4.4rem); max-width: 14ch; }
  .introduction { font-size: 1.2rem; line-height: 1.4; }
  .service-area { margin-top: 16px; font-size: 1rem; }
  .hero-action { margin-top: 21px; padding-top: 20px; justify-content: space-between; gap: 20px 16px; }
  .rate span { font-size: 2rem; }
  .hero-action .button { gap: 16px; padding-inline: 16px; }
  .section { padding-block: 42px; }
  h2 { font-size: 2.3rem; }
  .tutoring .section-heading { margin-bottom: 25px; }
  .services { grid-template-columns: 1fr; gap: 28px; }
  .service { padding-top: 20px; }
  h3 { font-size: 1.8rem; margin-bottom: 13px; }
  .service p { font-size: 1.0625rem; }
  .other-subjects { margin-top: 30px; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 24px; }
  .about-inner { padding-block: 32px; }
  .portrait { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 18px; }
  .portrait figcaption { margin-top: 0; max-width: 18ch; }
  .about-copy { margin-top: 16px; }
  .contact-inner { padding-block: 40px 44px; }
  .contact-details > p:not(.rate) { max-width: none; }
  .site-footer { min-height: 86px; align-items: center; font-size: .8rem; }
  .site-footer > span { max-width: 180px; font-size: 1.35rem; }
  .site-footer a { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
