:root {
    --text: #000;
    --muted: #828282;
    --line: rgba(0, 0, 0, .1);
    --accent: #b509ac;
    --background: #fff;
}

* { box-sizing: border-box; }
html { font-size: 20px; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
}

.topbar nav {
    display: flex;
    justify-content: flex-end;
    gap: 26px;
    width: min(1400px, calc(100% - 64px));
    margin: 0 auto;
    padding: 16px 0;
    font-size: 1rem;
}

.topbar a { color: var(--text); }

main,
footer {
    width: min(1400px, calc(100% - 64px));
    margin-inline: auto;
}

main { padding: 64px 0 72px; }
section { padding: 30px 0; }
section + section { margin-top: 10px; }

.about {
    min-height: 280px;
    padding-top: 0;
}

.intro-copy,
.about p { max-width: 980px; }
.role { color: var(--muted); }

h1 {
    margin: 0 0 28px;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.025em;
}

h1 strong { font-weight: 700; }
h1 span { font-size: .5em; font-weight: 400; white-space: nowrap; }

h2 {
    margin: 0 0 22px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--line);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.3;
}

h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
}

.link-label {
    margin-left: 8px;
    font-size: .875rem;
    font-weight: 400;
    white-space: nowrap;
}

p { margin: 0 0 16px; }

.paper-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 26px;
    padding: 22px 0;
}

.paper-row + .paper-row { border-top: 1px solid var(--line); }

.paper-meta {
    color: var(--muted);
    font-size: .875rem;
}

.paper-meta time { display: block; }

.slides-link {
    display: inline-block;
    margin-top: 8px;
    font-size: .875rem;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 25px 0 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 620px) {
    html { font-size: 16px; }

    .topbar nav {
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
    }

    main,
    footer,
    .topbar nav { width: min(100% - 32px, 1400px); }
    main { padding-top: 46px; }
    .about { min-height: 240px; }

    .paper-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    footer { flex-direction: column; gap: 4px; }
}

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