/* ============================================================
   SITE STYLES — Math Tutoring
   ------------------------------------------------------------
   You almost never need to touch the whole file.
   To re-theme the site, edit ONLY the variables in :root below.
   ============================================================ */

:root {
  /* ---------- COLORS (keep them light; text is near-black) ---------- */
  --color-bg:     #fdfdfb;  /* page background — very light */
  --color-text:   #141414;  /* main text — near-black */
  --color-muted:  #5a5a5a;  /* secondary / subtitle text */
  --color-link:   #141414;  /* link color */
  --color-rule:   #e7e7e1;  /* thin divider lines */

  /* ---------- FONTS ---------- */
  /* Headings use a serif for an academic feel; body uses a clean sans.
     Both are built into every device, so the site loads instantly with
     no external font downloads. */
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  Helvetica, Arial, sans-serif;

  /* ---------- LAYOUT ---------- */
  --max-width: 720px;       /* content column width */

  /* ---------- CORNER ORNAMENT ---------- */
  /* How visible the little animated inkblot in the corner is
     (assets/blob-bg.js). 1 = solid black, lower = softer. */
  --ornament-opacity: 0.95;
  /* Size of the ornament (it's a square). */
  --ornament-size: 130px;
}

/* ---------- RESET / BASE ---------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  /* keeps the footer at the bottom on short pages */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- ANIMATED CORNER ORNAMENT ----------
   The morphing inkblot (assets/blob-bg.js) draws into a canvas inside this
   box. It scrolls with the page and is parked at the top-right, up by the
   header. Size/opacity come from the --ornament-* variables above. To nudge
   its exact position, edit `top` / `right` below. */
#blob-bg {
  position: absolute;
  top: 6px;
  right: -6px;                /* small screens: tuck into the top-right corner */
  width: calc(var(--ornament-size) * 0.62);
  height: calc(var(--ornament-size) * 0.62);
  z-index: 10;
  pointer-events: none;
  opacity: var(--ornament-opacity);
}
#blob-bg canvas { display: block; }

/* wide screens have room for the full-size ornament, just outside the right
   edge of the centered content column. */
@media (min-width: 1000px) {
  #blob-bg {
    top: 4px;
    right: calc(50% - (var(--max-width) / 2) - var(--ornament-size) * 0.66);
    width: var(--ornament-size);
    height: var(--ornament-size);
  }
}

/* ---------- LINKS ---------- */
a {
  color: var(--color-link);
  text-decoration: none;
  border-bottom: 1px solid var(--color-rule);
  transition: border-color 0.15s ease;
}
a:hover { border-bottom-color: var(--color-text); }

/* ---------- LAYOUT CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- HEADER / NAV ---------- */
.site-header {
  padding: 40px 0 8px;
}
.brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  border: none;
  display: inline-block;
}
.brand:hover { border: none; }
.tagline {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 4px 0 0;
}

.site-nav {
  margin-top: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-rule);
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.site-nav a {
  border: none;
  color: var(--color-muted);
  font-size: 0.98rem;
}
.site-nav a:hover { color: var(--color-text); }
/* the current page's link is highlighted via class="active" */
.site-nav a.active { color: var(--color-text); font-weight: 600; }

/* ---------- MAIN CONTENT ---------- */
main {
  flex: 1;
  padding: 40px 0 64px;
}

h1 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  line-height: 1.2;
  margin: 0 0 8px;
}
h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin: 40px 0 10px;
}
.lead {
  color: var(--color-muted);
  font-size: 1.15rem;
  margin: 0 0 8px;
}

ul { padding-left: 1.2em; }
li { margin: 6px 0; }

/* a simple stacked list for resources / offerings */
.cards { margin-top: 8px; }
.card {
  padding: 18px 0;
  border-bottom: 1px solid var(--color-rule);
}
.card h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}
.card p { margin: 0; color: var(--color-muted); }

/* pull-quote (used for the Russell quote on the philosophy page) */
blockquote {
  margin: 28px 0;
  padding: 2px 0 2px 22px;
  border-left: 3px solid var(--color-rule);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.5;
}
blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* contact details block */
.contact-line {
  font-size: 1.15rem;
  margin: 10px 0;
}
.contact-label {
  display: inline-block;
  min-width: 90px;
  color: var(--color-muted);
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--color-rule);
  padding: 24px 0 40px;
  color: var(--color-muted);
  font-size: 0.88rem;
}

/* ---------- SMALL SCREENS ---------- */
@media (max-width: 480px) {
  body { font-size: 17px; }
  h1 { font-size: 1.8rem; }
  .site-header { padding-top: 28px; }
}
