:root {
  --bg: #090b10;
  --text: #f7f8fb;
  --muted: rgba(239, 243, 250, .58);
  --glass: rgba(255, 255, 255, .075);
  --glass-hover: rgba(255, 255, 255, .115);
  --line: rgba(255, 255, 255, .13);
  --line-strong: rgba(255, 255, 255, .22);
  --shadow: 0 24px 72px rgba(0, 0, 0, .30);
  --radius: 22px;
  --background-photo: none;
  --background-position-x: 50%;
  --background-position-y: 50%;
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-image:
    linear-gradient(rgba(6, 8, 12, .48), rgba(6, 8, 12, .66)),
    var(--background-photo),
    radial-gradient(circle at 15% 10%, rgba(125, 145, 255, .23), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(93, 255, 219, .16), transparent 28rem),
    radial-gradient(circle at 62% 82%, rgba(214, 120, 255, .13), transparent 34rem),
    linear-gradient(145deg, #111722 0%, #090b10 68%);
  background-size: auto, cover, auto, auto, auto, auto;
  background-position: center, var(--background-position-x) var(--background-position-y), center, center, center, center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .18;
}

body::before {
  top: -11rem;
  right: -8rem;
  background: rgba(125, 165, 255, .8);
}

body::after {
  bottom: -12rem;
  left: -9rem;
  background: rgba(186, 115, 255, .65);
}

a { color: inherit; }

.shell {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 66px 0 38px;
}

.hero {
  margin-bottom: 44px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .18em;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 9vw, 4.5rem);
  line-height: .94;
  letter-spacing: -.055em;
  font-weight: 760;
}

section {
  margin-top: 42px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  color: rgba(255,255,255,.87);
  font-size: .78rem;
  letter-spacing: .17em;
}

.text-link,
.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: .86rem;
  transition: color .15s ease;
}

.text-link:hover,
.back-link:hover {
  color: var(--text);
}

.links {
  display: grid;
  gap: 10px;
}

.link-card,
.project-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.095), rgba(255,255,255,.045));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    var(--shadow);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}

.link-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  padding: 0 18px;
  border-radius: 18px;
  text-decoration: none;
  transition:
    transform .16s ease,
    background .16s ease,
    border-color .16s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.07));
  border-color: var(--line-strong);
}

.link-card span:last-child {
  color: var(--muted);
  font-size: .9rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    var(--shadow);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.photo-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  padding: 0;
  background: rgba(255,255,255,.05);
  cursor: pointer;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    transform .26s ease,
    filter .2s ease;
}

.photo-tile:hover img {
  transform: scale(1.045);
  filter: brightness(1.04);
}

.photo-slot {
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
}

.photo-grid-all {
  margin-top: 34px;
}

.projects {
  display: grid;
  gap: 10px;
}

.project-card {
  padding: 18px;
  border-radius: 18px;
}

.project-card h3 {
  margin: 0 0 6px;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

footer {
  display: flex;
  justify-content: space-between;
  margin-top: 64px;
  padding: 17px 2px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-size: .76rem;
}

.subnav {
  margin-bottom: 46px;
}

.page-title {
  margin-bottom: 8px;
}

.lightbox {
  width: min(920px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(18, 21, 29, .80);
  color: var(--text);
  box-shadow: 0 32px 110px rgba(0,0,0,.5);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
}

.lightbox::backdrop {
  background: rgba(4, 6, 10, .72);
  backdrop-filter: blur(10px);
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: rgba(0,0,0,.22);
  opacity: 0;
  transition: opacity .16s ease;
}

.lightbox img.is-ready {
  opacity: 1;
}

.lightbox-meta {
  padding: 14px 18px 18px;
}

.lightbox-meta time {
  color: var(--muted);
  font-size: .78rem;
}

.lightbox-meta p {
  margin: 6px 0 0;
  line-height: 1.6;
}

.close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(10,12,16,.55);
  color: white;
  font-size: 1.35rem;
  cursor: pointer;
  backdrop-filter: blur(16px);
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 22px, 720px);
    padding-top: 38px;
  }

  .hero {
    margin-bottom: 38px;
  }

  .photo-grid {
    gap: 4px;
    padding: 6px;
    border-radius: 15px;
  }

  .photo-tile,
  .photo-slot {
    border-radius: 8px;
  }
}

/* Cosmetic photo-download deterrence */
.photo-grid img,
.lightbox img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}