/* Cyclonity public pages — Night Almanac system (2026-10-19).
   No webfonts: the serif is the platform's own (New York on Apple devices), so the
   pages keep loading nothing but this stylesheet and their own images. */

:root {
  color-scheme: dark light;
  --canvas: #1b1820;
  --surface: #272330;
  --elevated: #322c3a;
  --ink: #f2edf0;
  --muted: #aaa2ae;
  --faint: #776f80;
  --hair: rgba(255, 255, 255, 0.11);
  --berry: #b4466c;
  --rose: #8a4a63;
  --sage: #4e8a62;
  --violet: #7462c2;
  --steel: #3f6fa6;
  --accent: #f2a7c3;
  --accent-ink: #2a1620;
  --teal: #3fa7a0;
  --glow-a: rgba(63, 111, 166, 0.55);
  --glow-b: rgba(180, 70, 108, 0.42);
  --device: #0f0d12;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --serif: ui-serif, "New York", "Iowan Old Style", "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
}

@media (prefers-color-scheme: light) {
  :root {
    --canvas: #f7f3f2;
    --surface: #ffffff;
    --elevated: #fbf8f9;
    --ink: #211b25;
    --muted: #6d6470;
    --faint: #9a9199;
    --hair: rgba(33, 27, 37, 0.12);
    --berry: #c98aa4;
    --rose: #e6c1c6;
    --sage: #a3bda2;
    --violet: #c6b6e0;
    --steel: #93aecb;
    --accent: #b4466c;
    --accent-ink: #ffffff;
    --glow-a: rgba(147, 174, 203, 0.55);
    --glow-b: rgba(201, 138, 164, 0.45);
    --device: #d9d3d8;
    --shadow: 0 24px 72px rgba(71, 40, 67, 0.14);
  }
}

* { box-sizing: border-box; }

html {
  background: var(--canvas);
  overflow-x: clip;
  scroll-behavior: smooth;
}

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

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The horizon glow: the top of every page carries a soft light in the phase colours,
   fading into the canvas. Decorative only. */
.sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: 34rem;
  pointer-events: none;
  background:
    radial-gradient(60rem 26rem at 8% -6%, var(--glow-a), transparent 62%),
    radial-gradient(50rem 24rem at 96% -2%, var(--glow-b), transparent 60%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 100%);
  z-index: 0;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--muted);
}

a:hover { text-decoration-color: var(--ink); }

a:focus-visible {
  border-radius: 0.3rem;
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 760px);
  margin-inline: auto;
  padding: 1.1rem 0 5rem;
}

.shell-wide { width: min(100% - 2rem, 1120px); }

/* Masthead */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0 3rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.005em;
  text-decoration: none;
}

/* The Dual Orbit mark: the accepted brand master with its black ground keyed out,
   so it sits on the graphite canvas and on the light paper alike. */
.mark {
  display: block;
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  object-fit: contain;
}

.app-badge {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 18px;
  border: 1px solid var(--hair);
}

.closing-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.nav {
  display: flex;
  gap: 1.3rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
}

.nav a:hover { color: var(--ink); }

.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Type */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 1.7rem + 3.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.008em;
  text-wrap: balance;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.25;
}

p { margin: 0 0 1rem; }

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.88;
  max-width: 34rem;
}

.meta {
  font-size: 0.9rem;
  color: var(--muted);
}

strong { font-weight: 650; }

/* Simple content pages: privacy, support, invitation */
.hero { padding: 0.5rem 0 2.6rem; }

.hero h1 { margin-bottom: 1.1rem; }

.content { padding-top: 0.5rem; }

.content section + section {
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--hair);
}

.content h2 {
  font-size: 1.55rem;
  margin-bottom: 0.8rem;
}

.content p { color: var(--ink); opacity: 0.9; }

.content ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.content li + li { margin-top: 0.45rem; }

.note {
  padding: 1rem 1.2rem;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: var(--surface);
  color: var(--muted);
}

.contact-card {
  display: grid;
  gap: 0.35rem;
  margin: 1.6rem 0 0;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-card strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.6rem;
  margin-top: 4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hair);
  font-size: 0.9rem;
  color: var(--muted);
}

.footer a { color: var(--muted); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
}

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

.button-primary:hover { filter: brightness(1.05); }

.button-quiet {
  border: 1px solid var(--hair);
  color: var(--ink);
  background: transparent;
}

.button-quiet:hover { border-color: var(--muted); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.8rem 0 1.2rem;
}

/* The phase ribbon: a full-bleed luminous band, the same idea as the calendar's rows. */
.ribbon {
  position: relative;
  width: 100vw;
  height: 3.4rem;
  margin: 3.5rem 0 3.5rem calc(50% - 50vw);
  pointer-events: none;
}

.ribbon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--steel) 0%, var(--violet) 32%, var(--rose) 58%, var(--berry) 72%, var(--sage) 100%);
  filter: blur(14px);
  opacity: 0.75;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.35) 30%, #000 75%, rgba(0,0,0,0.6) 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.35) 30%, #000 75%, rgba(0,0,0,0.6) 100%);
}

.ribbon-dashed::after {
  content: "";
  position: absolute;
  left: 58%;
  right: 0;
  top: 58%;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.55);
}

/* Devices */
.device {
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
  padding: 9px;
  border-radius: 44px;
  background: var(--device);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow);
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
}

.device-small { max-width: 280px; }

/* Landing hero */
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 3rem;
  padding: 1rem 0 1.5rem;
}

.landing-hero .lead { max-width: 30rem; }

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.proof strong { color: var(--ink); font-weight: 600; }

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillars li {
  padding-top: 1.2rem;
  border-top: 1px solid var(--hair);
}

.pillars h3 { margin-bottom: 0.6rem; }

.pillars p { color: var(--muted); margin: 0; }

.glyph {
  display: inline-block;
  width: 0.62rem;
  height: 0.62rem;
  margin-right: 0.55rem;
  vertical-align: 0.05rem;
}

.glyph-filled { border-radius: 50%; background: var(--berry); }
.glyph-dashed { border-radius: 50%; border: 1.5px dashed var(--violet); }
.glyph-square { border-radius: 2px; background: var(--teal); }

/* Sections */
.section { padding: 3rem 0 0; }

.section-head {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 2rem;
}

.section-index {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--muted);
}

.section-head .lead { margin-top: 0.8rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.gallery figure { margin: 0; }

.gallery figcaption {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}

.gallery figcaption strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.split-text .lead { margin-top: 0.8rem; }

.checklist {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  border-top: 1px solid var(--hair);
}

.checklist li:last-child { border-bottom: 1px solid var(--hair); }

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 1.05rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--teal);
}

.checklist-plain li::before { border-radius: 50%; background: var(--violet); }

.status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.status h3 { margin-bottom: 0.4rem; }

.status .meta { margin-bottom: 0.6rem; }

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.flow li {
  padding-top: 0.9rem;
  border-top: 1px solid var(--hair);
}

.flow li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--serif);
  color: var(--muted);
}

.flow strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }

.flow span { color: var(--muted); font-size: 0.95rem; }

.closing {
  margin-top: 4rem;
  padding: 2.4rem 0 0;
  border-top: 1px solid var(--hair);
}

.closing h2 { margin-bottom: 0.8rem; }

.quiet-link { color: var(--muted); }

.text-link { font-weight: 600; }

/* Responsive */
@media (max-width: 920px) {
  .landing-hero { grid-template-columns: 1fr; gap: 2rem; }
  .landing-hero .device { max-width: 300px; }
  .pillars { grid-template-columns: 1fr; gap: 1.2rem; }
  .gallery { grid-template-columns: 1fr; gap: 2.2rem; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .status { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 0.2rem; }
  .masthead { padding-bottom: 2rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .masthead { flex-wrap: wrap; row-gap: 0.7rem; padding-bottom: 1.6rem; }
  .nav { width: 100%; gap: 1.1rem; font-size: 0.92rem; }
  .flow { grid-template-columns: 1fr; }
  .button { width: 100%; justify-content: center; }
  .ribbon { height: 2.8rem; margin-top: 2.6rem; margin-bottom: 2.6rem; }
}
