/* darenfisher.com — colors and fonts are defined once here */
:root {
  --page: #ffffff;
  --ink: #16202e;
  --muted: #5d6878;
  --rule: #e3e7ee;
  --accent: #173f75;        /* deep Hampton navy */
  --accent-hover: #0f2d55;
  --on-accent: #ffffff;
  --tint: #f3f6fa;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #10151d;
    --ink: #e8ebf0;
    --muted: #9aa4b2;
    --rule: #262e3a;
    --accent: #8db1e4;
    --accent-hover: #b0caee;
    --on-accent: #10151d;
    --tint: #18202b;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--serif); font-size: 1.125rem; line-height: 1.65;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 2.9rem); margin: 3.5rem 0 2rem; }
h2 { font-size: 1.6rem; margin: 4rem 0 1.25rem; }
h3 { font-size: 1.2rem; font-weight: 500; margin: 2rem 0 .5rem; }
p { margin: 0 0 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; padding-top: 20px; padding-bottom: 18px; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.brand-role { font-family: var(--sans); font-size: .78rem; color: var(--muted); }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px 24px; font-family: var(--sans); font-size: .88rem; font-weight: 500; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Home */
.home-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: center;
  padding: 4.5rem 0 4rem; border-bottom: 1px solid var(--rule);
}
.name { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 400; letter-spacing: -0.015em; margin: 0 0 .9rem; }
.role { font-family: var(--sans); font-size: .95rem; line-height: 1.5; color: var(--muted); margin-bottom: 1.8rem; }
.role a { color: var(--muted); }
.role a:hover { color: var(--ink); }
.lede { font-size: 1.35rem; font-weight: 300; line-height: 1.5; margin-bottom: 1.2rem; }
.home-text { max-width: 60ch; }
.actions { margin-top: 1.8rem; }
.portrait { width: 100%; height: auto; display: block; border-radius: 2px; background: var(--tint); }

.area-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
.area-list a { display: block; text-decoration: none; color: var(--ink); border-top: 1px solid var(--ink); padding: 14px 0 6px; }
.area-name { display: block; font-size: 1.2rem; line-height: 1.3; }
.area-n { display: block; font-family: var(--sans); font-size: .8rem; color: var(--muted); margin-top: 4px; }
.area-list a:hover .area-name { color: var(--accent); }
.more { margin-top: 1.25rem; font-family: var(--sans); font-size: .92rem; font-weight: 500; }

.button {
  display: inline-block; font-family: var(--sans); font-size: .88rem; font-weight: 500;
  background: var(--accent); color: var(--on-accent); text-decoration: none;
  padding: 10px 20px; border-radius: 3px; margin: 0 8px 8px 0; border: 1px solid var(--accent);
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.button.ghost { background: transparent; color: var(--accent); }
.button.ghost:hover { background: var(--tint); color: var(--accent); }

/* Publication entries */
.pubs { list-style: none; padding: 0; margin: 0; }
.entry { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 0 24px; padding: 20px 0; border-top: 1px solid var(--rule); }
.entry:first-child { border-top: 0; padding-top: 4px; }
.yr { font-family: var(--sans); font-weight: 500; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 4px; }
.body { max-width: 68ch; }
.title { display: block; font-size: 1.2rem; line-height: 1.38; color: var(--ink); text-decoration: none; margin-bottom: 6px; }
.title:hover { color: var(--accent); }
.by { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin: 0 0 2px; }
.venue { font-size: 1rem; color: var(--ink); margin: 0; }
.tag {
  display: inline-block; font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .02em;
  color: var(--accent); text-decoration: none; border: 1px solid var(--rule);
  padding: 0 7px; border-radius: 3px; margin-left: 6px; vertical-align: 2px;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }
.count { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin-left: 8px; letter-spacing: 0; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; position: sticky; top: 0; background: var(--page); padding: 12px 0; z-index: 2; border-bottom: 1px solid var(--rule); }
.filters[hidden] { display: none; }
.filters button {
  font: 500 .85rem var(--sans); color: var(--muted); background: transparent; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 3px; padding: 6px 13px;
}
.filters button:hover { color: var(--ink); border-color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--page); }
.area[hidden] { display: none; }
.area h2 { margin-top: 3rem; }

/* Presentations by year */
.year-group { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 0 24px; border-top: 1px solid var(--rule); padding: 22px 0 6px; }
.year { font-size: 1.6rem; margin: 0; font-variant-numeric: lining-nums tabular-nums; }
.talks { list-style: none; margin: 0; padding: 0; max-width: 68ch; }
.talks li { margin-bottom: 20px; }
.ptitle { font-size: 1.12rem; line-height: 1.38; margin: 0 0 4px; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; }
.prose { max-width: 66ch; }
.side { border-top: 1px solid var(--ink); padding-top: 6px; align-self: start; }
.side h2 { margin-top: .5rem; font-size: 1.3rem; }
.edu { margin: 0; }
.edu dt { font-family: var(--sans); font-size: .82rem; font-weight: 500; color: var(--muted); margin-top: 1.1rem; }
.edu dd { margin: .15rem 0 0; font-size: 1rem; line-height: 1.45; }
.edu strong { font-weight: 500; }
.interests { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.interests .entry { grid-template-columns: 3.5rem minmax(0, 1fr); gap: 0 16px; }

/* Teaching */
.school h2 { margin-bottom: .4rem; }
.school h2 a { color: var(--ink); text-decoration: none; }
.school h2 a:hover { color: var(--accent); }
.dept { color: var(--muted); font-family: var(--sans); font-size: .9rem; margin: 0 0 1rem; }
.courses { width: 100%; border-collapse: collapse; }
.courses td { padding: .65rem .8rem .65rem 0; border-top: 1px solid var(--rule); vertical-align: top; }
.courses tr:first-child td { border-top: 0; }
.courses .code { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--muted); white-space: nowrap; width: 8rem; padding-top: .8rem; }
.courses .terms { font-family: var(--sans); font-size: .85rem; color: var(--muted); text-align: right; white-space: nowrap; padding-top: .8rem; }

/* Contact */
.contact-card { border-top: 1px solid var(--ink); padding-top: 14px; max-width: 520px; }

/* Footer */
.site-footer { margin-top: 6rem; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.site-footer a { color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; padding-top: 20px; padding-bottom: 32px; }

/* Tablets */
@media (max-width: 900px) {
  .area-list { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .area-list li { margin-bottom: 12px; }
}
/* Phones */
@media (max-width: 720px) {
  body { font-size: 1.0625rem; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .home-hero { grid-template-columns: 1fr; gap: 28px; padding: 2.5rem 0 3rem; }
  .portrait { grid-row: 1; width: 44%; max-width: 180px; }
  .lede { font-size: 1.2rem; }
  .about-grid, .interests { grid-template-columns: 1fr; gap: 0; }
  .side { margin-top: 2rem; }
  .entry, .year-group { grid-template-columns: 1fr; }
  .yr { padding-top: 0; margin-bottom: 4px; }
  .year { margin-bottom: 10px; }
  .filters { overflow-x: auto; flex-wrap: nowrap; }
  .filters button { flex: 0 0 auto; }
  .courses td { display: block; border-top: 0; padding: 0; }
  .courses tr { display: block; padding: .7rem 0; border-top: 1px solid var(--rule); }
  .courses tr:first-child { border-top: 0; }
  .courses .code, .courses .terms { width: auto; text-align: left; white-space: normal; padding-top: 0; }
}

/* Navy accents: header, home intro, footer */
:root { --band: #0f2341; --band-muted: #a9b7cb; }
.site-header { background: var(--band); border-bottom-color: var(--band); }
.brand, .brand:hover { color: #fff; }
.brand-role { color: var(--band-muted); }
.site-nav a { color: var(--band-muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.home-hero { background: var(--band); color: #fff; box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); border-bottom: 0; padding-top: 3.5rem; padding-bottom: 4.5rem; }
.home-hero .name { color: #fff; }
.home-hero .role, .home-hero .role a { color: var(--band-muted); }
.home-hero .role a:hover { color: #fff; }
.home-hero .button { background: #fff; color: var(--band); border-color: #fff; }
.home-hero .button:hover { background: #dfe6f0; border-color: #dfe6f0; color: var(--band); }
.home-hero .button.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.home-hero .button.ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.home-hero .portrait { border-radius: 2px; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.site-footer { background: var(--band); border-top: 0; color: var(--band-muted); margin-top: 6rem; }
.site-footer a { color: var(--band-muted); }
@media (max-width: 720px) {
  .home-hero { padding-top: 2rem; padding-bottom: 3rem; }
}
