:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --ink: #181e23;
  --muted: #4d565c;
  --line: #d8dcd5;
  --blue: #2f41d7;
  --lime: #e3f58b;
  --sans: "Manrope", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
}

img { display: block; max-inline-size: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 3px solid #4959ec; outline-offset: 5px; }

.shell {
  width: min(100% - clamp(2rem, 8vw, 8rem), 76rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: 1rem;
  left: 1rem;
  padding: .625rem 1rem;
  background: var(--ink);
  color: white;
  translate: 0 -200%;
}

.skip-link:focus { translate: 0; }
.site-header { border-bottom: 1px solid var(--line); }

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-inner { min-height: 4.75rem; }
.brand {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -.09em;
  font-weight: 800;
  text-decoration: none;
}

.brand span { color: var(--blue); }
.navigation, .footer-nav { display: flex; align-items: center; gap: .3rem; }
.navigation a, .footer-nav a {
  padding: .48rem .88rem;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 800;
  text-decoration: none;
}

.navigation a:hover, .footer-nav a:hover { background: #e9ebe5; }
.navigation a[aria-current] { background: var(--ink); color: white; }

.home-hero {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  align-items: center;
  gap: clamp(1.75rem, 4.5vw, 4.75rem);
  padding-block: clamp(2.5rem, 5.25vw, 5rem);
}

.eyebrow {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.display {
  margin-block: .75rem 1.1rem;
  font-family: var(--serif);
  font-size: clamp(4rem, 8.4vw, 8.25rem);
  font-weight: 400;
  line-height: .84;
  letter-spacing: -.046em;
}

.display em { color: var(--blue); font-weight: inherit; }
.hero-description { max-width: 33ch; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.125rem); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .6rem 1.25rem;
  border-radius: 100px;
  font-size: .9375rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color .2s ease, translate .2s ease;
}

.button:hover { translate: 0 -2px; }
.button-primary { background: var(--blue); color: white; }
.button-primary:hover { background: #2030b5; }
.button-light { background: var(--lime); color: var(--ink); }
.button-light:hover { background: #f0fbbb; }

.hero-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin-top: 1.5rem;
}

.hero-secondary-link { font-size: .9375rem; font-weight: 800; text-underline-offset: .25em; }
.hero-secondary-link:hover { color: var(--blue); }

.app-art {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.24;
  overflow: hidden;
  border: 1px solid #2b3ccc;
  border-radius: 1.55rem;
  background:
    radial-gradient(ellipse at 29% 5%, #6275ff 0%, transparent 58%),
    radial-gradient(ellipse at 88% 100%, #24249b 0%, transparent 66%),
    #374be3;
}

.app-art::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(#f3f4ff66 .8px, transparent .8px);
  background-size: 14px 14px;
  mask-image: linear-gradient(125deg, transparent 5%, black 90%);
  content: "";
}

.art-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 121%;
  height: 46%;
  transform: translate(-50%, -50%) rotate(-33deg);
  border: 1px solid #e2e9ff88;
  border-radius: 50%;
  box-shadow: 0 0 0 1.3rem #c6d4ff20, 0 0 0 2.7rem #c6d4ff16;
}

.art-icon {
  position: absolute;
  width: var(--size);
  height: auto;
  border-radius: 23%;
  background: #151e26;
  box-shadow: 0 1.2rem 2.25rem #0e124d70, 0 0 0 1px #ffffff29;
}

.art-summary { --size: 30%; top: 32%; left: 34%; z-index: 2; rotate: -9deg; }
.art-sum { --size: 25%; top: 18%; left: 60%; z-index: 1; rotate: 13deg; }
.art-sleep { --size: 23%; top: 57%; left: 18%; z-index: 1; rotate: -18deg; }

.art-spark {
  position: absolute;
  aspect-ratio: 1;
  background: var(--lime);
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
}

.art-spark-large { width: 12%; top: 13%; left: 19%; rotate: 12deg; }
.art-spark-small { width: 7%; top: 73%; left: 76%; rotate: -13deg; }

.featured-app {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  overflow: hidden;
  margin-bottom: clamp(2.5rem, 5.5vw, 5.5rem);
  border: 1px solid #223d44;
  border-radius: 1.35rem;
  background: #13282e;
  color: white;
  scroll-margin-top: 1rem;
}

.featured-copy { padding: clamp(1.5rem, 4.5vw, 4.5rem); }
.featured-copy .eyebrow { color: #a9eadb; }
.featured-copy h2 {
  margin-block: .35rem .6rem;
  font: 400 clamp(3.4rem, 7.5vw, 7rem)/.94 var(--serif);
  letter-spacing: -.035em;
}

.featured-note { color: #a9eadb; font-size: 1.05rem; font-weight: 800; }
.featured-description { max-width: 43ch; margin-block: .65rem 1.5rem; color: #deebe9; }
.featured-copy .website-link { border-color: #d9ebe861; }
.featured-copy .website-link:hover { background: #314c53; }
.featured-app :focus-visible { outline-color: #a9eadb; }

.featured-art {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  min-height: 22rem;
  background: radial-gradient(ellipse at 55% 75%, #367a78, transparent 70%), #193940;
}

.featured-art img {
  position: absolute;
  top: 3rem;
  left: 50%;
  width: min(58%, 14rem);
  height: auto;
  border: .3rem solid #92bcb5;
  border-radius: 1.7rem;
  box-shadow: 0 1rem 2rem #0a1e20a0;
  transform: translateX(-50%) rotate(8deg);
}

.catalogue { scroll-margin-top: 1rem; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  padding-block: 1rem 1.45rem;
  border-top: 1px solid var(--line);
}

.section-heading h2, .photo-preview h2 {
  font: 400 clamp(2.75rem, 5vw, 4.75rem)/1 var(--serif);
  letter-spacing: -.035em;
}

.section-heading p { color: var(--muted); font-size: .875rem; font-weight: 700; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.app-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.125rem, 2.25vw, 1.75rem);
  border: 1px solid #18202421;
  border-radius: 1.15rem;
  background: var(--card-color);
}

.mint { --card-color: #e9f3ed; }
.peach { --card-color: #faeee1; }
.lavender { --card-color: #eeecfa; }

.app-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .7rem;
  margin-bottom: 1.25rem;
}

.app-icon { border-radius: 23%; box-shadow: 0 .3rem .9rem #18202422; }
.app-category {
  padding: .25rem .7rem;
  border: 1px solid #18202425;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 800;
}

.app-status {
  border-color: #2f41d733;
  background: #e5e8ff;
  color: #2938a6;
}

.app-card h3 { font-size: clamp(1.375rem, 2.1vw, 1.875rem); line-height: 1.15; letter-spacing: -.045em; }
.app-card p { margin-block: .7rem 1.4rem; color: var(--muted); line-height: 1.6; }

.app-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem .8rem;
  margin-top: auto;
}

.appstore-badge, .website-link { border-radius: .45rem; }
.appstore-badge { display: inline-block; transition: opacity .2s ease; background: #000; }
.appstore-badge:hover { opacity: .8; }
.appstore-badge img { width: 120px; height: 40px; }

.website-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: .3rem .78rem;
  border: 1px solid #18202435;
  font-size: .875rem;
  font-weight: 800;
  text-decoration: none;
}

.website-link:hover { background: var(--ink); color: white; }

.photo-preview {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  overflow: hidden;
  margin-block: clamp(3.25rem, 7vw, 6.75rem);
  border-radius: 1.25rem;
  background: #202825;
  color: white;
}

.photo-preview img { width: 100%; height: 100%; max-height: 26rem; object-fit: cover; object-position: center 66%; }
.photo-preview-copy { align-self: center; padding: clamp(1.75rem, 5.5vw, 4.5rem); }
.photo-preview p { max-width: 31ch; margin-block: .9rem 1.4rem; color: #d6ded7; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 6.5rem; padding-block: 1.25rem; flex-wrap: wrap; }
.footer-inner p { font-size: .875rem; color: var(--muted); }

.photo-hero { padding-block: clamp(2.5rem, 5vw, 4.75rem) clamp(2rem, 5vw, 4.75rem); }
.photo-hero-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: .65rem 1.5rem;
  margin-bottom: clamp(1.5rem, 3.6vw, 3rem);
}

.photo-hero-copy .eyebrow { grid-column: 1 / -1; }
.photo-hero .display { margin: 0; }
.photo-hero .hero-description { padding-bottom: .25rem; }
.photo-cover a { display: block; overflow: hidden; border-radius: 1.25rem; background: #e9dfc8; }
.photo-cover img {
  width: 100%;
  height: auto;
  max-height: min(57vh, 34rem);
  aspect-ratio: 2.15;
  object-fit: cover;
  object-position: center 57%;
  transition: scale .45s ease;
}

.photo-cover a:hover img { scale: 1.03; }
.photo-cover figcaption { margin-top: .65rem; color: var(--muted); font-size: .875rem; font-weight: 700; }
.photo-collection { padding-bottom: clamp(3rem, 7vw, 6rem); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.7rem, 2vw, 1.5rem);
}

.shot {
  position: relative;
  display: flex;
  align-items: end;
  aspect-ratio: 1.22;
  isolation: isolate;
  overflow: hidden;
  border-radius: .75rem;
  background: #dfe3dc;
  color: white;
  text-decoration: none;
  scroll-margin-top: 1.25rem;
}

.shot img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale .35s ease;
}

.shot:hover img { scale: 1.055; }
.shot::before {
  position: absolute;
  z-index: -1;
  inset: 38% 0 0;
  background: linear-gradient(transparent, #111810eb);
  content: "";
}

.shot-caption { padding: .8rem 1rem; font-size: .9375rem; font-weight: 700; line-height: 1.3; }

html:has(.lightbox[open]) { overflow: hidden; }
.lightbox {
  width: min(100% - 2rem, 74rem);
  max-width: none;
  max-height: 100dvh;
  overflow: auto;
  padding: 1rem;
  border: none;
  border-radius: 1rem;
  background: #151b1a;
  color: white;
}

.lightbox::backdrop { background: #0c1012e8; }
.lightbox :focus-visible { outline-color: var(--lime); }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lightbox-count { padding-inline-start: .5rem; color: #d6ded7; font-size: .875rem; }
.lightbox-view { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; }
.lightbox-control {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 0 .12em;
  border: 1px solid #ffffff4d;
  border-radius: 100%;
  background: transparent;
  color: white;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-control:hover { background: #ffffff24; }
.lightbox-figure img { width: 100%; height: min(71dvh, 48rem); object-fit: contain; }
.lightbox-figure figcaption { margin-top: .5rem; text-align: center; }

@media (max-width: 58rem) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-hero-copy { grid-template-columns: 1fr; }
  .photo-hero .display { margin-bottom: .3rem; }
  .photo-hero .hero-description { max-width: 45ch; }
}

@media (max-width: 44rem) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero .display { font-size: clamp(4rem, 12.5vw, 6rem); }
  .app-art { aspect-ratio: 1.4; }
  .art-summary { top: 29%; }
  .art-sleep { top: 53%; }
  .featured-app { grid-template-columns: 1fr; }
  .featured-art { min-height: clamp(14rem, 57vw, 18rem); }
  .featured-art img { top: 2rem; }
  .photo-preview { grid-template-columns: 1fr; }
  .photo-preview img { aspect-ratio: 1.5; max-height: 17rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-cover img { aspect-ratio: 1.58; }
}

@media (max-width: 34rem) {
  .header-inner { min-height: 3.85rem; }
  .navigation a { padding-inline: .72rem; }
  .home-hero .display { font-size: clamp(3.25rem, 13vw, 4.4rem); }
  .photo-hero .display { font-size: clamp(2.75rem, 13vw, 4rem); }
  .app-grid { grid-template-columns: 1fr; }
  .footer-nav { width: 100%; margin-left: -.88rem; }
  .shot { aspect-ratio: 1; }
  .shot-caption { padding: .6rem; font-size: .875rem; }
  .lightbox { padding: .6rem; }
  .lightbox-view { gap: .5rem; }
  .lightbox-figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox-figure img { max-height: 65dvh; }
  .lightbox-view button { grid-row: 2; }
  #next-photo { grid-column: 3; }
}

@media (max-width: 21rem) {
  .header-inner { gap: .5rem; }
  .header-inner .brand { font-size: 1.6rem; }
  .navigation { gap: .15rem; }
  .navigation a { padding-inline: .45rem; }
}

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