/* Chronity landing — styles */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/outfit-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/outfit-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/outfit-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/outfit-800.woff2') format('woff2');
}

:root {
  --indigo-200: #C7D2FE;
  --indigo-300: #A5B4FC;
  --indigo-500: #6366F1;
  --indigo-600: #4F46E5;
  --indigo-700: #4338CA;
  --indigo-900: #312E81;
  --indigo-950: #1E1B4B;
  --amber-500: #F59E0B;
  --zinc-50:  #FAFAFA;
  --zinc-100: #F4F4F5;
  --zinc-200: #E4E4E7;
  --zinc-300: #D4D4D8;
  --zinc-400: #A1A1AA;
  --zinc-500: #71717A;
  --zinc-600: #52525B;
  --zinc-700: #3F3F46;
  --zinc-800: #27272A;
  --zinc-900: #18181B;
  --white: #FFFFFF;

  --font-sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shell-max: 1280px;
  --rail: 96px;
  --gutter: 2rem;
  --content-max: 42rem; /* ~672px — the prose measure */

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p { margin: 0; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--zinc-700);
  background: var(--zinc-50);
  line-height: 1.625;
  font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Shell ===== */

.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 250, 250, 0.72);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--zinc-200);
}
.site-header .shell {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  line-height: 1;
}
.brand svg {
  height: 26px;
  width: auto;
  display: block;
}
.wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--indigo-600);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ===== Main ===== */

main {
  flex: 1;
  width: 100%;
}

/* ===== Section base (grid: rail | content | rail) ===== */

.section {
  border-top: 1px solid var(--zinc-200);
}
.section:first-of-type { border-top: none; }

.section > .shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) var(--rail);
  gap: 0;
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.section .rail {
  padding-top: 0.25rem;
}
.section .rail-left { padding-right: var(--gutter); }
.section .rail-right { padding-left: var(--gutter); }
.section .content {
  border-left: 1px solid var(--zinc-200);
  border-right: 1px solid var(--zinc-200);
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  max-width: none;
}
.section .content-inner {
  max-width: var(--content-max);
}

/* ===== Eyebrow + folio ===== */

.eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo-500);
  line-height: 1.4;
}
.folio {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zinc-500);
  line-height: 1.4;
}

/* ===== Hero ===== */

.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}
.hero > .shell {
  position: relative;
  z-index: 1;
  padding-top: clamp(5rem, 12vw, 9rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
}
.hero h1 {
  font-size: clamp(2.5rem, 1.75rem + 4vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--zinc-900);
  line-height: 1.02;
  margin-bottom: 2rem;
}
.hero h1 .period {
  color: var(--amber-500);
}
.hero .lead {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--zinc-600);
  max-width: 40ch;
}

/* ===== Pillars (full-bleed white band) ===== */

.pillars {
  background: var(--white);
  border-top: 1px solid var(--zinc-200);
  border-bottom: 1px solid var(--zinc-200);
}
.pillars .shell {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 0;
  padding-bottom: 0;
}
.pillar {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid var(--zinc-200);
}
.pillar:last-child { border-right: none; }
.pillar .folio {
  margin-bottom: 0.75rem;
}
.pillar-image {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}
.pillar h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--zinc-900);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.pillar p {
  font-size: 0.9375rem;
  color: var(--zinc-600);
  line-height: 1.55;
  max-width: 28ch;
}

/* ===== Motif ===== */

.motif h2 {
  font-size: clamp(2.25rem, 1.75rem + 2.75vw, 3.75rem);
  font-weight: 800;
  color: var(--zinc-900);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-top: 1rem;
  margin-bottom: 2rem;
}
.motif h2 .accent { color: var(--indigo-600); }
.motif p {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.7;
  color: var(--zinc-700);
  max-width: 58ch;
}
.motif p + p { margin-top: 1.25rem; }

/* ===== Dark band (Chronity Connect) ===== */

.dark-band {
  background: var(--indigo-950);
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(99, 102, 241, 0.35), transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(245, 158, 11, 0.10), transparent 55%);
  color: var(--indigo-200);
  border-top: none;
}
.dark-band .content {
  border-left-color: rgba(199, 210, 254, 0.14);
  border-right-color: rgba(199, 210, 254, 0.14);
}
.dark-band .eyebrow { color: var(--indigo-300); }
.dark-band h2 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}
.dark-band h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--indigo-300);
  margin-bottom: 2rem;
  letter-spacing: -0.005em;
}
.dark-band p {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.7;
  color: var(--indigo-200);
  max-width: 58ch;
}
.dark-band p + p { margin-top: 1.25rem; }

/* ===== Status ===== */

.status h2 {
  font-size: clamp(1.875rem, 1.5rem + 2vw, 3rem);
  font-weight: 800;
  color: var(--zinc-900);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
.status p {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.7;
  color: var(--zinc-700);
  max-width: 58ch;
}
.status p + p { margin-top: 1.25rem; }

/* ===== Prose links ===== */

.content a:not(.brand) {
  color: var(--indigo-600);
  text-decoration: underline;
  text-decoration-color: var(--zinc-300);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 150ms var(--ease), text-decoration-color 150ms var(--ease);
}
.content a:not(.brand):hover {
  color: var(--indigo-700);
  text-decoration-color: var(--indigo-600);
}
.dark-band .content a {
  color: var(--indigo-200);
  text-decoration-color: rgba(199, 210, 254, 0.3);
}
.dark-band .content a:hover {
  color: var(--white);
  text-decoration-color: var(--white);
}
.content a:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--zinc-50), 0 0 0 4px var(--indigo-500);
  border-radius: 2px;
}

/* ===== Footer ===== */

.site-footer {
  background: var(--zinc-900);
  color: var(--zinc-400);
  border-top: 1px solid var(--zinc-800);
}
.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: 80px;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: 0.875rem;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.015em;
}
.footer-mark svg {
  height: 22px;
  width: auto;
}
.footer-sep { color: var(--zinc-700); }
.site-footer a {
  color: var(--zinc-300);
  text-decoration: none;
  transition: color 150ms var(--ease);
}
.site-footer a:hover { color: var(--white); }

/* ===== Privacy page ===== */

.prose-section > .shell {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.prose-content h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 800;
  color: var(--zinc-900);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.prose-content .meta {
  color: var(--zinc-500);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}
.prose-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--zinc-900);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.prose-content p {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--zinc-700);
  max-width: 58ch;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  :root {
    --rail: 48px;
  }
  .pillars .shell {
    grid-template-columns: 1fr;
  }
  .pillar {
    border-right: none;
    border-bottom: 1px solid var(--zinc-200);
  }
  .pillar:last-child {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  :root {
    --rail: 0px;
    --gutter: 1.25rem;
  }
  .section > .shell {
    grid-template-columns: 1fr;
  }
  .section .rail { display: none; }
  .section .content {
    border-left: none;
    border-right: none;
    padding: 0;
  }
  .hero h1 br { display: none; }
}

/* ===== Motion preferences ===== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
