﻿/* Coming-soon — aligned to LORESHAPER-SITE-001 shell tokens + texture */

:root {
  /* Brand mark (logo) — sparingly; mark itself paints as ink */
  --brand: #0F7A62;
  --brand-soft: rgba(15, 122, 98, 0.12);

  --primary: #1E2430;
  --paper: #FFF7F0;
  --paper-dark: #FFE4D4;
  --paper-mid: #FFF0E4;
  --border: #F0C9B2;
  --border-strong: #E3A98A;
  --wash-ink: rgba(30, 36, 48, 0.035);
  --wash-gold: rgba(244, 162, 97, 0.16);
  --wash-sage: rgba(42, 157, 143, 0.12);
  --linen: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40h80M40 0v80' stroke='%231E2430' stroke-opacity='0.03' stroke-width='0.55'/%3E%3C/svg%3E");

  --heading: #1A1F2A;
  --body: #3F4756;
  --secondary: #6B7385;
  --coral: #E85D4C;
  --jade: #2A9D8F;
  --amber: #F4A261;

  --display: "Newsreader", "Source Serif 4", Georgia, serif;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --word: "Fraunces", Georgia, serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --r: 2px;
  --dur-enter: 780ms;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  font-family: var(--sans);
  font-weight: 450;
  color: var(--body);
  letter-spacing: 0.005em;
  line-height: 1.55;
  background:
    radial-gradient(ellipse 70% 50% at 12% 8%, var(--wash-sage), transparent 55%),
    radial-gradient(ellipse 55% 45% at 88% 18%, var(--wash-gold), transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 92%, var(--wash-ink), transparent 55%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* Soft linen weave — temperate, under grain (SITE-001 body::before) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 89;
  pointer-events: none;
  opacity: 0.55;
  background-image: var(--linen);
  background-size: 72px 72px;
  mix-blend-mode: multiply;
}

/* Fixed film grain — parchment tooth (SITE-001 body::after) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--paper);
  border-radius: var(--r);
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.cs {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.cs__main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 4rem) 1.5rem 3rem;
}

.cs__stage {
  width: min(36rem, 100%);
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: clamp(2rem, 4vh, 2.75rem);
}

/* Shell .brand — mark + word paint as heading ink, not brand green */
.cs__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--heading);
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(0.7rem);
  animation: cs-enter var(--dur-enter) var(--ease-out) 80ms forwards;
}

.cs__mark {
  width: clamp(2.1rem, 4.5vw, 2.65rem);
  height: auto;
  max-width: 2.65rem;
  display: block;
  flex-shrink: 0;
  overflow: visible;
  color: currentColor;
}

.cs__word {
  font-family: var(--word);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  padding: 0.15rem 0 0.22rem;
  color: currentColor;
}

/* Magazine issue mark — secondary ink, not brand green / not shouty uppercase */
.cs__eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--secondary);
  margin-bottom: 0.45rem;
  opacity: 0;
  transform: translateY(0.7rem);
  animation: cs-enter var(--dur-enter) var(--ease-out) 180ms forwards;
}

.cs__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.35rem, 5.2vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--heading);
  margin: 0 auto 0.75rem;
  max-width: 14ch;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(0.7rem);
  animation: cs-enter var(--dur-enter) var(--ease-out) 260ms forwards;
}

.cs__lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  color: var(--body);
  max-width: 36ch;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(0.7rem);
  animation: cs-enter var(--dur-enter) var(--ease-out) 340ms forwards;
}

/* Quiet coral hairline — shell chromatic cue without a CTA */
.cs__rule {
  width: 3.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--amber));
  margin: 1.75rem auto 0;
  border-radius: var(--r);
  opacity: 0;
  animation: cs-enter var(--dur-enter) var(--ease-out) 420ms forwards;
}

.cs__foot {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.5rem 1.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--secondary);
  opacity: 0;
  animation: cs-enter var(--dur-enter) var(--ease-out) 500ms forwards;
}

.cs__foot a {
  border-bottom: 1px solid transparent;
}

.cs__foot a:hover {
  color: var(--heading);
  border-bottom-color: color-mix(in srgb, var(--border-strong) 70%, transparent);
}

/* Thin legal pages sharing the same paper stage */
.legal-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.legal-shell__bar {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.legal-shell__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--heading);
}

.legal-shell__brand .cs__mark {
  width: 1.55rem;
  max-width: 1.55rem;
  color: currentColor;
}

.legal-shell__brand .cs__word {
  font-size: 1.35rem;
  line-height: 1.35;
}

.legal-shell__back {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--secondary);
}

.legal-shell__back:hover {
  color: var(--heading);
}

.legal-shell__main {
  flex: 1;
  width: min(42rem, 100%);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

.legal-shell__main h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  letter-spacing: -0.035em;
  color: var(--heading);
  margin-bottom: 1.5rem;
}

.legal-shell__main h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin: 2rem 0 0.75rem;
}

.legal-shell__main h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--heading);
  margin: 1.5rem 0 0.5rem;
}

.legal-shell__main p,
.legal-shell__main li {
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 0.85rem;
}

.legal-shell__main a {
  color: var(--brand);
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}

.legal-shell__main ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.legal-shell__main code {
  font-size: 0.9em;
}

@keyframes cs-enter {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs__brand,
  .cs__eyebrow,
  .cs__title,
  .cs__lead,
  .cs__rule,
  .cs__foot {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
