/* ============================================================
   Portfolio stylesheet
   Palette:
     paper     #F3F0E8  (page background)
     ink       #1C232B  (primary text)
     ink-2     #5B6470  (secondary text)
     navy      #0F2430  (dark band - header, footer, hero)
     navy-2    #0A1820  (darker gradient stop)
     teal      #1C8073  (primary accent)
     teal-deep #135951  (pressed / dark-on-light accent)
     blue      #2E6FB0  (secondary accent, paired with teal in gradients)
     line      #DCD6C7  (hairline rules on paper)
     line-dark rgba(243,240,232,.14)  (hairline rules on navy)
   Type:
     Newsreader    - headlines, section marks, numerals
     IBM Plex Sans - everything else
   ============================================================ */

:root {
  --paper: #F3F0E8;
  --paper-2: #EAE4D6;
  --ink: #1C232B;
  --ink-2: #5B6470;
  --navy: #0F2430;
  --navy-2: #0A1820;
  --teal: #1C8073;
  --teal-deep: #135951;
  --blue: #2E6FB0;
  --line: #DCD6C7;
  --line-dark: rgba(243, 240, 232, 0.14);
  --cream: #F3F0E8;
  --grad: linear-gradient(120deg, var(--teal) 0%, var(--blue) 100%);
  --max: 920px;
  --max-wide: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p { margin: 0 0 1.1em; max-width: 68ch; }

a {
  color: var(--teal-deep);
  text-decoration-color: rgba(28, 128, 115, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
.wrap-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header / nav (dark navy band, persistent on every page) ---------- */

.site-header {
  background: var(--navy);
  background-image:
    radial-gradient(circle at 18px 18px, rgba(243, 240, 232, 0.06) 1px, transparent 1.5px);
  background-size: 22px 22px;
  border-bottom: 1px solid var(--line-dark);
}

.site-header .wrap-wide {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.site-name {
  font-family: "Newsreader", serif;
  font-size: 1.28rem;
  font-weight: 500;
  color: var(--cream);
  text-decoration: none;
}
.site-name em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
}
.site-nav a {
  color: rgba(243, 240, 232, 0.75);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover { color: var(--cream); }
.site-nav a { white-space: nowrap; }
/* Five links no longer fit on one line on phones, so let them wrap */
@media (max-width: 640px) {
  .site-nav { flex-wrap: wrap; gap: 8px 22px; }
}
.site-nav a[aria-current="page"] {
  color: var(--cream);
  border-bottom-color: var(--teal);
}

/* ---------- Footer (matching dark band, bookends the page) ---------- */

.site-footer {
  background: var(--navy);
  margin-top: 90px;
  padding: 36px 0 46px;
  color: rgba(243, 240, 232, 0.65);
  font-size: 0.92rem;
}
.site-footer .wrap-wide {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.site-footer a { color: rgba(243, 240, 232, 0.85); }
.site-footer a:hover { color: var(--cream); }
