/* co-creat.ing — constellation landing page
   Self-contained: system + Georgia stacks, no external assets.
   Light + dark via prefers-color-scheme; WCAG-AA verified pairs. */

:root {
  --accent: #c14e3c;          /* coral — decorative / large text only */
  --accent-heading: #b3402c;  /* wordmark & headings (5.46:1 on bg, large-text AA) */
  --accent-strong: #953a2c;   /* links (6.89:1 on bg) */
  --accent-deep: #8c2f20;     /* status text, cta hover (6.88:1 on pill) */
  --accent-soft: #fbe6e0;
  --bg: #fbfaf7;
  --bg-raised: #ffffff;
  --text: #241a17;            /* 16.29:1 on bg */
  --text-muted: #5c4f4a;      /* 7.53:1 on bg */
  --border: #ecdcd7;
  --cta-bg: #a63a28;          /* 6.14:1 with cta text */
  --cta-bg-hover: #8c2f20;    /* 7.87:1 with cta text */
  --cta-text: #fff8f6;
  --star: #c14e3c;
  --star-line: #e3b7ad;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --content-width: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #e88871;
    --accent-heading: #e88871;  /* 7.41:1 on bg, large-text AA */
    --accent-strong: #f2ab98;   /* links, 9.99:1 on bg */
    --accent-deep: #f2ab98;
    --accent-soft: #341f1a;
    --bg: #150f0d;
    --bg-raised: #1d1512;
    --text: #f6ece8;            /* 16.35:1 on bg */
    --text-muted: #c9b3ac;      /* 9.52:1 on bg */
    --border: #382520;
    --cta-bg: #ec9a7c;          /* 8.45:1 with cta text */
    --cta-bg-hover: #f2b096;    /* 10.18:1 with cta text */
    --cta-text: #1c0f0b;
    --star: #e88871;
    --star-line: #4a2d25;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

/* ---- constellation sky (decorative) ---- */

.sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(60vh, 420px);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.constellation {
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.constellation .lines path {
  fill: none;
  stroke: var(--star-line);
  stroke-width: 1.5;
}

.constellation .stars circle {
  fill: var(--star);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* small constellation marker above each section heading */
.constellation-marker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.constellation-marker span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--star);
}

.constellation-marker span:nth-child(2) {
  width: 5px;
  height: 5px;
  opacity: 0.75;
}

.constellation-marker span:nth-child(3) {
  width: 4px;
  height: 4px;
  opacity: 0.5;
}

/* ---- typography & links ---- */

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- header ---- */

.site-header {
  padding: 3.25rem 0 1.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  font-weight: 700;
  color: var(--accent-heading);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.essence {
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--text-muted);
  max-width: 44ch;
}

/* ---- hero ---- */

main {
  padding: 1.5rem 0 1rem;
}

.hero {
  padding-bottom: 2rem;
}

.status {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin: 0 0 1.4rem;
}

.hero-line {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 1rem;
  color: var(--text);
  max-width: 30ch;
}

.intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 1.6rem;
  max-width: 58ch;
}

.hero-cta-row {
  margin: 0;
}

/* ---- content blocks ---- */

.block {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.45rem);
  margin: 0 0 0.7rem;
  color: var(--text);
}

.block p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.block p:last-child {
  margin-bottom: 0;
}

.block em {
  color: var(--text);
  font-style: italic;
}

.block strong {
  color: var(--text);
}

.feel-list,
.ground-list,
.doorway-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.feel-list li,
.ground-list li,
.doorway-list li {
  margin-bottom: 0.85rem;
}

.feel-list li:last-child,
.ground-list li:last-child,
.doorway-list li:last-child {
  margin-bottom: 0;
}

.ground-list {
  margin-bottom: 1rem;
}

.doorway-list li::marker {
  color: var(--accent-strong);
  font-weight: 700;
}

.feel-list li::marker,
.ground-list li::marker {
  color: var(--accent-strong);
}

/* ---- CTA ---- */

.cta {
  display: inline-block;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
}

.cta:hover {
  background: var(--cta-bg-hover);
  color: var(--cta-text);
}

.cta:focus-visible {
  outline-color: var(--accent-strong);
}

.cta-big {
  font-size: 1.1rem;
  padding: 0.85rem 1.9rem;
}

.cta-block {
  padding: 2.5rem 1.25rem;
  margin: 1rem auto 1.5rem;
  text-align: center;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: calc(var(--content-width) - 2.5rem);
}

.cta-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
  color: var(--text);
}

.cta-block p {
  margin: 0 auto 1.25rem;
  color: var(--text-muted);
  max-width: 48ch;
}

/* ---- footer ---- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0 0 0.4rem;
}

.site-footer .note {
  font-style: italic;
  font-size: 0.82rem;
  max-width: 52ch;
}

/* ---- small screens (down to 280px) ---- */

@media (max-width: 360px) {
  .wrap {
    padding: 0 0.9rem;
  }

  .cta-block {
    padding: 1.75rem 0.9rem;
    max-width: calc(100% - 1rem);
  }

  .cta,
  .cta-big {
    display: block;
    text-align: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .feel-list,
  .ground-list,
  .doorway-list {
    padding-left: 1rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .constellation .stars circle {
    animation: twinkle 6s ease-in-out infinite;
    transform-origin: center;
  }

  .constellation .stars circle:nth-child(odd) {
    animation-delay: 2s;
  }

  .constellation .stars circle:nth-child(3n) {
    animation-delay: 4s;
  }

  @keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
  }
}
