:root {
  --desk: #e9e6df;
  --paper: #faf8f1;
  --ink: #302f2a;
  --muted: #736f66;
  --line: #d9d4c9;
  --accent: #8b4d35;
  --mono: "Courier New", monospace;
  --serif: Georgia, "Times New Roman", serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font: 16px/1.65 var(--mono);
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
[role="tabpanel"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.site-shell {
  max-width: 1100px;
  margin: auto;
  padding: 30px 48px;
}
.masthead {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 46px;
  font-size: 14px;
}
.masthead p {
  flex: 1;
}
.masthead p span {
  color: var(--muted);
}
.masthead > a:last-child {
  text-decoration: none;
}
.wordmark {
  font: bold 42px var(--serif);
  letter-spacing: -4px;
  text-decoration: none;
}
.wordmark span {
  color: var(--accent);
}
.notebook {
  position: relative;
}
.chapter-navigation {
  display: flex;
  align-items: end;
  gap: 5px;
  padding: 0 25px;
  position: relative;
  z-index: 2;
}
.chapter-tabs {
  display: flex;
  align-items: end;
  gap: 5px;
}
.chapter-tabs a,
.course-tab {
  font-size: 14px;
  text-decoration: none;
  background: #dedbd2;
  border: 1px solid #cdc7bb;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  padding: 13px 19px 12px;
  transition:
    background 0.2s,
    transform 0.2s;
  position: relative;
}
.chapter-tabs a span {
  font-size: 12px;
  color: var(--muted);
  margin-right: 5px;
}
.chapter-tabs a[aria-selected="true"] {
  background: var(--paper);
  padding-top: 18px;
  margin-bottom: -1px;
  color: var(--accent);
}
.chapter-tabs a:hover,
.course-tab:hover {
  background: #f2efe6;
}
.course-tab {
  white-space: nowrap;
  color: var(--accent);
}
.course-tab span {
  display: inline-block;
  margin-left: 3px;
}
.paper-stack {
  position: relative;
  background: var(--paper);
  border: 1px solid #cdc7bb;
  box-shadow:
    3px 4px 0 -1px #f5f2e9,
    3px 4px 0 0 #cfc9be,
    7px 8px 0 -1px #f0ede4,
    7px 8px 0 0 #cfc9be,
    0 20px 55px #38311f12;
}
.paper-stack:before {
  content: "";
  position: absolute;
  left: 21px;
  top: 0;
  bottom: 0;
  border-left: 1px solid #ddd7cb;
  pointer-events: none;
}
.pages {
  perspective: 1800px;
  overflow: hidden;
}
.page {
  padding: 45px 66px 35px;
  min-height: 625px;
  transform-origin: left center;
  backface-visibility: hidden;
}
.page[hidden] {
  display: none;
}
.page.is-leaving {
  animation: page-out 0.23s ease-in both;
  pointer-events: none;
}
.page.is-entering {
  animation: page-in 0.38s ease-out both;
}
.page.reverse {
  transform-origin: right center;
}
@keyframes page-out {
  to {
    transform: rotateY(-16deg) translateX(-12px);
    opacity: 0;
  }
}
@keyframes page-in {
  from {
    transform: rotateY(18deg) translateX(12px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin: 0 0 28px;
}
.introduction {
  display: grid;
  grid-template-columns: 1fr 195px;
  gap: 35px;
  align-items: center;
}
.hello {
  font: italic 24px var(--serif);
  margin: 0 0 8px;
}
h1 {
  font: normal clamp(64px, 7.5vw, 92px)/0.97 var(--serif);
  letter-spacing: -5px;
  margin: 0 0 25px;
}
.period {
  color: var(--accent);
}
.role {
  font-size: 14px;
  margin: 0;
}
.margin-note {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  transform: rotate(-2deg);
}
.note-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.margin-note p {
  font-size: 14px;
  margin: 3px 0 20px;
}
.intro {
  font: 24px/1.5 var(--serif);
  max-width: 680px;
  margin: 30px 0 12px;
}
.body-copy {
  color: var(--muted);
  max-width: 680px;
  margin: 0;
}
.hero-actions {
  display: flex;
  gap: 27px;
  align-items: center;
  margin-top: 25px;
  font-size: 14px;
}
.button {
  border: 1px solid var(--ink);
  padding: 10px 16px;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
}
.button:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.interests {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding-top: 20px;
}
.interests p {
  font-size: 14px;
  margin: 8px 0 0;
  color: var(--muted);
}
h2 {
  font: normal 44px/1.15 var(--serif);
  letter-spacing: -1.5px;
  margin: 0 0 30px;
}
h3 {
  font-size: 17px;
  margin: 0 0 9px;
  font-weight: normal;
}
.skill-group {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.skill-group h3 {
  font: 22px var(--serif);
}
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
}
.language-primary {
  font-size: 23px;
  color: var(--accent);
}
.language-era {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}
.language-era h4 {
  font: 12px var(--mono);
  color: var(--muted);
  margin: 5px 0;
  width: 48px;
  flex-shrink: 0;
}
.skills-note {
  font-size: 14px;
  font-style: italic;
  margin-top: 25px;
}
.panel-heading > a {
  font-size: 14px;
  display: inline-block;
  margin-bottom: 15px;
}
.project {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.project-copy h3 > a {
  font: 25px var(--serif);
}
.project-copy h3 > span {
  font-size: 12px;
  color: var(--muted);
  margin-left: 10px;
}
.project p {
  color: var(--muted);
  margin: 12px 0;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 12px;
  color: var(--accent);
}
.project-icon,
.project-preview {
  display: none;
}
.timeline-item {
  position: relative;
  padding: 0 0 28px 23px;
  border-left: 1px solid var(--line);
}
.timeline-item:before {
  content: "";
  position: absolute;
  left: -3px;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.timeline-item time,
.timeline-status {
  font-size: 12px;
  color: var(--muted);
}
.timeline-status {
  color: var(--accent);
  font-weight: bold;
}
.timeline-item h3 {
  font: 22px/1.35 var(--serif);
  margin: 8px 0;
}
.timeline-item h3 span {
  color: var(--accent);
}
.timeline-item p {
  color: var(--muted);
  margin: 8px 0;
}
.timeline-item small {
  font-size: 12px;
}
.contact-heading p {
  font: 24px/1.5 var(--serif);
  max-width: 480px;
}
.contact-status {
  font-size: 12px;
  color: var(--accent);
}
.contact-grid {
  margin-top: 35px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.contact-grid > a {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-grid b {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: normal;
  margin-bottom: 4px;
}
.contact-icon {
  width: 25px;
  font-size: 20px;
  color: var(--accent);
}
.contact-grid > a:hover {
  color: var(--accent);
}
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin: 0 40px 0 66px;
  padding: 17px 0;
  font-size: 12px;
  color: var(--muted);
}
.folio > span:first-child {
  margin: 0 12px;
  color: #b1a99b;
}
.reading-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.reading-controls button {
  background: transparent;
  border: 1px solid var(--line);
  min-width: 40px;
  min-height: 40px;
  font-size: 20px;
}
.reading-controls button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.reading-controls button:disabled {
  opacity: 0.3;
  cursor: default;
}
#finish-typing {
  font-size: 12px;
  border: 0;
  padding: 0 10px;
}
#finish-typing[hidden] {
  display: none;
}
.site-footer {
  margin: 28px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.view-counter {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.view-counter[hidden] {
  display: none;
}
.view-counter strong {
  margin-left: 6px;
  color: var(--ink);
  font-weight: normal;
  font-variant-numeric: tabular-nums;
}
.view-counter a {
  text-decoration: none;
}
.view-counter a:hover {
  text-decoration: underline;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  background: var(--paper);
  padding: 10px;
  z-index: 10;
}
.type-character {
  opacity: 0;
}
.type-character.revealed {
  opacity: 1;
}
.type-character.caret {
  box-shadow: 1px 0 var(--accent);
}
@media (min-width: 760px) {
  #contact {
    padding-top: 55px;
  }
}
@media (max-width: 900px) {
  .chapter-navigation {
    flex-wrap: wrap;
    gap: 6px;
  }
  .chapter-tabs {
    order: 1;
    flex: 0 0 100%;
  }
  .course-tab {
    margin-left: auto;
    padding: 9px 12px;
    font-size: 12px;
    border-bottom: 1px solid #cdc7bb;
    border-radius: 6px;
  }
}
@media (max-width: 760px) {
  .site-shell {
    padding: 20px;
  }
  .masthead {
    margin-bottom: 28px;
    gap: 14px;
  }
  .masthead p span {
    display: none;
  }
  .chapter-navigation {
    padding: 0 8px;
  }
  .chapter-tabs {
    gap: 3px;
  }
  .chapter-tabs a {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    font-size: 12px;
  }
  .chapter-tabs a span {
    display: none;
  }
  .page {
    padding: 32px 30px 30px 38px;
    min-height: 660px;
  }
  .paper-stack:before {
    left: 15px;
  }
  .introduction {
    grid-template-columns: 1fr 155px;
    gap: 15px;
  }
  .margin-note {
    padding-left: 15px;
  }
  .page-footer {
    margin-left: 38px;
    margin-right: 25px;
  }
  .footer-location {
    display: none;
  }
  h1 {
    font-size: 68px;
  }
  .intro {
    font-size: 22px;
  }
  .folio > span:first-child {
    margin: 0 5px;
  }
}
@media (max-width: 480px) {
  .site-shell {
    padding: 15px 12px;
  }
  .masthead {
    font-size: 12px;
    gap: 12px;
  }
  .wordmark {
    font-size: 35px;
  }
  .chapter-navigation {
    padding: 0 3px;
  }
  .chapter-tabs a {
    padding: 12px 5px;
    font-size: 12px;
  }
  .page {
    padding: 28px 24px 26px 30px;
    min-height: 620px;
  }
  .introduction {
    display: block;
  }
  .margin-note {
    display: none;
  }
  h1 {
    font-size: 70px;
  }
  .role {
    font-size: 12px;
  }
  .body-copy {
    font-size: 14px;
  }
  .hero-actions {
    gap: 18px;
    font-size: 12px;
  }
  .interests p {
    font-size: 12px;
  }
  .page-footer {
    margin: 0 18px 0 30px;
    flex-wrap: wrap;
  }
  .folio {
    font-size: 12px;
  }
  .reading-controls {
    margin-left: auto;
    gap: 4px;
  }
  #finish-typing {
    padding: 0 3px;
    font-size: 12px;
  }
  h2 {
    font-size: 36px;
  }
  .project-copy h3 > span {
    display: block;
    margin: 5px 0 0;
  }
  .project-copy h3 > a {
    font-size: 22px;
  }
  .language-era {
    gap: 10px;
  }
  .skill-cloud {
    gap: 7px 14px;
  }
  .contact-grid > a {
    font-size: 13px;
    gap: 10px;
  }
  .site-footer {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .type-character {
    opacity: 1;
  }
}
@media print {
  body {
    background: white;
  }
  .masthead,
  .chapter-tabs,
  .page-footer,
  .site-footer {
    display: none;
  }
  .page[hidden] {
    display: block;
  }
  .page {
    break-before: page;
    min-height: 0;
  }
  .paper-stack {
    border: 0;
    box-shadow: none;
  }
  .type-character {
    opacity: 1;
  }
  .site-shell {
    padding: 0;
  }
}
