/* ==========================================================
   Styles for willschupmann.com
   Shared by every page. You rarely need to edit this file.
   ========================================================== */


/* ---------- Colors and fonts ---------- */

:root {
  --bg: #fbfbfa;          /* page background */
  --fg: #1e2328;          /* main text */
  --muted: #5d6670;       /* gray text (menu) */
  --rule: #e4e7ea;        /* light gray (photo placeholder) */
  --accent: #2c5a7a;      /* links and buttons */
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --body: "Public Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Dark mode colors (used when a visitor's device is in dark mode) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181b;
    --fg: #e4e7ea;
    --muted: #9aa3ad;
    --rule: #2b3036;
    --accent: #8db8d6;
    color-scheme: dark;
  }
}


/* ---------- Basics ---------- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.page {
  max-width: 62rem;
  margin: 0 auto;
  padding: 2.25rem 2rem 4rem;
}


/* ---------- Top bar: name and menu ---------- */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1.1;
  margin: 0;
}

.name a {
  color: var(--fg);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--fg);
}


/* ---------- Home page: photo beside text ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  margin-top: 4.5rem;
}

.photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  background: var(--rule);
}

.hero-text {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

/* The large opening statement */
.lede {
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1.45;
  text-wrap: pretty;
  margin-bottom: 0.4rem;
}


/* ---------- Buttons ---------- */

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
}

.btn.primary {
  background: var(--accent);
  color: var(--bg);
}

.btn:hover {
  filter: brightness(1.08);
}


/* ---------- Inner pages (Research, Contact) ---------- */

.page-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 4.5rem 0 1.5rem;
}

.content {
  display: grid;
  gap: 1.25rem;
}

.project {
  margin-top: 2rem;
}

.project h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0 0 0.6rem;
}


/* ---------- Phones and small screens ---------- */

@media (max-width: 760px) {
  .page {
    padding: 1.75rem 1.25rem 3rem;
  }
  .top {
    flex-direction: column;
    align-items: start;
  }
  .name {
    font-size: 1.85rem;
  }
  .nav {
    gap: 0.4rem 1.25rem;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    margin-top: 2.5rem;
  }
  .photo {
    max-width: 15rem;
  }
  .lede {
    font-size: 1.3rem;
  }
  .page-title {
    margin-top: 2.5rem;
  }
}
