/* ============================================================
   AD350 · Database Technology · North Seattle College
   style.css — single stylesheet for all pages

   Sections:
     1.  Tokens
     2.  Reset & base
     3.  Layout
     4.  Sidebar & nav
     5.  Typography helpers
     6.  Page header
     7.  Hero (index)
     8.  Section heads & callout
     9.  Jump grid (index)
     10. Item list / expandable (assignments)
     11. Log entries (devlogs)
     12. Blog grid (blogs)
     13. Stack grid (integrations)
     14. Video grid (interviews)
     15. Page footer
     16. Mobile menu toggle
     17. Responsive
   ============================================================ */


/* ----------------------------------------------------------
   1. TOKENS
   ---------------------------------------------------------- */
:root {
  /* Palette */
  --bg:           #faf9f7;
  --surface:      #ffffff;
  --border:       #e8e4df;
  --border-soft:  #f0ece7;
  --ink:          #1a1714;
  --ink-2:        #3d3a37;
  --muted:        #7a7470;
  --accent:       #2a5c45;
  --accent-light: #e8f2ed;
  --tag-bg:       #f0ece7;
  --tag-ink:      #5a5450;

  /* Status colours */
  --done:         #2a5c45;
  --done-bg:      #e8f2ed;
  --progress:     #7a5c00;
  --progress-bg:  #fef9e7;

  /* Sidebar */
  --sidebar-w:    220px;
  --sidebar-bg:   #1a1714;
  --sidebar-ink:  #c8c4c0;
  --sidebar-dim:  #6a6460;

  /* Misc */
  --gap:    2rem;
  --radius: 8px;

  /* Fonts */
  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Geist', system-ui, sans-serif;
  --mono:  'JetBrains Mono', 'Courier New', monospace;
}


/* ----------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

p { color: var(--ink-2); }


/* ----------------------------------------------------------
   3. LAYOUT
   ---------------------------------------------------------- */
.layout {
  display: flex;
  min-height: 100vh;
}

main {
  flex: 1;
  min-width: 0;
  padding: 3rem var(--gap);
  max-width: 860px;
}

main > * + * { margin-top: var(--gap); }
main section + section { margin-top: 3rem; }


/* ----------------------------------------------------------
   4. SIDEBAR & NAV
   ---------------------------------------------------------- */
aside {
  width: var(--sidebar-w);
  min-height: 100vh;
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  overflow-y: auto;
  flex-shrink: 0;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 2rem;
  color: #fff;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.brand-text small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--sidebar-dim);
}

/* Nav */
nav h4 {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sidebar-dim);
  margin-bottom: 0.5rem;
}

nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

nav ul li a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--sidebar-ink);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
nav ul li a:hover,
nav ul li a.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}
nav ul li a:hover .icon,
nav ul li a.active .icon { opacity: 1; }

/* Sidebar footer */
.sidebar-foot {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--sidebar-dim);
  line-height: 1.6;
}
.sidebar-foot a {
  color: var(--sidebar-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.25rem;
  transition: color 0.15s;
  text-decoration: none;
}
.sidebar-foot a:hover {
  color: var(--sidebar-ink);
  text-decoration: none;
}


/* ----------------------------------------------------------
   5. TYPOGRAPHY HELPERS
   ---------------------------------------------------------- */
.italic {
  font-style: italic;
  font-weight: 300;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.375rem;
}

.placeholder-text {
  color: var(--muted);
  font-style: italic;
}


/* ----------------------------------------------------------
   6. PAGE HEADER
   ---------------------------------------------------------- */
.page-header { margin-bottom: var(--gap); }

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  margin: 0.25rem 0 0.75rem;
}

.page-header > p {
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 520px;
}

/* Expand / collapse controls (assignments) */
.expand-controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.expand-all,
.collapse-all {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.expand-all:hover,
.collapse-all:hover {
  background: var(--border-soft);
}


/* ----------------------------------------------------------
   7. HERO (index.html)
   ---------------------------------------------------------- */
.hero {
  padding-bottom: var(--gap);
  border-bottom: 1px solid var(--border-soft);
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 300;
  margin: 0.5rem 0 1rem;
}

.hero-lede {
  font-size: 1.0625rem;
  color: var(--ink-2);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-soft);
}

.meta-strip div {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-strip strong {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.8125rem;
}


/* ----------------------------------------------------------
   8. SECTION HEADS & CALLOUT
   ---------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-num {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.section-head h2 {
  font-size: 1.5rem;
  font-weight: 400;
}

section > p { max-width: 580px; }
section > p + p { margin-top: 0.75rem; }

.callout {
  margin-top: 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.callout p {
  font-size: 0.9rem;
  color: var(--ink-2);
  max-width: none;
}


/* ----------------------------------------------------------
   9. JUMP GRID (index.html)
   ---------------------------------------------------------- */
.jump-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.jump {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.jump:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  text-decoration: none;
}

.jump-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
  color: var(--accent);
}

.jump h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.jump p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}


/* ----------------------------------------------------------
   10. ITEM LIST / EXPANDABLE (assignments.html)
   ---------------------------------------------------------- */
.item-list {
  display: flex;
  flex-direction: column;
}

.expandable-item {
  border-bottom: 1px solid var(--border-soft);
}
.expandable-item:first-child {
  border-top: 1px solid var(--border-soft);
}

.item-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  user-select: none;
}
.item-header:hover .item-num { color: var(--accent); }

.item-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  padding-top: 0.25rem;
  min-width: 24px;
  transition: color 0.15s;
}

.item-body { flex: 1; min-width: 0; }

.item-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.item-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.item-body p {
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.55;
}

/* Status badge */
.status {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.status.done     { background: var(--done-bg);     color: var(--done); }
.status.progress { background: var(--progress-bg); color: var(--progress); }

.arrow {
  font-size: 0.5rem;
  display: inline-block;
  transition: transform 0.2s;
}
.expandable-item.expanded .arrow { transform: rotate(180deg); }

/* Collapsible panel */
.item-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.expandable-item.expanded .item-details { max-height: 800px; }

.item-content {
  padding: 0 0 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detail-section h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.625rem;
}

.learnings {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.learnings li {
  font-size: 0.875rem;
  color: var(--ink-2);
}

/* Submission links */
.submission-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.submission-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-family: var(--mono);
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-2);
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.submission-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}


/* ----------------------------------------------------------
   11. LOG ENTRIES (devlogs.html)
   ---------------------------------------------------------- */
.log-entry {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.log-entry:first-of-type {
  border-top: 1px solid var(--border-soft);
}

.log-date {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 0.2rem;
  line-height: 1.4;
}
.log-date strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-2);
  font-weight: 600;
  margin-top: 0.2rem;
}

.log-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.log-body p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.log-body p + p { margin-top: 0.625rem; }

.log-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 1rem;
}

.log-tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  background: var(--tag-bg);
  color: var(--tag-ink);
  border-radius: 4px;
}


/* ----------------------------------------------------------
   12. BLOG GRID (blogs.html)
   ---------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}
.blog-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.blog-image-container {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--border-soft);
}
.blog-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.blog-card:hover .blog-image-container img { transform: scale(1.03); }

.blog-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.blog-content p {
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  flex: 1;
}

.read {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: auto;
  text-decoration: none;
}
.read:hover { text-decoration: underline; }


/* ----------------------------------------------------------
   13. STACK GRID (integrations.html)
   ---------------------------------------------------------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.stack-item {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.stack-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.stack-logo {
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.stack-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.stack-role {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.stack-item > p {
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.55;
}


/* ----------------------------------------------------------
   14. VIDEO GRID (interviews.html)
   ---------------------------------------------------------- */
.video-grid {
  display: grid;
  gap: var(--gap);
}

.video-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-info { padding: 1.5rem; }

.video-week {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.video-title {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  color: var(--ink);
}

.video-description {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}


/* ----------------------------------------------------------
   15. PAGE FOOTER
   ---------------------------------------------------------- */
.page-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border-soft);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.page-foot a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.page-foot a:hover { color: var(--ink); }


/* ----------------------------------------------------------
   16. MOBILE MENU TOGGLE
   ---------------------------------------------------------- */
.menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  background: var(--sidebar-bg);
  border: none;
  border-radius: 6px;
  padding: 0.5rem;
  color: #fff;
  cursor: pointer;
}


/* ----------------------------------------------------------
   17. RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  aside {
    position: fixed;
    left: -100%;
    top: 0;
    z-index: 100;
    transition: left 0.25s ease;
    height: 100vh;
  }
  aside.open { left: 0; }

  main {
    padding: 4rem 1.25rem 2rem;
    width: 100%;
  }

  .jump-grid,
  .stack-grid {
    grid-template-columns: 1fr 1fr;
  }

  .log-entry {
    grid-template-columns: 60px 1fr;
    gap: 1rem;
  }

  .blog-grid { grid-template-columns: 1fr; }

  .meta-strip { gap: 1rem; }

  .item-content { padding-left: 0; }
}

@media (max-width: 560px) {
  .jump-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .page-foot {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .submission-links { flex-direction: column; }

  .log-entry {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .log-date { padding-top: 0; }
}
