/* ============================================================
   AVC 248 Design Self Promotion — shared.css
   Michelle B. · Digital Media Arts Faculty · GCC
   Last updated: March 13, 2026

   Design system: Lora (headings) · DM Sans (body)
   Floral palette: plum · sage · rose · gold · paper · warm
   Matches main site header pattern (centered, wordmark + italic)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --plum:       #4a7c59;
  --plum-dark:  #3a6348;
  --plum-light: #6b9a75;
  --plum-pale:  #e2f0e4;
  --sage:       #6b8f6e;
  --sage-light: #8aad8d;
  --sage-pale:  #e4ede5;
  --rose:       #8aad8d;
  --rose-pale:  #d6e8d8;
  --gold:       #b8956a;
  --gold-pale:  #fdf3e7;
  --paper:      #f7faf7;
  --warm:       #edf3ed;
  --ink:        #2e3a30;
  --muted:      #6e7e70;
  --rule:       #c3d1c5;
  --white:      #ffffff;
}

html { height: 100%; }
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
}

/* ── SITE HEADER (matches main site pattern) ─────────────── */
.site-header {
  background: var(--warm);
  border-bottom: 3px solid var(--plum);
  padding: 2rem 2rem 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--plum);
  opacity: 0.35;
}
.header-botanical {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  opacity: 0.07;
}

/* Wordmark — "Design Self Promotion" with italic rose word */
.wordmark {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--plum);
  line-height: 1.2;
  margin-bottom: 0.3rem;
  position: relative;
}
.wordmark em {
  color: var(--rose);
  font-style: italic;
  font-weight: 400;
}

.site-tagline {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  margin-bottom: 0;
}

/* Pill nav — centered, matches main site */
.site-nav {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.site-nav a {
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.28rem 0.8rem;
  border: 1px solid var(--plum);
  border-radius: 2rem;
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
}
.site-nav a:hover { background: var(--plum); color: var(--white); }

/* ── PAGE HEADER (breadcrumb + title on warm bg) ─────────── */
.page-header {
  background: var(--warm);
  border-bottom: 1px solid var(--rule);
  padding: 1.75rem 2rem 1.5rem;
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--plum);
  opacity: 0.35;
}
.page-header-inner { max-width: 820px; margin: 0 auto; }
.breadcrumb {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.breadcrumb a { color: var(--plum); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.page-header h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}
.page-subtitle { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.module-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
  background: var(--plum-pale);
  border: 1px solid rgba(74,124,89,0.2);
  padding: 0.2rem 0.65rem;
  border-radius: 2rem;
  margin-top: 0.4rem;
}

/* ── MAIN CONTENT ─────────────────────────────────────────── */
main, .page-body {
  flex: 1;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* ── MODULE GRID (module index pages) ───────────────────── */
.module-grid { display: flex; flex-direction: column; gap: 0.6rem; }
.module-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 3px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}
.module-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}
.module-item.type-assignment::before { background: var(--plum); }
.module-item.type-discussion::before { background: var(--sage); }
.module-item.type-resource::before   { background: var(--gold); }
.module-item.type-video::before      { background: var(--rose); }
.module-item:hover {
  border-color: var(--plum-light);
  box-shadow: 0 2px 12px rgba(74,124,89,0.1);
  transform: translateX(2px);
}
.item-icon { font-size: 1.1rem; flex-shrink: 0; opacity: 0.8; }
.item-title { font-weight: 500; font-size: 0.9rem; color: var(--ink); line-height: 1.3; }
.item-type { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.1rem; }

/* ── ASSIGNMENT BODY ─────────────────────────────────────── */
.assignment-body { display: flex; flex-direction: column; gap: 1.5rem; }
.assignment-body section {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.4rem 1.5rem;
}
.assignment-body h2,
.assignment-body h3 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.assignment-body h2 { font-size: 1.1rem; }
.assignment-body h3 { font-size: 0.95rem; }
.assignment-body p  { font-size: 0.9rem; color: var(--ink); line-height: 1.7; margin-bottom: 0.6rem; }
.assignment-body p:last-child { margin-bottom: 0; }
.assignment-body ul,
.assignment-body ol { padding-left: 1.4rem; font-size: 0.9rem; color: var(--ink); line-height: 1.7; }
.assignment-body li { margin-bottom: 0.3rem; }
.assignment-body a  { color: var(--plum); }
.assignment-body a:hover { color: var(--plum-dark); }

/* Section variants */
.section-generic  { border-left: 3px solid var(--rule); }
.objectives       { border-left: 3px solid var(--sage); }
.steps            { border-left: 3px solid var(--plum); }
.section-video    { border-left: 3px solid var(--rose); }
.section-resource { border-left: 3px solid var(--gold); }
.section-submit   { border-left: 3px solid var(--plum); background: var(--plum-pale); }
.section-tips     { border-left: 3px solid var(--gold); background: var(--gold-pale); }
.section-warning  { border-left: 3px solid var(--rose); background: var(--rose-pale); }

/* ── PILLS / BADGES ──────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 2rem;
  letter-spacing: 0.04em;
}
.pill-plum { background: var(--plum-pale); color: var(--plum); border: 1px solid rgba(74,124,89,0.2); }
.pill-sage { background: var(--sage-pale);  color: var(--sage);  border: 1px solid rgba(107,143,110,0.2); }
.pill-gold { background: var(--gold-pale);  color: var(--gold);  border: 1px solid rgba(184,149,106,0.25); }
.pill-rose { background: var(--rose-pale);  color: var(--rose);  border: 1px solid rgba(138,173,141,0.25); }

/* ── FOOTER ──────────────────────────────────────────────── */
.page-footer, footer {
  text-align: center;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.page-footer a, footer a { color: var(--plum); text-decoration: none; }
.page-footer a:hover, footer a:hover { text-decoration: underline; }

/* ── UTILITY ─────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--plum);
  text-decoration: none;
  margin-bottom: 1.5rem;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.back-link:hover { opacity: 1; }
hr { border: none; border-top: 1px solid var(--rule); margin: 1.5rem 0; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header { padding: 1.5rem 1rem; }
  .site-nav { gap: 0.3rem; }
  .site-nav a { font-size: 0.72rem; padding: 0.22rem 0.6rem; }
  main, .page-body { padding: 1.5rem 1rem 4rem; }
  .page-header { padding: 1.25rem 1rem; }
}
