/* valuneapp.com — Valune by VALUNE, INC. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* The sky about twenty minutes after sunset */
  --night: #120f26;      /* page */
  --dusk: #231b46;       /* toward the horizon */
  --afterglow: #e8a08a;  /* last light on the horizon; links and the connecting line */
  --parchment: #f2eadf;  /* text and stars */
  --haze: #aaa1c9;       /* secondary text */
  --line: rgba(242, 234, 223, 0.2);

  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --wide: 1280px;

  color-scheme: dark;
}

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

html {
  background: var(--night);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--parchment);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 900px) {
  body {
    font-size: 1.125rem;
  }
}

a {
  color: var(--parchment);
  text-decoration-line: underline;
  text-decoration-color: var(--afterglow);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--parchment);
  color: var(--night);
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Masthead ---------- */

.masthead {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 26px var(--gutter) 0;
}

.home .masthead {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--parchment);
  text-decoration: none;
}

.status {
  margin: 0;
  font-size: 0.875rem;
  color: var(--haze);
}

/* ---------- Hero: the sky ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 132px var(--gutter) clamp(44px, 9vh, 96px);
  background:
    radial-gradient(ellipse 85% 34% at 24% 106%, rgba(232, 160, 138, 0.3) 0%, rgba(232, 160, 138, 0.08) 55%, rgba(232, 160, 138, 0) 78%),
    linear-gradient(180deg, var(--night) 0%, var(--night) 38%, var(--dusk) 100%);
}

/* Where the sky meets the ground: a faint line of afterglow */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 160, 138, 0) 0%, rgba(232, 160, 138, 0.6) 24%, rgba(232, 160, 138, 0.22) 62%, rgba(232, 160, 138, 0) 100%);
}

.sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.horizon {
  max-width: var(--wide);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.375rem, 0.9rem + 4.9vw, 6.25rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
}

.hero h1 span {
  display: block;
  text-wrap: balance;
}

.lede {
  max-width: 46ch;
  margin: 1.5em 0 0;
  color: rgba(242, 234, 223, 0.88);
}

/* Constellation (drawn by sky.js) */

.sky .dust {
  fill: var(--parchment);
}

.sky .edge {
  fill: none;
  stroke: var(--parchment);
  stroke-opacity: 0.26;
  stroke-width: 1;
  stroke-linecap: round;
}

.sky .edge.bridge {
  stroke: var(--afterglow);
  stroke-opacity: 0.9;
  stroke-width: 1.25;
}

.sky .halo {
  fill: var(--parchment);
  opacity: 0.07;
}

.sky .dot {
  fill: var(--parchment);
}

.sky text {
  font-family: var(--serif);
  font-style: italic;
  fill: var(--parchment);
  fill-opacity: 0.84;
  letter-spacing: 0.01em;
}

.sky .is-bridge .dot,
.sky .is-bridge text {
  fill: var(--afterglow);
  fill-opacity: 1;
}

.sky .is-bridge .halo {
  fill: var(--afterglow);
  opacity: 0.16;
}

.sky.is-animated .dust,
.sky.is-animated .star {
  opacity: 0;
  animation: appear 1.1s ease-out forwards;
}

.sky.is-animated .edge {
  animation: draw 0.8s ease-in-out forwards;
}

.sky.is-animated .edge.bridge {
  animation-duration: 1.4s;
}

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

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

/* ---------- Home sections ---------- */

.section {
  padding: clamp(88px, 14vh, 168px) var(--gutter) 0;
}

.section > * {
  max-width: var(--wide);
}

.contrast {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 4rem;
  align-items: end;
}

@media (min-width: 900px) {
  .contrast {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.contrast h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 1rem + 3.6vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.contrast p {
  max-width: 42ch;
  margin: 0;
  color: rgba(242, 234, 223, 0.88);
}

/* Timeline: what happens, in order */

.timeline ol {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  margin: 0;
  padding: 0 0 0 1.75rem;
  list-style: none;
  border-left: 1px solid var(--line);
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: calc(-1.75rem - 4px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--parchment);
  box-shadow: 0 0 0 5px rgba(242, 234, 223, 0.07);
}

.timeline li.later::before {
  background: var(--night);
  border: 1px solid var(--afterglow);
  box-shadow: none;
}

@media (min-width: 900px) {
  .timeline ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3.5rem;
    padding: 2.5rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .timeline li::before {
    top: calc(-2.5rem - 4px);
    left: 0;
  }
}

.timeline h3 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.2;
}

.timeline p {
  max-width: 36ch;
  margin: 0;
  color: rgba(242, 234, 223, 0.88);
}

.timeline .later h3,
.timeline .later p {
  color: var(--haze);
}

.timeline .later .note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--afterglow);
}

.maker {
  padding-bottom: clamp(96px, 16vh, 184px);
}

.maker h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 1rem + 1.8vw, 2.625rem);
  line-height: 1.15;
}

.maker p {
  max-width: 52ch;
  margin: 0 0 1rem;
  color: rgba(242, 234, 223, 0.88);
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 26px var(--gutter) 34px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--haze);
}

.site-footer p {
  margin: 0;
}

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

.site-footer a {
  color: var(--haze);
  text-decoration-color: rgba(232, 160, 138, 0.55);
}

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

.site-footer a[aria-current="page"] {
  color: var(--parchment);
  text-decoration-color: var(--afterglow);
}

/* ---------- Documents: privacy, terms, support ---------- */

.doc {
  padding: clamp(56px, 10vh, 112px) var(--gutter) clamp(88px, 13vh, 144px);
}

.doc-inner {
  max-width: 68ch;
}

.doc h1 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.25rem + 3vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.doc h1 + .intro {
  margin-top: 1.5rem;
}

.doc .updated {
  margin: 0 0 2.75rem;
  font-size: 0.9375rem;
  color: var(--haze);
}

.doc .intro {
  font-size: 1.1875rem;
  line-height: 1.55;
}

.doc h2 {
  margin: 3rem 0 0.75rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.625rem;
  line-height: 1.2;
}

.doc h3 {
  margin: 1.75rem 0 0.35rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.doc p,
.doc li {
  color: rgba(242, 234, 223, 0.9);
}

.doc p {
  margin: 0 0 1rem;
}

.doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25em;
}

.doc li {
  margin: 0.4rem 0;
}

.doc li::marker {
  color: var(--afterglow);
}

.doc strong {
  font-weight: 600;
  color: var(--parchment);
}

.doc address {
  font-style: normal;
}

/* Help that can't wait: the one place a page breaks its own rhythm */
.urgent {
  margin: 2.5rem 0 1rem;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 2px solid var(--afterglow);
}

.urgent h2 {
  margin-top: 0;
}

.urgent ul {
  list-style: none;
  padding-left: 0;
}

.urgent li {
  margin: 0.6rem 0;
}

.doc .back {
  margin-top: 2rem;
}

@media (prefers-reduced-motion: reduce) {
  .sky.is-animated .dust,
  .sky.is-animated .star,
  .sky.is-animated .edge {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
  }
}
