/* AI Mentorship: one stylesheet, no external fonts or assets. Mobile first. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f4f5f7;
  --text: #17191e;
  --muted: #525a66;
  --border: #c5cad3;
  --field-border: #737b87;
  --accent: #1d4ed8;
  --accent-hover: #1e3fa8;
  --on-accent: #ffffff;
  --focus: #1d4ed8;
  --error: #b42318;
  --error-bg: #fdecea;
  --banner-bg: #fff4cc;
  --banner-text: #4d3800;
  --banner-border: #d9a900;
  --mark-bg: #ffe066;
  --mark-text: #2b2100;
  --star-off: #8a919c;
  --star-on: #b45309;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #1b1e24;
    --text: #e8eaee;
    --muted: #a9b0bb;
    --border: #3a404a;
    --field-border: #8a929e;
    --accent: #8db1ff;
    --accent-hover: #b4cbff;
    --on-accent: #0b1020;
    --focus: #8db1ff;
    --error: #ff8a80;
    --error-bg: #3a1714;
    --banner-bg: #3b2f07;
    --banner-text: #ffe9a6;
    --banner-border: #a88200;
    --mark-bg: #6b5600;
    --mark-text: #fff4c2;
    --star-off: #6f7682;
    --star-on: #fbbf24;
  }
}

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.wrap { width: 100%; max-width: 42rem; margin: 0 auto; padding: 0 1rem; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--bg); color: var(--accent); padding: 0.5rem 0.75rem; z-index: 1;
}
.skip:focus { top: 0.5rem; }

.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- header and footer */

.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.25rem 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.brand { font-weight: 700; font-size: 1.125rem; color: var(--text); text-decoration: none; }
.site-header ul { display: flex; flex-wrap: wrap; gap: 0 1rem; margin: 0; padding: 0; list-style: none; }
.site-header nav a { display: inline-block; padding: 0.35rem 0; }
.site-header nav a[aria-current="page"] { font-weight: 700; color: var(--text); }

main { padding-top: 1.5rem; padding-bottom: 3rem; }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9375rem; }
.site-footer .wrap { padding-top: 1.25rem; padding-bottom: 2rem; }
.site-footer p, .site-footer address { margin: 0 0 0.5rem; font-style: normal; }
.site-footer a { overflow-wrap: anywhere; }

/* ---- text */

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 1rem; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 0.75rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }
.lede { font-size: 1.125rem; color: var(--muted); }
code { font-size: 0.9em; }

mark.tbc { background: var(--mark-bg); color: var(--mark-text); padding: 0 0.2em; border-radius: 3px; }

.draft-banner {
  background: var(--banner-bg); color: var(--banner-text);
  border: 1px solid var(--banner-border); border-left-width: 6px;
  padding: 0.75rem 1rem; border-radius: 6px; font-weight: 700;
}

.notice {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 1rem;
}
.notice > :last-child { margin-bottom: 0; }

/* ---- the talk card */

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.25rem; margin-bottom: 1.5rem;
}
.card--compact h2 { margin-top: 0; font-size: 1.15rem; }
.card > :last-child { margin-bottom: 0; }

.facts { margin: 0 0 1rem; }
.facts div { margin-bottom: 0.6rem; }
.facts dt { color: var(--muted); font-size: 0.875rem; }
.facts dd { margin: 0; font-weight: 600; }
@media (min-width: 34rem) {
  .facts div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; margin-bottom: 0.35rem; }
  .facts dt { font-size: inherit; }
}

/* ---- buttons */

.button, button[type="submit"] {
  display: inline-block; min-height: 2.75rem;
  padding: 0.7rem 1.4rem; border: 0; border-radius: 8px;
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button:hover, button[type="submit"]:hover { background: var(--accent-hover); color: var(--on-accent); }
button[type="submit"]:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---- forms */

form { margin-top: 1rem; }
.field { margin: 0 0 1.4rem; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
label, legend { display: block; font-weight: 700; margin-bottom: 0.4rem; }
legend { padding: 0; }
.req { color: var(--error); }
.hint { color: var(--muted); font-size: 0.9375rem; }
.field .hint { margin: 0.4rem 0 0; }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  display: block; width: 100%;
  padding: 0.65rem 0.75rem; min-height: 2.75rem;
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--field-border); border-radius: 6px;
}
textarea { resize: vertical; min-height: 7rem; }
::placeholder { color: var(--muted); opacity: 1; }
input:focus-visible, textarea:focus-visible { outline-offset: 1px; }

.check { display: flex; gap: 0.65rem; align-items: flex-start; font-weight: 400; margin: 0; cursor: pointer; }
.check input { flex: none; width: 1.3rem; height: 1.3rem; margin: 0.15rem 0 0; accent-color: var(--accent); }

[aria-invalid="true"] { border-color: var(--error) !important; box-shadow: 0 0 0 1px var(--error); }
input[type="checkbox"][aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }

.turnstile { margin: 0 0 1rem; min-height: 65px; }

.status {
  margin-top: 1rem; padding: 0.75rem 1rem;
  background: var(--error-bg); color: var(--text);
  border-left: 5px solid var(--error); border-radius: 6px;
}
.status:focus-visible { outline-offset: 2px; }

/* ---- the 5-star rating: native radios, stars drawn by the labels */

.stars { display: flex; gap: 0.25rem; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.stars label {
  margin: 0; padding: 0.1rem 0.2rem; border-radius: 6px;
  font-size: 2.1rem; line-height: 1; font-weight: 400;
  color: var(--star-off); cursor: pointer;
}
.stars input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.stars input[aria-invalid="true"] + label { box-shadow: none; }
.stars input:checked + label,
.stars:has(input:nth-of-type(2):checked) label:nth-of-type(-n+2),
.stars:has(input:nth-of-type(3):checked) label:nth-of-type(-n+3),
.stars:has(input:nth-of-type(4):checked) label:nth-of-type(-n+4),
.stars:has(input:nth-of-type(5):checked) label:nth-of-type(-n+5) { color: var(--star-on); }

/* ---- testimonials */

.quote { margin: 0 0 1.5rem; padding: 1rem 1.25rem; background: var(--surface); border-radius: 10px; }
.quote blockquote { margin: 0 0 0.5rem; }
.quote blockquote p { margin: 0; font-size: 1.125rem; }
.quote figcaption { color: var(--muted); }
