/* Coming-soon page: extra rules on top of styles.css (shared with the main site) */

/* Hidden social links stay hidden even where a display value is set */
[hidden] { display: none !important; }

/* Header: logo plus an Instagram link, not sticky */
.cs-header { border-bottom: 1px solid var(--line-dark); }
.cs-follow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-accent); font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em; color: var(--text-on-dark); text-decoration: none;
  transition: color 0.2s ease;
}
.cs-follow svg { fill: currentColor; flex: none; }
.cs-follow:hover { color: var(--brass); }

/* Signup form on the dark hero */
.waitlist--dark label { color: var(--cream); }
.waitlist--dark input { border-color: var(--line-dark-2); }
.form-status--dark { color: var(--brass-light); }
/* Button sits beside the field when there's room; when it wraps it fills the row */
.waitlist--dark .waitlist__field { flex: 3 1 260px; }
.waitlist--dark .btn { flex: 1 0 auto; }
.cs-consent { font-size: 13px; color: var(--text-on-dark-3); max-width: 540px; }
.cs-consent a { color: var(--text-on-dark); }

/* What's coming */
.cs-coming { --section-pad: var(--space-14); border-top: 1px solid var(--line-dark); }
.cs-coming__head { max-width: 680px; }
.cs-books { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 900px) { .cs-books { grid-template-columns: repeat(3, 1fr); } }
.cs-book {
  position: relative;
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-7); border: 1px solid var(--line-dark-2); background: var(--ink-3);
}

/* Card hover: a run of brass light travels round the border */
@property --cs-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.cs-book::before {
  content: ""; position: absolute; inset: -1px; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--cs-angle), transparent 0 50%, var(--brass) 78%, var(--brass-light) 90%, transparent 98%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.3s ease;
  /* Always running but paused, so it carries on from where it stopped last time */
  animation: cs-trace 2.4s linear infinite paused;
}
.cs-book:hover::before { opacity: 1; animation-play-state: running; }
@keyframes cs-trace { to { --cs-angle: 360deg; } }
.cs-next {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-8);
  padding-top: var(--space-9); border-top: 1px solid var(--line-dark-2);
}
.cs-next .eyebrow { flex-basis: 100%; }
.cs-next__text { flex: 1 1 420px; max-width: 640px; color: var(--text-on-dark); }
.cs-next__text strong { color: var(--cream); font-weight: 600; }

/* Footer legal link */
.site-footer__legal a { color: inherit; }

/* Small pages: on the list, confirmed, privacy, 404 */
.cs-page { --section-pad: var(--space-13); }
.cs-page .lead strong { color: var(--cream); font-weight: 600; }
.cs-prose { max-width: 680px; }
.cs-prose h2 { font-family: var(--font-body); font-size: 19px; font-weight: 600; margin-top: var(--space-4); }
.cs-prose p, .cs-prose li { color: var(--text-on-dark); }
.cs-prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
  .cs-book::before { animation: none; }
  .cs-book:hover::before { background: var(--brass); }
}

@media (max-width: 719.98px) {
  .cs-follow span { display: none; }
  .cs-follow { width: 44px; height: 44px; justify-content: center; border: 1.5px solid var(--line-dark-2); border-radius: 50%; }
  .hero__art .fan { max-width: 360px; }
  .cs-next .btn { flex: 1 1 100%; width: 100%; }
  .cs-coming { --section-pad: var(--space-12); }
}
