/* Site styles: warm paper palette with ruled, framed layout.
   Theme follows the OS by default; the header toggle can pin light or dark
   by setting data-theme on <html>. Pages whose markup only works on a light
   background pin data-theme="light" in their HTML. */

:root {
    --bg: #ebe7e1;
    --surface: #f4f1ec;
    --text: #262c35;
    --strong: #12151a;
    --muted: #4c5159;
    --faint: #767a80;
    --line: #262c35;
    --rule: #cdc6bc;
    --accent: #204680;
    --accent-hover: #15325e;
    --accent-soft: #dedfe2;

    --font-sans: "Rethink Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --max: 76rem;
    --gutter: clamp(1rem, 4vw, 3rem);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg: #1f1e1d;
        --surface: #262624;
        --text: #e8e4df;
        --strong: #faf9f5;
        --muted: #b1ada5;
        --faint: #85817a;
        --line: #57534e;
        --rule: #35332f;
        --accent: #9bb6e6;
        --accent-hover: #c0d1f0;
        --accent-soft: #2b2c30;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #1f1e1d;
    --surface: #262624;
    --text: #e8e4df;
    --strong: #faf9f5;
    --muted: #b1ada5;
    --faint: #85817a;
    --line: #57534e;
    --rule: #35332f;
    --accent: #9bb6e6;
    --accent-hover: #c0d1f0;
    --accent-soft: #2b2c30;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4.5rem;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

h1,
h2,
h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--strong);
    margin: 0;
}

h1 {
    font-size: clamp(2.75rem, 7vw, 4.75rem);
    line-height: 1;
    letter-spacing: -0.035em;
}

.mono {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0;
}

.muted {
    color: var(--muted);
}

.hidden {
    display: none !important;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0.5rem;
    background: var(--surface);
    padding: 0.5rem 0.75rem;
    z-index: 100;
}

.skip-link:focus {
    left: 0.5rem;
}

/* Frame: every band spans the full width with a ruled top edge, and its
   content column carries vertical rules so the page reads as one grid. */

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

@media (min-width: 40rem) {
    .site-header .wrap,
    main > section > .wrap,
    .tool > .wrap,
    .site-footer .wrap {
        border-left: 1px solid var(--line);
        border-right: 1px solid var(--line);
    }
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.site-header .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.75rem;
    min-height: 3.75rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.brand {
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: -0.02em;
    color: var(--strong);
    text-decoration: none;
}

.brand:hover {
    color: var(--strong);
}

.site-nav {
    order: 2;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--strong);
    text-decoration: underline;
}

.theme-toggle {
    order: 1;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 0;
    cursor: pointer;
}

.theme-toggle:hover {
    background: var(--text);
    color: var(--bg);
}

.theme-toggle svg {
    width: 1.0625rem;
    height: 1.0625rem;
    display: none;
}

.theme-toggle .icon-system,
:root[data-theme-choice="light"] .theme-toggle .icon-sun,
:root[data-theme-choice="dark"] .theme-toggle .icon-moon {
    display: block;
}

:root[data-theme-choice="light"] .theme-toggle .icon-system,
:root[data-theme-choice="dark"] .theme-toggle .icon-system {
    display: none;
}

/* Menu button: added by js/theme.js, shown only on narrow screens. */
.menu-toggle {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 0;
    cursor: pointer;
}

.menu-toggle svg {
    width: 1.125rem;
    height: 1.125rem;
    overflow: visible;
}

.menu-toggle path {
    transform-origin: 12px 12px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-open .menu-toggle .bar-top {
    transform: rotate(45deg) translateY(5px);
}

.site-header.is-open .menu-toggle .bar-mid {
    opacity: 0;
}

.site-header.is-open .menu-toggle .bar-bottom {
    transform: rotate(-45deg) translateY(-5px);
}

@media (max-width: 47.99rem) {
    .site-header.has-menu .wrap {
        column-gap: 0.5rem;
    }

    .site-header.has-menu .site-nav {
        order: 3;
        display: none;
        flex-direction: column;
        gap: 0;
        font-size: 0.9375rem;
    }

    .site-header.has-menu.is-open .site-nav {
        display: flex;
    }

    .site-header.has-menu .site-nav a {
        padding: 0.8125rem 0;
        border-top: 1px solid var(--rule);
    }

    .site-header.has-menu .site-nav a.is-active {
        text-decoration: none;
    }

    .site-header.has-menu .site-nav a.is-active::before {
        content: "→ ";
    }
}

@media (min-width: 48rem) {
    .site-nav {
        order: 1;
        width: auto;
        margin-left: auto;
    }

    .theme-toggle {
        order: 2;
        margin-left: 0;
    }

    .menu-toggle {
        display: none;
    }
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.2;
    color: var(--bg);
    background: var(--text);
    border: 1px solid var(--text);
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.button:hover {
    color: var(--text);
    background: transparent;
}

.button.secondary {
    color: var(--text);
    background: transparent;
}

.button.secondary:hover {
    color: var(--bg);
    background: var(--text);
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
}

.hero .wrap {
    position: relative;
    z-index: 1;
    padding: 0;
}

/* Skill icons drifting behind the hero; populated from the Skills list in index.html.
   The layer's opacity sets how faint they are, so the keyframes only fade 0 -> 1 -> 0
   (custom properties inside @keyframes are unreliable in Safari). */
.hero-float {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    pointer-events: none;
}

.hero-float svg {
    position: absolute;
    width: 2rem;
    height: 2rem;
    fill: var(--faint);
    opacity: 0;
    will-change: transform, opacity;
    animation-name: hero-float;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes hero-float {
    0% {
        opacity: 0;
        transform: translate3d(0, 1.5rem, 0) rotate(-6deg);
    }
    35%,
    65% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate3d(0.75rem, -2.5rem, 0) rotate(6deg);
    }
}

/* On phones the icons sit directly behind the text, so keep them quieter. */
@media (max-width: 47.99rem) {
    .hero-float {
        opacity: 0.09;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-float {
        opacity: 0.08;
    }

    .hero-float svg {
        animation: none;
        opacity: 1;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.hero-main {
    padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter) clamp(2.5rem, 6vw, 4.5rem);
}

.hero-aside {
    order: -1;
    padding: 2rem var(--gutter) 0;
}

.hero-photo {
    width: 8.5rem;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid var(--line);
}

@media (min-width: 48rem) {
    .hero-grid {
        grid-template-columns: 3fr 1.15fr;
    }

    .hero-aside {
        order: 0;
        padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter);
        border-left: 1px solid var(--line);
    }

    .hero-photo {
        width: 100%;
    }
}

.eyebrow {
    color: var(--muted);
    margin: 0 0 1.25rem;
}

.lede {
    font-size: clamp(1.1875rem, 2.2vw, 1.4375rem);
    line-height: 1.5;
    color: var(--muted);
    max-width: 40rem;
    margin: 1.5rem 0 0;
}

.lede strong {
    color: var(--strong);
    font-weight: 500;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    margin-top: 2.25rem;
}

.actions .links {
    margin-left: 0.25rem;
}

@media (max-width: 36rem) {
    .actions .button {
        flex: 1 1 9rem;
        justify-content: center;
    }

    .actions .links {
        width: 100%;
        margin-left: 0;
    }
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid var(--line);
}

.stats > div {
    padding: 1.5rem var(--gutter);
    border-bottom: 1px solid var(--line);
}

.stats > div:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.stats > div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

@media (min-width: 48rem) {
    .stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .stats > div {
        border-bottom: 0;
        border-right: 1px solid var(--line);
    }

    .stats > div:last-child {
        border-right: 0;
    }
}

.stats dt {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1;
    color: var(--strong);
}

.stats dd {
    margin: 0.625rem 0 0;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.45;
}

/* Sections */

.section {
    border-top: 1px solid var(--line);
}

.section > .wrap {
    padding-top: clamp(2.5rem, 6vw, 4.5rem);
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Let long words (emails, URLs) wrap instead of widening the grid on small phones. */
.section-grid > * {
    min-width: 0;
}

@media (min-width: 48rem) {
    .section-grid {
        grid-template-columns: 13rem 1fr;
        gap: 3rem;
    }
}

.section-label {
    margin: 0;
    color: var(--faint);
}

.section-label h2 {
    font-size: 2rem;
    margin-top: 0.375rem;
}

.prose p {
    margin: 0 0 1.125rem;
    max-width: 42rem;
}

.prose p:last-child {
    margin-bottom: 0;
}

/* Experience */

.entries {
    list-style: none;
    padding: 0;
    margin: 0;
}

.entry {
    padding: 0 0 2.25rem;
}

.entry + .entry {
    padding-top: 2.25rem;
    border-top: 1px solid var(--rule);
}

.entry:last-child {
    padding-bottom: 0;
}

.entry-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 1rem;
}

.entry h3 {
    font-size: 1.375rem;
}

.entry-org {
    color: var(--muted);
    margin: 0.125rem 0 0;
}

.entry-date {
    color: var(--faint);
    white-space: nowrap;
}

.entry ul {
    margin: 1rem 0 0;
    padding-left: 1.125rem;
    max-width: 44rem;
}

.entry li {
    margin-bottom: 0.4375rem;
}

.entry li::marker {
    color: var(--faint);
}

.stack {
    margin: 1rem 0 0;
    color: var(--faint);
}

/* Projects */

.projects {
    display: grid;
    grid-template-columns: 1fr;
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

@media (min-width: 40rem) {
    .projects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.project {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.project h3 {
    font-size: 1.3125rem;
}

.project p {
    margin: 0.5rem 0 1rem;
    color: var(--muted);
    font-size: 1rem;
}

.project .stack {
    margin-top: auto;
    padding-bottom: 1rem;
    font-size: 0.8125rem;
}

.project a {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

/* Publications */

.pub-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.75rem;
    color: var(--muted);
    margin: 0 0 1.75rem;
}

.pub-summary strong {
    color: var(--strong);
    font-weight: 500;
}

.pubs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pub {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 0 1rem;
    padding: 1.125rem 0;
    border-top: 1px solid var(--rule);
}

.pub:first-child {
    border-top: 0;
    padding-top: 0;
}

.pub-year {
    color: var(--faint);
    padding-top: 0.2rem;
}

.pub-title {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--strong);
    text-decoration: none;
}

.pub-title:hover {
    color: var(--accent);
    text-decoration: underline;
}

.pub-authors {
    margin: 0.3125rem 0 0;
    color: var(--muted);
    font-size: 0.9375rem;
}

.pub-authors b {
    color: var(--strong);
    font-weight: 600;
}

.pub-meta {
    margin: 0.25rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 1rem;
}

.pub-venue {
    font-style: italic;
    font-size: 0.9375rem;
    color: var(--muted);
}

.pub-cites {
    color: var(--accent);
}

/* On phones the year sits above the title so titles get the full width. */
@media (max-width: 36rem) {
    .pub {
        grid-template-columns: 1fr;
    }

    .pub-year {
        padding-top: 0;
        margin-bottom: 0.25rem;
    }
}

.pubs-footnote {
    margin: 1.75rem 0 0;
    color: var(--faint);
}

/* Skills */

.skills {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem 3rem;
    margin: 0;
}

@media (min-width: 36rem) {
    .skills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.skills dt {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--faint);
}

.skills dd {
    margin: 0.625rem 0 0;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    padding: 0.3125rem 0.625rem;
    font-size: 0.9375rem;
    line-height: 1.3;
    border: 1px solid var(--rule);
}

.skill-icon {
    width: 1rem;
    height: 1rem;
    flex: none;
    fill: currentColor;
    color: var(--muted);
}

/* Contact */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 56rem) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.contact-list li {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 1rem;
    overflow-wrap: anywhere;
    padding: 0.625rem 0;
    border-top: 1px solid var(--rule);
}

.contact-list li:last-child {
    border-bottom: 1px solid var(--rule);
}

.contact-list .mono {
    color: var(--faint);
    padding-top: 0.2rem;
}

/* Forms */

.form {
    display: grid;
    gap: 1.125rem;
}

.form label,
.field > span,
.field > label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: 0.4375rem;
}

.form input,
.form textarea,
.field input,
.field select {
    width: 100%;
    min-width: 0;
    padding: 0.6875rem 0.8125rem;
    font: inherit;
    font-size: 1rem;
    color: var(--strong);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 0;
}

.form input:focus,
.form textarea:focus,
.field input:focus,
.field select:focus {
    border-color: var(--line);
    outline: none;
    box-shadow: 0 0 0 1px var(--line);
}

.form textarea {
    resize: vertical;
    min-height: 7.5rem;
}

.form .button {
    justify-self: start;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    padding-top: 1.75rem;
    padding-bottom: 2.25rem;
}

.site-footer .links a {
    color: var(--muted);
}

/* Tool pages */

.crumbs {
    color: var(--faint);
    margin: 0 0 1rem;
}

.crumbs a {
    color: var(--muted);
}

.tool > .wrap {
    padding-top: clamp(2.5rem, 6vw, 4rem);
    padding-bottom: clamp(3rem, 8vw, 5rem);
}

/* Calculators read best in a narrow column inside the full-width frame. */
.tool:not(.tool-wide) > .wrap > * {
    max-width: 48rem;
}

.tool h1 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
}

.tool .lede {
    font-size: 1.125rem;
    margin-top: 1rem;
}

.panel {
    margin-top: 2.25rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    background: var(--surface);
    border: 1px solid var(--line);
}

.panel h2 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
}

.fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.125rem 1.25rem;
}

@media (min-width: 36rem) {
    .fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.fields + .fields {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
}

.field {
    display: block;
    min-width: 0;
}

.field input,
.field select {
    background: var(--bg);
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group select {
    width: auto;
    flex: 0 0 auto;
}

.panel > .button,
.panel .button-row {
    margin-top: 1.5rem;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.result {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
}

.result h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.result p {
    margin: 0 0 0.5rem;
}

.result p:last-child {
    margin-bottom: 0;
}

.notes {
    margin-top: 2.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--rule);
    color: var(--muted);
}

.notes h2 {
    font-size: 1.25rem;
    margin: 0 0 0.625rem;
}

.notes h2:not(:first-child) {
    margin-top: 1.75rem;
}

.notes p {
    margin: 0 0 0.5rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.chip {
    padding: 0.375rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 0;
    cursor: pointer;
}

.chip:hover {
    color: var(--strong);
    border-color: var(--line);
}

/* Tools directory */

.tool .lede + .tool-group {
    margin-top: 3rem;
}

.tool-group + .tool-group {
    margin-top: 3rem;
}

.tool-group h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tool-list {
    display: grid;
    grid-template-columns: 1fr;
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

@media (min-width: 40rem) {
    .tool-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.tool-list li {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.tool-card {
    display: block;
    height: 100%;
    padding: 1.5rem;
    color: var(--text);
    text-decoration: none;
}

.tool-card:hover {
    color: var(--text);
    background: var(--surface);
}

.tool-card h3 {
    font-size: 1.25rem;
}

.tool-card p {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 1rem;
}

.tool-card .mono {
    display: block;
    margin-top: 1rem;
    color: var(--accent);
}

/* Citation results */

.cite-list {
    display: grid;
    margin-top: 0.5rem;
}

.cite {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.25rem 1rem;
    padding: 1.125rem 0;
    border-top: 1px solid var(--rule);
}

.cite .meta {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    color: var(--faint);
}

.cite h3 {
    grid-column: 1;
    font-size: 1.125rem;
    line-height: 1.35;
}

.cite-count {
    grid-column: 2;
    grid-row: 1 / span 2;
    text-align: right;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--strong);
}

.cite-count span {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--faint);
    margin-top: 0.3125rem;
}

.cite .authors,
.cite .cite-links {
    grid-column: 1 / -1;
    margin: 0;
}

.cite .authors {
    color: var(--muted);
    font-size: 0.9375rem;
}

.cite .cite-links {
    display: flex;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.empty {
    color: var(--muted);
    padding: 1rem 0;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Education honours */

.subhead {
    font-size: 1.125rem;
    margin: 2.5rem 0 0.75rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--rule);
}

.honours {
    margin: 0;
    padding-left: 1.125rem;
    max-width: 44rem;
}

.honours li {
    margin-bottom: 0.4375rem;
}

.honours li::marker {
    color: var(--faint);
}

.honours + .subhead {
    margin-top: 2rem;
    padding-top: 0;
    border-top: 0;
}
