/* ==========================================================
   Design tokens
   Ink navy for authority/education, warm parchment paper base,
   ochre for the academic/tutoring accent, teal for the creative
   (art & music) accent. Fraunces (serif, variable optical size)
   for display type; Inter for body/UI.
   ========================================================== */
:root {
  --ink: #1C2B39;
  --ink-soft: #445164;
  --parchment: #FAF6EF;
  --parchment-tint: #F1EAD9;
  --line: #E1D7C0;
  --ochre: #B9812F;
  --ochre-dark: #8C611F;
  --teal: #3E7C74;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 960px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--ochre-dark); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ochre-dark);
  margin: 0 0 0.6em;
}

/* ==========================================================
   Header / nav
   ========================================================== */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--parchment);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
}

.nav-cta {
  background: var(--ink);
  color: var(--parchment) !important;
  padding: 8px 16px;
  border-radius: var(--radius);
}

.nav-cta:hover { background: var(--ochre-dark); }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 24px 56px;
}

.hero-sub { font-size: 1.05rem; max-width: 46ch; }

.portrait-frame {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--parchment-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed var(--line);
}

.portrait-placeholder {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 0 20px;
}

/* ==========================================================
   Sections
   ========================================================== */
.section {
  padding: 56px 24px;
  border-top: 1px solid var(--line);
}

.section-tinted {
  background: var(--parchment-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-intro {
  max-width: 60ch;
  font-size: 1.02rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* ==========================================================
   Subject tags — signature element.
   Styled like small paper labels/stamps at gentle alternating
   angles, nodding to the handmade/creative side while still
   reading as a clean academic subject list.
   ========================================================== */
.subject-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  padding: 0;
  margin: 8px 0 0;
}

.subject-tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  transform: rotate(var(--tilt, 0deg));
  box-shadow: 1px 2px 0 rgba(28, 43, 57, 0.05);
}

.subject-tag:nth-child(odd)  { --tilt: -1.2deg; }
.subject-tag:nth-child(even) { --tilt: 1deg; }
.subject-tag:nth-child(3n)   { --tilt: -0.4deg; border-color: var(--teal); }

/* ==========================================================
   Philosophy grid
   ========================================================== */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 8px;
}

.philosophy-item h3 {
  color: var(--ochre-dark);
}

/* ==========================================================
   Text links
   ========================================================== */
.text-link {
  display: inline-block;
  margin-top: 6px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.text-link:hover { color: var(--teal); }

/* ==========================================================
   CTA section
   ========================================================== */
.cta-section {
  text-align: center;
  padding-top: 64px;
  padding-bottom: 72px;
}

.cta-section h2 { max-width: 40ch; margin-left: auto; margin-right: auto; }

.btn-primary {
  display: inline-block;
  margin-top: 12px;
  background: var(--ink);
  color: var(--parchment);
  text-decoration: none;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: var(--radius);
}

.btn-primary:hover { background: var(--ochre-dark); }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-nav a:hover { color: var(--ink); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }
  .hero-portrait { max-width: 260px; }
  .two-col,
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  .site-nav {
    gap: 16px;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ==========================================================
   Root hub page — three-way landing between tutoring, art/music,
   and dev sections. Intentionally minimal: this page's only job
   is routing, not persuading, so it stays quiet and gets out of
   the way.
   ========================================================== */
.hub-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hub-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 24px;
}

.hub-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.hub-intro h1 { margin-bottom: 0.4em; }
.hub-intro p { font-size: 1.05rem; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hub-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(28, 43, 57, 0.08);
}

.hub-card .eyebrow { margin-bottom: 0.8em; }

.hub-card h2 {
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.3em;
}

.hub-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.hub-card--tutoring .eyebrow { color: var(--ochre-dark); }
.hub-card--art .eyebrow { color: var(--teal); }
.hub-card--dev .eyebrow { color: var(--ink-soft); }

@media (max-width: 760px) {
  .hub-grid { grid-template-columns: 1fr; }
}
