@charset "UTF-8";
:root { --radius: 16px; --shadow: 0 6px 24px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04); }

* { box-sizing: border-box; }

html { font-size: 16px; }

body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.6; color: #0b0b0c; background: #fbfaf9; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

a { color: #0b0b0c; text-decoration: none; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }

.site-header { position: sticky; top: 0; backdrop-filter: saturate(180%) blur(12px); background: rgba(251, 250, 249, 0.8); border-bottom: 1px solid #ececec; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.site-header .brand { font-weight: 700; letter-spacing: .2px; }
.site-header .nav a { margin-left: 18px; padding: 6px 10px; border-radius: 10px; }
.site-header .nav a.active, .site-header .nav a:hover { background: white; box-shadow: var(--shadow); text-decoration: none; }

.site-main { padding: 36px 0 64px; }

.site-footer { border-top: 1px solid #ececec; background: white; }

.site-footer .wrap { padding: 24px 20px; color: #6b6b6f; }

html, body { height: 100%; }

body { display: flex; flex-direction: column; }

/* Make the main content grow to fill the remaining height */
.site-main { flex: 1 0 auto; }

/* Footer stays at the end, but only after content */
.site-footer { flex-shrink: 0; }

.section-title { margin: 28px 6px 14px; font-size: 1.25rem; color: #6b6b6f; font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

.card { background: white; border: 1px solid #ececec; padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.card h3 { margin: 6px 0 6px; font-size: 1.05rem; }
.card p { margin: 0.2rem 0 0.5rem; }

.page, .post, .project { background: white; border: 1px solid #ececec; padding: clamp(18px, 3vw, 28px); border-radius: var(--radius); box-shadow: var(--shadow); }

.list { padding-left: 18px; }

.list li { margin: 6px 0; }

.muted { color: #6b6b6f; }

.center { text-align: center; padding: 60px 0; }

.btn { display: inline-block; padding: 10px 14px; border-radius: 12px; background: #0b0b0c; color: white; font-weight: 600; letter-spacing: .2px; border: 1px solid rgba(0, 0, 0, 0.85); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); transition: transform .06s ease-in-out; }

.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn.ghost { background: white; color: #0b0b0c; border: 1px solid #ececec; }

.btn.ghost:hover { box-shadow: var(--shadow); }

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; background: #f6f6f7; border: 1px solid #ececec; border-radius: 10px; padding: 0 4px; }

pre { padding: 12px; overflow-x: auto; }

.hero { padding: 24px; background: white; border: 1px solid #ececec; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero h1 { margin-top: 0; letter-spacing: -0.02em; font-size: clamp(28px, 4.2vw, 44px); }
.hero .lede { font-size: 1.05rem; }
.hero .cta-row { margin-top: 12px; }

.hero { background: linear-gradient(180deg, #ffffff, #fff8f3 40%); border: 1px solid #ececec; border-radius: var(--radius); box-shadow: var(--shadow); }

.lede { margin: 0 0 8px; font-size: 1.06rem; }

a:hover { text-decoration: none; }

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.btn.ghost { background: #fff; border: 1px solid #ececec; }

.btn.ghost:hover { background: #fff9f5; }

/* Layout for avatar + text */
.hero-grid { display: grid; grid-template-columns: 144px 1fr; gap: 18px; align-items: start; }

/* Add breathing room between homepage block and footer */
.hero-grid.intro { margin-bottom: 2rem; /* tweak 4–8rem as you like */ }

/* Keep avatar left and neat */
.avatar { width: 144px; height: 144px; border-radius: 24px; object-fit: cover; border: 1px solid #ececec; box-shadow: var(--shadow); background: #fff; }

/* Make links look obviously clickable in the intro + roles */
/* underline only normal text links inside intro/roles */
.roles a { text-decoration: underline; text-underline-offset: 2px; }

.roles a:hover { color: #ff7a59; }

.roles { list-style: none; padding: 0; margin: 8px 0 14px; }
.roles .role { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.roles .dates { color: #6b6b6f; font-size: .85rem; white-space: nowrap; /* keeps '2024 – present' on one line */ }

/* buttons never underlined */
.btn, .btn:hover { text-decoration: none !important; }

.intro a:hover { color: #ff7a59; }

/* Roles list sits snugly under the intro line */
.roles { list-style: none; padding: 0; margin: 8px 0 14px; }

.roles li { margin: 4px 0; }

/* Accessibility: focus styles for keyboard users */
a:focus-visible, button:focus-visible { outline: 2px solid rgba(0, 0, 0, 0.25); outline-offset: 2px; }

.minibib { margin: 0 0 8px; color: #6b6b6f; font-size: .9rem; line-height: 1.35; }

.minibib .refnum { font-weight: 600; margin-right: 6px; }

.refcite { text-decoration: none; font-weight: 600; padding: 0 2px; border-radius: 4px; }

.refcite:hover { background: #fff9f5; }

/* subtle */
.paper-list { display: grid; gap: 16px; }

.paper-card { padding: 12px 0 10px; border-bottom: 1px solid #ececec; }

.paper-card:last-child { border-bottom: 0; }

.paper-num { color: #6b6b6f; margin-right: .5rem; font-variant-numeric: tabular-nums; }

.paper-meta { color: #6b6b6f; }

.sep { margin: 0 8px; color: #6b6b6f; }

.me { text-decoration: underline; text-underline-offset: 2px; }

.btn-mini { display: inline-block; padding: 6px 10px; border-radius: 10px; border: 1px solid #ececec; background: #fff; text-decoration: none; font-size: .84rem; line-height: 1; transition: transform .02s ease-out; }

.btn-mini:hover { transform: translateY(-1px); }

.btn-mini.ghost { background: #fff; }

.hair { border: 0; border-top: 1px solid #ececec; margin: 18px 0; }

.equal-note { margin-top: 8px; font-size: .9rem; }

.label-phd { display: inline-block; padding: 2px 8px; margin-right: 8px; border-radius: 999px; border: 1px solid #ffd6c7; background: #fff1e8; font-size: .76rem; line-height: 1.4; letter-spacing: .02em; }

.paper-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; /* keep actions on the same row on normal screens */ flex-wrap: nowrap; }

/* allow the left side (number + title) to actually shrink */
.paper-head .left { display: flex; align-items: baseline; gap: 8px; flex: 1 1 auto; min-width: 0; }

/* long titles can wrap without forcing the buttons down */
.paper-title { margin: 0; font-size: 1.02rem; line-height: 1.35; overflow-wrap: anywhere; /* or word-break: break-word; */ }

/* keep buttons from breaking internally, and from shrinking */
.paper-actions { display: flex; gap: 8px; flex: 0 0 auto; white-space: nowrap; }

/* On very small screens, it's OK to let buttons drop below */
@media (max-width: 560px) { .paper-head { flex-wrap: wrap; }
  .paper-actions { width: 100%; padding-top: 6px; justify-content: flex-start; } }
/* Collapsible sections */
.interest { margin: 12px 0; background: #fff; border: 1px solid #ececec; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

.interest > summary { list-style: none; cursor: pointer; padding: 12px 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.interest > summary::-webkit-details-marker { display: none; }

.interest-title { font-weight: 600; letter-spacing: .2px; }

.readtime { color: #6b6b6f; font-size: .86rem; white-space: nowrap; }

/* Chevron */
.interest > summary::after { content: "▸"; margin-left: 8px; transition: transform .15s ease; }

.interest[open] > summary::after { transform: rotate(90deg); }

/* Body */
.interest-content { padding: 12px 14px 16px; border-top: 1px solid #ececec; }
