/* ==========================================================================
   oaknelson.com — site styles (2026 redesign)
   Home page: dark hero ("B"). Inner pages and posts: editorial ("C").
   ========================================================================== */

:root {
  --ink: #1c1917;
  --ink-2: #292524;
  --muted: #78716c;
  --line: #e7e5e4;
  --paper: #faf8f4;
  --white: #ffffff;
  --accent: #b45309;       /* burnt orange, used on inner pages */
  --plasma: #f97316;       /* brighter orange, used on the dark hero */
  --gold: #f5c26b;
  --night: #07090f;
  --serif: "Source Serif 4", Charter, "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --prose: 740px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.sans { font-family: var(--sans); }
.kicker {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.muted { color: var(--muted); }

/* ---------- Navigation ---------- */
.site-nav { border-bottom: 1px solid var(--ink); background: var(--paper); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 18px; }
.site-nav .brand { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--ink); letter-spacing: -.01em; }
.site-nav .brand:hover { text-decoration: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 24px; }
.site-nav li a {
  font-family: var(--sans); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.site-nav li a:hover { color: var(--ink); text-decoration: none; }
.site-nav li a.active { color: var(--ink); border-bottom-color: var(--accent); }
.site-nav li a.cv { color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 6px 13px; }
.site-nav li a.cv:hover { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; background: none; border: 0; font: 600 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: inherit; cursor: pointer; }

/* Transparent nav over the dark home hero */
.layout-home .site-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; background: transparent; border-bottom: 0; }
.layout-home .site-nav .brand { color: #fff; font-family: var(--sans); font-size: 17px; letter-spacing: .06em; text-transform: uppercase; }
.layout-home .site-nav li a { color: rgba(255,255,255,.78); }
.layout-home .site-nav li a:hover { color: #fff; }
.layout-home .site-nav li a.cv { color: #fff; border-color: rgba(255,255,255,.5); }
.layout-home .site-nav li a.cv:hover { background: #fff; color: var(--night); }
.layout-home .nav-toggle { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; font-family: var(--sans); font-size: 13.5px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 30px; padding-bottom: 44px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); }
.site-footer .links a { margin-left: 18px; }
.site-footer .links i { margin-right: 5px; color: var(--muted); }
.layout-home .site-footer { margin-top: 0; }

/* ---------- Editorial page header ---------- */
.page-head { padding: 60px 0 34px; }
.page-head h1 { font-size: 52px; line-height: 1.06; font-weight: 400; letter-spacing: -.02em; margin: 12px 0 16px; max-width: 900px; }
.page-head h1 em { color: var(--accent); }
.page-head .lede { font-size: 21px; line-height: 1.55; color: #44403c; max-width: 800px; margin: 0; }
.page-head.with-portrait .wrap { display: grid; grid-template-columns: 1fr 240px; gap: 56px; align-items: end; }
.page-head .portrait img { width: 240px; height: 290px; object-fit: cover; border-radius: 2px; display: block; }
.page-head .portrait .cap { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* ---------- Prose (page + post body) ---------- */
.prose { max-width: var(--prose); }
.page-body { padding-bottom: 20px; }
.page-body > .wrap > *:first-child { margin-top: 0; }
.prose p, .page-body p { margin: 0 0 18px; }
.page-body h2 {
  font-size: 30px; font-weight: 400; line-height: 1.2; letter-spacing: -.01em;
  margin: 64px 0 18px; padding-top: 22px; border-top: 1px solid var(--line);
}
.page-body h3 { font-size: 21px; font-weight: 600; margin: 34px 0 10px; line-height: 1.3; }
.page-body h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 28px 0 8px; }
.page-body ul, .page-body ol { padding-left: 22px; margin: 0 0 18px; }
.page-body li { margin-bottom: 6px; }
.page-body blockquote {
  margin: 8px 0 24px; padding: 2px 0 2px 22px; border-left: 3px solid var(--accent);
  font-size: 23px; line-height: 1.45; font-style: italic; color: var(--ink-2);
}
.page-body blockquote p { margin: 0; }
.page-body table { border-collapse: collapse; width: 100%; font-size: 16px; margin: 0 0 24px; }
.page-body th, .page-body td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.page-body th { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.page-body code { font-size: .88em; background: #f1efea; padding: 1px 5px; border-radius: 3px; }
.page-body em + br + em, .figure-cap, .page-body img + em { font-family: var(--sans); font-size: 13.5px; color: var(--muted); font-style: normal; }

/* Narrow text column inside a wide page */
.page-body .wrap > p, .page-body .wrap > ul, .page-body .wrap > ol,
.page-body .wrap > h3, .page-body .wrap > h4, .page-body .wrap > blockquote { max-width: var(--prose); }

/* ---------- Numbered sections (C style) ---------- */
.section { display: grid; grid-template-columns: 200px 1fr; gap: 48px; padding: 52px 0; border-top: 1px solid var(--line); }
.section .label { font-family: var(--sans); }
.section .label .num { font-size: 44px; font-weight: 200; color: var(--accent); line-height: 1; }
.section .label .t { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-top: 8px; }
.section .body > *:first-child { margin-top: 0; }
.section .body h2 { border: 0; padding: 0; margin: 0 0 14px; }
.section .body p, .section .body ul { max-width: var(--prose); }

/* ---------- Full-width figure ---------- */
.figure { margin: 8px 0 0; }
.figure img { width: 100%; display: block; object-fit: cover; }
.figure .cap, figcaption { font-family: var(--sans); font-size: 13px; color: var(--muted); padding: 8px 0 0; }

/* ---------- Column groups ---------- */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 22px 0 8px; }
.cols.two { grid-template-columns: repeat(2, 1fr); }
.cols > div { border-top: 2px solid var(--ink); padding-top: 12px; }
.cols h3 { font-size: 18px; margin: 0 0 6px; font-weight: 600; }
.cols p { font-size: 15.5px; color: #57534e; margin: 0 0 8px; }
.cols ul { font-size: 15.5px; color: #57534e; padding-left: 18px; margin: 0; }

/* ---------- Aim / course cards ---------- */
.aims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 18px 0 26px; }
.aims.two { grid-template-columns: repeat(2, 1fr); }
.aim { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; }
.aim .n { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.aim h3 { font-size: 18px; margin: 4px 0 8px; font-weight: 600; line-height: 1.3; }
.aim p { font-size: 15.5px; color: #57534e; margin: 0 0 8px; }
.aim .meta { font-family: var(--sans); font-size: 12.5px; color: var(--muted); }

/* ---------- Thrust block with image ---------- */
.thrust { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.thrust.flip { grid-template-columns: 360px 1fr; }
.thrust.flip .thrust-img { order: -1; }
.thrust-img img { width: 100%; border-radius: 4px; background: #000; display: block; }

/* ---------- Simple dated list ---------- */
.dated { list-style: none; padding: 0; margin: 0; font-size: 16.5px; }
.dated li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dotted #d6d3d1; margin: 0; }
.dated .y { font-family: var(--sans); font-size: 13px; color: var(--muted); padding-top: 3px; font-variant-numeric: tabular-nums; }
.dated i { color: #57534e; }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 16px 0 28px; }
.person { display: grid; grid-template-columns: 64px 1fr; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; }
.person .av {
  width: 64px; height: 64px; border-radius: 50%; background: #efe7da; color: var(--accent);
  display: flex; align-items: center; justify-content: center; font: 600 20px var(--sans); overflow: hidden;
}
.person .av img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 18px; margin: 0; font-weight: 600; }
.person .role { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin: 2px 0 6px; letter-spacing: .02em; }
.person p { font-size: 15px; color: #57534e; margin: 0 0 4px; }
.alumni { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; font-size: 15.5px; }
.alumni li { break-inside: avoid; padding: 7px 0; border-bottom: 1px dotted #d6d3d1; margin: 0; }
.alumni .y { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin-right: 8px; }
.alumni .now { color: var(--muted); font-style: italic; }

/* ---------- Callout ---------- */
.callout { background: #f3ede3; border-left: 3px solid var(--accent); padding: 16px 20px; font-size: 16.5px; margin: 0 0 24px; max-width: var(--prose); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Video embed ---------- */
.video { position: relative; padding-top: 56.25%; max-width: var(--prose); margin: 6px 0 10px; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Post list (Research projects, Service initiatives) ---------- */
.post-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.post-list li { margin: 0; }
.post-list a.card { display: grid; grid-template-columns: 150px 1fr; gap: 18px; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 14px; height: 100%; }
.post-list a.card:hover { text-decoration: none; border-color: #d6d3d1; box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.post-list .thumb { width: 150px; height: 108px; border-radius: 3px; object-fit: cover; background: #111; }
.post-list .date { font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.post-list h3 { font-size: 17.5px; margin: 2px 0 6px; line-height: 1.3; font-weight: 600; }
.post-list p { font-size: 14.5px; color: #57534e; margin: 0; line-height: 1.5; }

/* ---------- Post ---------- */
.post-head { padding: 56px 0 26px; }
.post-head h1 { font-size: 44px; line-height: 1.1; font-weight: 400; letter-spacing: -.015em; margin: 12px 0 12px; max-width: 900px; }
.post-head .meta { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.post-cover { max-height: 460px; overflow: hidden; margin-bottom: 40px; }
.post-cover img { width: 100%; height: 460px; object-fit: cover; display: block; background: #000; }
.post-body img { display: block; margin: 12px auto 6px; }
.post-pager { display: flex; justify-content: space-between; gap: 24px; font-family: var(--sans); font-size: 14px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); max-width: var(--prose); }

/* ---------- Publications ---------- */
.layout-page.page-publications .page-body li { font-size: 16px; margin-bottom: 10px; }

/* ==========================================================================
   Home (B, modest)
   ========================================================================== */
.hero { background: radial-gradient(ellipse at 75% 50%, #1b1208 0%, var(--night) 60%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; padding-top: 140px; padding-bottom: 84px; }
.hero .eyebrow { font-family: var(--sans); color: var(--gold); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 12.5px; }
.hero h1 { font-family: var(--sans); font-size: 52px; line-height: 1.07; margin: 14px 0 20px; font-weight: 700; letter-spacing: -.015em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #fbbf24, #f97316 60%, #ef4444); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-family: var(--sans); font-size: 18px; line-height: 1.6; color: #cbd5e1; max-width: 560px; margin: 0 0 28px; }
.hero .cta a { display: inline-block; font-family: var(--sans); padding: 11px 19px; border-radius: 10px; font-weight: 600; margin: 0 10px 10px 0; font-size: 15px; }
.hero .cta a:hover { text-decoration: none; }
.hero .cta .p { background: var(--plasma); color: #fff; }
.hero .cta .p:hover { background: #ea580c; }
.hero .cta .s { border: 1px solid #475569; color: #e2e8f0; }
.hero .cta .s:hover { border-color: #94a3b8; }
.hero .art img { width: 112%; max-width: none; margin-left: -2%; filter: drop-shadow(0 0 60px rgba(249,115,22,.30)); }

.home { background: var(--white); font-family: var(--sans); }
.home section { padding: 76px 0 8px; }
.home .sh { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.home .sh h2 { font-size: 32px; margin: 4px 0 0; letter-spacing: -.01em; line-height: 1.15; }
.home .sh .kicker { color: var(--plasma); }
.home .sh a { color: var(--plasma); font-weight: 600; font-size: 15px; white-space: nowrap; }
.home .thesis { font-size: 21px; line-height: 1.5; max-width: 900px; color: #334155; margin: 0 0 34px; }
.home .thesis b { color: #0f172a; }
.home .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.home .tc { display: block; color: inherit; border-radius: 14px; overflow: hidden; border: 1px solid #e2e8f0; background: #fff; transition: box-shadow .15s; }
.home .tc:hover { text-decoration: none; box-shadow: 0 8px 28px rgba(15,23,42,.08); }
.home .tc .im { height: 190px; background: #000 center/cover no-repeat; }
.home .tc .b { padding: 18px 22px 22px; }
.home .tc .n { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--plasma); }
.home .tc h3 { font-size: 19px; line-height: 1.28; margin: 6px 0 8px; color: #0f172a; }
.home .tc p { margin: 0; color: #64748b; font-size: 15px; line-height: 1.55; }
.home .split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
.home .pubs .p { padding: 15px 0; border-bottom: 1px solid #e2e8f0; }
.home .pubs .j { font-size: 12px; font-weight: 700; color: var(--plasma); letter-spacing: .06em; text-transform: uppercase; }
.home .pubs .t { font-weight: 600; font-size: 16px; margin: 2px 0; color: #0f172a; display: block; line-height: 1.4; }
.home .pubs .a { color: #64748b; font-size: 14px; }
.home .news .n { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid #e2e8f0; font-size: 15px; color: #0f172a; }
.home .news .d { flex: 0 0 72px; font-size: 12.5px; color: #64748b; font-weight: 600; padding-top: 2px; }
.home .news a { color: #0f172a; }
.home .band { background: #f8fafc; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; margin-top: 76px; padding: 0; }
.home .band .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; padding-top: 58px; padding-bottom: 58px; }
.home .band a { color: inherit; }
.home .band a:hover { text-decoration: none; }
.home .band a:hover h3 { color: var(--plasma); }
.home .band img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; display: block; }
.home .band h3 { margin: 14px 0 6px; font-size: 19px; color: #0f172a; }
.home .band p { color: #64748b; font-size: 15px; margin: 0; line-height: 1.55; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav .wrap { flex-wrap: wrap; }
  .site-nav ul { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 0 6px; }
  .site-nav.open ul { display: flex; }
  .layout-home .site-nav.open { background: var(--night); }
  .thrust, .thrust.flip { grid-template-columns: 1fr; }
  .thrust.flip .thrust-img { order: 0; }
}
@media (max-width: 820px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .page-head { padding: 36px 0 22px; }
  .page-head h1 { font-size: 36px; }
  .page-head .lede { font-size: 18px; }
  .page-head.with-portrait .wrap { grid-template-columns: 1fr; gap: 24px; }
  .page-head .portrait img { width: 100%; height: 280px; }
  .section { grid-template-columns: 1fr; gap: 10px; padding: 36px 0; }
  .cols, .cols.two, .aims, .aims.two, .people, .post-list { grid-template-columns: 1fr; }
  .alumni { columns: 1; }
  .post-list a.card { grid-template-columns: 96px 1fr; }
  .post-list .thumb { width: 96px; height: 76px; }
  .post-head h1 { font-size: 32px; }
  .post-cover img { height: 240px; }
  .dated li { grid-template-columns: 80px 1fr; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 96px; padding-bottom: 40px; }
  .hero h1 { font-size: 36px; }
  .hero .art img { width: 100%; margin: 0; }
  .home section { padding: 52px 0 0; }
  .home .sh { flex-direction: column; align-items: flex-start; gap: 6px; }
  .home .sh h2 { font-size: 25px; }
  .home .thesis { font-size: 18px; }
  .home .grid3, .home .split, .home .band .wrap { grid-template-columns: 1fr; }
  .site-footer .links a { margin: 0 14px 0 0; }
}
