/* Knowledge-Able Tutoring Service: "Quiet Study" design (Dennis picked direction C, 2026-10-14; Misc#90).
   Slate ink on a pale ground, Libre Caslon Text headings, IBM Plex Sans body, one dark band per page. */
:root {
  --ink: #1e2430;
  --muted: #3f4652;
  --ground: #f4f5f7;
  --line: #d9dde3;
  --link: #2b4a6f;
  --rust: #8a4b2a;
  --night: #1e2430;
  --night-text: #b9c0cc;
  --gold: #d2a26f;
  --max: 1080px;
  --head: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--ground); font: 17px/1.7 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: var(--rust); }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.15; margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }
.eyebrow { margin: 0; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rust); font-weight: 600; }
.btn { display: inline-block; padding: 15px 28px; background: var(--link); color: var(--ground); border: 1px solid var(--link); text-decoration: none; font: 600 1rem/1.2 var(--body); letter-spacing: .04em; cursor: pointer; }
.btn:hover { background: #1f3854; color: var(--ground); }
.btn.line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--ground); }
.btn.light { background: transparent; color: #e6e9ee; border-color: #e6e9ee; }
.btn.light:hover { background: #e6e9ee; color: var(--night); }
.btn:disabled { opacity: .6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; padding-bottom: 20px; }
.brand { color: var(--ink); text-decoration: none; font-family: var(--head); font-size: 1.3rem; line-height: 1.2; }
.brand span { color: #6b7280; }
.brand:hover { color: var(--ink); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--rust); }
.nav .enroll a { color: var(--ground); background: var(--link); padding: 11px 20px; }
.nav .enroll a:hover, .nav .enroll a[aria-current="page"] { background: #1f3854; color: var(--ground); }

/* Sections */
section { padding: 88px 0; }
.hero { padding: 88px 0 72px; }
.hero .wrap { display: flex; flex-direction: column; gap: 32px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.08; max-width: 920px; }
.hero-row { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-end; }
.hero-row p { margin: 0; flex: 1 1 460px; font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.strip { padding: 0; }
.strip .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.strip img { width: 100%; height: 260px; object-fit: cover; }
.split { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.split > :first-child { flex: 0 1 300px; display: flex; flex-direction: column; gap: 12px; }
.split > :last-child { flex: 1 1 520px; min-width: 0; }
.split h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.levels { margin: 0; }
.levels > div { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 26px 0; border-top: 1px solid var(--line); }
.levels > div:first-child { border-top-color: var(--ink); }
.levels > div:last-child { border-bottom: 1px solid var(--ink); }
.levels dt { flex: 0 0 220px; font-family: var(--head); font-size: 1.35rem; line-height: 1.3; }
.levels dd { flex: 1 1 280px; margin: 0; color: var(--muted); }
.night { background: var(--night); color: #e6e9ee; }
.night .wrap { display: flex; flex-direction: column; gap: 40px; }
.night a:not(.btn) { color: var(--gold); }
blockquote { margin: 0; display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
blockquote p { margin: 0; font-family: var(--head); font-style: italic; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.3; }
cite { font-style: normal; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.night .split { border-top: 1px solid #3a4150; padding-top: 40px; }
.night .split p { margin: 0 0 1.2em; color: var(--night-text); }
.prose p, .prose li { color: var(--muted); }
.prose p { margin: 0 0 1.1em; }
.prose ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.prose h3 { font-size: 1.5rem; margin: 0 0 .6em; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.rule { border-top: 1px solid var(--ink); padding-top: 28px; }
.close .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 64px; }
.close { padding-top: 0; }
.close h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.1; }
.close h2 span { color: var(--rust); }

/* Inner pages */
.page-head { padding: 80px 0 48px; }
.page-head .wrap { display: flex; flex-direction: column; gap: 20px; }
.page-head h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.page-head p.lead { margin: 0; font-size: 1.12rem; color: var(--muted); max-width: 680px; }
.body { padding-top: 0; }
.about-img { width: 100%; height: auto; }

/* Forms */
.form-wrap { background: #fff; border-top: 3px solid var(--ink); padding: 36px; }
form { display: flex; flex-direction: column; gap: 22px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
label, legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.hint { display: block; font-weight: 400; font-size: .85rem; color: #6b7280; margin-top: 2px; }
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--ground); border: 1px solid #b9c0cc; border-radius: 0; padding: 12px 14px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--link); outline-offset: 1px; border-color: var(--link); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.group-title { font-family: var(--head); font-size: 1.45rem; font-weight: 400; padding-top: 18px; border-top: 1px solid var(--line); margin: 6px 0 0; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 18px; }
.choices label, .agree label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 0; }
.choices input, .agree input { margin-top: 6px; accent-color: var(--link); flex: none; }
.req { color: var(--rust); }
.error { color: #a12d1a; font-size: .9rem; margin: 6px 0 0; }
.agree { background: var(--ground); padding: 18px 20px; font-style: italic; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0; padding: 18px 20px; border-left: 4px solid var(--link); background: #fff; }
.notice.bad { border-left-color: #a12d1a; }
.details { display: flex; flex-direction: column; gap: 28px; }
.details h2 { font-size: 1.3rem; margin-bottom: 4px; }
.details p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer a { text-decoration: none; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; }

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  section { padding: 60px 0; }
  .hero, .page-head { padding: 56px 0 44px; }
  .strip .wrap { grid-template-columns: 1fr; }
  .strip img { height: 220px; }
  .cols, .row { grid-template-columns: 1fr; gap: 22px; }
  .form-wrap { padding: 24px 18px; }
  .close .wrap { padding-top: 48px; }
  .nav ul { gap: 8px 18px; }
}
form > .group-title:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
