:root {
  --color-bg:         #f7f6f3;  
  --color-text:       #1a1a18;  
  --color-text-muted: #6b6b62;  
  --color-link:       #2d5f8a;  
  --color-link-hover: #1a3f60;  
  --color-rule:       #d9d7cf;  

  --font-serif:       'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-size-base:   1.125rem;  
  --line-height:      1.72;      
  --measure:          66ch;      

  --space-xs:   0.4rem;
  --space-sm:   0.75rem;
  --space-md:   1.5rem;
  --space-lg:   3rem;
  --space-xl:   5rem;


  --content-width: 740px;
  --page-padding:  1.5rem;
}


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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
}

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


ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-text);
}

.site-name {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-xs);
}

.section-heading {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

p {
  max-width: var(--measure);
  margin-bottom: var(--space-sm);
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover,
a:focus {
  color: var(--color-link-hover);
  border-bottom-color: var(--color-link-hover);
  outline: none;
}

a:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
  border-radius: 2px;
}


hr {
  border: none;
  border-top: 1px solid var(--color-rule);
  margin: var(--space-lg) 0;
}


em {
  font-style: italic;
}

strong {
  font-weight: 600;
}


blockquote {
  border-left: 2px solid var(--color-rule);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  color: var(--color-text-muted);
  font-style: italic;
  max-width: var(--measure);
}


code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.04);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

pre {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-rule);
  padding: var(--space-md);
  overflow-x: auto;
  margin: var(--space-md) 0;
  max-width: var(--measure);
}

pre code {
  background: none;
  padding: 0;
}


.site-header,
.site-main,
.site-footer {
  width: 100%;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

.site-header {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-lg);
}

.site-main {
  padding-bottom: var(--space-xl);
}

.site-footer {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-top: 1px solid var(--color-rule);
  color: var(--color-text-muted);
  font-size: 1rem;
}


.section {
  margin-bottom: var(--space-xl);
}

.section:last-child {
  margin-bottom: 0;
}



.header-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
}

.profile-photo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;

  box-shadow: 0 0 0 1px var(--color-rule);
  background-color: var(--color-rule);
}

.header-text {
  padding-top: 0.25rem;
}

.site-bio {
  color: var(--color-text-muted);
  font-size: 1rem;
  font-style: italic;
  margin-bottom: var(--space-sm);
  max-width: none;
}


.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.95rem;
}

.site-nav a {
  border-bottom: none;
}

.site-nav a:hover {
  border-bottom: 1px solid var(--color-link-hover);
}

.nav-sep {
  color: var(--color-rule);
  user-select: none;
  margin: 0 0.1rem;
}


.about-text {
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}


.publications-list {
  list-style: none;
  counter-reset: pub-counter 100;
}

.pub-entry {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-rule);
}

.pub-entry:last-child {
  border-bottom: 1px solid var(--color-rule);
}

.pub-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
  max-width: var(--measure);
}

.pub-meta {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  max-width: var(--measure);
}

.pub-venue {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  max-width: var(--measure);
}

.pub-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.pub-links {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.pub-links a {
  font-size: 0.875rem;
}

.link-sep {
  color: var(--color-rule);
  margin: 0 0.25rem;
  user-select: none;
}


.post-list {
  list-style: none;
}

.post-list-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--color-rule);
}

.post-list-item:last-child {
  border-bottom: 1px solid var(--color-rule);
}

.post-date {
  flex-shrink: 0;
  width: 9rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;

  font-variant-numeric: tabular-nums;
}

.post-title-link {
  font-size: 1rem;
  font-weight: 500;
}


.post-header {
  margin-bottom: var(--space-lg);
}

.post-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-xs);
}

.post-dateline {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

.post-body h2 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.post-body h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}

.post-body p {
  margin-bottom: var(--space-md);
}

.post-body ul,
.post-body ol {
  padding-left: 1.5rem;
  margin-bottom: var(--space-md);
  max-width: var(--measure);
}

.post-body ul {
  list-style: disc;
}

.post-body ol {
  list-style: decimal;
}

.post-body li {
  margin-bottom: 0.35rem;
}

.post-nav {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-rule);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}


@media (max-width: 600px) {

  :root {
    --space-xl: 3.5rem;
    --space-lg: 2rem;
  }

  .header-inner {
    flex-direction: column;
    gap: var(--space-md);
  }

  .profile-photo {
    width: 80px;
    height: 80px;
  }

  .post-list-item {
    flex-direction: column;
    gap: 0.15rem;
  }

  .post-date {
    width: auto;
  }

}
