@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #292b27;
  --body: #50534c;
  --muted: #696e63;
  --line: #e5e5de;
  --accent: #536347;
  --hover: #f0f0e9;
  --selection: #dfe5d5;
  --landscape-filter: none;
  --activity-0: #e7e8e1;
  --activity-1: #ccd7bd;
  --activity-2: #a4b78d;
  --activity-3: #788f61;
  --activity-4: #4f663e;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #191c18;
  --ink: #eeeee7;
  --body: #c8cdc2;
  --muted: #a4ac9e;
  --line: #353b31;
  --accent: #b7c8a1;
  --hover: #242a21;
  --selection: #3d4c34;
  --landscape-filter: brightness(.72) saturate(.7);
  --activity-0: #30362d;
  --activity-1: #44523b;
  --activity-2: #657853;
  --activity-3: #90a779;
  --activity-4: #bed2a8;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--selection);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 16px;
  padding: 8px 12px;
  background: var(--paper);
  transform: translateY(-160%);
  z-index: 1;
}

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

.page {
  width: min(100% - 48px, 600px);
  margin: 0 auto;
  padding: 84px 0 48px;
}

.intro-top {
  display: block;
  position: relative;
}

h1 {
  margin: 0;
  padding-right: 52px;
  color: var(--ink);
  font-family: inherit;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.3px;
  line-height: 1.4;
}

.theme-toggle {
  position: absolute;
  top: -5px;
  right: -8px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
  background: var(--hover);
  color: var(--ink);
}

.theme-toggle svg {
  position: absolute;
  inset: 13px;
  width: 18px;
  height: 18px;
}

.theme-sun,
[data-theme="dark"] .theme-moon {
  opacity: 0;
}

.theme-moon,
[data-theme="dark"] .theme-sun {
  opacity: 1;
}

/* The browser captures both themes; only a small SVG mask moves between them. */
:root.theme-shift::view-transition-old(root),
:root.theme-shift::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

:root.theme-shift::view-transition-group(root) {
  animation-duration: 0s;
}

:root.theme-shift::view-transition-new(root) {
  mask-image: var(--theme-mask);
  mask-size: var(--theme-mask-size);
  mask-repeat: no-repeat;
  mask-position: var(--theme-mask-end);
}

:root.theme-shift::view-transition {
  pointer-events: none;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin-top: 9px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.075em;
  line-height: 1.5;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 150ms ease;
}

.icon-link svg {
  width: 13px;
  height: 13px;
}

.icon-link:hover,
.icon-link:focus-visible {
  color: var(--ink);
}

.icon-link:hover .contact-label {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.intro-copy {
  margin: 17px 0 0;
  max-width: 560px;
  text-wrap: pretty;
}

.landscape {
  margin: 32px 0 40px;
}

.landscape img,
.lake-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  border-radius: 3px;
  object-fit: cover;
  filter: var(--landscape-filter);
}

lake-ripple {
  display: block;
  position: relative;
}

lake-ripple:not([data-ready]) .lake-canvas {
  position: absolute;
  inset: 0 auto auto 0;
  visibility: hidden;
}

.lake-canvas {
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.lake-caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 28px;
  margin: 10px 0 -14px;
}

.lake-hint {
  flex: 1;
  min-height: 28px;
  margin: 0;
  color: var(--muted);
  font: 11px / 14px ui-monospace, "SFMono-Regular", Consolas, monospace;
  text-align: right;
  opacity: 0;
  transition: opacity 400ms ease;
}

lake-ripple[data-ready]:not([data-reduced]) .lake-hint:not(.is-seen) {
  opacity: 1;
}

.lake-controls {
  position: absolute;
  inset: auto 8px 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
}

.lake-controls:focus-within {
  opacity: 1;
  pointer-events: auto;
}

.lake-controls button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.lake-controls button:hover {
  background: var(--hover);
}

lake-ripple[data-reduced] .lake-controls {
  display: none;
}

h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 550;
  line-height: 1.5;
}

.work p {
  margin: 0 0 16px;
  text-wrap: pretty;
}

.work-name {
  color: var(--ink);
  font-weight: inherit;
}

.work .background {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.projects {
  margin-top: 42px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  margin-bottom: 10px;
}

.projects > h2 {
  margin-bottom: 10px;
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-list li + li {
  border-top: 1px solid var(--line);
}

.project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-inline: -12px;
  padding: 15px 12px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.project-name, .project-description {
  display: block;
}

.project-name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 550;
}

.project-description {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.project-arrow {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 17px;
  transition: color 150ms ease, transform 150ms ease;
}

.project:hover {
  background: var(--hover);
}

.project:hover .project-name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.project:hover .project-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.private-work {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.6;
}

.private-work p {
  margin: 0 0 10px;
}

.private-work ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.private-work li {
  padding-left: 2px;
}

.private-work li + li {
  margin-top: 8px;
}

.investments {
  margin-top: 28px;
}

.investments summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 44px;
  color: var(--body);
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}

.investments summary::-webkit-details-marker {
  display: none;
}

.investments summary:hover {
  color: var(--ink);
}

.investments-chevron {
  flex: none;
  color: var(--muted);
}

.investments[open] .investments-chevron {
  transform: rotate(90deg);
}

.investment-list {
  display: flex;
  flex-wrap: wrap;
  row-gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  list-style: none;
}

.investment-list li {
  display: inline-flex;
  align-items: baseline;
}

.investment-divider {
  margin-inline: 8px;
}

.activity {
  margin-top: 40px;
}

.activity-profile {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  text-decoration: none;
}

.activity-profile:hover {
  text-decoration: underline;
}

.activity-scroll {
  overflow-x: auto;
  padding: 10px 0 8px;
  scrollbar-width: thin;
  scrollbar-color: #a4b78d var(--paper);
}

.activity-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.activity-scroll img {
  display: block;
  width: 100%;
  min-width: 580px;
  height: auto;
}

.activity-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 4px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.activity-meta p {
  margin: 0;
}

.activity-meta strong {
  color: var(--ink);
  font-weight: 550;
}

.activity-legend {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
}

.activity-legend i {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--level);
}

.activity-legend i:first-of-type {
  margin-left: 4px;
}

.activity-legend i:last-of-type {
  margin-right: 4px;
}

.activity-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

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

.footer {
  margin-top: 38px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--ink);
  text-decoration-color: #a8ad9e;
}

.footer a:hover {
  text-decoration-color: var(--ink);
}

.location {
  display: block;
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  .page {
    padding-top: 40px;
    padding-bottom: 32px;
  }
  .icon-link {
    min-height: 44px;
  }
  .intro-copy {
    margin-top: 18px;
  }
  .landscape {
    margin-top: 26px;
    margin-bottom: 32px;
  }
  .projects {
    margin-top: 34px;
  }
}

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