/* motz.net — shared styles (v2: navy and brass) */
:root {
  --navy: #1b3366;
  --navy-deep: #0f2048;
  --gold: #c8a24d;
  --gold-soft: #e6cd8a;
  --ivory: #faf7f0;
  --paper: #ffffff;
  --tint: #edf1f8;
  --ink: #1c2230;
  --muted: #566073;
  --rule: #d9d4c6;
  --link: #1f4e99;
  --serif: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
}
.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar { background: var(--navy-deep); }
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 6px 28px; padding-top: 18px; padding-bottom: 18px;
}
.brand { font-family: var(--serif); font-size: 1.3rem; color: #fff; text-decoration: none; letter-spacing: 0.01em; }
.topbar nav a {
  margin-left: 24px; font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: #c5d0e8; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent;
}
.topbar nav a:first-child { margin-left: 0; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }

/* Hero (home) and page heads (inner pages) */
.hero, .page-head {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; border-bottom: 4px solid var(--gold);
}
.hero { padding: 76px 0 84px; }
.page-head { padding: 46px 0 50px; }
.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-soft); margin: 0 0 14px; font-weight: 600;
}
.hero h1, .page-head h1 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.1; letter-spacing: 0.005em; }
.hero h1 { font-size: 3.3rem; }
.page-head h1 { font-size: 2.5rem; }
.hero .lede { max-width: 640px; font-size: 1.22rem; line-height: 1.6; color: #e1e8f6; margin: 26px 0 0; }
.page-head .sub { max-width: 640px; color: #d3dcf0; margin: 14px 0 0; font-size: 1.08rem; }

/* Content */
main { padding: 56px 0 20px; }
.section { margin: 0 0 56px; }
h2.label {
  display: flex; align-items: center; gap: 12px; margin: 0 0 24px;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--navy);
}
h2.label::before { content: ""; width: 28px; height: 2px; background: var(--gold); flex: none; }
h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.25; margin: 0 0 6px; color: var(--navy); }
p { margin: 0 0 16px; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

.band { background: var(--tint); padding: 52px 0 36px; margin: 0 0 56px; border-top: 1px solid #dde3ee; border-bottom: 1px solid #dde3ee; }
.band .section { margin-bottom: 20px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--gold);
  border-radius: 3px; padding: 22px 22px 20px; box-shadow: 0 1px 2px rgba(15, 32, 72, 0.05);
}
.card .kicker { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.55; }

/* Entries (experience, teaching, education) */
.entry { padding: 0 0 24px; margin: 0 0 24px; border-bottom: 1px solid var(--rule); }
.entry:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.entry .role { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; color: var(--ink); margin: 0; }
.entry .org { color: var(--navy); font-weight: 600; margin: 2px 0 0; }
.entry .when { color: var(--muted); font-size: 0.92rem; margin: 0 0 10px; }
.entry p { color: #3a4254; margin: 8px 0 0; }
.entry ul, .plainlist { margin: 10px 0 0; padding-left: 1.1em; color: #3a4254; }
.entry li, .plainlist li { margin: 0 0 5px; }
.cols { columns: 2; column-gap: 40px; }
.cols li { break-inside: avoid; }

/* Essays */
.essays { list-style: none; padding: 0; margin: 0; }
.essays li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.essays li:first-child { padding-top: 0; }
.essays a { text-decoration: none; color: var(--navy); font-family: var(--serif); font-size: 1.4rem; }
.essays a:hover { color: var(--link); text-decoration: underline; }
.essays .meta { display: block; font-size: 0.82rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.essays .dek { display: block; color: var(--muted); margin-top: 4px; }
.empty { color: var(--muted); font-style: italic; }

/* Essay page */
article h1 { font-family: var(--serif); font-weight: 500; font-size: 2.4rem; line-height: 1.15; margin: 0 0 10px; color: var(--navy); }
article .meta { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 36px; }
article { max-width: 680px; }
article p { font-family: var(--serif); font-size: 1.22rem; line-height: 1.7; margin-bottom: 22px; }
article blockquote { margin: 28px 0; padding-left: 20px; border-left: 3px solid var(--gold); color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 1.2rem; }
.back { display: inline-block; margin-top: 20px; font-size: 0.95rem; }

/* Correspondence block */
.contact { background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--gold); border-radius: 3px; padding: 24px 26px; }
.contact p:last-child { margin-bottom: 0; }

/* Footer */
footer { background: var(--navy-deep); color: #b6c3df; margin-top: 56px; font-size: 0.9rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 28px; padding-bottom: 32px; }
footer a { color: #d9e2f5; }
footer a:hover { color: #fff; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .topbar nav a { margin-left: 16px; }
  .hero { padding: 52px 0 58px; }
  .hero h1 { font-size: 2.35rem; }
  .page-head h1 { font-size: 2rem; }
  main { padding: 40px 0 10px; }
  .cols { columns: 1; }
}
@media print {
  .topbar nav, footer { display: none; }
  .hero, .page-head, .topbar { background: #fff !important; color: #000 !important; border-bottom: 1px solid #999; }
  .hero h1, .page-head h1, .brand, .hero .lede, .page-head .sub, .eyebrow { color: #000 !important; }
}
