:root {
  --bg: #fbfbfd;
  --ink: #0b0d12;
  --muted: #555b69;
  --subtle: #8a90a0;
  --hairline: rgba(11, 13, 18, 0.09);
  --ignition: #ff5a1f;
  --flame: #ffae1a;
  --glow: rgba(255, 90, 31, 0.22);
  --focus: #ff5a1f;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07080c;
    --ink: #f3f4f7;
    --muted: #a4a9b7;
    --subtle: #6e7485;
    --hairline: rgba(255, 255, 255, 0.09);
    --glow: rgba(255, 90, 31, 0.3);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  position: relative;
  z-index: 2;
  padding-top: 1.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

/* Landing */

.hero {
  position: relative;
  min-height: calc(100svh - 3.25rem);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
  max-width: 44rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 1.5rem 0 0;
  max-width: 32rem;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cta:hover {
  transform: translateY(-1px);
}

.cta:active {
  transform: scale(0.98);
}

.cta svg {
  width: 1rem;
  height: 1rem;
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cta:hover svg {
  transform: translate(2px, -2px);
}

.trajectory {
  position: absolute;
  z-index: 0;
  right: -2rem;
  bottom: 0;
  width: min(62rem, 92vw);
  height: auto;
  overflow: visible;
  pointer-events: none;
}

.trajectory-path {
  fill: none;
  stroke: url(#trajectory-stroke);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ascend 1.8s cubic-bezier(0.3, 0, 0.1, 1) 0.2s forwards;
}

.trajectory-craft {
  fill: var(--flame);
  opacity: 0;
  animation: ignite 0.6s ease-out 1.8s forwards;
}

@keyframes ascend {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ignite {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trajectory-path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .trajectory-craft {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 40rem) {
  .hero {
    align-items: flex-start;
  }

  .hero-copy {
    padding: 4.5rem 0 16rem;
  }

  .trajectory {
    right: 0;
    width: 100vw;
  }
}

/* About and gallery */

.photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  object-fit: cover;
  background: var(--hairline);
  outline: 1px solid var(--hairline);
  outline-offset: -1px;
}

.about {
  padding: 7rem 0 5rem;
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.about p {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
}

.about-photo {
  aspect-ratio: 4 / 3;
}

.gallery {
  padding: 0 0 7rem;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
}

.gallery-grid .photo {
  aspect-ratio: 3 / 2;
}

@media (min-width: 48rem) {
  .gallery-grid {
    grid-template-columns: 2fr 1fr;
  }

  .gallery-grid .gallery-feature {
    grid-row: span 2;
    aspect-ratio: auto;
    height: 100%;
  }
}

@media (min-width: 60rem) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

/* Legal documents */

.document {
  flex: 1;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.document > header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}

.document h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.document .body {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.document .body p {
  margin: 0 0 1.25rem;
}

.document .body h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.document .body strong {
  font-weight: 600;
  color: var(--ink);
}

.document .body ul {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.document .body li {
  margin-bottom: 0.25rem;
}

.document .body a {
  color: var(--ink);
  text-underline-offset: 2px;
}

.document .body li::marker {
  color: var(--subtle);
}

/* Not found */

.not-found {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.not-found a {
  margin-top: 1.25rem;
  color: var(--muted);
  font-weight: 500;
}

/* Footer */

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--hairline);
}

.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--subtle);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer nav a {
  text-decoration: none;
  transition: color 120ms ease;
}

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