/* John D. Hance IV — personal scholar/teacher site (preview build)
   Plain static CSS. No frameworks, no webfonts. */

:root {
  --ink: #1b2432;
  --navy: #16283f;
  --accent: #6e1423; /* restrained burgundy, used sparingly */
  --muted: #5a6472;
  --rule: #d8dce2;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, .site-name {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  color: var(--navy);
  line-height: 1.25;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 3px double var(--rule);
  padding: 1.75rem 1.25rem 1.1rem;
  text-align: center;
}

.site-name {
  margin: 0;
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 0.01em;
}

.site-tagline {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav {
  margin-top: 1rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus {
  border-bottom-color: var(--accent);
}

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

/* ---------- Layout ---------- */

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3rem;
}

h2 {
  font-size: 1.45rem;
  font-weight: normal;
  margin: 2.25rem 0 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--rule);
}

main > h2:first-child { margin-top: 0; }

h3 {
  font-size: 1.1rem;
  font-weight: normal;
  margin: 1.5rem 0 0.4rem;
}

p { margin: 0 0 1rem; }

.lede {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--navy);
  margin-bottom: 1.75rem;
}

ul.plain {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

ul.plain li { margin-bottom: 0.55rem; }

.pub { margin-bottom: 1.5rem; }
.pub .pub-title { font-style: italic; }
.pub .pub-meta { color: var(--muted); font-size: 0.95rem; }

.status {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 0.05rem 0.45rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  white-space: nowrap;
}

a { color: var(--navy); text-decoration: underline; }
a:hover, a:focus { color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p { margin: 0 0 0.35rem; }

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-name { font-size: 1.6rem; }
  .site-nav ul { gap: 0.4rem 1.1rem; }
  main { padding: 1.75rem 1.1rem 2.5rem; }
  .lede { font-size: 1.1rem; }
}
