:root{
  --bg:#f4efe7;
  --paper:#fffaf1;
  --ink:#171717;
  --muted:#5f5a52;
  --dark:#111315;
  --gold:#c69c4a;
  --line:#ded3bf;
  --card:#fffdf8;
  --soft:#eee4d3;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Georgia,'Times New Roman',serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.78;
  font-size:18px;
}

header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 7%;
  background:rgba(255,250,241,.96);
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter:blur(10px);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-family:Arial,sans-serif;
  font-weight:800;
  letter-spacing:.04em;
  text-decoration:none;
  color:inherit;
}

.brand img{height:42px;width:auto}

nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:14px;
}

nav a{
  color:var(--ink);
  text-decoration:none;
  font-family:Arial,sans-serif;
  font-size:14px;
  font-weight:700;
}

.hero{
  padding:110px 8%;
  background:linear-gradient(135deg,#111315 0%,#28251e 100%);
  color:white;
}

.hero-inner{
  max-width:1040px;
  margin:auto;
}

section{
  max-width:1160px;
  margin:auto;
  padding:78px 8%;
}

.article{
  max-width:980px;
}

.article > p,
.article > ul,
.article > ol,
.article > .callout,
.article > .note-box{
  max-width:820px;
}

.eyebrow{
  font-family:Arial,sans-serif;
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:12px;
  font-weight:800;
  color:var(--gold);
  margin-bottom:14px;
}

h1{
  font-size:clamp(46px,7vw,78px);
  line-height:1.03;
  margin:0 0 24px;
  letter-spacing:-.045em;
}

h2{
  font-size:clamp(30px,4vw,44px);
  line-height:1.12;
  margin:58px 0 18px;
  letter-spacing:-.025em;
}

h3{
  font-size:24px;
  line-height:1.25;
  margin:32px 0 12px;
}

p,li{
  font-size:19px;
}

p{
  margin:0 0 22px;
}

ul,ol{
  margin:0 0 26px 22px;
  padding-left:20px;
}

li{
  margin:8px 0;
}

.lead{
  font-size:23px;
  line-height:1.55;
  color:var(--muted);
  max-width:880px;
  margin-bottom:34px;
}

.hero .lead{color:#e7dfd1}

.button{
  display:inline-block;
  margin:10px 10px 0 0;
  padding:14px 24px;
  border-radius:999px;
  text-decoration:none;
  font-family:Arial,sans-serif;
  font-weight:800;
  border:1px solid var(--gold);
  background:transparent;
  color:var(--ink);
  cursor:pointer;
}

.primary{
  background:var(--gold);
  color:var(--dark);
}

.secondary{color:white}

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(270px,1fr));
  gap:22px;
  margin-top:38px;
}

.card{
  background:var(--card);
  padding:28px;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:0 10px 24px rgba(0,0,0,.045);
}

.card a{
  color:var(--ink);
  text-decoration:none;
  font-weight:800;
  font-size:21px;
  line-height:1.25;
}

.card span{
  display:block;
  color:var(--gold);
  font-family:Arial,sans-serif;
  font-weight:800;
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:10px;
}

.callout,
.note-box{
  margin:38px 0;
  padding:30px 34px;
  border-left:6px solid var(--gold);
  background:var(--paper);
  border-radius:18px;
  box-shadow:0 8px 22px rgba(0,0,0,.035);
}

.callout p:last-child,
.note-box p:last-child{margin-bottom:0}

.two-col{
  display:grid;
  grid-template-columns:minmax(280px,410px) minmax(0,1fr);
  gap:56px;
  align-items:start;
}

.portrait{
  width:100%;
  border-radius:24px;
  border:1px solid var(--line);
  box-shadow:0 18px 45px rgba(0,0,0,.18);
  background:#ddd;
}

.lesson-nav{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:26px 0 46px;
  padding-bottom:34px;
  border-bottom:1px solid var(--line);
}

.article-section{
  margin:42px 0;
  padding:34px 38px;
  background:rgba(255,253,248,.62);
  border:1px solid rgba(222,211,191,.8);
  border-radius:22px;
}

.article-section h2{
  margin-top:0;
}

.article-section p:last-child,
.article-section ul:last-child,
.article-section ol:last-child{
  margin-bottom:0;
}

.print-notes{
  margin-top:70px;
  padding-top:52px;
  border-top:2px solid var(--line);
}

.print-intro{
  max-width:820px;
  margin-bottom:28px;
}

.print-page{
  background:white;
  padding:36px 42px;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 8px 22px rgba(0,0,0,.04);
  margin:26px 0;
}

.print-header{
  font-family:Arial,sans-serif;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--gold);
  font-size:12px;
  margin-bottom:20px;
}

.print-page h1{
  font-size:36px;
  letter-spacing:-.03em;
}

.print-page h2{
  font-size:28px;
  margin:28px 0 14px;
}

.print-page h3{
  font-size:20px;
  margin:22px 0 8px;
}

.print-page p,
.print-page li{
  font-size:16px;
  line-height:1.55;
}

.checklist{
  list-style:none;
  padding-left:0;
  margin-left:0;
}

.checklist li{
  margin:9px 0;
}

.footer-links{margin-bottom:14px}

.footer-links a{
  color:#f0dfbd;
  text-decoration:none;
  margin:0 10px;
}

footer{
  background:var(--dark);
  color:#cfc7b8;
  text-align:center;
  padding:42px 8%;
  font-family:Arial,sans-serif;
  font-size:14px;
  line-height:1.6;
}

@media(max-width:900px){
  header{
    flex-direction:column;
    gap:14px;
  }

  nav{
    justify-content:center;
  }

  .hero{
    padding:78px 8%;
  }

  section{
    padding:58px 7%;
  }

  .two-col{
    grid-template-columns:1fr;
  }

  .article-section{
    padding:28px 24px;
  }

  p,li{
    font-size:18px;
  }

  .lead{
    font-size:21px;
  }
}

@media print{
  header,footer,.no-print,.lesson-nav,.print-intro{display:none!important}
  body{background:white;color:#000;font-size:12px;line-height:1.35}
  section.article{max-width:none;padding:0}
  .article > *:not(.print-notes){display:none!important}
  .print-notes{display:block;margin:0;padding:0;border:0}
  .print-page{
    box-shadow:none;
    border:none;
    border-radius:0;
    margin:0;
    padding:0.35in;
    page-break-after:always;
    min-height:9.4in;
  }
  .print-page:last-child{page-break-after:auto}
  .print-page h1{font-size:28px;margin:0 0 10px}
  .print-page h2{font-size:21px;margin:12px 0 7px}
  .print-page h3{font-size:16px;margin:12px 0 5px}
  .print-page p,.print-page li{font-size:12.5px;line-height:1.38}
  .print-header{font-size:10px;margin-bottom:12px}
}


/* About page flow refinement */
.about-page{
  max-width:1280px;
  padding:48px 7% 64px;
}

.about-page h1{
  font-size:clamp(38px,5vw,58px);
  margin-bottom:18px;
}

.about-page .lead{
  font-size:21px;
  line-height:1.45;
  margin-bottom:18px;
}

.about-flow{
  display:grid;
  grid-template-columns:minmax(260px,380px) minmax(560px,1fr);
  gap:54px;
  align-items:start;
}

.about-flow .portrait{
  max-width:380px;
  border-radius:24px;
}

.about-copy{
  max-width:760px;
}

.about-copy p{
  font-size:18px;
  line-height:1.55;
  margin-bottom:14px;
}

.about-copy .callout{
  margin:22px 0;
  padding:22px 26px;
}

.about-copy .callout p{
  font-size:18px;
  line-height:1.5;
}

@media(min-width:1100px){
  .about-page{
    min-height:calc(100vh - 98px);
  }
}

@media(max-width:1000px){
  .about-flow{
    grid-template-columns:1fr;
    gap:32px;
  }

  .about-copy{
    max-width:820px;
  }

  .about-flow .portrait{
    max-width:460px;
  }
}

/* ============================================================
   C3 V3 LOCKED FIX
   Print C3 Notes Web Presentation
   Purpose:
   - Preserve the print worksheet experience.
   - Make the C3 Notes section look clean on the website.
   - Prevent note lines from overflowing outside the card.
   ============================================================ */

@media screen {
  .print-notes {
    max-width: 980px;
    margin: 56px auto 0;
    padding: 0 20px 32px;
  }

  .print-notes .print-intro {
    max-width: 860px;
    margin: 0 auto 24px;
    padding: 28px 32px;
    background: rgba(255, 250, 241, 0.9);
    border: 1px solid rgba(198, 156, 74, 0.28);
    border-radius: 20px;
    box-shadow: 0 16px 38px rgba(17, 19, 21, 0.08);
  }

  .print-notes .print-intro h2 {
    margin-top: 0;
    margin-bottom: 10px;
  }

  .print-notes .print-intro p {
    margin-bottom: 18px;
  }

  .print-notes .print-page {
    width: auto;
    max-width: 860px;
    min-height: auto;
    margin: 26px auto;
    padding: 40px 48px;
    background: #fffaf1;
    border: 1px solid rgba(198, 156, 74, 0.32);
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(17, 19, 21, 0.10);
    overflow: hidden;
  }

  .print-notes .print-page h1 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    margin: 8px 0 10px;
  }

  .print-notes .print-page h2 {
    font-size: clamp(22px, 2.8vw, 32px);
    line-height: 1.15;
    margin: 0 0 18px;
  }

  .print-notes .print-page h3 {
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 20px;
  }

  .print-notes .print-page p,
  .print-notes .print-page li {
    font-size: 17px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .print-notes .print-page ul {
    padding-left: 22px;
    margin-top: 8px;
  }

  .print-notes .print-header {
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #7a5a17;
    margin-bottom: 14px;
  }

  .note-lines {
    display: grid;
    gap: 22px;
    margin-top: 18px;
  }

  .note-lines span {
    display: block;
    width: 100%;
    height: 28px;
    border-bottom: 1.5px solid rgba(17, 19, 21, 0.65);
  }
}

@media screen and (max-width: 760px) {
  .print-notes {
    padding: 0 12px 24px;
  }

  .print-notes .print-intro,
  .print-notes .print-page {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .print-notes .print-page p,
  .print-notes .print-page li {
    font-size: 16px;
  }
}

@media print {
  .note-lines {
    display: block;
    margin-top: 18px;
  }

  .note-lines span {
    display: block;
    width: 100%;
    height: 34px;
    margin-bottom: 18px;
    border-bottom: 1px solid #333;
  }
}
