/* Rogue Shark Lab — shared design tokens & primitives */

:root {
  --parchment: #f4ede0;
  --paper: #faf6ec;
  --cream: #e6dcc4;
  --cream-2: #d4c9b0;
  --ink: #1a1a1a;
  --ink-soft: #2a2620;
  --muted: #6b6358;
  --oxblood: #8a2418;
  --oxblood-deep: #6e1c12;
  --teal: #2d4a52;
  --rule: rgba(26, 22, 18, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--parchment);
  color: var(--ink);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* subtle paper grain */
  background-image:
    radial-gradient(rgba(120, 100, 70, 0.04) 1px, transparent 1px),
    radial-gradient(rgba(120, 100, 70, 0.03) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}

.display {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-wrap: balance;
}

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.oxblood { color: var(--oxblood); }
.teal { color: var(--teal); }
.muted { color: var(--muted); }

/* ── Brushstroke (SVG filter — looks painted) ───────────────────── */
.brush-rule {
  position: relative;
  height: 14px;
  width: 100%;
}
.brush-rule svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brush-stamp {
  display: inline-block;
  position: relative;
  padding: 0.05em 0.18em 0.1em;
}
.brush-stamp::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--oxblood);
  filter: url(#brushFilter);
  z-index: -1;
}
.brush-stamp.ink::before { background: var(--ink); }
.brush-stamp { color: var(--paper); }

/* ── Halftone overlay for photos ────────────────────────────────── */
.halftone {
  position: relative;
  overflow: hidden;
  background: var(--cream-2);
}
.halftone::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(20, 14, 10, 0.55) 1px, transparent 1.6px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
  opacity: 0.65;
}
.halftone.coarse::after {
  background-image: radial-gradient(rgba(20, 14, 10, 0.7) 1.4px, transparent 2.2px);
  background-size: 7px 7px;
}

/* photo placeholder (when no real image dropped yet) */
.photo-ph {
  position: relative;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.photo-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -38deg,
    transparent 0 22px,
    rgba(26, 22, 18, 0.07) 22px 23px
  );
}
.photo-ph .ph-label {
  position: relative;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(26, 22, 18, 0.55);
  text-align: center;
  text-transform: uppercase;
  padding: 1rem 1.4rem;
  background: rgba(244, 237, 224, 0.92);
  border: 1px dashed rgba(26, 22, 18, 0.3);
  max-width: 80%;
}

/* ── Button system ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  border: 0;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--oxblood);
  color: var(--paper);
}
.btn-primary:hover { background: var(--oxblood-deep); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-arrow::after {
  content: '→';
  display: inline-block;
  transition: transform 0.15s ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ── Containers ─────────────────────────────────────────────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 56px; }
.wrap-wide { max-width: 1400px; margin: 0 auto; padding: 0 56px; }

/* ── Tape strip accent ──────────────────────────────────────────── */
.tape {
  position: absolute;
  background: rgba(232, 215, 167, 0.85);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  width: 90px;
  height: 22px;
  z-index: 3;
}

/* ── Sticker / stamp callout ─────────────────────────────────────── */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  color: var(--oxblood);
  background: var(--paper);
}

/* ── Section utility ────────────────────────────────────────────── */
section { padding: 110px 0; position: relative; }
section.tight { padding: 70px 0; }

h2.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 0.5em;
}

/* ── Marquee ────────────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: 18px 0;
  background: var(--ink);
  color: var(--paper);
}
.marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 22px;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee-dot { color: var(--oxblood); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Calendar iframe shell ──────────────────────────────────────── */
.calendar-shell {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.calendar-shell iframe { display: block; width: 100%; border: 0; }

/* ── Tiny helpers ───────────────────────────────────────────────── */
a { color: inherit; }
img { display: block; max-width: 100%; }
.divider-thick { height: 6px; background: var(--ink); }
