/* Loonmight — studio site */
:root {
  --bg: #f3f1ec;
  --bg-deep: #e7e3db;
  --ink: #1a1c1a;
  --muted: #5a5e5a;
  --line: #d4d0c8;
  --accent: #2c4a3e;
  --accent-soft: #3d6354;
  --surface: #faf9f6;
  --max: 40rem;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Sora", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.025rem;
  font-weight: 400;
  line-height: 1.7;
  background:
    linear-gradient(165deg, var(--bg-deep) 0%, transparent 42%),
    linear-gradient(345deg, #ddd8ce 0%, transparent 38%),
    var(--bg);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-soft);
}

.wrap {
  width: min(100% - 2.25rem, var(--max));
  margin: 0 auto;
  padding: 2.75rem 0 4.5rem;
}

header.site {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .inner {
  width: min(100% - 2.25rem, var(--max));
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--display);
  font-weight: 560;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--accent);
}

nav a {
  margin-left: 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--muted);
  text-transform: uppercase;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4.2vw, 2.45rem);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}

h2 {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 560;
  margin: 2.4rem 0 0.7rem;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.6rem 0 0.45rem;
  letter-spacing: 0.01em;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 2rem;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 2rem;
}

.hero-mark {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.2rem;
}

li {
  margin: 0.45rem 0;
}

p {
  margin: 0 0 1rem;
}

.contact-block {
  margin: 1.5rem 0 2rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-block a {
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.link-list li {
  margin: 0;
  border-top: 1px solid var(--line);
}

.link-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.link-list a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.15rem 0;
  text-decoration: none;
  color: inherit;
}

.link-list a:hover strong {
  color: var(--accent);
}

.link-list strong {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 560;
  color: var(--ink);
}

.link-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

footer.site .inner {
  width: min(100% - 2.25rem, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

footer.site a {
  color: var(--muted);
  text-decoration: none;
}

footer.site a:hover {
  color: var(--accent);
}

@media (max-width: 560px) {
  nav a {
    margin-left: 0.7rem;
  }
}

/* Studio and product presentation */
:root {
  --max: 44rem;
  --wide: 72rem;
  --accent-bright: #b9ff68;
  --dark: #111814;
  --dark-muted: #bdc8c0;
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.8), transparent 28rem),
    var(--bg);
}

.wide {
  width: min(100% - 3rem, var(--wide));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero {
  padding: clamp(5rem, 11vw, 9rem) 0;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.55fr);
  align-items: center;
  gap: clamp(3rem, 9vw, 8rem);
}

.hero h1 {
  max-width: 14ch;
  margin-bottom: 1.4rem;
  font-size: clamp(3rem, 7.5vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.button.primary {
  color: white;
  background: var(--accent);
}

.button.primary:hover {
  color: white;
  background: var(--accent-soft);
}

.button.secondary {
  color: var(--accent);
  background: transparent;
}

.button.secondary:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.product-preview {
  display: flex;
  min-height: 25rem;
  padding: 2rem;
  color: white;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 45%),
    var(--dark);
  border-radius: 2rem;
  box-shadow: 0 2rem 5rem rgba(23, 33, 27, 0.15);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-preview:hover {
  color: white;
  transform: translateY(-0.25rem);
  box-shadow: 0 2.25rem 5.5rem rgba(23, 33, 27, 0.2);
}

.product-preview img {
  width: 8.5rem;
  height: 8.5rem;
  margin: 0 0 auto;
  border-radius: 1.8rem;
}

.product-preview strong {
  margin-bottom: 0.2rem;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 560;
}

.product-preview > span:last-child {
  color: var(--dark-muted);
  font-size: 0.9rem;
}

.product-kicker {
  margin-bottom: 0.5rem;
  color: var(--accent-bright);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  border-bottom: 1px solid var(--line);
}

.section h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 8vw, 7rem);
}

.prose {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-tint {
  background: rgba(255, 255, 255, 0.4);
}

.section-heading {
  display: flex;
  margin-bottom: 2.5rem;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.section-heading > p {
  max-width: 28rem;
  color: var(--muted);
}

.product-card {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(18rem, 0.75fr) minmax(0, 1.25fr);
  color: white;
  background: var(--dark);
  border-radius: 1.75rem;
}

.product-card-visual {
  display: grid;
  min-height: 30rem;
  padding: 3rem;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(185, 255, 104, 0.15), transparent 12rem),
    linear-gradient(145deg, #25372e, #111814);
}

.product-card-visual img {
  width: min(70%, 13rem);
  height: auto;
  border-radius: 2.5rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.35);
}

.product-card-copy {
  padding: clamp(2rem, 6vw, 5rem);
  align-self: center;
}

.product-card-copy h3 {
  max-width: 16ch;
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-weight: 560;
  line-height: 1.1;
}

.product-card-copy > p:not(.product-kicker),
.feature-list {
  color: var(--dark-muted);
}

.feature-list {
  margin: 1.5rem 0;
}

.text-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: white;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  color: var(--accent-bright);
}

.value-grid {
  display: grid;
  margin-top: 3rem;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.value-grid article {
  padding: 2rem;
  background: var(--bg);
}

.value-number {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

.value-grid h3 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 560;
}

.value-grid p {
  color: var(--muted);
  font-size: 0.95rem;
}

.section-dark {
  color: white;
  background: var(--dark);
  border-bottom: 0;
}

.section-dark .eyebrow {
  color: var(--accent-bright);
}

.section-dark p {
  color: var(--dark-muted);
}

.contact-email {
  display: inline-block;
  margin-top: 1rem;
  color: white;
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  text-decoration: none;
}

.contact-email:hover {
  color: var(--accent-bright);
}

.company-footer {
  background: #0b0f0d;
  color: var(--dark-muted);
}

.company-footer .inner {
  width: min(100% - 3rem, var(--wide));
}

.company-footer .footer-grid {
  display: grid;
  padding-top: 3.5rem;
  padding-bottom: 3rem;
  grid-template-columns: 1.2fr 0.7fr 1.4fr 1fr;
  gap: 2.5rem;
}

.company-footer .brand {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: white;
}

.company-footer strong {
  display: block;
  margin-bottom: 0.8rem;
  color: white;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-footer a {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--dark-muted);
}

.company-footer p {
  margin: 0;
}

.footer-base {
  padding-top: 1.25rem;
  padding-bottom: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* KeepUp product page */
.product-hero {
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  color: white;
  background:
    radial-gradient(circle at 82% 15%, rgba(185, 255, 104, 0.17), transparent 25rem),
    var(--dark);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}

.product-hero .eyebrow {
  color: var(--accent-bright);
}

.product-hero .button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
}

.product-hero .button.secondary:hover {
  color: var(--accent-bright);
  border-color: var(--accent-bright);
}

.product-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.95;
}

.product-hero-copy {
  max-width: 38rem;
  color: var(--dark-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.product-hero-art {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
}

.product-hero-art::before {
  position: absolute;
  width: 85%;
  height: 85%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.product-hero-art img {
  position: relative;
  width: min(68%, 18rem);
  height: auto;
  border-radius: 3.5rem;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.5);
}

.steps-grid,
.facts-grid {
  display: grid;
  margin-top: 3rem;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.steps-grid article,
.facts-grid article {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.steps-grid span {
  display: grid;
  width: 2rem;
  height: 2rem;
  margin-bottom: 2rem;
  color: white;
  background: var(--accent);
  border-radius: 50%;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.steps-grid h3,
.facts-grid h3 {
  margin-top: 0;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 560;
}

.steps-grid p,
.facts-grid p {
  color: var(--muted);
  font-size: 0.95rem;
}

.policy-links {
  display: grid;
  margin-top: 2.5rem;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.policy-links a {
  padding: 1.5rem 1rem 1.5rem 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.policy-links a:hover {
  color: var(--accent);
}

.section-dark .policy-links {
  border-color: rgba(255, 255, 255, 0.2);
}

.section-dark .policy-links a {
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.section-dark .policy-links a:hover {
  color: var(--accent-bright);
}

.page-studio header.site .inner,
.page-product header.site .inner {
  width: min(100% - 3rem, var(--wide));
}

@media (max-width: 820px) {
  .hero-grid,
  .product-hero-grid,
  .product-card,
  .split {
    grid-template-columns: 1fr;
  }

  .product-preview {
    min-height: 21rem;
  }

  .product-card-visual {
    min-height: 22rem;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 1rem;
  }

  .value-grid,
  .steps-grid,
  .facts-grid {
    grid-template-columns: 1fr;
  }

  .company-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .wide {
    width: min(100% - 2rem, var(--wide));
  }

  header.site .inner {
    align-items: center;
  }

  header.site nav {
    display: flex;
    width: 100%;
    overflow-x: auto;
    gap: 0.9rem;
  }

  header.site nav a {
    margin-left: 0;
    white-space: nowrap;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 15vw, 4rem);
  }

  .company-footer .footer-grid,
  .policy-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .product-preview {
    transition: none;
  }
}
