/* ------------------------------------------------------------------
   Palette & type
   paper    #FCFCFB   background
   ink      #21232B   text
   royal    #2946C6   links & accents (royal blue)
   slate    #6A7185   secondary text (dates, labels)
   hairline #E3E5EC   rules
------------------------------------------------------------------- */
:root {
  --paper: #FCFCFB;
  --ink: #21232B;
  --royal: #2946C6;
  --slate: #6A7185;
  --hairline: #E3E5EC;
  --display: "Fraunces", Georgia, serif;
  --body: "Public Sans", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.65;
}

/* ---------- header & nav ---------- */
.site-header {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.25rem;
  border-bottom: 3px double var(--hairline);
}

.site-title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  padding: 0.15rem 0;
}

.site-nav a:hover { color: var(--royal); }

.site-nav a[aria-current="page"] {
  color: var(--royal);
  border-bottom: 2px solid var(--royal);
}

/* ---------- main column ---------- */
.site-main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 4rem;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: 2rem; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; }

a { color: var(--royal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--royal);
  outline-offset: 3px;
}

/* ---------- buttons (CV, nonprofit) ---------- */
.btn {
  display: inline-block;
  background: var(--royal);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: 4px;
  margin: 0.5rem 0.5rem 0.5rem 0;
}

.btn:hover { background: var(--ink); color: var(--paper); }

.btn.secondary {
  background: transparent;
  color: var(--royal);
  border: 1.5px solid var(--royal);
}

/* ---------- about page ---------- */
.about-lede {
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* ---------- research: APA list ---------- */
.pub-year {
  font-family: var(--display);
  color: var(--slate);
  font-size: 1.1rem;
  margin: 2rem 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--hairline);
}

.pub-list { list-style: none; margin: 0; padding: 0; }

.pub-list li {
  padding-left: 2rem;
  text-indent: -2rem;   /* APA hanging indent */
  margin-bottom: 1rem;
}

.pub-links { white-space: nowrap; font-size: 0.85rem; }

/* ---------- blog list ---------- */
.post-list { list-style: none; margin: 0; padding: 0; }

.post-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hairline);
}

.post-list .post-date,
.post .post-date {
  color: var(--slate);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.15rem;
}

.post-list h2 { margin: 0; font-size: 1.2rem; }
.post-list h2 a { text-decoration: none; }
.post-list p { margin: 0.35rem 0 0; }

.post-back { margin-top: 2.5rem; }

/* ---------- media: thumbnail cards ---------- */
.media-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .media-grid { grid-template-columns: 1fr; }
}

.media-card {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.media-card:hover {
  box-shadow: 0 6px 18px rgba(41, 70, 198, 0.12);
  transform: translateY(-2px);
}

.media-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.media-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--hairline);
}

.media-card .media-outlet {
  display: block;
  padding: 0.75rem 1rem 0;
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.media-card .media-headline {
  display: block;
  padding: 0.25rem 1rem 1rem;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--royal);
}

.media-card:hover .media-headline { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.25rem;
  border-top: 1px solid var(--hairline);
  color: var(--slate);
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- headshot photo ---------- */
.headshot {
  float: right;
  width: 200px;
  max-width: 42%;
  height: auto;
  margin: 0 0 1rem 1.5rem;
  border-radius: 6px;
}

@media (max-width: 480px) {
  .headshot { float: none; display: block; margin: 0 0 1.25rem; }
}

/* ---------- responsive scaling for larger screens ----------
   Bigger displays get larger type and a wider column so the page
   feels full without lines becoming too long to read comfortably. */
@media (min-width: 1100px) {
  html { font-size: 18px; }
  .site-header, .site-main, .site-footer { max-width: 52rem; }
}

@media (min-width: 1500px) {
  html { font-size: 20px; }
  .site-header, .site-main, .site-footer { max-width: 54rem; }
}
