@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #fcfbf8;
  --surface: #ffffff;
  --surface-alt: #f5efe6;
  --text: #242320;
  --heading: rgb(151 127 76);
  --muted: rgb(103, 96, 118);
  --border: #ddd5cb;
  --accent: rgb(98, 118, 72);
  --accent-strong: rgb(60, 92, 48);
  --wash-1: rgba(98, 118, 72, 0.72);
  --wash-2: rgba(158, 118, 76, 0.76);
  --wash-3: rgba(103, 96, 118, 0.68);
  --wash-4: rgba(60, 68, 52, 0.78);
  --wash-halo: rgba(255, 255, 255, 0.34);
  --wash-glint: rgba(224, 180, 78, 0.82);
  --font-body: "Cormorant Garamond", Georgia, serif;
  --font-ui: "neue-haas-grotesk-display", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.8rem;
  --step-4: 2.4rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --page-max: 72rem;
  --prose-max: 42rem;
  --media-radius: 0.25rem;
  --shadow: 0 20px 40px rgba(35, 29, 22, 0.08);
  --shell-shadow: 0 22px 44px rgba(48, 38, 28, 0.3);
  --sticky-glint-shadow: 0 4px 12px 2px rgba(48, 38, 28, 0.08);
  --image-border: rgba(84, 70, 56, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface-alt);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-1);
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
}

a:active {
  color: var(--wash-glint);
}

a:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--heading);
  font-family: var(--font-ui);
  font-weight: 500;
  line-height: 1.1;
}

.site-shell {
  min-height: 100vh;
  background: var(--surface);
  box-shadow: var(--shell-shadow);
}

.page {
  width: min(100% - 1.5rem, var(--page-max));
  margin-inline: auto;
}

.site-header,
.site-footer {
  padding-block: var(--space-5);
  background: var(--surface);
}

.site-header {
  position: relative;
}

.site-header::after,
.site-shell::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background:
    linear-gradient(
      100deg,
      var(--wash-4) 0%,
      var(--wash-1) 16%,
      var(--wash-2) 30%,
      var(--wash-halo) 36%,
      var(--wash-glint) 38%,
      var(--wash-3) 46%,
      var(--wash-4) 58%,
      var(--wash-glint) 68%,
      var(--wash-2) 80%,
      var(--wash-1) 100%
    );
  background-size: 220% 100%;
  opacity: 0.9;
  animation: watercolor-glint 5.5s ease-in-out infinite alternate;
  pointer-events: none;
}

.site-shell::before {
  position: fixed;
  top: 0;
  bottom: auto;
  z-index: 1000;
  opacity: 0;
  box-shadow: var(--sticky-glint-shadow);
  transition: opacity 180ms ease;
}

.glint-is-stuck .site-shell::before {
  opacity: 0.9;
}

.site-header__mark {
  display: block;
}

.site-header__mark img {
  width: 100%;
}

@keyframes watercolor-glint {
  0% {
    background-position: 0% 50%;
    filter: saturate(0.9) brightness(0.96);
  }

  50% {
    background-position: 55% 50%;
    filter: saturate(1.16) brightness(1.18);
  }

  100% {
    background-position: 100% 50%;
    filter: saturate(0.92) brightness(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header::after {
    animation: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #1f1a15;
    --surface: #15110d;
    --surface-alt: #0f0c09;
    --text: #ddd7cf;
    --heading: rgb(188 161 103);
    --muted: rgb(143, 137, 159);
    --border: #413628;
    --accent: rgb(126, 149, 96);
    --accent-strong: rgb(94, 126, 73);
    --wash-1: rgba(126, 149, 96, 0.76);
    --wash-2: rgba(171, 132, 86, 0.8);
    --wash-3: rgba(143, 137, 159, 0.72);
    --wash-4: rgba(80, 93, 63, 0.8);
    --wash-halo: rgba(255, 246, 225, 0.28);
    --wash-glint: rgba(235, 191, 90, 0.86);
    --shadow: 0 22px 44px rgba(0, 0, 0, 0.3);
    --shell-shadow: 0 22px 44px rgba(0, 0, 0, 0.45);
    --sticky-glint-shadow: 0 4px 12px 2px rgba(0, 0, 0, 0.22);
    --image-border: rgba(231, 221, 207, 0.12);
  }
}

.site-main {
  padding-bottom: var(--space-8);
  background: var(--bg);
}

.section {
  padding-block: var(--space-6);
}

.stack > * + * {
  margin-top: var(--space-4);
}

.stack-lg > * + * {
  margin-top: var(--space-6);
}

.prose {
  max-width: var(--prose-max);
}

.prose p + p {
  margin-top: var(--space-4);
}

.eyebrow {
  color: var(--wash-1);
  font-family: var(--font-ui);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  font-size: var(--step-3);
}

.project-card__meta,
.site-footer__social,
.site-footer__legal {
  color: var(--muted);
}

.figure-caption {
  color: var(--wash-1);
}

.media-card img,
.project-card__media img,
.feature-art img,
.brand-tile img {
  border-radius: var(--media-radius);
  border: 1px solid var(--image-border);
  box-shadow: var(--shadow);
}

.project-card__media .media-card {
  display: block;
  aspect-ratio: 5 / 2;
  overflow: hidden;
  border-radius: var(--media-radius);
}

.project-card__media .media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: none;
}

.project-card__media .media-card--freeform {
  aspect-ratio: auto;
  overflow: visible;
}

.project-card__media .media-card--freeform img {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: initial;
}

.project-card__media {
  width: fit-content;
  max-width: 100%;
}

.feature-art--stacked {
  display: block;
}

.feature-art--stacked > * + * {
  margin-top: var(--space-5);
}

.feature-art--stacked + .project-list {
  margin-top: var(--space-7);
}

.feature-art--hero .media-card,
.feature-art--hero .media-card img {
  display: block;
  width: 100%;
}

.feature-art--hero .media-card {
  aspect-ratio: auto;
  overflow: visible;
}

.feature-art--hero .media-card img {
  height: auto;
  object-fit: initial;
  box-shadow: var(--shadow);
}

.brand-tile--inset {
  justify-self: center;
}

.feature-art,
.split,
.project-card,
.site-footer__grid {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}

.project-list {
  display: grid;
  gap: var(--space-7);
}

.stack.prose + .project-list,
.feature-art--stacked + .project-list {
  margin-top: var(--space-8);
}

.project-list > :first-child {
  padding-top: 0;
  border-top: 0;
}

.project-card {
  padding-block: var(--space-5);
  border-top: 1px solid var(--border);
}

.project-card__title {
  font-size: var(--step-2);
}

.cta-link,
.project-card .cta-link {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.project-card__body p:has(.cta-link) {
  margin-top: var(--space-3);
}

.cta-link::after,
.project-card .cta-link::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.35em;
  opacity: 0;
  transform: translateX(-0.2em);
  transition: opacity 160ms ease, transform 160ms ease;
}

.cta-link:hover::after,
.cta-link:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}


.brand-tile {
  width: min(14rem, 100%);
}

.planet-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  max-width: 28rem;
}

.planet-strip img {
  width: 100%;
  border-radius: var(--media-radius);
  box-shadow: var(--shadow);
}

.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer__social,
.site-footer__legal {
  font-family: var(--font-ui);
  font-size: var(--step--1);
}

.site-footer__badge img {
  width: 3rem;
}

@media (min-width: 40rem) {
  .page {
    width: min(100% - 2.5rem, var(--page-max));
  }
}

@media (min-width: 64rem) {
  .site-header,
  .site-footer {
    padding-block: var(--space-6);
  }

  .feature-art {
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
    gap: var(--space-7);
  }

  .feature-art--stacked {
    display: block;
  }

  .split {
    grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
    gap: var(--space-7);
  }

  .project-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-5);
  }

  .site-footer__grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .planet-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-footer__badge {
    justify-self: center;
  }

  .site-footer__legal {
    text-align: right;
  }

  .brand-tile--inset {
    justify-self: end;
  }
}
