:root {
  --ink: #222b2a;
  --muted: #687471;
  --paper: #fbfaf6;
  --line: #d6dfd8;
  --green: #17674f;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 1.125rem; /* Increases default 16px to 20px for better readability */
  line-height: 1.4;    /* Adds breathing room between lines of text */
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.55; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:hover { color: #0b4b37; }

.page { width: min(980px, calc(100% - 44px)); min-height: 100svh; margin: 0 auto; padding: clamp(2.5rem, 6vh, 4.5rem) 0 2rem; }
.intro { display: grid; grid-template-columns: 1fr 215px; align-items: center; gap: clamp(2rem, 8vw, 7rem); }
.kicker { margin: 0 0 .6rem; color: var(--green); font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-family: var(--serif); font-size: clamp(3.4rem, 8vw, 5.7rem); font-weight: 400; letter-spacing: -.055em; line-height: .98; }
.cv-link { margin: .75rem 0 0; font-size: .91rem; font-weight: 600; }
.cv-link a { text-decoration: none; }
.cv-link a:hover { text-decoration: underline; }
.affiliation { margin: .32rem 0 0; color: var(--muted); font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; }
.contact-button { margin-top: 1.45rem; padding: 0; border: 0; color: var(--green); background: transparent; cursor: pointer; font: 600 .9rem var(--sans); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.contact-button:hover { color: #0b4b37; }
.portrait-frame { margin: 0; }
.portrait-frame img { display: block; width: 100%; height: 235px; border-radius: 2px; object-fit: cover; object-position: 51% 42%; filter: saturate(.86); }
.crossword-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.information { margin-top: clamp(2.2rem, 5vh, 4rem); border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; cursor: pointer; font-family: var(--serif); font-size: clamp(1.45rem, 2.5vw, 1.8rem); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--green); font-family: var(--sans); font-size: 1.15rem; font-weight: 400; }
details[open] summary::after { content: "−"; }
.details-content { max-width: 760px; padding: .2rem 1.25rem 1.35rem 0; color: #3c4946; font-size: .93rem; }
.details-content p:last-child { margin-bottom: 0; }
.contact-content { max-width: 800px; }
.course-list { display: grid; gap: .25rem; margin: .85rem 0 1rem; padding: 0; list-style: none; }
.course-list span { display: inline-block; width: 7.4rem; color: var(--muted); font-family: var(--mono); font-size: .71rem; }
.course-list em { margin-left: .35rem; color: var(--muted); font-family: var(--mono); font-size: .68rem; font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.creative-link { margin: 1.25rem 0 0; font-size: .9rem; }
.creative-link a { font-weight: 600; text-decoration: none; }
.creative-link a:hover { text-decoration: underline; }

.creative-page { width: min(740px, calc(100% - 44px)); min-height: 100svh; margin: 0 auto; padding-top: min(18vh, 9rem); color: #3c4946; }
.creative-page h1 { margin-bottom: 1.6rem; color: var(--ink); }
.creative-page p { max-width: 560px; }

@media (max-width: 520px) {
  .page { width: min(100% - 32px, 980px); padding-top: 2rem; }
  .intro { grid-template-columns: 1fr 118px; gap: 1rem; }
  .portrait-frame img { height: 145px; }
  h1 { font-size: clamp(3.15rem, 15vw, 4.4rem); }
  .information { margin-top: 2.1rem; }
  summary { padding: .85rem 0; }
  .course-list span { width: 5.8rem; }
}
