@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/InstrumentSerif-Italic.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}
:root {
  --paper: #faf6ed;
  --ink: #322725;
  --accent: #863951;
  --wine: #502636;
  --muted: #655852;
  --rule: #d2c6b9;
  --display: "Instrument Serif", Georgia, serif;
  color-scheme: light;
  color: var(--ink);
  background: var(--paper);
  font: 100%/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, dl, dd, blockquote, ul { margin: 0; }
body { -webkit-font-smoothing: antialiased; }
html { scroll-padding-top: 24px; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid #00787d; outline-offset: 4px; }
::selection { color: #fff; background: var(--accent); }
.wrap { width: min(1160px, calc(100% - clamp(40px, 10vw, 144px))); margin-inline: auto; }
.skip, .sr-only { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { clip-path: none; width: auto; height: auto; top: 8px; left: 12px; padding: 10px 18px; z-index: 5; color: white; background: var(--wine); }
.masthead, nav, .languages, .actions, .contact-links, footer { display: flex; align-items: center; }
.masthead { justify-content: space-between; min-height: 76px; gap: clamp(18px, 4vw, 64px); border-bottom: 1px solid var(--rule); }
nav { gap: clamp(12px, 2.3vw, 32px); }
nav a, .languages a { text-decoration: none; font-size: .9rem; }
nav a, .languages a { display: inline-flex; align-items: center; min-height: 44px; }
nav a:hover, .under:hover, .contact-links a:hover { text-decoration: underline; }
.languages { gap: .35rem; }
.languages a { padding: 0 .28rem; color: var(--muted); }
.languages [aria-current] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }
.hero { overflow: clip; overflow-clip-margin: 8px; display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: 6%; padding-block: clamp(54px, 6vw, 88px) clamp(68px, 7vw, 104px); }
.place { display: flex; align-items: center; gap: .6em; color: var(--muted); font-size: .95rem; }
.place span { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
h1, h2, .employer, .email { font-family: var(--display); font-weight: 400; }
h1 { font-size: clamp(5.7rem, 9.7vw, 9.2rem); line-height: .82; margin: .22em 0 .27em; letter-spacing: -.04em; }
h1 span { display: block; }
h1 span:last-child { padding-left: .48em; }
.lead { max-width: 36ch; font-size: clamp(1.09rem, 1.5vw, 1.32rem); line-height: 1.5; }
.actions { gap: clamp(16px, 2.3vw, 34px); margin-top: 1.6rem; }
.pill, .under { display: inline-flex; align-items: center; gap: .7em; min-height: 46px; font-size: .94rem; }
.pill { border-radius: 99px; background: var(--wine); color: white; padding: 10px 20px; text-decoration: none; }
.under { text-decoration-color: var(--rule); }
.pill:hover { background: var(--accent); }
.portrait-stage { width: min(91%, 448px); aspect-ratio: .88; position: relative; justify-self: center; isolation: isolate; }
.portrait-frame { position: absolute; inset: 4% 5% 3%; overflow: hidden; border-radius: 46% 46% 32% 32% / 38% 38% 26% 26%; transform: rotate(4deg); background: #e5d7bf; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; display: block; transform: rotate(-4deg) scale(1.1); }
.contour, .contour::before, .contour::after { border: 1px solid #bc9390; position: absolute; border-radius: 50%; }
.contour { inset: -1% 1% 0; transform: rotate(-17deg); }
.contour::before, .contour::after { content: ""; }
.contour::before { inset: 2% -4%; transform: rotate(-7deg); }
.contour::after { inset: 4% -7%; transform: rotate(-14deg); }
h2 { font-size: clamp(3rem, 5.2vw, 5.2rem); letter-spacing: -.035em; line-height: .98; }
.story { background: var(--wine); color: var(--paper); }
.story-grid, .section-grid, .notebook, .contact-grid, .quotes { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr); gap: 7%; }
.story-grid, .section-grid, .notebook, .contact-grid { padding-block: clamp(48px, 6.7vw, 96px); }
.story-grid p { max-width: 50ch; }
.story-grid p:first-child { font: clamp(1.65rem, 2.45vw, 2.35rem)/1.19 var(--display); }
.story-grid p + p { margin-top: 1.15rem; color: #f5dfdb; }
.section-grid { border-bottom: 1px solid var(--rule); }
details { border-top: 1px solid var(--rule); }
details:last-child { border-bottom: 1px solid var(--rule); }
summary { display: flex; align-items: center; gap: 16px; padding-block: 19px; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary:hover .employer, .notes-list summary:hover { color: var(--accent); }
.toggle { flex: 0 0 29px; height: 29px; margin-left: auto; border: 1px solid var(--rule); border-radius: 50%; position: relative; }
.toggle::before, .toggle::after { content: ""; width: 11px; height: 1px; background: currentColor; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] > summary .toggle::after { transform: translate(-50%, -50%); }
details[open] > summary .toggle { background: var(--wine); color: white; border-color: var(--wine); }
.dates { min-width: 7.7rem; color: var(--muted); font-size: .86rem; }
.employer { font-size: clamp(1.7rem, 2.5vw, 2.5rem); line-height: 1.05; }
.job-copy { margin: 0 0 22px calc(7.7rem + 16px); max-width: 48ch; color: var(--muted); }
.role { margin-bottom: .6rem; font-size: .96rem; font-weight: 650; color: var(--accent); }
.notebook { padding-top: clamp(44px, 5.8vw, 80px); }
.notes-list summary { font: 1.65rem/1.18 var(--display); }
.notes-list p, .notes-list dl, .learning-list { margin: 0 0 20px; color: var(--muted); }
.notes-list dt { font-weight: 650; color: var(--ink); }
.notes-list dd { margin-bottom: .8rem; }
.learning-list { padding-left: 1.25em; }
.learning-list li { margin: .5em 0; }
.learning-list small { margin-left: .5em; }
.quotes { align-items: center; background: #ece2d3; border-radius: 36px 90px 36px 36px; padding: clamp(26px, 4.4vw, 65px); margin-bottom: clamp(48px, 6.7vw, 96px); }
.quote-heading h2 { font-size: clamp(2.4rem, 3.5vw, 3.4rem); }
.quote-heading p { margin-top: .8em; color: var(--muted); }
.quote-slide { font: italic clamp(2rem, 3.7vw, 3.6rem)/1.03 var(--display); color: var(--wine); }
.quote-slides { min-height: 2.8em; }
.quote-buttons, .contact-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.quote-buttons { margin-top: 20px; }
.quote-buttons button { background: transparent; border: 1px solid #aa9889; min-width: 44px; min-height: 44px; border-radius: 99px; }
.quote-buttons button:hover { background: var(--paper); }
.quote-pause { padding-inline: 16px; }
.contact { background: #e9c7c1; }
.contact-grid { align-items: center; }
.email { display: inline-block; color: var(--wine); font-size: clamp(2rem, 4.3vw, 4.1rem); line-height: 1.1; text-decoration: none; }
.email:hover { text-decoration: underline; }
.email span { font: .46em sans-serif; vertical-align: top; }
.contact-links { margin-top: .9rem; gap: 1.5rem; }
footer { justify-content: space-between; color: var(--muted); min-height: 82px; font-size: .85rem; }
@media (min-width: 741px) and (prefers-reduced-motion: no-preference) {
  .portrait-frame { transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) rotate(4deg); transition: transform .24s ease-out; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .intro h1 span:last-child { animation: sign-in .85s cubic-bezier(.18,.72,.26,1) both; }
  .contour { animation: orbit-in 1.1s ease-out both; }
  .pill span, .under span, .toggle::after { transition: transform .2s ease; }
  .pill:hover span { transform: translateY(3px); }
  .under:hover span { transform: translate(2px, -2px); }
  details[open] > .job-copy, .notes-list details[open] > :not(summary) { animation: unfold .24s ease-out; }
  @keyframes sign-in { from { opacity: .15; transform: translateX(-.2em); } }
  @keyframes orbit-in { from { opacity: 0; transform: rotate(7deg) scale(.93); } }
  @keyframes unfold { from { opacity: .3; transform: translateY(-5px); } }
}
@media (max-width: 740px) {
  .masthead { min-height: 66px; gap: 16px; }
  .hero { gap: 30px; }
  .story-grid, .section-grid, .notebook, .quotes, .contact-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero { grid-template-columns: 1.1fr .9fr; }
  h1 { font-size: clamp(4.4rem, 12vw, 6rem); }
  footer { flex-wrap: wrap; gap: 2px 24px; padding-block: 12px; }
}
@media (max-width: 640px) {
  .masthead { gap: 10px; }
  .masthead nav { gap: 12px; }
  .masthead nav a, .languages a { font-size: .8rem; }
  .languages { gap: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 34px 44px; gap: 26px; }
  .intro { display: contents; }
  .place { grid-row: 1; font-size: .85rem; }
  h1 { grid-row: 2; font-size: clamp(2.9rem, 15vw, 5.75rem); margin: 0; position: relative; z-index: 1; }
  h1 span:last-child { padding-left: .22em; }
  .portrait-stage { grid-row: 2; grid-column: 1; justify-self: end; width: 38%; margin-right: 1%; align-self: center; }
  h1, .place, .lead, .actions { grid-column: 1; }
  .lead { grid-row: 3; }
  .actions { grid-row: 4; margin: -6px 0 0; }
  .job summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 12px; }
  .dates { grid-column: 1; }
  .employer { grid-row: 2; }
  .job summary .toggle { grid-column: 2; grid-row: 1 / 3; width: 29px; }
  .job-copy { margin-left: 0; }
  .quotes { border-radius: 24px 50px 24px 24px; }
}
@media print {
  :root { color: #000; background: #fff; }
  .masthead, .actions, .quote-controls, .toggle, footer nav { display: none; }
  .wrap { width: 100%; }
  .hero, .story-grid, .section-grid, .notebook, .quotes, .contact-grid { padding: 12pt 0; }
  .portrait-stage { width: 120pt; }
  .story, .story-grid p + p, .contact, .quotes { color: #111; background: white; }
  details { break-inside: avoid; }
}
