:root{--accent:#dbff53;--background:#10151d}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-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-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-normal-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-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-normal-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-italic-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-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-italic-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --color-ink: 20 18 16;
  --color-ink-light: 30 27 24;
  --color-cream: 245 240 232;
  --color-ember: 196 80 42;
  --color-well: 37 34 32;
  --surface-page: var(--background, rgb(var(--color-ink)));
  --surface-raised: rgb(var(--color-ink-light));
  --surface-well: rgb(var(--color-well));
  --text-strong: rgb(var(--color-cream));
  --text-body: rgb(var(--color-cream) / 55%);
  --text-muted: rgb(var(--color-cream) / 35%);
  --text-faint: rgb(var(--color-cream) / 25%);
  --border-hairline: rgb(var(--color-cream) / 5%);
  --border-subtle: rgb(var(--color-cream) / 10%);
  --border-strong: rgb(var(--color-cream) / 20%);
  --lime: var(--accent, #dbff53);
  --ember: rgb(var(--color-ember));
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --container: 72rem;
  --ease-brand: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-base: 200ms;
  --dur-mid: 300ms;
  --dur-slow: 500ms;
  --shadow-card-hover: 0 24px 64px rgba(0, 0, 0, 0.5);
  --lift-card: translateY(-5px) rotate(0.3deg);
  font-family: var(--font-body);
  color: var(--text-strong);
  background: var(--surface-page);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--surface-page);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  color: var(--surface-page);
  background: var(--lime);
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 14px;
  color: var(--surface-page);
  background: var(--lime);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  padding: 0 40px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgb(var(--color-ink) / 95%);
  backdrop-filter: blur(4px);
  display: grid;
  grid-template-columns: auto 1px 1fr auto;
  align-items: center;
  gap: 14px;
}

.product-mark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.header-divider {
  width: 1px;
  height: 14px;
  background: var(--border-strong);
}

.maker-lockup a {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  font-weight: 300;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header nav a,
.footer-meta a {
  color: var(--text-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--dur-base) ease;
}

.site-header nav a:hover,
.footer-meta a:hover {
  color: var(--text-strong);
}

main,
.site-footer {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.hero {
  padding: 128px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 96px;
  align-items: center;
}

.hero.compact {
  padding: 96px 0;
}

.eyebrow,
.card-meta,
.crumb,
.section-heading > span,
.capture-actions,
.pagination {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--lime);
  letter-spacing: 0.3em;
}

.hero h1 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 96px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.hero.compact h1 {
  font-size: clamp(58px, 7.4vw, 88px);
}

.hero-tagline {
  margin: 24px 0 0;
  color: var(--text-body);
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  font-weight: 300;
}

.hero-intro {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--text-body);
  font-size: 18px;
  line-height: 1.65;
}

.archive-mark {
  min-height: 232px;
  padding: 40px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.accent-rule {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--lime);
}

.archive-mark strong {
  font-family: var(--font-display);
  font-size: 56px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
}

.gallery-section {
  padding: 96px 0;
}

.section-heading {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading .eyebrow {
  margin: 0;
  color: var(--text-muted);
}

.section-heading > span {
  color: var(--text-muted);
}

.gallery-grid,
.profile-grid,
.capture-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.project-card,
.profile-card,
.capture-card {
  min-width: 0;
  background: var(--surface-raised);
  transition:
    transform var(--dur-mid) var(--ease-brand),
    box-shadow var(--dur-mid) ease;
}

.project-card:hover,
.profile-card:hover,
.capture-card:hover {
  z-index: 2;
  transform: var(--lift-card);
  box-shadow: var(--shadow-card-hover);
}

.card-media,
.image-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--surface-well);
}

.card-media {
  aspect-ratio: 16 / 9;
}

.image-button {
  aspect-ratio: 16 / 10;
  cursor: zoom-in;
}

.card-media img,
.image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-brand);
}

.project-card:hover img,
.profile-card:hover img,
.capture-card:hover img {
  transform: scale(1.05);
}

.card-body {
  padding: 40px;
}

.profile-card .card-body {
  padding: 32px;
}

.capture-body {
  padding: 24px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
}

.card-body h2 {
  margin: 28px 0 10px;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.profile-card .card-body h2 {
  font-size: 32px;
}

.card-body h2 a,
.card-link {
  text-decoration: none;
}

.card-body > p {
  margin: 0 0 28px;
  color: var(--text-body);
  font-size: 16px;
}

.card-link {
  color: var(--lime);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-actions,
.capture-actions {
  padding-top: 20px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.animation-links {
  display: flex;
  gap: 8px;
}

.animation-links a {
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.crumb {
  padding-top: 48px;
  color: var(--text-muted);
}

.crumb a {
  text-decoration: none;
}

.capture-body > strong {
  display: block;
  margin: 18px 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.capture-actions a {
  color: var(--text-body);
  text-decoration: none;
}

.compare {
  padding: 0;
  border: 0;
  color: var(--text-body);
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.browser-compare input {
  accent-color: var(--lime);
}

.browser-compare {
  margin: 64px auto 0;
  padding: 40px;
  border: 1px solid var(--border-subtle);
}

.comparison-tray {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border-subtle);
  background: var(--border-subtle);
}

.compare-slot {
  min-height: 112px;
  padding: 24px;
  background: var(--surface-raised);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.compare-slot.active {
  box-shadow: inset 0 0 0 1px var(--lime);
}

.compare-slot > div:first-child {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.compare-slot span,
.slot-actions button,
.comparison-empty {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compare-slot span {
  color: var(--lime);
}

.compare-slot strong {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-actions {
  display: flex;
  gap: 12px;
}

.slot-actions button {
  padding: 0;
  border: 0;
  background: transparent;
}

.comparison-empty {
  min-height: 96px;
  margin: 0;
  display: grid;
  place-items: center;
  text-align: center;
}

.split-result {
  position: relative;
  width: min(900px, 100%);
  margin-top: 32px;
  margin-inline: auto;
  overflow: hidden;
  background: var(--surface-well);
}

.split-result > img {
  width: 100%;
}

.split-result > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
  border-right: 1px solid var(--lime);
}

.split-result > span img {
  width: 900px;
  max-width: none;
}

.browser-compare input[type="range"] {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  width: calc(100% - 32px);
}

.capture-card.selected-earlier {
  box-shadow: inset 0 0 0 2px var(--lime);
}

.capture-card.selected-later {
  box-shadow: inset 0 0 0 2px var(--text-body);
}

.pagination {
  min-height: 112px;
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-body);
}

.pagination a {
  text-decoration: none;
}

.site-footer {
  margin-top: 96px;
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.footer-maker {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  font-weight: 300;
  text-decoration: none;
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.empty {
  grid-column: 1 / -1;
  padding: 64px 40px;
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
}

dialog {
  width: min(1200px, calc(100% - 48px));
  max-height: calc(100vh - 48px);
  padding: 40px;
  border: 1px solid var(--border-strong);
  color: var(--text-strong);
  background: var(--surface-page);
}

dialog::backdrop {
  background: rgb(var(--color-ink) / 85%);
}

dialog button {
  position: absolute;
  top: 12px;
  right: 16px;
  padding: 0;
  border: 0;
  color: var(--text-body);
  background: transparent;
  font-size: 24px;
}

dialog img {
  max-height: calc(100vh - 140px);
  margin-inline: auto;
}

dialog p {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 980px) {
  .hero-home {
    grid-template-columns: 1fr 260px;
    gap: 48px;
  }

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

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

@media (max-width: 720px) {
  .site-header {
    height: auto;
    min-height: 64px;
    padding: 14px 24px;
    grid-template-columns: auto 1px 1fr;
  }

  .site-header nav {
    grid-column: 1 / -1;
    padding-top: 10px;
  }

  .hero,
  .hero.compact {
    padding: 88px 0;
  }

  .hero-home {
    grid-template-columns: 1fr;
  }

  .archive-mark {
    min-height: 190px;
  }

  .gallery-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .site-footer,
  .compare-slot {
    align-items: flex-start;
    flex-direction: column;
  }

  .comparison-tray {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .site-header nav {
    gap: 18px;
    overflow-x: auto;
  }

  .hero h1,
  .hero.compact h1 {
    font-size: 54px;
  }

  .capture-grid {
    grid-template-columns: 1fr;
  }

  .card-body,
  .profile-card .card-body,
  .capture-body,
  .browser-compare {
    padding: 24px;
  }

  .card-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
