/* halcyonreach.com: one dark, calm page (docs/DESIGN.md). One sans family: SF Pro on Apple
   devices, Inter (self-hosted, OFL) everywhere else. No serif or italic display faces. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-wght.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #07080d;
  --bg-2: #0d0f19;
  --text-1: #f7f5f2;
  --text-2: #c3bfcd;
  --text-3: #9d99ab;
  --hair: rgba(255, 255, 255, 0.075);
  --hair-2: rgba(255, 255, 255, 0.13);
  --hair-3: rgba(255, 255, 255, 0.2);
  --glass: rgba(20, 22, 34, 0.56);
  --glass-hover: rgba(28, 30, 46, 0.7);
  --sun-1: #ffd9a0;
  --sun-2: #ff9f5a;
  --sun-3: #e2557a;
  --sunrise: linear-gradient(135deg, var(--sun-1) 0%, var(--sun-2) 45%, var(--sun-3) 100%);
  --focus: #ffae74;
  --font-text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter Variable', Inter, system-ui, 'Segoe UI', sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter Variable', Inter, system-ui, 'Segoe UI', sans-serif;
  --r-md: 14px;
  --r-lg: 20px;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-snappy: cubic-bezier(0.2, 0.9, 0.2, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
}

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

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

body {
  margin: 0;
  min-height: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 70% at 50% 0%, #11131f 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text-1);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* The particle field (app.js) and the horizon glow sit behind everything and never take input. */
.field,
.horizon {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.field {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s var(--ease-smooth);
}

.field.is-on {
  opacity: 1;
}

.horizon {
  background:
    radial-gradient(60% 38% at 50% 108%, rgba(255, 159, 90, 0.22) 0%, rgba(226, 85, 122, 0.1) 45%, transparent 75%),
    radial-gradient(90% 50% at 50% 115%, rgba(255, 217, 160, 0.08) 0%, transparent 70%);
  animation: breathe 9s ease-in-out infinite alternate;
}

@keyframes breathe {
  from { opacity: 0.75; transform: translateY(1.5%); }
  to   { opacity: 1;    transform: translateY(0); }
}

.hero {
  position: relative;
  flex: 1 0 auto;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 10vh, 140px) var(--gutter) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mark {
  width: clamp(44px, 9vw, 60px);
  /* Capped by height too, so landscape phones and the iPhone Duo's cover screen on its side
     keep it in proportion (vh first for browsers without svh). */
  width: clamp(44px, min(9vw, 9vh), 60px);
  width: clamp(44px, min(9vw, 9svh), 60px);
  height: auto;
  margin-bottom: clamp(18px, 3vh, 28px);
  filter: drop-shadow(0 6px 24px rgba(255, 159, 90, 0.25));
}

.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 11vw, 96px);
  /* By the smaller of width and height: 42px on small phones, ~58px on a landscape phone,
     ~69-74px on the iPhone Duo's inner screen, 96px on large screens. */
  font-size: clamp(42px, min(11vw, 15vh), 96px);
  font-size: clamp(42px, min(11vw, 15svh), 96px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.title__glow {
  background: var(--sunrise);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Keeps descenders and the clipped gradient from being cut at the line box. */
  padding-bottom: 0.06em;
}

.lede {
  margin: clamp(14px, 2.4vh, 22px) 0 0;
  max-width: 32ch;
  color: var(--text-2);
  font-size: clamp(17px, 2.6vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.products {
  width: 100%;
  max-width: 560px;
  margin-top: clamp(36px, 7vh, 64px);
  display: grid;
  gap: 12px;
}

.product {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--hair-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  color: inherit;
  text-align: left;
  text-decoration: none;
  transition:
    transform 420ms var(--ease-spring),
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 300ms var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
}

.product__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hair);
}

.product__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--sun-2);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.product__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.product__name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.014em;
}

.product__desc {
  color: var(--text-3);
  font-size: 14px;
  line-height: 20px;
}

.product__go {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--text-2);
  transition: transform 420ms var(--ease-spring), color 160ms ease, background-color 160ms ease;
}

.product__go svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .product:hover {
    transform: translateY(-3px);
    background: var(--glass-hover);
    border-color: var(--hair-3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 26px 50px -24px rgba(0, 0, 0, 0.9);
  }

  .product:hover .product__go {
    transform: translateX(3px);
    color: var(--text-1);
    background: rgba(255, 255, 255, 0.07);
  }
}

.product:active {
  transform: scale(0.98);
  transition-duration: 120ms;
}

.product:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.foot {
  position: relative;
  padding: 24px var(--gutter) max(24px, env(safe-area-inset-bottom));
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  line-height: 18px;
}

.foot a {
  color: var(--text-2);
  text-decoration: none;
  border-radius: 6px;
}

.foot a:hover {
  color: var(--text-1);
}

.foot a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Entrance: each block rises on a quick spring, one after another. CSS only, so nothing
   waits on app.js and nothing flashes before it runs. */
.rise {
  animation:
    rise-fade 520ms var(--ease-smooth) both,
    rise-move 720ms var(--ease-spring) both;
}

.hero > .rise:nth-child(1) { animation-delay: 40ms; }
.hero > .rise:nth-child(2) { animation-delay: 110ms; }
.hero > .rise:nth-child(3) { animation-delay: 180ms; }
.hero > .rise:nth-child(4) { animation-delay: 260ms; }
/* The footer only fades: rising from below the fold would briefly add a scrollbar. */
.foot.rise {
  animation: rise-fade 520ms var(--ease-smooth) 380ms both;
}

@keyframes rise-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes rise-move {
  from { transform: translateY(16px) scale(0.985); }
  to   { transform: none; }
}

@media (max-width: 420px) {
  .product {
    gap: 12px;
    padding: 14px;
  }

  .product__icon {
    width: 40px;
    height: 40px;
  }

  .product__go {
    display: none;
  }
}

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

  .rise {
    animation: rise-fade 240ms ease both;
  }

  .product,
  .product__go {
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  }

  .product:hover,
  .product:active,
  .product:hover .product__go {
    transform: none;
  }
}

/* 404.html */
.eyebrow {
  margin: 0 0 14px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.title--small {
  font-size: clamp(34px, 8vw, 56px);
  font-size: clamp(34px, min(8vw, 12vh), 56px);
  font-size: clamp(34px, min(8vw, 12svh), 56px);
  letter-spacing: -0.032em;
}

.product--home {
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
}

.product--home .product__go {
  display: grid;
}
