/* ============================================================
   Digital Portfolio — RWS 305W — Draft 1
   Palette + typography per assignment spec
   ============================================================ */

:root {
  --cream:      #FAF7F0;
  --cream-deep: #F1EBDD;   /* subtle panel / placeholder fill */
  --forest:     #1F3B2C;   /* primary accent */
  --gold:       #9C6B1F;   /* secondary accent */
  --charcoal:   #2B2B2B;   /* body text */

  --serif: "Lora", "Merriweather", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", "Open Sans", -apple-system, BlinkMacSystemFont,
           "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --measure: 42rem;        /* single-column reading width */
  --pad: clamp(1.25rem, 5vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------
   Top navigation
   ------------------------------------------------------------ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cream);
  border-bottom: 1px solid rgba(31, 59, 44, 0.15);
}

.site-nav__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1rem var(--pad);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav__wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav__links {
  display: flex;
  gap: 1.5rem;
}

.site-nav__links a {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
  color: var(--forest);
  border-color: var(--gold);
}

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 4.5rem) var(--pad) 3rem;
}

section { margin-top: 3rem; }
section:first-of-type { margin-top: 0; }

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--forest);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  margin: 0 0 1.25rem;
}

h2 {
  font-size: clamp(1.4rem, 4vw, 1.7rem);
  margin: 0 0 0.4rem;
}

/* small gold kicker above a section heading */
.kicker {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.25rem;
}

p { margin: 0 0 1.1rem; }

a { color: var(--forest); }

strong { color: var(--forest); }

.lead {
  font-size: 1.2rem;
}

ul.stack {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

ul.stack li {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(31, 59, 44, 0.15);
}

ul.stack li:first-child { border-top: none; }

ul.stack .role {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--forest);
}

hr.rule {
  border: none;
  border-top: 2px solid var(--gold);
  width: 3rem;
  margin: 0 0 2rem;
}

/* ------------------------------------------------------------
   Image placeholders  (swap the <figure> contents for a real <img>)
   ------------------------------------------------------------ */
figure {
  margin: 2rem 0;
}

.img-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1.5rem;
  background: var(--cream-deep);
  border: 2px dashed var(--gold);
  border-radius: 4px;
  color: var(--charcoal);
}

.img-slot--portrait {
  aspect-ratio: 4 / 5;
  max-width: 20rem;
  margin: 0 auto;
}
.img-slot--wide { aspect-ratio: 3 / 2; }

.img-slot__label {
  font-weight: 600;
  color: var(--forest);
  letter-spacing: 0.02em;
}

.img-slot__hint {
  font-size: 0.9rem;
  max-width: 26ch;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--gold);
  text-align: center;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem var(--pad) 3rem;
  border-top: 1px solid rgba(31, 59, 44, 0.15);
  font-size: 0.95rem;
  color: var(--charcoal);
}

.site-footer a { color: var(--forest); }

/* fill-me-in markers */
.todo {
  background: rgba(156, 107, 31, 0.15);
  border-bottom: 1px dashed var(--gold);
  padding: 0 0.15em;
}
