/* ---------------------------------------------------
   Scratch the Itch - design tokens
   Palette: warm paper + ink + one coral accent.
   Light/dark handled via CSS custom properties.
--------------------------------------------------- */

:root {
  --paper: #faf7f0;
  --paper-dim: #f0ebe0;
  --ink: #1c1a17;
  --ink-soft: #55504a;
  --accent: #ff5a36;
  --accent-ink: #faf7f0;
  --border: #1c1a17;
  --radius-panel: 4px;
  --radius-pill: 999px;
  --shadow: 4px 4px 0 rgba(28, 26, 23, 0.9);
  --max-width: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171310;
    --paper-dim: #211c17;
    --ink: #f5f0e6;
    --ink-soft: #b8afa2;
    --accent: #ff7a52;
    --accent-ink: #171310;
    --border: #f5f0e6;
    --shadow: 4px 4px 0 rgba(245, 240, 230, 0.85);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0; }

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

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------
   Header
--------------------------------------------------- */

.site-header {
  border-bottom: 2px solid var(--border);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a {
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--accent);
}

.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---------------------------------------------------
   Hero
--------------------------------------------------- */

.hero {
  padding: 88px 24px 72px;
  max-width: 760px;
}

.eyebrow {
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.01em;
}

.hero-sub {
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* ---------------------------------------------------
   Buttons
--------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid var(--border);
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn img { border-radius: 2px; }

/* ---------------------------------------------------
   Archive / strip grid
--------------------------------------------------- */

.archive {
  padding: 40px 24px 96px;
}

.archive h2, .about h2, .follow h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section-sub {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.strip-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.strip-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--paper-dim);
  overflow: hidden;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.strip-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.strip-card:hover {
  transform: translateY(-4px) rotate(-0.6deg);
}

.strip-card.is-visible:hover {
  transform: translateY(-4px) rotate(-0.6deg);
}

/* ---------------------------------------------------
   Coming soon (pre-launch teaser state)
--------------------------------------------------- */

.strip-card.coming-soon .carousel-track {
  pointer-events: none;
}

.strip-card.coming-soon .carousel-slide img {
  filter: blur(18px) saturate(0.7);
  transform: scale(1.12);
}

.strip-card.coming-soon .carousel-btn,
.strip-card.coming-soon .carousel-dots {
  display: none;
}

.strip-card.coming-soon .strip-info p {
  color: var(--ink-soft);
  font-style: italic;
}

.coming-soon-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%) rotate(-6deg);
  background: var(--ink);
  color: var(--paper);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 3px var(--ink);
  white-space: nowrap;
}

.strip-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-soft);
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(28, 26, 23, 0.04) 10px,
      rgba(28, 26, 23, 0.04) 20px
    );
}

.strip-placeholder span {
  font-size: 0.75rem;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ---------------------------------------------------
   Carousel (frame 1-4, then the full strip)
--------------------------------------------------- */

.strip-carousel {
  position: relative;
  border-bottom: 2px solid var(--border);
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
}

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 4 / 5;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 11px 0;
  background: var(--paper-dim);
}

.carousel-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.carousel-dots .dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.25);
}

.strip-info {
  padding: 18px 20px 22px;
}

.strip-info h3 {
  font-size: 1.15rem;
}

.strip-info p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------------------------------------------------
   About
--------------------------------------------------- */

.about {
  padding: 40px 24px 96px;
  border-top: 2px solid var(--border);
}

.about-inner {
  max-width: 65ch;
}

.about-inner p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.about-inner p:first-of-type {
  margin-top: 20px;
}

/* ---------------------------------------------------
   Follow
--------------------------------------------------- */

.follow {
  padding: 64px 24px 96px;
  text-align: center;
  max-width: 640px;
}

.follow .section-sub {
  margin-bottom: 32px;
}

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */

.site-footer {
  border-top: 2px solid var(--border);
  padding: 24px 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-ig:hover {
  color: var(--accent);
}

/* ---------------------------------------------------
   Mobile
--------------------------------------------------- */

@media (max-width: 640px) {
  .header-inner { height: 60px; }
  .main-nav { gap: 16px; font-size: 0.88rem; }
  .nav-cta { padding: 7px 14px; }
  .hero { padding: 56px 20px 48px; }
  .archive, .about, .follow { padding-left: 20px; padding-right: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
