:root {
  color-scheme: light;
  --background: #faf9f6;
  --text: #242622;
  --secondary: #696c63;
  --line: #dddfd6;
  --accent: #657355;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
a:hover { color: var(--accent); }
.page { width: min(100% - 112px, 1040px); margin-inline: auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 30px;
}
.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -2px;
}
.wordmark span { color: var(--accent); }
.header-link, .document-link, .contact-links {
  font-size: 12px;
  font-weight: 450;
}
.header-link span, .document-link span { margin-left: 10px; }
.intro { padding-block: 72px 52px; }
.eyebrow {
  margin: 0 0 24px;
  color: var(--secondary);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
}
h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(56px, 8.5vw, 108px);
  line-height: 1.1;
  letter-spacing: -4px;
}
.name-period { color: var(--accent); }
.intro-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  margin-top: 25px;
}
.description {
  margin: 0;
  max-width: 520px;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.8;
}
.contact-links { display: flex; flex-shrink: 0; gap: 24px; }
.contact-links span { color: var(--secondary); margin-left: 5px; }
.resume-section { scroll-margin-top: 24px; border-top: 1px solid var(--line); }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
}
h2 { margin: 0; font-size: 12px; font-weight: 500; }
.section-number {
  margin-right: 18px;
  color: var(--secondary);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.document-link { color: var(--secondary); }
.document {
  padding: 12px;
  border: 1px solid #e7e8e0;
  background: #f0f0eb;
}
.pdf-viewer {
  display: block;
  width: 100%;
  height: 1120px;
  border: 0;
  background: #fff;
}
.reading-options { padding-block: 22px; }
.text-view summary {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  color: var(--secondary);
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}
.text-view summary::-webkit-details-marker { display: none; }
.expand-icon { display: inline-block; font-size: 16px; line-height: 1; }
.text-view[open] .expand-icon { transform: rotate(45deg); }
.text-view pre {
  margin: 26px 0 8px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.85;
}
.mobile-note { display: none; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding-block: 24px 36px;
  border-top: 1px solid var(--line);
  color: var(--secondary);
  font-size: 11px;
  line-height: 1.6;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 1;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--line);
}
.skip-link:focus { top: 12px; }

@media (max-width: 800px) {
  .page { width: calc(100% - 56px); }
  .intro { padding-block: 55px 40px; }
  h1 { letter-spacing: -3px; }
  .intro-bottom { display: block; }
  .contact-links { margin-top: 20px; }
  .pdf-viewer { height: 950px; }
}

@media (max-width: 600px) {
  .page { width: calc(100% - 40px); }
  .site-header { padding-block: 25px; }
  .wordmark { font-size: 30px; }
  .intro { padding-block: 42px 36px; }
  .eyebrow { margin-bottom: 20px; font-size: 9px; }
  h1 { font-size: clamp(44px, 11vw, 66px); letter-spacing: -2.5px; }
  .description { font-size: 14px; }
  .document { display: none; }
  .reading-options { border-top: 1px solid var(--line); }
  .mobile-note { display: block; margin: 18px 0 0; color: var(--secondary); font-size: 12px; line-height: 1.8; }
  .mobile-note a { text-decoration: underline; text-underline-offset: 3px; }
  .text-view pre { padding: 20px; font-size: 13px; }
  .site-footer { margin-top: 8px; font-size: 10px; gap: 14px; }
}

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