:root {
  color-scheme: light;
  --paper: #fcfbfa;
  --ink: #232323;
  --muted: #55534f;
  --rule: #d9d5d1;
  --lavender: #eee8f6;
  --lavender-highlight: #e6dcf2;
  --violet-ink: #705c83;
  --peach: #fae9df;
  --clay-ink: #884f38;
  --gutter: clamp(1.125rem, 2.65vw, 2.75rem);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

body, h1, h2, p, ul { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--violet-ink);
  outline-offset: 5px;
}

.shell {
  max-width: 100rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  z-index: 1;
  inset: 1rem auto auto 1rem;
  padding: .75rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  min-height: 5.375rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -.035em;
  text-decoration: none;
}

.wordmark span { color: var(--violet-ink); }

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem clamp(.875rem, 2.15vw, 2rem);
  color: var(--muted);
  font-size: clamp(.9375rem, 1.65vw, 1.5rem);
}

.site-header nav a, .site-footer a {
  display: inline-block;
  padding-block: .5rem;
  text-decoration: none;
}

.site-header nav a:hover, .site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.hero {
  padding-block: clamp(3.25rem, 6.25svh, 4.5rem) clamp(2rem, 4.85svh, 3rem);
}

.eyebrow, .project-genre {
  font-size: clamp(.875rem, 1.65vw, 1.5rem);
  line-height: 1.35;
  font-weight: 500;
  text-transform: uppercase;
}

.eyebrow { color: #6b6866; }

.hero-heading {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: flex-end;
  gap: .625rem;
  margin-top: .625rem;
}

.hero h1 {
  min-width: 0;
  max-width: 17ch;
  font-size: clamp(2.625rem, 5.05vw, 4.625rem);
  font-weight: 680;
  line-height: 1.21;
  letter-spacing: -.047em;
  overflow-wrap: anywhere;
}

.hero-line { display: block; }
.hero-line:empty { display: none; }

.hero-topics { display: grid; }

.hero-typed, .hero-topic-measure {
  grid-area: 1 / 1;
}

.hero-topic-measure {
  visibility: hidden;
  padding-inline-end: .14em;
}

.hero mark {
  padding: .015em .12em .07em;
  background: var(--lavender-highlight);
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero mark:empty { display: none; }

.hero-caret {
  display: inline-block;
  width: .045em;
  height: .9em;
  margin-inline-start: .095em;
  background: var(--ink);
  vertical-align: -.08em;
  animation: caret-blink 1s step-end infinite;
}

.hero-caret.is-paused { animation: none; }

@keyframes caret-blink {
  50% { opacity: 0; }
}

.topic-toggle {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  margin-bottom: .22rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
  color: var(--violet-ink);
  cursor: pointer;
}

.topic-toggle:hover { background: var(--lavender); }

.topic-toggle-icon {
  width: .47rem;
  height: .63rem;
  border-inline: .125rem solid currentColor;
}

.topic-toggle.is-paused .topic-toggle-icon {
  width: 0;
  height: 0;
  margin-left: .12rem;
  border: .33rem solid transparent;
  border-right: 0;
  border-left: .5rem solid currentColor;
}

.hero-description {
  display: grid;
  gap: .23em;
  margin-top: clamp(1.75rem, 4.1svh, 3.25rem);
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.8vw, 1.625rem);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-description { animation: reveal-description .55s ease .18s both; }
}

@keyframes reveal-description {
  from { opacity: 0; transform: translateY(.35rem); }
  to { opacity: 1; transform: none; }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  margin-top: clamp(1.5rem, 3.3svh, 2.125rem);
  padding: .9em 1.05em;
  border-radius: .625rem;
  background: var(--ink);
  color: white;
  font-size: clamp(1rem, 1.65vw, 1.5rem);
  text-decoration: none;
  transition: background-color .16s ease;
}

.button:hover { background: #40374a; }

.author-photo {
  max-width: 24rem;
  margin-top: 1.125rem;
}

.author-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 35%;
}

.hero-accents {
  display: flex;
  gap: .5rem;
  margin-top: clamp(3.125rem, 7.5svh, 5rem);
}

.hero-accents i {
  width: clamp(2.5rem, 4.85vw, 4.375rem);
  height: .4375rem;
  background: var(--lavender-highlight);
}

.hero-accents i + i { background: #efd1c2; }

.section {
  border-top: 1px solid var(--rule);
  padding-top: clamp(2rem, 3.75vw, 3.5rem);
  scroll-margin-top: 1rem;
}

.section h2 {
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  font-weight: 670;
  line-height: 1.15;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
  margin-top: clamp(1.375rem, 2.75vw, 2.5rem);
}

.projects:empty, .contact-links:empty { display: none; }

.project {
  --card: var(--lavender);
  --card-hover: #e9e0f2;
  --genre: var(--violet-ink);
  --card-text: #4d4559;
  --card-padding: clamp(1.2rem, 1.85vw, 1.75rem);
  background: var(--card);
  overflow-wrap: anywhere;
}

.project[data-colour="peach"] {
  --card: var(--peach);
  --card-hover: #f7e1d4;
  --genre: var(--clay-ink);
  --card-text: #60493d;
}

.project summary {
  position: relative;
  display: flex;
  min-height: clamp(17rem, 26.5vw, 24rem);
  flex-direction: column;
  align-items: flex-start;
  padding: var(--card-padding);
  padding-bottom: 4rem;
  cursor: pointer;
  list-style: none;
  transition: background-color .16s ease;
}

.project summary::-webkit-details-marker { display: none; }
.project summary:hover { background: var(--card-hover); }
.project summary:focus-visible { outline-offset: -5px; }
.project-genre { color: var(--genre); }

.project-title {
  margin-top: clamp(1rem, 2.25vw, 2rem);
  font-size: clamp(1.875rem, 3.6vw, 3.375rem);
  font-weight: 680;
  line-height: 1.1;
  letter-spacing: -.055em;
}

.project-tagline {
  display: grid;
  gap: clamp(.625rem, 2.45vw, 2.125rem);
  margin-top: clamp(1rem, 2.3vw, 2rem);
  color: var(--card-text);
  font-size: clamp(1.0625rem, 1.8vw, 1.625rem);
}

.project-arrow {
  position: absolute;
  right: var(--card-padding);
  bottom: calc(var(--card-padding) + .125rem);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1;
  transition: transform .16s ease;
}

.project[open] .project-arrow { transform: rotate(90deg); }

.project-details {
  margin-inline: var(--card-padding);
  padding-block: 1.25rem var(--card-padding);
  border-top: 1px solid color-mix(in srgb, var(--genre) 30%, transparent);
  color: var(--card-text);
}

.project-status {
  margin-bottom: .75rem;
  color: var(--genre);
  font-size: .875rem;
  font-weight: 650;
}

.lower-sections {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.875rem, 6vw, 6rem);
  margin-top: clamp(3rem, 6vw, 6rem);
}

.lower-section h2 { font-size: clamp(1.875rem, 3vw, 2.75rem); }
.lower-section .body-copy { margin-top: 1.125rem; }

.about-sections {
  display: grid;
  gap: 1.375rem;
  margin-top: 1.75rem;
  overflow-wrap: anywhere;
}

.about-sections:empty { display: none; }

.about-sections h3 {
  margin: 0 0 .375rem;
  font-size: 1.125rem;
  line-height: 1.35;
}

.about-sections ul {
  padding-inline-start: 1.25rem;
  color: var(--muted);
}

.about-sections li + li { margin-top: .25rem; }

.body-copy {
  display: grid;
  gap: .875rem;
  max-width: 62ch;
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  line-height: 1.65;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-top: .875rem;
  padding: 0;
  list-style: none;
}

.contact-links a {
  display: inline-flex;
  gap: .45em;
  align-items: baseline;
  padding-block: .45rem;
  font-weight: 600;
  text-underline-offset: .25em;
  overflow-wrap: anywhere;
}

.contact-links a:hover { color: var(--violet-ink); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-block: 1.125rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.site-message {
  max-width: 60ch;
  margin-block: 3rem;
  color: var(--muted);
}

@media (max-width: 48rem) {
  .hero h1 { font-size: clamp(2.125rem, 9.5vw, 3.5rem); }
}

@media (max-width: 42rem) {
  .site-header { min-height: 4.375rem; }
  .projects, .lower-sections { grid-template-columns: 1fr; }
  .project summary { min-height: 15.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .hero-topic-measure { display: none; }
}
