/* Studio: a small page that follows the device's colour scheme. */
:root {
  color-scheme: light dark;
  --paper: #f8f9fa;
  --ink: #20262b;
  --muted: #606b75;
  --hover: #e9edf1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171a1d;
    --ink: #e9edf0;
    --muted: #a4acb3;
    --hover: #242a30;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
::selection { background: var(--ink); color: var(--paper); }
.page {
  width: min(calc(100% - 84px), 900px);
  min-height: 100svh;
  margin-inline: auto;
  padding-top: 30px;
  padding-bottom: 48px;
}
.masthead { text-align: center; }
.domain,
.project-domain {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.02em;
  color: var(--muted);
}
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px minmax(0, 1fr);
  align-items: start;
  gap: clamp(56px, 6.25vw, 80px);
  padding-top: clamp(96px, calc(32svh - 50px), 270px);
}
.portrait {
  position: relative;
  margin: 0;
  min-height: 0;
  align-self: stretch;
}
.portrait img {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: block;
  height: 140%;
  max-height: 360px;
  width: auto;
  max-width: none;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  min-height: clamp(205px, 28svh, 300px);
}
h1 {
  margin: 0;
  font-size: 58px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.055em;
}
.intro p {
  margin: 24px 0 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -.02em;
  color: var(--muted);
  text-wrap: pretty;
}
.projects {
  margin-top: 0;
  align-self: stretch;
  justify-self: start;
  width: max-content;
  max-width: 100%;
}
.project-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 0;
}
.project {
  display: block;
  margin-inline: -16px;
  padding: 22px 16px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 150ms ease;
}
.project-details { display: grid; gap: 9px; }
.project-name {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.project-domain { overflow-wrap: anywhere; }
@media (hover: hover) {
  .project:hover { background: var(--hover); }
}
.project:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  background: var(--hover);
}
@media (max-width: 1000px) {
  .page { width: min(calc(100% - 56px), 570px); }
  main {
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.45fr);
    column-gap: 28px;
    row-gap: 28px;
    padding-top: clamp(96px, 16svh, 160px);
  }
  .portrait img {
    height: 118%;
    max-height: none;
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .intro { display: block; min-height: 0; text-align: left; }
  .projects {
    grid-column: 2;
    margin-top: 0;
    justify-self: stretch;
    align-self: start;
    width: auto;
  }
  .project-list { display: grid; height: auto; }
}
@media (max-width: 560px) {
  .page {
    width: calc(100% - 56px);
    padding-top: 28px;
    padding-bottom: 44px;
  }
  main {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 62px;
  }
  .portrait { width: 156px; align-self: start; justify-self: center; }
  .portrait img {
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
  }
  h1 { font-size: 44px; word-spacing: .10em; }
  .intro { max-width: 340px; }
  .intro p { margin-top: 24px; }
  .projects { grid-column: 1; margin-top: 0; }
  .project { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .project { transition: none; }
}
