/* WithMight presentation layer. Product styles and curriculum stay independent. */
@font-face {
  font-family: WithMightBrand;
  src: url('assets/fonts/Fraunces.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.header {
  background: var(--paper);
  flex-wrap: wrap;
}
.header .brand { flex: 0 0 auto; }
.brand-identity { display: flex; align-items: center; gap: 22px; }
.mobile-author { display: none; flex: 0 0 48px; line-height: 0; border-radius: 50%; }
.mobile-author img { display: block; width: 48px; height: 48px; }
.header nav { flex-wrap: wrap; gap: 16px 27px; }
.brand {
  font-family: WithMightBrand, Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  font-variation-settings: "SOFT" 35, "WONK" 1, "opsz" 72;
  letter-spacing: -1.5px;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
}
.brand i { font-style: normal; font-weight: 400; }
.brand strong { font-weight: 800; }
.brand span {
  display: block;
  font: 500 14px/1.5 "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 1.5px;
  margin-top: 10px;
}
.hero { gap: 72px; padding-top: 64px; padding-bottom: 72px; }
.hero h1 {
  font-family: WithMightBrand, Georgia, serif;
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 550;
  font-variation-settings: "SOFT" 35, "WONK" 1, "opsz" 64;
  letter-spacing: -1.9px;
  line-height: 1.12;
}
.hero .lead { font-size: 19px; }
.founder-portrait {
  max-width: 440px;
  width: 100%;
  justify-self: end;
  padding: 14px 14px 0;
  background: var(--soft);
  border-radius: 90px 18px 18px 18px;
}
.founder-portrait img {
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: 78px 9px 9px 9px;
}
.founder-portrait figcaption { padding: 18px 10px 22px; color: var(--ink); }
.founder-portrait figcaption strong { display: block; font-size: 20px; font-weight: 650; }
.founder-portrait figcaption span { display: block; margin-top: 1px; color: var(--muted-on-soft); }
.founder-portrait figcaption a { display: inline-block; margin-top: 9px; font-size: 14px; font-weight: 600; }
.lesson-button, .tool-card, .lesson-panel, .estimate-steps > div { background: var(--card); }
.lesson-button.active { background: var(--green); color: var(--on-dark); }
.exercise, .example-note { border-left-color: var(--green); }
.button { background: var(--ink); color: var(--paper); }
.button:hover { background: var(--green); color: var(--on-dark); }
.button.secondary, .button.light, .connect-section .button.light {
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--control-border);
}
.button.secondary:hover, .button.light:hover, .connect-section .button.light:hover {
  background: var(--line);
  color: var(--ink);
}
.connect-section { background: var(--green); color: var(--on-dark); }
.connect-section .eyebrow { color: var(--on-dark); }
.connect-section .lead, .connect-section .small, .connect-section .prompt-box p, .gpt-steps li { color: var(--muted-on-dark); }
.gpt-steps strong { color: var(--paper); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 5px;
}
.connect-section :focus-visible { outline-color: var(--on-dark); }
.story-section { max-width: 1080px; padding-top: 90px; padding-bottom: 90px; }
.story-scope { max-width: 750px; margin-top: 26px; padding-left: 20px; border-left: 3px solid var(--green); color: var(--muted); }
.footer-author { font-size: 16px; margin-top: 24px; }
.footer-author > a { font-size: inherit; font-weight: 650; }
.footer-author span { font-size: 14px; color: var(--muted-on-soft); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 25px; margin-top: 22px; }
.footer-links a { padding: 4px 0; }
.course-masthead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 8px 0 30px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.course-author-link { font-size: 14px; }
.course-document .prompt { background: var(--soft); }
.course-document .worksheet { background: var(--paper); border-color: var(--line); }
.course-document a { overflow-wrap: anywhere; }
.course-document h1 { font-family: WithMightBrand, Georgia, serif; font-weight: 550; letter-spacing: -1px; }
@media (max-width: 1040px) {
  .header { align-items: flex-start; }
  .header nav { max-width: 420px; justify-content: flex-end; }
  .hero { gap: 40px; }
  .hero .actions { gap: 18px; }
}
@media (max-width: 800px) {
  .mobile-author { display: block; }
  .header { gap: 24px; }
  .header nav { max-width: 290px; }
  .hero { padding: 42px 24px 55px; gap: 32px; }
  .hero h1 { font-size: clamp(39px, 7vw, 54px); }
  .founder-portrait { justify-self: start; max-width: 420px; }
  .story-section { padding: 55px 24px; }
}
@media (max-width: 560px) {
  .header nav { max-width: none; justify-content: flex-start; gap: 14px 20px; }
  .hero h1 { font-size: clamp(38px, 9.5vw, 50px); letter-spacing: -1.2px; }
  .founder-portrait { max-width: 340px; }
  .hero .actions { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 10px 20px; }
}
@media print {
  :root { background: white; color: black; }
  .course-masthead { padding: 0 0 15px; }
  .course-masthead .brand { font-size: 24pt; }
  .course-masthead .brand span { font-size: 10pt; }
  .course-author-link { font-size: 10pt; }
  .course-document .prompt, .course-document .worksheet { background: white; }
}

/* Semantic surface pairings: the accent is now dark green. */
.hero-copy > .eyebrow::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--signal); vertical-align: middle; }
.tools-section > .section-heading p:last-child, footer .small { color: var(--muted-on-soft); }
input, select, .tool-card textarea, .support-form textarea, .prompt-box textarea, .result-prompt textarea { background: var(--card); color: var(--ink); border-color: var(--control-border); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type=checkbox], input[type=radio] { accent-color: var(--green); }
.connect-section input, .connect-section select, .connect-section textarea { border-color: var(--line); }
.connect-section .prompt-box, .support-form fieldset, .support-result { border-color: var(--muted-on-dark); }
output .small, .relationship-card .small, .objective .small, .exercise .small, .scope-note .small, .course-document .prompt .muted { color: var(--muted-on-soft); }
.course-document .muted { color: var(--muted); }
.course-document { color: var(--ink); font-family: "Helvetica Neue", Arial, sans-serif; }
