/* nonsostudios.com: one night sky, quiet type, glass panels. Fonts are self-hosted (see build.mjs). */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #070a1f;
  --night-2: #0c1233;
  --night-3: #1a1446;
  --ink: #eef1ff;
  --ink-soft: rgba(228, 234, 255, 0.74);
  --ink-faint: rgba(228, 234, 255, 0.5);
  --edge: rgba(200, 214, 255, 0.14);
  --glass: rgba(16, 20, 48, 0.46);
  --starlight: #ffe6b5;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ui: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(120% 80% at 70% -10%, rgba(90, 70, 190, 0.28), transparent 60%),
    radial-gradient(90% 60% at 10% 110%, rgba(40, 150, 190, 0.16), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 55%, var(--night-3) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 17px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

a {
  color: var(--starlight);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: #fff4dc;
}
:focus-visible {
  outline: 2px solid var(--starlight);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(20px, env(safe-area-inset-top)) 0 20px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 500 19px/1 var(--display);
  letter-spacing: 0.01em;
}
.mark svg {
  width: 26px;
  height: 26px;
}
.nav {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  font-size: 15px;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--ink);
}

/* Home */
.hero {
  min-height: calc(100svh - 160px);
  display: grid;
  align-content: center;
  padding: 8vh 0 10vh;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--starlight);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 12ch;
  font: 300 clamp(46px, 9.5vw, 112px) / 0.98 var(--display);
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144;
}
.hero h1 em {
  font-style: italic;
  color: var(--starlight);
}
.lede {
  margin: 28px 0 0;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding: 12px 18px 12px 14px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink-soft);
  font-size: 15px;
  width: fit-content;
  max-width: 100%;
}
.pulse {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--starlight);
  box-shadow: 0 0 0 0 rgba(255, 230, 181, 0.6);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(255, 230, 181, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 230, 181, 0);
  }
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 0 0 12vh;
  margin: 0;
  list-style: none;
}
.values li {
  padding: 26px 24px 28px;
  border: 1px solid var(--edge);
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.values h2 {
  margin: 0 0 8px;
  font: 400 24px/1.2 var(--display);
}
.values p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* Long-form pages (privacy, support) */
.doc {
  max-width: 720px;
  padding: 6vh 0 10vh;
}
.doc h1 {
  margin: 0 0 8px;
  font: 300 clamp(40px, 7vw, 64px) / 1.05 var(--display);
  letter-spacing: -0.015em;
}
.doc .updated {
  margin: 0 0 36px;
  color: var(--ink-faint);
  font-size: 15px;
}
.doc h2 {
  margin: 44px 0 10px;
  font: 400 26px/1.25 var(--display);
}
.doc h3 {
  margin: 26px 0 6px;
  font-size: 17px;
  font-weight: 600;
}
.doc p,
.doc li {
  color: var(--ink-soft);
}
.doc ul {
  padding-left: 1.2em;
}
.doc li + li {
  margin-top: 6px;
}
.doc strong {
  color: var(--ink);
  font-weight: 600;
}
.summary {
  margin: 0 0 8px;
  padding: 22px 24px;
  border: 1px solid var(--edge);
  border-radius: 20px;
  background: var(--glass);
}
.summary p {
  margin: 0;
  color: var(--ink);
}

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 28px 0 max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--edge);
  color: var(--ink-faint);
  font-size: 14px;
}
.foot nav {
  display: flex;
  gap: 20px;
}
.foot a {
  color: var(--ink-faint);
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
}

/* Entrance */
.rise {
  animation: rise 1.2s var(--ease) both;
}
.rise-2 {
  animation-delay: 0.12s;
}
.rise-3 {
  animation-delay: 0.24s;
}
.rise-4 {
  animation-delay: 0.36s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rise,
  .pulse {
    animation: none;
  }
}
