/* ==========================================================================
   Site-wide styles — Maren McHugh Portfolio
   Link this file from every page: <link rel="stylesheet" href="[path]/styles.css">
   ========================================================================== */

* { box-sizing: border-box; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  line-height: 1.6;
  color: #222;
}

/* ---------- Headings ---------- */
h1 { font-size: 1.8em; margin-bottom: 0; }
h1 + p.subtitle { color: #777; margin-top: 4px; font-style: italic; }

h2 {
  margin-top: 48px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
}

h3 { margin-top: 24px; }

/* ---------- Navigation ---------- */
nav a { margin-right: 16px; }

/* ---------- Lists ---------- */
ol.notes li { margin-bottom: 10px; }

/* ---------- Figures & images ---------- */
figure { margin: 20px 0; }
figure img { max-width: 100%; height: auto; display: block; }
figcaption { font-size: 0.9em; color: #666; margin-top: 6px; }

/* Group of images that should sit side-by-side, same-ish size.
   Wrap sibling <figure> elements in <div class="gallery"> to use. */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
}
.gallery figure {
  flex: 1 1 220px;
  margin: 0;
}
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Opt a figure OUT of the gallery size cap (e.g. mood boards, tall scans) */
.moodboard img {
  max-width: 100%;
  height: auto;
}

/* Smaller single figure — e.g. the Step 1 ideation image */
.small-figure img {
  max-width: 400px;
  margin: 0 auto;
}

/* ---------- Placeholder / "not started yet" callouts ---------- */
.placeholder {
  background: #fffbe6;
  border: 1px dashed #d9c27e;
  padding: 12px 16px;
  font-size: 0.9em;
  color: #6b5c1e;
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  .gallery figure { flex: 1 1 100%; }
  .gallery img { height: auto; aspect-ratio: 4 / 3; }
}

table {
  border-collapse: collapse;
}

th, td {
  border: 1px solid #333;
  padding: 6px;
}