/* ═══════════════════════════════════════════════════════════════════════
   Ink Stories Tattoos — Base Stylesheet
   Design tokens, resets, typography, utilities
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────────────────────── */
:root {
  --ink-bg:         #080808;
  --ink-surface:    #101010;
  --ink-card:       #141414;
  --ink-border:     #1f1f1f;
  --ink-gold:       #c9a96e;
  --ink-gold-light: #e8c98e;
  --ink-gold-dark:  #8a6a30;
  --ink-red:        #8b1a1a;
  --ink-text:       #f0f0f0;
  --ink-muted:      #777777;
  --ink-dim:        #444444;

  --font-heading: 'Bebas Neue', sans-serif;
  --font-sub:     'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);

  --section-padding: 120px;
  --container-max:   1240px;
  --container-pad:   clamp(20px, 5vw, 80px);
  --radius:          4px;
  --radius-lg:       8px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--ink-bg);
  color: var(--ink-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ── Typography ─────────────────────────────────────────────────────── */
.ips-section-title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--ink-text);
}

.ips-label {
  display: inline-block;
  font-family: var(--font-sub);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-gold);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

/* ── Container ──────────────────────────────────────────────────────── */
.ips-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── Section base ───────────────────────────────────────────────────── */
.ips-section {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-padding);
  background-color: var(--ink-bg);
}

.ips-section-header {
  text-align: center;
  margin-bottom: 64px;
}

/* ── Gold rule ──────────────────────────────────────────────────────── */
.ips-gold-rule {
  width: 80px;
  height: 1.5px;
  margin: 20px auto 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--ink-gold) 30%,
    var(--ink-gold-light) 50%,
    var(--ink-gold) 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.ips-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.ips-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity 0.2s;
}

.ips-btn:hover::after {
  opacity: 1;
}

.ips-btn--gold {
  background-color: var(--ink-gold);
  color: #000;
  box-shadow: 0 0 0 0 rgba(201,169,110,0);
}

.ips-btn--gold:hover {
  background-color: var(--ink-gold-light);
  box-shadow: 0 0 32px rgba(201,169,110,0.35);
  transform: translateY(-2px);
}

.ips-btn--ghost {
  background-color: transparent;
  color: var(--ink-gold);
  border: 1.5px solid var(--ink-gold);
}

.ips-btn--ghost:hover {
  background-color: rgba(201,169,110,0.08);
  box-shadow: 0 0 24px rgba(201,169,110,0.2);
  transform: translateY(-2px);
}

.ips-btn--lg {
  padding: 17px 42px;
  font-size: 15px;
}

/* ── Entrance animation base ────────────────────────────────────────── */
.ips-animate {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity  0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo);
  transition-delay: var(--delay, 0s);
}

.ips-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide variants */
.ips-slide-left {
  transform: translateX(-60px);
}
.ips-slide-right {
  transform: translateX(60px);
}
.ips-slide-left.is-visible,
.ips-slide-right.is-visible {
  transform: translateX(0);
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-padding: 72px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 52px;
  }
}
