/* ═══════════════════════════════════════════════════
   PASSION PROJECT CURRICULUM GUIDE
   Design language: aesthetics-as-learning-technology
   ═══════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --bg:           #F5EFE6;
  --surface:      #FBF8F3;
  --surface-2:    #EDE4D8;
  --green:        #3D6B4F;
  --green-light:  #6A9E7A;
  --green-dim:    rgba(61,107,79,.08);
  --copper:       #A0622A;
  --copper-light: #D4895A;
  --copper-dim:   rgba(160,98,42,.08);
  --blue:         #3A5F7D;
  --blue-light:   #6A92AD;
  --blue-dim:     rgba(58,95,125,.08);
  --text:         #211D15;
  --text-mid:     #5C5043;
  --text-muted:   #9A8E82;
  --border:       rgba(80,60,40,.12);
  --shadow:       rgba(30,20,10,.08);
  --radius:       18px;
  --radius-lg:    28px;
  --radius-xl:    40px;
  --transition:   .35s cubic-bezier(.25,.8,.25,1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Atkinson Hyperlegible', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── ORGANIC BACKGROUND TEXTURE ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(100,140,100,.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 75%, rgba(160,98,42,.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(58,95,125,.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, .display {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  line-height: 1.2;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

a { color: var(--green); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-light); }

.label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

p + p { margin-top: 1rem; }

blockquote {
  border-left: 3px solid var(--green);
  padding: .8rem 1.2rem;
  margin: 1.2rem 0;
  background: var(--green-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .92rem;
  color: var(--text-mid);
}
blockquote strong { color: var(--green); }

/* ─── LAYOUT ─── */
.container { max-width: 920px; margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
section { padding: 4rem 0; }
section + section { border-top: 1px solid var(--border); }

/* ─── SITE NAV ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,239,230,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .65rem 0;
}
.site-nav .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-brand {
  font-family: 'Fraunces', serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: .3rem;
  flex-wrap: wrap;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: .35rem .7rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: 99px;
  transition: var(--transition);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--green-dim);
  color: var(--green);
}

/* ─── HERO ─── */
.hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 5rem 0 3rem;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106,158,122,.12) 0%, transparent 70%);
  top: -80px; right: -160px;
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: .35rem .9rem;
  margin-bottom: 1.8rem;
  font-size: .78rem;
  color: var(--text-mid);
}
.hero-eyebrow span { color: var(--green); font-weight: 700; }
.hero h1 { max-width: 700px; margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero-sub {
  font-size: 1.05rem;
  max-width: 580px;
  color: var(--text-mid);
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border: none;
  border-radius: 99px;
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover {
  background: var(--green-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(61,107,79,.3);
}
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-outline:hover {
  background: var(--green-dim);
  transform: translateY(-2px);
}
.btn-small {
  padding: .45rem 1rem;
  font-size: .8rem;
}

/* ─── SECTION HEADERS ─── */
.section-header { margin-bottom: 2.5rem; }
.section-header .label { margin-bottom: .7rem; display: block; }
.section-header h2 { margin-bottom: .8rem; }
.section-header p { color: var(--text-mid); max-width: 600px; font-size: .95rem; }

/* ─── CARDS ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 2px 16px var(--shadow);
  transition: var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 28px var(--shadow); }
.card-flat { box-shadow: none; }
.card-flat:hover { transform: none; box-shadow: none; }

.card-grid { display: grid; gap: 1.2rem; }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card .card-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.card .card-eyebrow.green { color: var(--green); }
.card .card-eyebrow.copper { color: var(--copper); }
.card .card-eyebrow.blue { color: var(--blue); }

.card h3 { margin-bottom: .6rem; }
.card h4 { margin-bottom: .5rem; }
.card p { font-size: .92rem; color: var(--text-mid); }

/* ─── EXPANDABLE SECTIONS ─── */
.expandable { border-radius: var(--radius-lg); overflow: hidden; }
.expandable-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.4rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-family: 'Atkinson Hyperlegible', sans-serif;
  text-align: left;
  transition: var(--transition);
}
.expandable-trigger:hover { background: var(--surface-2); }
.expandable-trigger h3 { margin: 0; font-size: 1.1rem; }
.expandable-trigger .trigger-meta {
  display: flex; align-items: center; gap: .6rem;
}
.expandable-trigger .arrow {
  display: inline-flex;
  width: 28px; height: 28px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--green-dim);
  color: var(--green);
  font-size: .85rem;
  transition: transform .3s ease;
  flex-shrink: 0;
}
.expandable.open .expandable-trigger .arrow { transform: rotate(180deg); }
.expandable.open .expandable-trigger {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom-color: transparent;
}
.expandable-body {
  display: none;
  padding: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.expandable.open .expandable-body { display: block; }

/* ─── DIMENSION BADGES ─── */
.dim-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.dim-badge.dim-1 { background: rgba(61,107,79,.1); color: var(--green); }
.dim-badge.dim-2 { background: rgba(160,98,42,.1); color: var(--copper); }
.dim-badge.dim-3 { background: rgba(58,95,125,.1); color: var(--blue); }
.dim-badge.dim-4 { background: rgba(106,158,122,.12); color: #4A8060; }
.dim-badge.dim-5 { background: rgba(140,100,160,.1); color: #7A5A8A; }
.dim-badge.dim-6 { background: rgba(180,120,80,.1); color: #8A5A30; }
.dim-badge.dim-7 { background: rgba(80,120,160,.1); color: #3A6A8A; }
.dim-badge.dim-8 { background: rgba(120,100,80,.1); color: #6A5A40; }

.badge-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; }

/* ─── LESSON CARD ─── */
.lesson-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.lesson-card:hover { box-shadow: 0 4px 24px var(--shadow); }

.lesson-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.6rem;
  cursor: pointer;
  transition: var(--transition);
}
.lesson-header:hover { background: rgba(61,107,79,.03); }
.lesson-num {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: .95rem;
  font-weight: 700;
  flex-shrink: 0;
}
.lesson-num.copper { background: var(--copper); }
.lesson-num.blue { background: var(--blue); }
.lesson-title-area { flex: 1; }
.lesson-title-area h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.lesson-title-area .lesson-subtitle {
  font-size: .8rem;
  color: var(--text-muted);
  font-style: italic;
}
.lesson-body {
  display: none;
  padding: 0 1.6rem 1.6rem;
  border-top: 1px solid var(--border);
}
.lesson-card.open .lesson-body { display: block; padding-top: 1.4rem; }

.lesson-section { margin-bottom: 1.4rem; }
.lesson-section:last-child { margin-bottom: 0; }
.lesson-section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .5rem;
  display: block;
}
.lesson-section-label.copper { color: var(--copper); }
.lesson-section-label.blue { color: var(--blue); }

.story-box {
  background: var(--copper-dim);
  border-left: 3px solid var(--copper);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .85rem 1.2rem;
  margin: .6rem 0;
  font-size: .88rem;
  color: var(--text-mid);
}
.story-box strong { color: var(--copper); }

.activity-list {
  list-style: none;
  padding: 0;
  margin: .5rem 0;
}
.activity-list li {
  padding: .5rem 0 .5rem 1.4rem;
  position: relative;
  font-size: .9rem;
  color: var(--text-mid);
  border-bottom: 1px solid rgba(80,60,40,.06);
}
.activity-list li:last-child { border-bottom: none; }
.activity-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ─── RUBRIC TABLE ─── */
.rubric-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: .84rem;
  margin: .6rem 0;
}
.rubric-table th {
  background: var(--surface-2);
  padding: .6rem .8rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-mid);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.rubric-table td {
  padding: .55rem .8rem;
  border-top: 1px solid var(--border);
  color: var(--text-mid);
  vertical-align: top;
}
.rubric-table td:first-child {
  font-weight: 700;
  color: var(--text);
  width: 38px;
  text-align: center;
}

/* ─── STANDARDS PILLS ─── */
.standards-row {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .5rem;
}
.std-pill {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 99px;
  font-size: .68rem;
  font-weight: 700;
  background: var(--blue-dim);
  color: var(--blue);
  letter-spacing: .03em;
}

/* ─── TIMELINE ─── */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--green), var(--copper), var(--blue), var(--green));
  border-radius: 3px;
}
.timeline-month {
  position: relative;
  margin-bottom: 1.5rem;
}
.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: .3rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  color: var(--green);
  z-index: 1;
}
.timeline-month h3 {
  font-size: 1.1rem;
  margin-bottom: .3rem;
}
.timeline-month p {
  font-size: .88rem;
  color: var(--text-mid);
}
.timeline-detail {
  margin-top: .5rem;
  padding: .8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .84rem;
  color: var(--text-mid);
}

/* ─── CALLOUT ─── */
.callout {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .87rem;
  color: var(--text-mid);
  margin: 1rem 0;
}
.callout.green { background: var(--green-dim); border-left: 3px solid var(--green); }
.callout.copper { background: var(--copper-dim); border-left: 3px solid var(--copper); }
.callout.blue { background: var(--blue-dim); border-left: 3px solid var(--blue); }
.callout strong { color: inherit; }
.callout.green strong { color: var(--green); }
.callout.copper strong { color: var(--copper); }
.callout.blue strong { color: var(--blue); }
