:root {
  color-scheme: light;
  --background: #fff;
  --surface: #fff;
  --text: #242321;
  --muted: #68645f;
  --accent: #7b302d;
  --accent-dark: #541f1d;
  --border: #d8d4ce;
  --soft: #ece9e4;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

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

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

a:focus-visible,
summary:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgb(139 47 42 / 28%);
  outline-offset: 4px;
}

.site-shell {
  width: min(100% - 48px, 820px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0 56px;
  background: var(--surface);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.015em;
}

.site-logo {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.site-logo img {
  display: block;
  width: 100%;
  height: 100%;
}

.site-logo:hover {
  opacity: 0.72;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-nav a[aria-current="page"] {
  border-bottom: 2px solid currentColor;
}

.site-header {
  margin-bottom: clamp(34px, 5vw, 52px);
  text-align: center;
}

.site-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 6vw, 3.45rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.page-kicker,
.identity-meta {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.035em;
}

.page-kicker {
  margin: 18px 0 0;
  font-weight: 650;
  text-transform: uppercase;
}

.identity-meta {
  margin: 22px auto 0;
  line-height: 1.8;
}

.portrait {
  width: min(240px, 68vw);
  margin: 28px auto 0;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.intro {
  max-width: 680px;
  margin: 0 auto clamp(42px, 7vw, 62px);
  font-size: clamp(1.03rem, 2vw, 1.14rem);
  text-align: left;
}

section + section {
  margin-top: clamp(42px, 7vw, 62px);
}

.section-heading {
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.entry-list {
  display: grid;
  gap: 0;
}

.entry {
  padding: 0;
}

.entry + .entry {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--soft);
}

.entry-main h2,
.entry-main h3 {
  margin: 0 0 10px;
  font-weight: 400;
  line-height: 1.3;
}

.entry-main h2 {
  font-size: clamp(1.32rem, 3vw, 1.62rem);
}

.entry-main h3 {
  font-size: clamp(1.08rem, 2.5vw, 1.28rem);
}

.entry-main h2 a,
.entry-main h3 a {
  color: var(--text);
  text-decoration: none;
}

.entry-main h2 a:hover,
.entry-main h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.entry-main p {
  margin: 0;
}

.entry-meta {
  margin: 9px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.55;
}

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

.publication-list li + li {
  margin-top: 16px;
}

.publication-list h3 {
  margin: 0 0 2px;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.4;
}

.publication-list h3 a {
  color: var(--text);
  text-decoration: none;
}

.publication-list h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.publication-list p {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.77rem;
}

.entry-meta summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 650;
}

.entry-meta p {
  margin: 0;
}

.prose {
  max-width: 720px;
  margin-inline: auto;
}

.prose h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
}

.document-reader {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
}

.document-reader > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 700;
  list-style: none;
}

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

.document-reader > summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
}

.document-reader[open] > summary {
  border-bottom: 1px solid var(--border);
}

.document-reader[open] > summary::after {
  content: "−";
}

.document-frame {
  display: block;
  width: 100%;
  height: min(78vh, 760px);
  border: 0;
  background: #f3f3f3;
}

.reader-status {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
}

.site-footer {
  margin-top: clamp(48px, 8vw, 72px);
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  text-align: center;
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .site-shell {
    width: 100%;
    margin: 0;
    padding: 26px 20px 38px;
  }

  .site-nav {
    margin-bottom: 30px;
    font-size: 0.72rem;
  }

  .site-logo {
    width: 30px;
    height: 30px;
  }

  .site-links {
    gap: 8px 15px;
  }

  details.entry-meta {
    margin-top: 14px;
    padding: 10px 12px;
    border-left: 2px solid var(--border);
    background: #faf8f4;
  }

  .entry-meta[open] p {
    margin-top: 9px;
  }

  .document-frame {
    height: 70vh;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-shell {
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  .site-nav,
  .document-reader {
    display: none;
  }
}
