/* ============================================================
   nathanamueller.com — shared stylesheet
   This file is the single source of truth for the site's design.
   It is to your HTML pages what BaylorThesis.cls is to your
   dissertation chapters: define the formatting once, and every
   page that links it inherits the look. Edit here, all pages
   update together.
   ============================================================ */

/* ---- Design tokens. Change a value here and it retunes the whole
   site at once, exactly like a macro in a LaTeX preamble. ---- */
:root {
  --paper:       #f6f3ec;   /* warm off-white background */
  --ink:         #201c17;   /* warm near-black body text */
  --muted:       #6c6358;   /* secondary / caption text  */
  --accent:      #7c2d2d;   /* oxblood: links, active tab, rules */
  --accent-dark: #5d1f1f;
  --line:        #ded6c7;   /* hairline rules */
  --maxw:        860px;     /* reading-column width */
}

/* ---- Base ---- */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 19px;
  line-height: 1.65;
  font-optical-sizing: auto;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* ---- Banner: full-width strip, identical on every page ---- */
.banner {
  width: 100%;
  height: clamp(160px, 26vw, 300px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.banner img {
  width: 100%; height: 100%;
  object-fit: cover;   /* fills the strip, cropping overflow */
  display: block;
}

/* ---- Masthead: name + subtitle, centered below the banner ---- */
.masthead { text-align: center; padding: 2rem 1rem 0; }
.masthead h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.01em;
  margin: 0;
}
.masthead .subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0.35rem 0 0;
}

/* ---- Navigation tabs ---- */
nav.tabs {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
nav.tabs a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
nav.tabs a:hover { color: var(--accent); }
/* the current page's tab carries aria-current="page" in the HTML */
nav.tabs a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---- Main reading column + gentle load-in ---- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  animation: rise 0.6s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.6rem;
  margin: 2.5rem 0 0.75rem;
}
/* zero the top margin of the first heading on any page */
main > section:first-child h2 { margin-top: 0; }

/* ---- Home: portrait beside bio; stacks on small screens ---- */
.intro {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}
.portrait {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
}

/* ---- CV page ---- */
.cv-actions { margin: 1rem 0 1.25rem; }
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: 3px;
  font-size: 0.85rem; letter-spacing: 0.04em;
}
.button:hover { background: var(--accent-dark); color: var(--paper); }
.cv-frame {
  width: 100%;
  height: 82vh;
  border: 1px solid var(--line);
  background: #fff;
}

/* ---- Footer ---- */
footer {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 2rem 1rem 3rem;
  border-top: 1px solid var(--line);
}

/* ---- Phones ---- */
@media (max-width: 620px) {
  .intro { grid-template-columns: 1fr; }
  .portrait { max-width: 240px; }
  nav.tabs { gap: 1.25rem; }
}
