/* ========================================================================
   CUBAN SOUL IN PICTURES — editorial styles
   Type pairing: GT-Sectra-like serif (Fraunces tuned) + clean sans (Söhne-like via Inter Tight fallback)
   We import via Google Fonts. Fraunces stands in for GT Sectra/Recoleta warmth.
   ======================================================================== */

:root {
  --paper: #f4efe6;          /* sun-bleached ivory */
  --paper-2: #ece5d6;        /* slightly deeper paper */
  --ink: #1a1714;            /* near-black warm */
  --ink-2: #4a443c;          /* secondary ink */
  --rule: #d8cfbe;           /* hairline rule on paper */
  --accent: #b8553a;         /* sun-warmed terracotta */
  --accent-ink: #8a3d27;     /* hover state for accent */

  --serif: "Fraunces", "GT Sectra", "Tiempos", "Recoleta", Georgia, serif;
  --sans: "Inter Tight", "Söhne", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

/* Display serif — Fraunces tuned warm */
.serif {
  font-family: var(--serif);
  font-feature-settings: "ss01";
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.italic-serif {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "SOFT" 80, "WONK" 1;
}

.mono { font-family: var(--mono); }

/* Small caps used for captions, kickers, eyebrows */
.smallcaps {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 500;
}

/* Editorial rule */
.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* Hairline border helpers */
.border-rule { border-color: var(--rule) !important; }

/* Drop cap for editor's letter */
.dropcap::first-letter {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 5.2em;
  line-height: 0.86;
  float: left;
  padding: 0.08em 0.12em 0 0;
  color: var(--ink);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

/* Image placeholder — striped */
.placeholder-img {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      #c9bfac 0 1px,
      transparent 1px 14px
    ),
    linear-gradient(180deg, #d8cfbe 0%, #c9bfac 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #5d564a;
}
.placeholder-img .ph-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--paper);
  padding: 6px 10px;
  border: 1px solid var(--rule);
}

/* Photo wrap with caption */
.figure-caption {
  margin-top: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  font-weight: 500;
}
.figure-caption .num {
  color: var(--accent);
  margin-right: 8px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* Pull quote */
.pullquote {
  font-family: var(--serif);
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

/* Sticky issue masthead */
.masthead-blur {
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  background-color: rgba(244, 239, 230, 0.88) !important;
  border-bottom: 1px solid var(--rule);
}

/* Buttons */
.btn-ink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  border: 1px solid var(--ink);
}
.btn-ink:hover { background: var(--accent-ink); border-color: var(--accent-ink); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--ink);
  padding: 13px 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--paper);
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--accent);
  transition: background 0.2s;
}
.btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }

/* Underline link, slow */
.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 0.3s ease;
}
.link-underline:hover::after { transform: scaleX(0.4); }

/* Soft scroll */
html { scroll-behavior: smooth; }

/* Hover lift on cards */
.card-lift { transition: transform 0.4s cubic-bezier(.2,.7,.2,1); }
.card-lift:hover { transform: translateY(-4px); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Tiny grain over hero — barely there */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: multiply;
}

/* Dark spread for closing */
.ink-spread {
  background: var(--ink);
  color: var(--paper);
}
.ink-spread .smallcaps { color: rgba(244,239,230,0.7); }
.ink-spread .rule { border-top-color: rgba(244,239,230,0.18); }
.ink-spread .btn-ghost { color: var(--paper); border-color: var(--paper); }
.ink-spread .btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* Number kicker */
.kicker-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* Magazine grid spans */
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
@media (max-width: 768px) {
  .grid-12 { grid-template-columns: repeat(6, 1fr); gap: 16px; }
}
