/* ============================================================
   NO QUITSIES — noquitsies.com
   Night above, daylight below. One red accent. One motif.
   ============================================================ */

:root {
  --paper:   #F1EBDF;
  --ink:     #191713;
  --graphite:#6F695D;
  --line:    rgba(25, 23, 19, 0.16);
  --marble:  #C2392B;
  --night:   #0A0A0C;
  --star:    #ECE7DB;
  --line-d:  rgba(236, 231, 219, 0.16);
  --measure: 62ch;
  --pad-x: clamp(1.25rem, 6vw, 4.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--marble); color: var(--paper); }

/* ---------- type ---------- */

h1, h2, h3, .display, .wordmark, nav a, .btn {
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  font-stretch: 118%;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
}

.eyebrow, .meta, .status-line, .stamp {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

h1 { font-size: clamp(2.5rem, 7.5vw, 5rem); letter-spacing: 0.14em; line-height: 1.04; }
h2 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); letter-spacing: 0.2em; margin-bottom: 1.4rem; }
h3 { font-size: 0.92rem; letter-spacing: 0.2em; margin: 2.4rem 0 0.7rem; }

.eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 1.2rem;
}

p { margin: 0 0 1.15rem; max-width: var(--measure); }
.lede { font-size: 1.2rem; line-height: 1.65; }
.quiet { color: var(--graphite); }
strong { font-weight: 600; }

/* ---------- links & buttons ---------- */

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.2s ease;
}
a:hover, a:focus-visible { text-decoration-color: var(--marble); }
a:focus-visible { outline: 2px solid var(--marble); outline-offset: 3px; }

.btn {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border: 1px solid currentColor;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover, .btn:focus-visible { background: var(--marble); border-color: var(--marble); color: #fff; }
.btn.solid { background: var(--marble); border-color: var(--marble); color: #fff; }
.btn.solid:hover { background: #a92f22; border-color: #a92f22; }

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

header.site {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem var(--pad-x);
}
header.site.static { position: static; }

.wordmark {
  font-size: 0.88rem;
  letter-spacing: 0.26em;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 0.05em;
}
.wordmark svg { display: inline-block; }

nav { display: flex; gap: 1.9rem; }
nav a {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
nav a.here, nav a:hover { border-bottom-color: var(--marble); }

.on-dark { color: var(--star); }

/* ---------- HERO (home) ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  background: #000;
  color: var(--star);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 7rem var(--pad-x) 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 5rem);
  flex-wrap: wrap;
}

.hero-copy { max-width: 34rem; }

.hero-copy .tag {
  font-family: "Archivo", sans-serif;
  font-stretch: 118%;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.25;
  margin: 0 0 1.1rem;
}

.hero-copy .sub { color: rgba(236,231,219,0.82); margin-bottom: 1.9rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-marble {
  position: relative;
  flex: 0 1 640px;
  width: min(100%, 640px);
  margin: 0 auto;
}

.hero-marble img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.scroll-cue {
  position: absolute;
  right: var(--pad-x);
  bottom: 2rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(236,231,219,0.5);
  writing-mode: vertical-rl;
}

/* ---------- sections ---------- */

main.wrap { padding: 0 var(--pad-x); max-width: 60rem; margin: 0 auto; }

section.block { padding: clamp(3.2rem, 8vh, 5.5rem) 0; border-top: 1px solid var(--line); }
section.block:first-of-type { border-top: 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- chalk ring + saturn ---------- */

.ring-figure { margin: 2.6rem 0 0; }
.ring path {
  fill: none;
  stroke: var(--graphite);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 660;
  stroke-dashoffset: 660;
}
.ring.drawn path { animation: draw 1.7s ease-out forwards; }
.ring circle.m { fill: var(--marble); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- rules block ---------- */

.rules {
  border: 1px solid var(--line);
  padding: 1.8rem 2rem;
  max-width: var(--measure);
}
.rules .eyebrow { margin-bottom: 0.9rem; }
.rules p { margin-bottom: 0.4rem; }
.rules p:last-child { margin-bottom: 0; }

/* ---------- film card (dark inset) ---------- */

.film-card {
  background: var(--night);
  color: var(--star);
  padding: clamp(2rem, 5vw, 3.2rem);
  position: relative;
  overflow: hidden;
}
.film-card::after {           /* faint starfield */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 30%, rgba(236,231,219,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 18%, rgba(236,231,219,.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 62% 72%, rgba(236,231,219,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 82%, rgba(236,231,219,.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 55%, rgba(236,231,219,.6) 50%, transparent 51%);
  pointer-events: none;
}
.film-card > * { position: relative; z-index: 1; }
.film-card h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); letter-spacing: 0.18em; }
.film-card .meta {
  font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(236,231,219,0.6); margin: 0.8rem 0 1.3rem;
}
.film-card p { color: rgba(236,231,219,0.88); }
.film-card a.btn { color: var(--star); }

/* ---------- status ---------- */

.status-line { font-size: 0.95rem; letter-spacing: 0.04em; }
.status-line .dotlive {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--marble); margin-right: 0.6rem; vertical-align: baseline;
}

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

footer.site {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding: 0 var(--pad-x) 3rem;
  font-size: 0.85rem;
  color: var(--graphite);
}
.footer-roll { position: relative; height: 60px; }
.footer-roll .track {
  position: absolute; left: 0; right: 0; top: 34px;
  border-top: 1.5px solid var(--line);
}
.footer-roll .rollmarble {
  position: absolute; top: 22px; left: -30px;
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 33% 30%, #e2685b, var(--marble) 55%, #7e2318);
  box-shadow: 0 6px 10px rgba(25,23,19,0.25);
}
.footer-roll.go .rollmarble { animation: roll 2.4s cubic-bezier(.22,.9,.32,1) forwards; }
@keyframes roll {
  to { left: calc(78% ); transform: rotate(720deg); }
}
.footer-cols { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between; }

/* ============================================================
   CRACKHEAD PAGE (theme-dark)
   ============================================================ */

body.theme-dark {
  background: var(--night);
  color: var(--star);
}
.theme-dark ::selection { background: var(--marble); color: var(--night); }
.theme-dark section.block { border-top-color: var(--line-d); }
.theme-dark .eyebrow { color: rgba(236,231,219,0.55); }
.theme-dark .quiet { color: rgba(236,231,219,0.6); }
.theme-dark a { text-decoration-color: var(--line-d); }
.theme-dark a:hover, .theme-dark a:focus-visible { text-decoration-color: var(--marble); }
.theme-dark footer.site { border-top-color: var(--line-d); color: rgba(236,231,219,0.6); }
.theme-dark .footer-roll .track { border-top-color: var(--line-d); }

/* drifting dust — the page is faintly alive */
.dust {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.dust span {
  position: absolute;
  width: 2px; height: 2px; border-radius: 50%;
  background: rgba(236,231,219,0.35);
  animation: drift linear infinite;
}
@keyframes drift {
  from { transform: translateY(0); }
  to   { transform: translateY(-110vh); }
}
.theme-dark main.wrap, .theme-dark header.site, .theme-dark footer.site { position: relative; z-index: 1; }

/* title hero */
.title-hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0 3rem;
  border-top: 0;
}
.title-hero h1 {
  font-size: clamp(2.6rem, 10vw, 7rem);
  letter-spacing: 0.12em;
}
.title-hero .meta {
  margin-top: 1.4rem;
  font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(236,231,219,0.55);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ring.drawn path { animation: none; stroke-dashoffset: 0; }
  .footer-roll.go .rollmarble { animation: none; left: 78%; }
  .dust span { animation: none; }
}

/* ---------- small screens ---------- */

@media (max-width: 600px) {
  header.site { padding: 1.1rem var(--pad-x); }
  nav { gap: 1.1rem; }
  nav a { font-size: 0.64rem; letter-spacing: 0.2em; }
  .hero { min-height: 86vh; }
  .hero-inner {
    padding-top: 6.5rem;
    padding-bottom: 3rem;
    gap: 2.25rem;
  }
  .hero-copy { max-width: none; }
  .hero-marble {
    flex-basis: auto;
    width: 100%;
    max-width: 100%;
  }
  .scroll-cue { display: none; }
}
