/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --color-bg:         #F4F3EE;
  --color-surface:    #FDFCF9;
  --color-text:       #2D2826;
  --color-text-muted: #6B6560;
  --color-accent:     #da7756;
  --color-accent-dark:#C15F3C;
  --color-border:     #B1ADA1;
  --font:             Georgia, Cambria, ui-serif, serif;
  --width:            740px;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   Base
   ============================================================ */
html {
  font-size: 18px;
}

body {
  font-family: var(--font);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 1rem;
}

/* ============================================================
   Layout
   ============================================================ */
header,
main,
footer {
  width: 100%;
  max-width: var(--width);
  margin-left: auto;
  margin-right: auto;
}

header {
  padding: 3rem 0 0;
}

main {
  flex: 1;
  padding: 2rem 0 3rem;
}

footer {
  margin-top: auto;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ============================================================
   Header — name, tagline, social links, nav
   ============================================================ */
h1 {
  font-size: 2.4rem;
  font-weight: normal;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tagline {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}


.name-home-link {
  color: inherit;
  text-decoration: none;
}

[data-name-script-target] {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  transition: color 0.2s ease;
}

.name-script-text {
  transition: opacity 0.2s ease;
}

.name-script-label {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.03rem 0.4rem;
  line-height: 1.35;
  background: var(--color-surface);
  opacity: 0;
  transform: translateY(-1px);
  transition: opacity 0.2s ease;
}

[data-name-script-target].is-script-active .name-script-label {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0;
}

.social-links a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  transition: color 0.15s;
}

.social-links a svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  transition: color 0.15s;
}

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


nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.shortcut-key,
.social-links a[data-shortcut]::after {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 0.02rem 0.28rem;
  line-height: 1.2;
  color: var(--color-text-muted);
  background: var(--color-surface);
}

.social-links a[data-shortcut] {
  width: auto;
  min-width: 1.6rem;
  gap: 0.25rem;
  padding-right: 0.15rem;
}

.social-links a[data-shortcut]::after {
  content: attr(data-shortcut);
  text-transform: uppercase;
}

a.is-key-selected {
  color: var(--color-accent);
}

nav a.active {
  color: var(--color-accent);
}

/* ============================================================
   Typography
   ============================================================ */
h2 {
  font-size: 1.25rem;
  font-weight: normal;
  color: var(--color-text);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
}

h3 {
  font-size: 1.05rem;
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 0.3rem;
}

p {
  margin-bottom: 1rem;
}

.profile-photo {
  width: 8rem;
  height: 8rem;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0.25rem 0 1rem;
  border: 1px solid var(--color-border);
}

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

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

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

.shortcut-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

ul {
  padding-left: 1.2rem;
}

ul li {
  margin-bottom: 0.4rem;
}

.hero {
  padding: 1.4rem 0 0.3rem;
}

.hero-copy p {
  max-width: 55ch;
}
/* ============================================================
   Publication cards
   ============================================================ */
ol.publications {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

ol.publications li {
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 2px;
}

.pub-title {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.pub-authors {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

.pub-venue {
  display: block;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.pub-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pub-links a {
  font-size: 0.85rem;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.pub-links a:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ============================================================
   Talk items
   ============================================================ */
.talk-item {
  margin-bottom: 1.75rem;
}

.talk-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.talk-title {
  font-weight: bold;
  display: block;
  margin-bottom: 0.1rem;
}

.talk-venue {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
