/* Noelle Koenig Tutoring — playful learning design.
   Bold joyful green, cream and bright accents, large rounded system type,
   chunky tactile buttons with a solid undershadow. No decorative arrows. */

:root {
  --green: #58b81f;
  --green-dark: #3f8f10;
  --green-ink: #2b4a12;
  --ink: #263324;
  --btn-ink: #14200f;
  --ink-soft: #5a6b57;
  --cream: #fff7dc;
  --sky: #2ea8e0;
  --sky-dark: #1b7fb8;
  --sun: #f5b90d;
  --sun-dark: #c98f04;
  --coral: #f06a4d;
  --coral-dark: #c74a30;
  --paper: #ffffff;
  --wash: #f2f9ec;
  --line: #dcebd2;
  --field: #ffffff;
  --ok: #2f7a1e;
  --warn: #9a6206;
  --danger: #b3372a;
  --radius: 20px;
  --maxw: 68rem;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
}

h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); margin: 0 0 0.6rem; }
h2 { font-size: 1.55rem; margin: 2rem 0 0.7rem; }
h3 { font-size: 1.2rem; margin: 1.4rem 0 0.4rem; }

a { color: var(--green-dark); font-weight: 700; text-underline-offset: 3px; }
a:hover { color: var(--green-ink); }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green-ink); color: #fff;
  padding: 0.7rem 1.1rem; border-radius: 0 0 14px 0; z-index: 10;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
main { padding: 1.25rem 0 4rem; }

/* Header: brand clear, sign-in discreet */
.site-header { background: var(--paper); border-bottom: 2px solid var(--wash); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem 1rem; padding-top: 0.8rem; padding-bottom: 0.8rem; flex-wrap: wrap;
}
.brand { font-size: 1.2rem; font-weight: 800; color: var(--green-ink); text-decoration: none; }
.nav { display: flex; gap: 0.4rem 1.1rem; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 700; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green-dark); text-decoration: underline; }
.nav a.signin { color: var(--ink-soft); font-size: 0.95rem; font-weight: 600; }

/* Hero */
.hero { text-align: center; padding: 1.6rem 0 0.5rem; }
.hero .mascot { width: 84px; height: 84px; margin: 0 auto 0.6rem; display: block; }
.hero p.lede { max-width: 30rem; margin: 0 auto 1.4rem; color: var(--ink-soft); font-size: 1.2rem; font-weight: 600; }

.choices { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.3rem; }
.choice {
  font: inherit; font-weight: 800; cursor: pointer;
  min-height: 52px; padding: 0.7rem 1.2rem;
  border-radius: 16px; border: 2px solid transparent; color: var(--btn-ink);
}
.choice:hover { color: var(--btn-ink); filter: brightness(0.97); }
.choice[data-topic="Humanities"] { background: var(--sky); box-shadow: 0 4px 0 var(--sky-dark); }
.choice[data-topic="College essays"] { background: var(--coral); box-shadow: 0 4px 0 var(--coral-dark); }
.choice[data-topic="SAT & ACT"] { background: var(--sun); box-shadow: 0 4px 0 var(--sun-dark); color: #4a3403; }
.choice:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,0.25); }
.choice[aria-pressed="true"] { border-color: var(--ink); }

/* Chunky tactile buttons */
.btn {
  font: inherit; font-weight: 800;
  min-height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 16px; border: 2px solid transparent;
  background: var(--green); box-shadow: 0 4px 0 var(--green-dark);
  color: var(--btn-ink); cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--green); color: var(--btn-ink); filter: brightness(0.97); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--green-dark); }
.btn.big { font-size: 1.2rem; padding: 0.9rem 2.2rem; min-height: 58px; }
.btn.secondary { background: var(--cream); color: var(--green-ink); box-shadow: 0 4px 0 #e3cf8f; }
.btn.quiet { background: var(--wash); color: var(--ink-soft); box-shadow: 0 4px 0 var(--line); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.hero .actions { justify-content: center; }

/* Panels and form */
.panel {
  background: var(--wash);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.panel h2:first-child, .panel h3:first-child { margin-top: 0; }
.inquiry {
  background: var(--cream);
  border: 2px solid #f0dfae;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2.2rem;
  max-width: 40rem;
  margin-inline: auto;
  width: 100%;
}
.inquiry h2 { margin-top: 0; }
form { max-width: 40rem; margin-inline: auto; width: 100%; }
.inquiry form { max-width: none; }

.muted { color: var(--ink-soft); }
.empty-state { color: var(--ink-soft); margin: 0.5rem 0; font-weight: 600; }

form .field { margin: 1rem 0; }
label { display: block; font-weight: 800; margin-bottom: 0.35rem; }
.hint { font-weight: 600; color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.25rem; }

input[type="text"], input[type="email"], input[type="datetime-local"],
input[type="number"], select, textarea {
  width: 100%; min-width: 0; min-height: 50px;
  padding: 0.7rem 0.85rem; font: inherit; font-weight: 600;
  color: var(--ink); background: var(--field);
  border: 2px solid var(--line); border-radius: 14px;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.status { margin: 1rem 0; padding: 0.9rem 1.1rem; border-radius: 14px; border: 2px solid var(--line); font-weight: 700; }
.status[data-tone="ok"] { border-color: #bfe3ab; background: #eef9e6; color: var(--ok); }
.status[data-tone="warn"] { border-color: #f0dfae; background: var(--cream); color: var(--warn); }
.status[data-tone="error"] { border-color: #f2c1ba; background: #fdecea; color: var(--danger); }
.status[hidden] { display: none; }

.list { list-style: none; margin: 0; padding: 0; }
.list li {
  border: 2px solid var(--line); border-radius: 16px;
  padding: 0.9rem 1.1rem; margin: 0.6rem 0; background: var(--paper);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center;
}
.tag {
  font-size: 0.85rem; font-weight: 800;
  padding: 0.2rem 0.65rem; border-radius: 999px; border: 2px solid var(--line);
  color: var(--ink-soft); background: var(--wash);
}
.tag[data-state="paid"], .tag[data-state="emailed"] { color: var(--ok); border-color: #bfe3ab; }
.tag[data-state="pending_payment"], .tag[data-state="saved"], .tag[data-state="new"] { color: var(--warn); border-color: #f0dfae; }
.tag[data-state="cancelled"], .tag[data-state="expired"], .tag[data-state="failed"], .tag[data-state="needs_review"], .tag[data-state="refund_required"] { color: var(--danger); border-color: #f2c1ba; }

/* Quiet unpublished status, below the form and out of the hero */
.fineprint { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 2px solid var(--wash); }
.fineprint h2 { font-size: 1.05rem; margin: 1.2rem 0 0.3rem; }
.fineprint p, .fineprint .empty-state { font-size: 0.98rem; }

dialog {
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; max-width: 32rem; width: calc(100% - 2rem);
  background: var(--paper); color: var(--ink);
}
dialog::backdrop { background: rgba(38, 51, 36, 0.45); }

footer.site-footer { border-top: 2px solid var(--wash); color: var(--ink-soft); padding: 1.6rem 0; font-size: 0.95rem; font-weight: 600; }
footer.site-footer .wrap { display: flex; gap: 0.5rem 1.25rem; flex-wrap: wrap; justify-content: space-between; }
footer.site-footer a { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 40rem) {
  .wrap { padding: 0 1rem; }
  .hero { padding-top: 1rem; }
  .hero .mascot { width: 68px; height: 68px; }
  .choices { gap: 0.55rem; }
  .choice { padding: 0.65rem 0.9rem; font-size: 1rem; }
  .panel, .inquiry { padding: 1.1rem; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .list li { flex-direction: column; align-items: flex-start; }
  main { padding-bottom: 3rem; }
}
