/* Classica Labs
   Mulish is self-hosted under the SIL Open Font License — see fonts/OFL.txt. */

@font-face {
  font-family: Mulish;
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/fonts/mulish-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Mulish;
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/fonts/mulish-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --surface: #F5F5F5;
  --text: #0D0D0D;
  --text-muted: #737373;
  --text-muted-on-surface: #666666;
  --border: #E6E6E6;
  --focus: #0D0D0D;
  --danger: #B42318;
  --rose: #B03A5B;
  --teal: #1F6F6B;
  --pad: 24px;
  --header-offset: 8.75rem;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #020817;
  --surface: #0F172A;
  --text: #F2F2F2;
  --text-muted: #8C8C8C;
  --text-muted-on-surface: #94A3B8;
  --border: #1E293B;
  --focus: #F2F2F2;
  --danger: #F97066;
  --rose: #F08AA6;
  --teal: #5FC4BC;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #020817;
    --surface: #0F172A;
    --text: #F2F2F2;
    --text-muted: #8C8C8C;
    --text-muted-on-surface: #94A3B8;
    --border: #1E293B;
    --focus: #F2F2F2;
    --danger: #F97066;
    --rose: #F08AA6;
    --teal: #5FC4BC;
  }
}

@media (min-width: 640px) {
  :root {
    --pad: 48px;
    --header-offset: 4.75rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0;
}

html {
  background: var(--bg);
  color: var(--text);
  transition: background-color 400ms ease-out, color 400ms ease-out;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: Mulish, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-wrap: break-word;
  transition: background-color 400ms ease-out, color 400ms ease-out;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

:focus {
  outline: none;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  transform: translateY(-200%);
  background: var(--text);
  color: var(--bg);
  padding: 12px 16px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
  font-weight: 400;
}

h1,
.display,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1.display {
  font-size: clamp(2rem, 6vw + 1rem, 2.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

a {
  color: var(--text);
  text-underline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: calc(64rem + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.page {
  flex: 1 0 auto;
}

.page > .shell {
  padding-bottom: 64px;
}

.prose {
  max-width: 38rem;
  font-size: 1.0625rem;
}

.lede,
.sub {
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.page-intro {
  padding-top: 48px;
}

.page-intro h1 {
  margin-bottom: 16px;
}

.section {
  margin-top: 64px;
}

.prose .section > p + p {
  margin-top: 16px;
}

.site-header {
  background: var(--bg);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.wordmark {
  margin-right: auto;
  padding: 12px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: nowrap;
  transition: color 200ms ease-out;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 200ms ease-out;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--text);
}

html:not(.js) .theme-toggle {
  display: none;
}

.icon {
  display: block;
}

.icon-sun {
  display: none;
}

html[data-theme="dark"] .icon-moon {
  display: none;
}

html[data-theme="dark"] .icon-sun {
  display: block;
}

.hero {
  box-sizing: border-box;
  min-height: calc(100svh - var(--header-offset));
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  align-items: center;
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  padding-top: 32px;
  padding-bottom: 48px;
}

.hero .lede {
  margin-top: 16px;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color 200ms ease-out, border-color 200ms ease-out, transform 100ms ease-out;
}

.button:hover {
  background: color-mix(in srgb, var(--text) 92%, #FFFFFF);
  border-color: color-mix(in srgb, var(--text) 92%, #FFFFFF);
}

.button:active {
  transform: scale(0.97);
}

.text-link,
.prose a,
.more a,
.contact-link,
.meta a,
.quiet a {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.text-link:hover,
.prose a:hover,
.more a:hover,
.contact-link:hover,
.meta a:hover,
.quiet a:hover {
  text-decoration-thickness: 2px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.page-intro > .meta {
  margin-top: 24px;
}

.ext {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  vertical-align: -2px;
}

.more {
  margin-top: 24px;
}

.cards {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 24px;
  transition: background-color 400ms ease-out, border-color 400ms ease-out, color 400ms ease-out;
}

.card.later {
  border-style: dashed;
}

.tag {
  display: inline-block;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.quests h2 {
  margin-bottom: 8px;
}

.person h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
}

.person h3 .tag {
  margin: 0;
}

.mark-caption,
.role,
.summary,
.meta,
.quiet {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.mark-caption {
  margin-top: 4px;
  font-size: 0.75rem;
  line-height: 1.4;
}

.role,
.summary,
.bio {
  margin-top: 0;
}

.person .role,
.person .bio {
  margin-top: 8px;
}

.meta {
  margin-top: 8px;
}

.team-strip {
  position: relative;
  z-index: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 16px;
  width: min(100%, 30rem);
  max-width: 100%;
  margin-top: 64px;
  padding-block: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.team-strip:hover {
  opacity: 0.72;
}

.face {
  display: block;
  width: 96px;
  height: 96px;
  flex: none;
  overflow: visible;
  color: var(--text);
}

.face-sm {
  width: 48px;
  height: 48px;
}

.face-xs,
.team-strip .face {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  flex: 0 0 24px;
  /* The small crop has no ring. Clip anyway, so a full-size mark pasted
     here cannot paint over the button. */
  overflow: hidden;
}

.face * {
  vector-effect: non-scaling-stroke;
}

.face-dot {
  fill: currentColor;
  stroke: none;
}

.face-later .face-ring {
  stroke-dasharray: 3 5;
}

.face-xs .face-ring,
.team-strip .face-ring {
  display: none;
}

.face-eyes {
  transform-box: fill-box;
  transform-origin: center;
}

.values,
.quests {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.values li,
.quests li {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.values li:last-child,
.quests li:last-child {
  border-bottom: 1px solid var(--border);
}

.values,
.quests {
  counter-reset: item;
}

.values li,
.quests li {
  counter-increment: item;
}

.values li::before,
.quests li::before {
  content: counter(item, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.values h3 {
  margin-bottom: 8px;
}

.quests a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.quiet {
  margin-top: 48px;
  max-width: 38rem;
  font-size: 0.875rem;
}

.updated {
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* Status rows for the projects template. Not shown while the list is empty. */
.project-rows {
  margin-top: 48px;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.project-row:last-child {
  border-bottom: 1px solid var(--border);
}

.project-row h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.4;
}

.project-row p:not(.tag) {
  margin: 0;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px var(--pad);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
  transition: background-color 400ms ease-out, color 400ms ease-out, border-color 400ms ease-out;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 200ms ease-out;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
  color: var(--text);
}

@keyframes enter {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

.enter {
  animation: enter 700ms ease-out both;
}

.d1 { animation-delay: 60ms; }
.d2 { animation-delay: 120ms; }
.d3 { animation-delay: 180ms; }
.d4 { animation-delay: 240ms; }

@media (max-width: 639px) {
  .nav {
    flex: 1 0 100%;
    order: 3;
  }

  .nav ul {
    gap: 0 16px;
  }

  .header-bar {
    column-gap: 12px;
  }
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-intro {
    padding-top: 64px;
  }

  .project-row {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    column-gap: 24px;
    row-gap: 4px;
    align-items: baseline;
  }

  .project-row .tag {
    grid-row: 1 / span 2;
    justify-self: start;
  }

  .project-row h2,
  .project-row p:not(.tag) {
    grid-column: 2;
  }
}

@media (min-width: 1024px) {
  .section {
    margin-top: 96px;
  }

  .page > .shell {
    padding-bottom: 96px;
  }

  .cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .enter {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .button:active,
  .face,
  .face-eyes,
  .face-gaze {
    transform: none !important;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  :root {
    --bg: Canvas;
    --text: CanvasText;
    --text-muted: CanvasText;
    --border: CanvasText;
    --focus: Highlight;
    --rose: LinkText;
    --teal: LinkText;
  }

  .button {
    background: ButtonFace;
    color: ButtonText;
    border-color: ButtonText;
  }

  .face {
    color: CanvasText;
  }

  .face-dot {
    fill: CanvasText;
  }
}
