/* Palette drawn from the headshot: Lake Michigan slate, beach sand, warm clay. */
:root {
  --ink: #1f2a33;
  --muted: #5b6670;
  --lake: #1f3442;
  --lake-soft: #2c4a5c;
  --sand: #f6f1e9;
  --sand-deep: #ebe2d4;
  --paper: #fffdf9;
  --clay: #b4552f;
  --clay-dark: #923f1f;
  --line: #e2d8c8;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

a { color: var(--clay); text-underline-offset: 0.2em; }
a:hover { color: var(--clay-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0 0 1.1em; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--lake);
  color: var(--sand);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0.5rem; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 2.5rem;
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.actions--stack { flex-direction: column; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid var(--lake);
  background: var(--lake);
  color: var(--sand);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.button:hover { background: var(--clay); border-color: var(--clay); color: #fff; }

.button--ghost { background: transparent; color: var(--lake); }
.button--ghost:hover { background: var(--lake); border-color: var(--lake); color: var(--sand); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(246, 241, 233, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.site-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--lake);
  text-decoration: none;
  white-space: nowrap;
}
.site-title span { color: var(--clay); font-style: italic; }
.site-title:hover { color: var(--lake); }

.site-header nav { display: flex; gap: clamp(0.75rem, 3vw, 2rem); }

.site-header nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-header nav a:hover,
.site-header nav a[aria-current] { color: var(--clay); border-bottom-color: currentColor; }

/* Home: hero */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
  color: var(--lake);
  margin-bottom: 1.25rem;
}

.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.45;
  color: var(--muted);
  max-width: 32ch;
}

.hero__photo { margin: 0; position: relative; }

.hero__photo::before {
  content: "";
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--sand-deep);
  z-index: -1;
}

.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 30% 30%;
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: 0 30px 60px -30px rgba(31, 52, 66, 0.45);
}

/* Home: intro */
.intro { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--paper); border-block: 1px solid var(--line); }

.intro__body { max-width: 48rem; }

.intro__body p { color: var(--muted); }

.intro__body p:first-child {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.35;
  color: var(--lake);
  margin-bottom: 1.75rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--clay);
}

/* Home: favorites */
.favorites {
  background: var(--lake);
  color: #d9e1e6;
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.favorites .section-title { color: var(--sand); }

.favorites__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.favorite { border-top: 1px solid rgba(246, 241, 233, 0.25); padding-top: 1.5rem; }

.favorite__num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  color: #e08a63;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.favorite h3 { font-size: 1.6rem; color: var(--sand); margin-bottom: 1rem; }

.favorite__lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--sand);
}

.favorite p:not(.favorite__lead) { font-size: 0.98rem; }

/* Home: learn more */
.more { padding: clamp(4rem, 8vw, 7rem) 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(31, 52, 66, 0.35); }

.card h3 { font-size: 1.5rem; color: var(--lake); margin-bottom: 1rem; }
.card p { color: var(--muted); font-size: 0.98rem; flex: 1; }

.card__link { font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.card__link span { transition: margin 0.2s; }
.card__link:hover span { margin-left: 0.25em; }

/* Inner pages */
.page-head { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); }

.page-head h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); color: var(--lake); }

.page-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.page-grid {
  display: grid;
  grid-template-columns: 18rem 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.page-aside { position: sticky; top: 6.5rem; }

.page-aside img {
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 30% 30%;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

.prose { max-width: 42rem; }
.prose p { color: #3a4650; }
.prose p:first-child {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--lake);
}

/* Resume */
.resume-section { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(3rem, 6vw, 5rem); }

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

.job {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
.job:first-child { border-top: 0; padding-top: 0; }

.job__org { font-weight: 600; color: var(--lake); margin-bottom: 0.25rem; line-height: 1.4; }
.job__dates { font-size: 0.9rem; color: var(--muted); }

.job h3 { font-size: 1.75rem; color: var(--lake); margin-bottom: 0.75rem; }
.job__summary { color: var(--muted); }

.job ul, .creds__list { margin: 0; padding: 0; list-style: none; }

.job li, .creds__list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
}
.job li::before, .creds__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.5rem;
  height: 2px;
  background: var(--clay);
}

.skills { background: var(--lake); color: #d9e1e6; padding: clamp(4rem, 8vw, 6rem) 0; }
.skills .section-title { color: var(--sand); }

.skills__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

.skill { border-top: 1px solid rgba(246, 241, 233, 0.25); padding-top: 1.25rem; }
.skill h3 { font-size: 1.3rem; color: var(--sand); margin-bottom: 1rem; }
.skill ul { list-style: none; margin: 0; padding: 0; }
.skill li { padding: 0.3rem 0; font-size: 0.97rem; }

.creds { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); padding-bottom: 0; }
.creds .section-title { margin-bottom: 1.5rem; }
.creds__school { font-weight: 600; color: var(--lake); }
.creds p:not(.creds__school) { color: var(--muted); }

.resume-download { padding-top: 3rem; padding-bottom: clamp(4rem, 8vw, 6rem); }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 2.5rem 0; font-size: 0.9rem; }

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer p { margin: 0; }
.site-footer__name { font-family: var(--serif); font-size: 1.15rem; color: var(--lake); }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer nav a { color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { color: var(--clay); }
.site-footer__copy { color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
  .favorites__list, .cards { grid-template-columns: 1fr; }
  .skills__grid { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 1.75rem; }
}

@media (max-width: 760px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { order: -1; max-width: 22rem; margin-right: 1.5rem; }
  .page-grid { grid-template-columns: 1fr; }
  .page-aside { position: static; display: flex; gap: 1.25rem; align-items: center; }
  .page-aside img { width: 7rem; margin: 0; }
  .page-aside .actions { margin-top: 0; }
  .job { grid-template-columns: 1fr; gap: 0.75rem; }
  .creds { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header__inner { flex-direction: column; gap: 0.25rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .site-header { position: static; }
  .skills__grid { grid-template-columns: 1fr; }
  .page-aside { flex-direction: column; align-items: flex-start; }
  .actions .button { width: 100%; }
}

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