/* Learn AI and ChatGPT — site styles
   Concept: a professor's highlighter. Quiet, readable pages;
   the yellow marker is reserved for what matters. */

:root {
  --ink: #1E2340;        /* text, header, buttons */
  --paper: #F7F8FB;      /* page background */
  --white: #FFFFFF;
  --marker: #FFD84D;     /* highlighter: section headings, CTA, selection */
  --teal: #0E6E6B;       /* links */
  --slate: #5A6178;      /* secondary text */
  --rule: #DDE1EA;       /* hairlines */

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;

  --measure: 40rem;      /* ~70 characters */
  --wide: 68rem;
  --gap: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

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

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

::selection { background: var(--marker); color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--ink); color: var(--white); padding: 0.5rem 1rem;
}
.skip:focus { left: 0.5rem; z-index: 10; }

/* ---------- Header ---------- */
.site-head {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.25rem var(--gap);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  margin: 0;
}

.site-head nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.4rem; }
.site-head nav a { color: var(--ink); text-decoration: none; font-size: 1rem; }
.site-head nav a:hover { text-decoration: underline; }

.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
}
.nav-cta:hover { background: var(--teal); text-decoration: none !important; }

/* ---------- Post ---------- */
.post { padding: 0 var(--gap); }

.post-head, .prose, .author, .next-step, .related {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

.post-head { padding-top: clamp(2rem, 6vw, 4rem); }

.crumbs { font-size: 0.95rem; color: var(--slate); display: flex; gap: 0.5rem; }
.crumbs a { color: var(--slate); }

.post h1, .blog h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0.6rem 0 1rem;
  text-wrap: balance;
}

.byline { color: var(--slate); font-size: 1rem; margin: 0 0 2rem; }
.byline a { color: var(--ink); }

.lead-img {
  max-width: 52rem;
  margin: 0 auto 2.5rem;
}
.lead-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--rule);
  border-radius: 6px;
}

/* Body copy */
.prose > * { margin-top: 0; margin-bottom: 1.15em; }

.prose h2, .prose h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
}
.prose h2 { font-size: 1.65rem; margin-top: 2.2em; margin-bottom: 0.7em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; margin-bottom: 0.5em; }
.prose h4 { font-size: 1.05rem; font-weight: 700; margin-top: 1.5em; margin-bottom: 0.4em; }

/* The one bold move: section headings get a highlighter stroke */
.hl {
  background-image: linear-gradient(transparent 55%, var(--marker) 55%, var(--marker) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.15em;
  margin: 0 -0.15em;
}

.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
  margin-left: 0;
  padding-left: 1.1rem;
  border-left: 3px solid var(--ink);
  font-style: italic;
}
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: 6px; }

.video { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; background: var(--ink); border-radius: 6px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.author {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  margin-top: 3rem;
  color: var(--slate);
  font-size: 1rem;
}
.author strong { color: var(--ink); }

/* Next step */
.next-step {
  margin-top: 3rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--marker);
  border-radius: 6px;
}
.next-step h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
.next-step p { margin: 0 0 1.25rem; }

.btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
}
.btn:hover { background: var(--teal); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }

/* Related */
.related { margin-top: 3rem; margin-bottom: 4rem; }
.related h2 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin: 0 0 0.75rem; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 0.9rem 0; border-top: 1px solid var(--rule); }
.related li a { color: var(--ink); font-weight: 700; text-decoration: none; display: block; }
.related li a:hover { text-decoration: underline; }
.related li span { color: var(--slate); font-size: 0.95rem; }

/* ---------- Blog index ---------- */
.blog { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gap) 4rem; }
.blog-head { max-width: 44rem; padding: clamp(2.5rem, 7vw, 4.5rem) 0 2rem; }
.blog-head p { color: var(--slate); font-size: 1.2rem; margin: 0; }

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 44rem);
  gap: 0 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}
.row time { color: var(--slate); font-size: 0.95rem; padding-top: 0.35rem; }
.row h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 0.4rem;
}
.row h2 a { color: var(--ink); text-decoration: none; }
.row h2 a:hover .hl, .row h2 a:hover {
  background-image: linear-gradient(transparent 55%, var(--marker) 55%, var(--marker) 92%, transparent 92%);
}
.row p { margin: 0 0 0.4rem; }
.row .meta { color: var(--slate); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #C9CEDD; margin-top: 2rem; }
.foot-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.5rem var(--gap) 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-foot .wordmark { color: var(--white); }
.site-foot p { margin: 0.35rem 0 0; font-size: 1rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; align-items: flex-start; }
.site-foot a { color: var(--white); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .fine { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gap) 2rem; font-size: 0.875rem; color: #9AA1B8; }


/* ---------- Home ---------- */
.home { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gap); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}
.lede { font-size: 1.2rem; color: var(--slate); margin: 0 0 1.75rem; max-width: 36rem; }

/* The annotated prompt: the site's highlighter, used as a lesson */
.prompt-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--ink);
  border-radius: 6px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.prompt-card figcaption { font-size: 0.95rem; color: var(--slate); margin-bottom: 0.9rem; }
.prompt { font-size: 1.15rem; line-height: 1.75; margin: 0 0 1.1rem; }
.prompt mark {
  background: linear-gradient(transparent 12%, var(--marker) 12%, var(--marker) 92%, transparent 92%);
  color: var(--ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.1em;
}
.prompt sup { font-weight: 700; font-size: 0.75em; color: var(--teal); margin-left: 0.1em; }
.prompt-key { margin: 0; padding-left: 1.3em; font-size: 0.98rem; color: var(--slate); }
.prompt-key li { margin-bottom: 0.25rem; }
.prompt-key li::marker { color: var(--teal); font-weight: 700; }

.band {
  max-width: 46rem;
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-top: 1px solid var(--rule);
}
.band h2, .page h2.plain {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}
.band p { margin: 0 0 1rem; }

.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.svc-list li:last-child { border-bottom: 0; }
.svc-list a { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.svc-list a:hover { text-decoration: underline; }
.svc-list p { margin: 0.25rem 0 0; color: var(--slate); }

.steps { margin: 0; padding-left: 1.4em; }
.steps li { margin-bottom: 0.75rem; padding-left: 0.3em; }
.steps li::marker { font-family: var(--serif); color: var(--teal); }

.link-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.link-list li { padding: 0.8rem 0; border-top: 1px solid var(--rule); }
.link-list li a { display: block; color: var(--ink); font-weight: 700; text-decoration: none; }
.link-list li a:hover { text-decoration: underline; }
.link-list span { color: var(--slate); font-size: 0.95rem; }

.faq details { border-top: 1px solid var(--rule); padding: 0.9rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 700; list-style-position: outside; }
.faq details p { margin: 0.6rem 0 0.2rem; }

.page-cta { max-width: 46rem; margin: 1rem 0 4rem; }

/* ---------- Inner pages ---------- */
.page { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gap); }
.page-head { max-width: 46rem; padding: clamp(2.5rem, 7vw, 4.5rem) 0 1.5rem; }
.page h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.page .prose { margin-left: 0; max-width: 46rem; }
.page .page-cta { margin-left: 0; }

.svc { max-width: 46rem; padding: 2rem 0; border-top: 1px solid var(--rule); scroll-margin-top: 1rem; }
.svc h2 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.2; margin: 0 0 0.9rem; }
.svc ul { padding-left: 1.3em; margin: 0 0 1rem; }
.svc li { margin-bottom: 0.35rem; }
.svc .price { font-weight: 700; }

/* ---------- Form ---------- */
.contact-form { max-width: 46rem; margin: 0 0 4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.field { margin: 0 0 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #B9BFCE;
  border-radius: 4px;
  padding: 0.65rem 0.75rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--marker); outline-offset: 0; border-color: var(--ink); }
.contact-form button { border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 1.05rem; }
.fine-print { font-size: 0.9rem; color: var(--slate); margin-top: 0.75rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { max-width: 46rem; background: #FDECEC; border-left: 4px solid #B42318; padding: 0.75rem 1rem; border-radius: 4px; }


/* ---------- Starter kit box ---------- */
.kit-box {
  background: var(--marker);
  border-radius: 6px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.kit-box h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.2; margin: 0 0 0.5rem; }
.kit-box > p { margin: 0 0 1rem; }
.kit-form .field { margin-bottom: 0.8rem; }
.kit-form .field input { border-color: var(--ink); }
.kit-form .field input:focus { outline: 3px solid var(--ink); outline-offset: 1px; }
.kit-form .btn { width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 1.05rem; }
.kit-box .fine-print { color: var(--ink); font-size: 0.85rem; }
.kit-box .fine-print a { color: var(--ink); }
.kit-list { padding-left: 1.2em; margin: 0; }
.kit-list li { margin-bottom: 0.6rem; }
.kit-hero { padding-top: clamp(2rem, 6vw, 4rem); }

/* Services band with the prompt card beside it */
.band.band-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* ---------- Contact layout + map ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  margin-bottom: 4rem;
}
.contact-grid .contact-form { margin-bottom: 0; }
.service-area h2 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin: 0 0 0.5rem; }
.service-area p { margin: 0 0 1rem; color: var(--slate); }
.map { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; border: 1px solid var(--rule); background: var(--rule); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.legal h2 { font-size: 1.35rem; }

@media (max-width: 820px) {
  .hero, .band.band-split, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .site-head { padding-top: 1rem; padding-bottom: 1rem; }
  .site-head nav { gap: 0.35rem 1rem; }
  .row { grid-template-columns: 1fr; }
  .row time { padding-top: 0; }
  .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
