/* degasperin.com — Source Sans 3 text, a fixed left column over the radio relics of Abell 3667. */

@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 300; font-display: swap;
  src: url(../fonts/source-sans-3-latin-300-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 300; font-display: swap;
  src: url(../fonts/source-sans-3-latin-ext-300-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/source-sans-3-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/source-sans-3-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/source-sans-3-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/source-sans-3-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/source-sans-3-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/source-sans-3-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/jetbrains-mono-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }


/* Tokens ------------------------------------------------------------- */
:root {
  --paper: #fbf8f3;
  --panel: rgba(251, 248, 243, .985);
  --ink: #2b201c;
  --muted: #6f625a;
  --rule: #e6dccf;
  --accent: #b42318;
  --band: #e3a72f;
  --heading: #8f1d1d;
  --on-heading: #ffffff;
  --warm: #9a6200;   /* deep gold */
  --code-bg: #f3ece2;
  --shadow: 0 30px 80px rgba(20, 6, 3, .45);
  --rail-ink: #f6efe9;
  --rail-muted: #c4b4a8;
  --rail-rule: rgba(255, 230, 210, .16);
  --measure: 40rem;
  --wide: 54rem;
  color-scheme: light;
}
/* Dark colours: follow the system setting unless the visitor picked light or dark with the button. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1a1210;
    --panel: rgba(24, 15, 13, .9);
    --ink: #efe4dd;
    --muted: #b5a398;
    --rule: #3b2c27;
    --accent: #f2554a;
    --band: #e9b44c;
    --heading: #ef4b40;
    --on-heading: #1a0b0b;
    --warm: #ecb94f;   /* gold */
    --code-bg: #241815;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1a1210;
  --panel: rgba(24, 15, 13, .9);
  --ink: #efe4dd;
  --muted: #b5a398;
  --rule: #3b2c27;
  --accent: #f2554a;
  --band: #e9b44c;
  --heading: #ef4b40;
  --on-heading: #1a0b0b;
  --warm: #ecb94f;   /* gold */
  --code-bg: #241815;
  color-scheme: dark;
}

/* Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #040203;
  color: var(--ink);
  font: 400 1.08rem/1.6 "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: lining-nums proportional-nums;
  text-rendering: optimizeLegibility;
}
/* Radio relics in Abell 3667 behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(4, 2, 3, .55), rgba(4, 2, 3, .05) 45%, rgba(4, 2, 3, .2)),
              url(../media/background.webp) 30% 45% / cover no-repeat, #040203;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--band); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); color: var(--ink); padding: .25rem .5rem; z-index: 2; }

.layout { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); }

/* Left column -------------------------------------------------------- */
.rail {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; padding: 2.2rem 1.25rem 1.4rem 1.1rem; color: var(--rail-ink);
}
.portrait { display: block; width: 8.75rem; }
.portrait img {
  display: block; width: 8.75rem; height: 8.75rem; object-fit: cover;
  border-radius: 50%; border: 3px solid var(--band); box-shadow: 0 0 0 6px rgba(227, 167, 47, .16);
}
.rail .name { margin: 1.1rem 0 .35rem; font-size: 1.55rem; line-height: 1.15; font-weight: 600; letter-spacing: -.005em; color: #fff; }
.rail .role { margin: 0; font-size: .92rem; line-height: 1.45; color: var(--rail-muted); }
.rail .role a { color: inherit; text-decoration: underline; text-underline-offset: .18em; }
.rail .role a:hover { color: #fff; }
.logo-chip { display: block; width: 9.5rem; margin: 1.4rem 0 1.5rem; }
.logo-chip img { display: block; width: 100%; height: auto; }
.menu { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rail-rule); }
.menu li { margin: 0; }
.menu a {
  display: block; margin-left: -1px; padding: .24rem 0 .24rem 1rem; border-left: 2px solid transparent;
  color: var(--rail-muted); text-decoration: none; font-size: 1.02rem;
}
.menu a:hover { color: #fff; }
.menu a[aria-current] { color: #fff; border-left-color: var(--band); }
.rail-links { list-style: none; margin: 1.3rem 0 1.3rem; padding: 0; }
.rail-links li { margin: .25rem 0; }
.rail-links a { display: inline-flex; align-items: center; gap: .6rem; color: var(--rail-ink); text-decoration: none; font-size: .98rem; }
.rail-links a:hover { color: var(--band); }
.rail-links svg, .theme-toggle svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .45rem;
  font: inherit; font-size: .88rem; color: var(--rail-muted); background: rgba(20, 8, 5, .35); cursor: pointer;
  border: 1px solid var(--rail-rule); border-radius: 999px; padding: .22rem .8rem .22rem .62rem;
}
.theme-toggle:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.theme-toggle .moon { display: none; }
.theme-toggle[data-next="dark"] .sun { display: none; }
.theme-toggle[data-next="dark"] .moon { display: inline; }

/* Content panel ---------------------------------------------------------- */
main { padding: 1.5rem 1.5rem 1.5rem .5rem; min-width: 0; max-width: 74rem; }
/* Each section is its own card; the sky shows in the gaps between them */
.section {
  scroll-margin-top: 1.5rem; padding: 2.4rem clamp(1.25rem, 4.5vw, 4rem) 2.6rem;
  background: var(--panel); border-radius: 10px; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.section > :last-child { margin-bottom: 0; }
.section > :first-child { margin-top: 0; }
.section > * { max-width: var(--measure); }
.section > .metrics, .section > .pubhead, .section > .publist, .section > .cv,
.section > .gallery, .section > pre, .section > .postlist, .section > .affiliations { max-width: var(--wide); }
.section + .section { margin-top: 2.5rem; }

/* Page titles sit on the background, outside the cards */
.page-title { color: #fff; font-weight: 600; font-size: 2.4rem; line-height: 1.15; letter-spacing: -.01em; margin: .9rem 0 1rem .1rem; text-shadow: 0 2px 14px rgba(0, 0, 0, .65); }
.hero-title { max-width: 40rem; font-size: clamp(2.1rem, 4vw, 3.1rem); }
.section + .page-title { margin-top: 2.6rem; }
.crumb { margin: .6rem 0 -.6rem .1rem; font-size: .95rem; }
.crumb a { color: var(--rail-ink); }
h2 { color: var(--heading); font-weight: 300; font-size: 2.15rem; line-height: 1.2; margin: 0 0 1.4rem; letter-spacing: -.008em; }
h3 { color: var(--warm); font-weight: 600; font-size: 1.15rem; line-height: 1.3; margin: 2.2rem 0 .7rem; }
h4 { color: var(--ink); font-weight: 600; font-size: 1.12rem; margin: 1.4rem 0 .4rem; }
h2 a, h3 a { color: inherit; text-decoration-color: var(--band); }
p, ul, ol { margin: 0 0 1.05rem; }
li { margin: .25rem 0; }
main ul > li::marker { color: var(--band); content: "■  "; font-size: .8em; }
main ol > li::marker { color: var(--heading); font-weight: 600; }
strong { font-weight: 600; }

/* The frequency ruler under the headline */
.ruler { position: relative; height: 2.6rem; margin: 1.6rem 0 1.6rem; max-width: var(--wide); }
.ruler .axis { position: absolute; left: 0; right: 0; top: 1.05rem; border-top: 1px solid var(--ink); }
.ruler .band { position: absolute; top: .55rem; height: .5rem; background: var(--band); }
.ruler .tick { position: absolute; top: 1.05rem; width: 1px; height: .3rem; background: var(--muted); }
.ruler .tick.major { height: .55rem; background: var(--ink); }
.ruler .label { position: absolute; top: 1.55rem; font-size: .8rem; color: var(--muted); white-space: nowrap; transform: translateX(-50%); font-variant-numeric: lining-nums; }
.ruler .label.start { transform: none; }

/* Images */
img { max-width: 100%; height: auto; }
main img:not(.logo) { border: 3px solid #fff; box-shadow: 0 0 0 1px var(--rule); }
.aside { float: right; width: 12rem; margin: .3rem 0 1rem 1.5rem; }
.narrow { max-width: 14rem; }
.logo { height: 3.2rem; width: auto; display: block; margin-bottom: .6rem; }
.affiliations { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; }
.affiliations p { margin: 0; }
figure { margin: 1.5rem 0; }
figcaption { font-size: .95rem; color: var(--muted); font-style: italic; margin-top: .35rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.25rem; align-items: start; }
.gallery figure { margin: 0; }
.gallery img { display: block; }

code, pre { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: .82em; font-variant-numeric: normal; }
:not(pre) > code { background: var(--code-bg); padding: .08em .3em; border-radius: 3px; }
pre { background: var(--code-bg); padding: .9rem 1rem; overflow-x: auto; line-height: 1.5; border-radius: 4px; }

/* Research: recent papers with figures */
.section > .paper { max-width: var(--wide); }
.paper { margin: 1.4rem 0 0; padding: 1.6rem 0 0; border-top: 1px solid var(--rule); }
.section > .paper:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.paper h4 { margin: 0 0 .25rem; font-size: 1.2rem; line-height: 1.35; }
.paper h4 a { color: var(--heading); text-decoration-color: var(--band); }
.paper .paper-ref { margin: 0 0 .8rem; color: var(--muted); font-size: .92rem; }
.paper > p { max-width: var(--measure); }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 .4rem; }
.figs figure { margin: 0; }
.figs img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #000; }
@media (max-width: 40rem) { .figs { grid-template-columns: 1fr; } }

/* Publications ---------------------------------------------------------- */
.metrics { width: 100%; max-width: 40rem; border-collapse: collapse; margin: 0 0 2.6rem; font-variant-numeric: lining-nums tabular-nums; }
.metrics caption { caption-side: bottom; text-align: left; font-size: .85rem; color: var(--muted); padding-top: .55rem; }
.metrics th, .metrics td { padding: .55rem .9rem .55rem 0; border-bottom: 1px solid var(--rule); }
.metrics thead th { font-size: .9rem; font-weight: 600; color: var(--muted); text-align: right; border-bottom-color: var(--ink); }
.metrics tbody th { text-align: left; font-weight: 400; color: var(--ink); }
.metrics td { text-align: right; font-size: 1.6rem; font-weight: 300; line-height: 1.1; color: var(--heading); }
.metrics td:last-child, .metrics thead th:last-child { padding-right: 0; }

.pubhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin-bottom: .6rem; }
.pubhead h3 { margin: 0; }
.pubfilter { display: inline-flex; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; }
.pubfilter button {
  font: inherit; font-size: .92rem; color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: .28rem .9rem; border-radius: 999px;
}
.pubfilter button:hover { color: var(--ink); }
.pubfilter button[aria-pressed="true"] { background: var(--heading); color: var(--on-heading); }
.pubfilter .count { opacity: .7; font-size: .85em; margin-left: .15rem; font-variant-numeric: lining-nums; }

.publist { list-style: none; margin: 0 0 2rem; padding: 0; }
.publist > li.pub { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: 1.1rem; margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.publist > li.pub::marker { content: none; }
.publist[data-filter="first"] > [data-role="co"], .publist[data-filter="co"] > [data-role="first"] { display: none; }
.pub .year { color: var(--warm); font-variant-numeric: lining-nums; padding-top: .05rem; }
.pub .title { color: var(--ink); text-decoration-color: var(--rule); font-size: 1.06rem; }
.pub .title:hover { color: var(--accent); text-decoration-color: currentColor; }
.pub .authors, .pub .venue, .pub .links, .pub .extra { display: block; font-size: .92rem; line-height: 1.5; }
.pub .authors { color: var(--muted); margin-top: .15rem; }
.pub .authors strong { color: var(--ink); }
.pub .venue { font-style: italic; }
.pub .links { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .85rem; margin-top: .35rem; }
.pub .links a { text-decoration-color: var(--rule); }
.pub .extra { margin-top: .3rem; }
.pub.note { color: var(--muted); }
.chip { font-size: .8rem; line-height: 1.5; padding: 0 .5rem; border-radius: 4px; border: 1px solid; }
.chip.first { color: var(--warm); border-color: var(--warm); }
.chip.co { color: var(--heading); border-color: color-mix(in srgb, var(--heading) 45%, transparent); }

/* Talks: date, kind, title, venue */
.section > .talks { max-width: var(--wide); }
.talks { list-style: none; margin: 0 0 .5rem; padding: 0; }
.talks > li.talk { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); column-gap: 1rem; margin: 0; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.talks > li.talk::marker { content: none; }
.talk .date { color: var(--warm); font-size: .92rem; font-variant-numeric: lining-nums; padding-top: .12rem; white-space: nowrap; }
.talk .kind { display: inline-block; font-size: .74rem; line-height: 1.45; padding: 0 .45rem; border-radius: 4px; border: 1px solid; margin-right: .35rem; vertical-align: .12em; white-space: nowrap; }
.talk .kind.invited { background: var(--band); border-color: var(--band); color: #2a1c02; font-weight: 600; }
.talk .kind.talk { color: var(--heading); border-color: color-mix(in srgb, var(--heading) 45%, transparent); }
.talk .kind.lecture { color: var(--warm); border-color: var(--warm); }
.talk .kind.poster { color: var(--muted); border-color: var(--rule); }
.talk .ttitle { font-size: 1.02rem; color: var(--ink); }
.talk .ttitle a { color: inherit; text-decoration-color: var(--rule); }
.talk .ttitle a:hover { color: var(--accent); }
.talk .where { display: block; font-size: .9rem; color: var(--muted); margin-top: .1rem; }
#talks h3 { margin-top: 1.8rem; }

/* CV: dates in the gutter, a thin timeline with a dot per entry */
.cv-entry { display: grid; grid-template-columns: 7rem minmax(0, var(--measure)); column-gap: 1.25rem; }
.cv-entry > .when { margin: 0; padding-top: .15rem; color: var(--warm); font-size: .98rem; font-variant-numeric: lining-nums; text-align: right; white-space: nowrap; }
.cv-entry.now > .when { font-weight: 600; }
.cv-entry > div { position: relative; border-left: 2px solid var(--rule); padding: 0 0 1.5rem 1.4rem; }
.cv-entry > div::before { content: ""; position: absolute; left: -7px; top: .5rem; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--band); }
.cv-entry.now > div::before { background: var(--band); }
.cv-entry:last-child > div { padding-bottom: .4rem; }
.cv-entry h4 { font-size: 1.18rem; margin: 0 0 .2rem; line-height: 1.35; }
.cv-entry .where { color: var(--muted); font-size: .98rem; line-height: 1.5; margin: 0 0 .6rem; }
.cv-entry ul { font-size: .98rem; margin: 0 0 .2rem; padding-left: 1.1rem; }
.cv-entry li { margin: .15rem 0; }

/* Blog */
.yeargroup { display: grid; grid-template-columns: 5rem minmax(0, var(--measure)); column-gap: 1.25rem; margin: 0 0 1.4rem; }
.yeargroup > .year { grid-column: 1; margin: 0; font-weight: 300; font-size: 1.45rem; line-height: 1.25; color: var(--warm); font-variant-numeric: lining-nums; }
.yeargroup > ul { grid-column: 2; list-style: none; margin: 0; padding: 0; }
.yeargroup > ul > li::marker { content: none; }
.postlist .post { margin: 0 0 .9rem; }
.postlist .post a { font-size: 1.1rem; }
.postlist .meta, .postmeta { display: block; font-size: .92rem; color: var(--muted); }
.postmeta { margin: 0 0 1.6rem; }
.postnav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .98rem; max-width: var(--wide); }
.postnav .next { text-align: right; margin-left: auto; }

footer { margin-top: 1.5rem; padding: .4rem .2rem; color: var(--rail-muted); font-size: .9rem; }
footer p { margin: 0; }

/* Narrow screens: the left column becomes a header -------------------- */
@media (max-width: 61.99rem) {
  .layout { display: block; }
  .rail { position: relative; height: auto; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 1rem; padding: 1.4rem 1rem 1.1rem; }
  .portrait { grid-row: 1 / 3; width: 5.5rem; }
  .portrait img { width: 5.5rem; height: 5.5rem; box-shadow: none; }
  .rail .name { margin: .25rem 0 .2rem; font-size: 1.3rem; padding-right: 5.5rem; }
  .rail .role { font-size: .84rem; }
  .logo-chip { grid-column: 1 / -1; width: 7.5rem; margin: 1rem 0 .6rem; }
  .rail nav { grid-column: 1 / -1; }
  .menu { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; border-left: 0; }
  .menu a { margin: 0; padding: .2rem 0; border-left: 0; border-bottom: 2px solid transparent; }
  .menu a[aria-current] { border-bottom-color: var(--band); }
  .rail-links { grid-column: 1 / -1; display: flex; gap: 1.3rem; margin: .7rem 0 0; }
  .theme-toggle { position: absolute; top: 1.2rem; right: 1rem; margin: 0; }
  main { padding: 0 .5rem .5rem; }
  .section { padding: 2rem 1.1rem 1.6rem; }
  .section + .section { margin-top: 1.5rem; }
  h2 { font-size: 1.85rem; }
  .page-title { font-size: 1.9rem; margin-top: 1rem; }
  .aside { float: none; width: 100%; max-width: 18rem; margin: 0 0 1rem; }
}
@media (max-width: 40rem) {
  body { font-size: 1.06rem; }
  .publist > li.pub { grid-template-columns: 1fr; }
  .pub .year { font-size: .9rem; }
  .cv-entry, .yeargroup { display: block; }
  .cv-entry > .when { text-align: left; padding: 0 0 .2rem 1.4rem; }
  .yeargroup > .year { margin-bottom: .4rem; }
  .metrics td { font-size: 1.3rem; }
}

@media print {
  body::before, .rail, .skip { display: none; }
  .layout { display: block; }
  main { padding: 0; }
  .section { box-shadow: none; background: #fff; color: #000; }
}
