/* ============================================================
   DGONZ — REVISTA EDITION
   editorial magazine layout · responsive · subtle tech accents
   ============================================================ */

:root {
  /* British Racing Green + off-white — soft contrast, classic motoring */
  --paper:        #fafaf7;     /* near-white, faint warm */
  --paper-deep:   #ededea;
  --paper-warm:   #ffffff;
  --paper-cool:   #f2f2ee;
  --ink:          #0f2a1f;     /* British Racing Green — primary ink */
  --ink-soft:     #1d3b30;
  --ink-mute:     #4a5e52;
  --ink-faint:    #8a9890;
  --rule:         #1d3b30;
  --paper-shadow: rgba(15, 42, 31, 0.18);

  /* accent colours — used sparingly, like spot colour in print */
  --rally-red:    #b53826;     /* classic rally red, slightly muted */
  --rally-blue:   #244c6e;
  --amber:        #b8842a;
  --amber-bright: #d99a36;
  --brg-light:    #2f5a48;     /* lighter racing green for fills */
  --brg-deep:     #0a1f17;

  /* dark "terminal" zones */
  --crt-bg:       #08160f;
  --crt-amber:    #ffb84d;
  --crt-amber-d:  #c8841a;

  --serif-display: 'DM Serif Display', 'Times New Roman', serif;
  --serif-body:    'EB Garamond', 'Iowan Old Style', Georgia, serif;
  --sans-cond:     'Oswald', 'Bebas Neue', 'Impact', sans-serif;
  --sans:          'Inter', system-ui, sans-serif;
  --mono:          'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

html {
  background: var(--ink);
  color: var(--ink);
  font-size: 16px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  width: 100%;

  /* paper grain */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(21,17,10,0.04) 1px, transparent 0),
    radial-gradient(circle at 8px 12px, rgba(21,17,10,0.025) 1px, transparent 0);
  background-size: 3px 3px, 11px 11px;
}

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

/* ============================================================
   LAYOUT — magazine spreads
   ============================================================ */

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 56px);
  position: relative;
}

.page-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 32px);
}

/* spread = full-bleed within page */
.spread { margin: 56px 0; }
.spread-tight { margin: 32px 0; }

.cols-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 720px) {
  .cols-2 { grid-template-columns: 1fr 1fr; gap: 40px; }
}

.cols-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px)  { .cols-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } }

.cols-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px)  { .cols-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cols-4 { grid-template-columns: repeat(4, 1fr); } }

/* desktop: contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px)  { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(5, 1fr); } }

/* ============================================================
   TYPOGRAPHY — editorial
   ============================================================ */

.kicker {
  font-family: var(--sans-cond);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rally-red);
}

.kicker-ink { color: var(--ink); }
.kicker-amber { color: var(--amber); }
.kicker-mute { color: var(--ink-mute); }

.headline {
  font-family: var(--serif-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.headline-xl {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 130px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.headline-l {
  font-family: var(--serif-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.headline-m {
  font-family: var(--serif-display);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
  color: var(--ink);
}

.deck {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  color: var(--ink-soft);
}

.byline {
  font-family: var(--sans-cond);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.lede::first-letter {
  font-family: var(--serif-display);
  float: left;
  font-size: 5.4em;
  line-height: 0.85;
  padding: 6px 10px 0 0;
  color: var(--rally-red);
}

.body-text {
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-soft);
}
.body-text + .body-text { margin-top: 12px; }

.section-num {
  font-family: var(--sans-cond);
  font-size: clamp(80px, 12vw, 160px);
  line-height: 0.85;
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

/* ============================================================
   RULES & DIVIDERS
   ============================================================ */

.rule { border: none; border-top: 1px solid var(--ink); margin: 16px 0; }
.rule-thick { border: none; border-top: 4px solid var(--ink); margin: 16px 0; }
.rule-double {
  border: none;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  height: 5px;
  margin: 16px 0;
}
.rule-dotted { border: none; border-top: 1px dotted var(--ink-mute); margin: 12px 0; }

/* magazine-style section heading: small section number, hairline rules,
   accent dot. Less newspaper, more revista-monográfico. */
.section-rule {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0 10px;
  margin-bottom: 28px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink-mute);
  font-family: var(--sans-cond);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
}
.section-rule::before {
  content: '';
  position: absolute;
  top: -4px; left: 0;
  width: 64px; height: 7px;
  background: var(--rally-red);
}
.section-rule-num {
  font-family: var(--serif-display);
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rally-red);
  font-weight: 400;
  margin-right: 4px;
}
.section-rule-right {
  margin-left: auto;
  color: var(--ink-mute);
  font-style: italic;
  font-family: var(--serif-body);
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 13px;
}

/* ============================================================
   MASTHEAD
   ============================================================ */

.masthead {
  border-bottom: 6px solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.masthead-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans-cond);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.masthead-title {
  font-family: var(--serif-display);
  font-size: clamp(28px, 9vw, 78px);
  line-height: 1;
  text-align: center;
  letter-spacing: -0.01em;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.masthead-title .small {
  font-family: var(--sans-cond);
  font-size: 0.18em;
  letter-spacing: 0.4em;
  display: block;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
  font-weight: 500;
}

/* ============================================================
   TICKER (top strip)
   ============================================================ */

.ticker {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 0;
  overflow: hidden;
  position: relative;
}
.ticker-track {
  display: inline-flex;
  gap: 32px;
  white-space: nowrap;
  animation: ticker-scroll 50s linear infinite;
  padding-right: 32px;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   COVER (hero)
   ============================================================ */

.cover {
  position: relative;
  padding: 24px 0;
}

.cover-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: end;
}
@media (min-width: 1024px) {
  .cover-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    min-height: 70vh;
  }
}

.cover-coverlines {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 20px;
  position: relative;
}
.cover-coverlines::before {
  content: 'COVERLINES';
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--paper);
  padding: 0 8px;
  font-family: var(--sans-cond);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
}

.coverline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--ink-mute);
}
.coverline:last-child { border-bottom: none; }
.coverline .num {
  font-family: var(--sans-cond);
  font-size: 22px;
  color: var(--rally-red);
  font-weight: 500;
  min-width: 32px;
}
.coverline .text {
  font-family: var(--serif-body);
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
  flex: 1;
}

.issue-stamp {
  display: inline-block;
  border: 2px solid var(--ink);
  padding: 4px 10px;
  font-family: var(--sans-cond);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--paper);
}

/* price tag — magazine cover staple */
.price-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid var(--rally-red);
  background: var(--paper);
  color: var(--rally-red);
  padding: 6px 14px;
  font-family: var(--sans-cond);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.price-tag .big { font-size: 26px; line-height: 1; }
.price-tag .lbl { font-size: 9px; letter-spacing: 0.25em; }

/* ============================================================
   ARTICLES / FEATURE CARDS
   ============================================================ */

.feature {
  border-top: 1px solid var(--ink);
  padding-top: 14px;
}

.feature-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border-top: 4px solid var(--ink);
  padding-top: 14px;
  transition: opacity 0.2s ease;
}
.feature-card:hover { opacity: 1; }
.feature-card:hover h3 {
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.feature-card h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
  margin: 8px 0 6px;
  color: var(--ink);
}

.feature-card .excerpt {
  font-family: var(--serif-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.feature-card .meta {
  display: flex;
  gap: 12px;
  font-family: var(--sans-cond);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 10px;
}

/* lead article (bigger) */
.feature-lead h3 {
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 0.98;
}

/* ============================================================
   PAPER CARD (for boxes within the spread)
   ============================================================ */

.paper-card {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 20px;
  position: relative;
}
.paper-card.dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.paper-card.dark .label { color: var(--crt-amber); }

/* ============================================================
   TERMINAL ZONE — dark inset, used as a sidebar
   ============================================================ */

.terminal-zone {
  background: var(--crt-bg);
  color: var(--crt-amber);
  padding: 20px;
  font-family: var(--mono);
  position: relative;
  border: 1px solid var(--ink);
  overflow: hidden;
}
.terminal-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.18) 3px,
    rgba(0, 0, 0, 0.22) 3px
  );
  mix-blend-mode: multiply;
}
.terminal-zone .term-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crt-amber-d);
  border-bottom: 1px solid var(--crt-amber-d);
  padding-bottom: 6px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.terminal-zone .term-body {
  font-size: 13px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  white-space: pre-wrap;
}
.terminal-zone .prompt-line { color: var(--crt-amber-d); }
.terminal-zone .out { color: var(--crt-amber); }
.terminal-zone .err { color: #ff7960; }

.cursor::after {
  content: '█';
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
  color: var(--crt-amber);
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ============================================================
   CONTACT CARDS (calling cards)
   ============================================================ */

.calling-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.calling-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}
.calling-card .channel {
  font-family: var(--sans-cond);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rally-red);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.calling-card .channel .num {
  font-size: 9px;
  color: var(--ink-mute);
}
.calling-card .handle {
  font-family: var(--serif-display);
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  word-break: break-word;
}
.calling-card .arrow {
  margin-top: 12px;
  font-family: var(--sans-cond);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ============================================================
   GARAGE — kept the polaroid magic, restyled the wrap
   ============================================================ */

.garage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 720px) {
  .garage-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.paper {
  background: var(--paper-warm);
  color: var(--ink);
  padding: 22px;
  position: relative;
  font-family: var(--serif-body);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(21,17,10,0.06) 1px, transparent 0);
  background-size: 3px 3px;
  border: 1px solid var(--ink-mute);
  box-shadow: 4px 4px 0 var(--paper-shadow);
}
.paper.tilt-l { transform: rotate(-0.6deg); }
.paper.tilt-r { transform: rotate(0.5deg); }

.paper h3 {
  font-family: var(--serif-display);
  font-size: 28px;
  line-height: 1;
  margin-bottom: 6px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* photo stack stays as-is */
.photo-stack {
  position: absolute;
  top: -14px;
  right: -6px;
  width: 110px;
  height: 124px;
  z-index: 2;
  pointer-events: auto;
}
.photo-stack .clip {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 38px;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 2px 1px rgba(0,0,0,0.35));
}
.polaroid {
  position: absolute;
  width: 104px;
  height: 116px;
  background: var(--paper-warm);
  padding: 6px 6px 22px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.25),
    0 6px 14px rgba(0,0,0,0.18);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
  transform-origin: 50% 0%;
}
.polaroid .pic {
  width: 100%;
  height: 80px;
  background: var(--brg-deep);
  overflow: hidden;
  position: relative;
}
.polaroid .caption {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 4px;
  text-transform: uppercase;
  opacity: 0.75;
}
.polaroid.secondary { transform: translate(-8px, 8px) rotate(-8deg); z-index: 1; }
.polaroid.primary   { transform: rotate(4deg); z-index: 3; }

.paper:hover .polaroid.primary,
.photo-stack:hover .polaroid.primary {
  transform: rotate(7deg) translate(4px, -2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.3), 0 10px 22px rgba(0,0,0,0.22);
}
.paper:hover .polaroid.secondary,
.photo-stack:hover .polaroid.secondary {
  transform: translate(-14px, 12px) rotate(-14deg);
}
.paper:hover .photo-stack .clip,
.photo-stack:hover .clip { animation: clip-wiggle 0.6s ease-in-out; }

@keyframes clip-wiggle {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  30%      { transform: translateX(-50%) rotate(-6deg); }
  70%      { transform: translateX(-50%) rotate(4deg); }
}

.stamp {
  display: inline-block;
  border: 2px solid var(--rally-red);
  color: var(--rally-red);
  padding: 3px 8px;
  font-family: var(--sans-cond);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.spec-line {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 6px 0;
  margin: 10px 0;
}

.martini-stripes {
  display: flex; height: 6px; margin-top: 12px;
}
.martini-stripes > div:nth-child(1) { flex: 1; background: var(--rally-blue); }
.martini-stripes > div:nth-child(2) { flex: 1; background: var(--rally-red); }
.martini-stripes > div:nth-child(3) { flex: 2; background: var(--paper); }
.martini-stripes > div:nth-child(4) { flex: 1; background: var(--rally-red); }
.martini-stripes > div:nth-child(5) { flex: 1; background: var(--rally-blue); }

/* ============================================================
   /NOW DEPARTMENT
   ============================================================ */

.now-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dotted var(--ink-mute);
  align-items: baseline;
}
.now-item:last-child { border-bottom: none; }
.now-item .tag {
  font-family: var(--sans-cond);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rally-red);
}
.now-item .text {
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
}

/* ============================================================
   BLOG LIST PAGE
   ============================================================ */

.blog-hero {
  border-top: 8px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 24px 0 36px;
  margin-bottom: 32px;
}

.tag-pill {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid var(--ink);
  font-family: var(--sans-cond);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.tag-pill:hover { background: var(--ink); color: var(--paper); }
.tag-pill.active { background: var(--ink); color: var(--paper); }
.tag-pill.accent.active { background: var(--rally-red); border-color: var(--rally-red); color: var(--paper); }

.search-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 17px;
  font-style: italic;
}
.search-input:focus {
  outline: none;
  background: var(--paper-warm);
}
.search-input::placeholder { color: var(--ink-faint); font-style: italic; }

.range-input {
  width: 100%;
  accent-color: var(--rally-red);
}

/* ============================================================
   POST DETAIL PAGE
   ============================================================ */

.article-header {
  border-bottom: 4px solid var(--ink);
  padding-bottom: 32px;
  margin-bottom: 32px;
}

.article-body {
  font-family: var(--serif-body);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
}
.article-body p { margin: 0 0 18px; }
.article-body h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  margin: 32px 0 14px;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}
.article-body pre {
  background: var(--crt-bg);
  color: var(--crt-amber);
  padding: 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  overflow-x: auto;
  margin: 18px 0;
  border-left: 4px solid var(--rally-red);
}

.pullquote {
  font-family: var(--serif-display);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  color: var(--rally-red);
  border-top: 4px solid var(--rally-red);
  border-bottom: 4px solid var(--rally-red);
  padding: 18px 0;
  margin: 24px 0;
  text-align: center;
}

/* ============================================================
   FOOTER (colophon)
   ============================================================ */

.colophon {
  border-top: 6px solid var(--ink);
  margin-top: 56px;
  padding: 32px 0;
}

.colophon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  font-family: var(--sans-cond);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
@media (min-width: 720px) {
  .colophon-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* ============================================================
   BUTTONS / LINKS
   ============================================================ */

.btn-print {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans-cond);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-print:hover { background: var(--rally-red); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans-cond);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

a.text-link { color: var(--rally-red); text-decoration: underline; text-underline-offset: 3px; }
a.text-link:hover { background: var(--rally-red); color: var(--paper); text-decoration: none; }

/* ============================================================
   UTIL
   ============================================================ */

.uppercase { text-transform: uppercase; letter-spacing: 0.18em; }
.center { text-align: center; }
.right { text-align: right; }
.muted { color: var(--ink-mute); }
.faint { color: var(--ink-faint); }
.red { color: var(--rally-red); }
.tiny { font-size: 11px; }
.small { font-size: 13px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }

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

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper-deep); }
::-webkit-scrollbar-thumb { background: var(--ink); }

:focus-visible { outline: 2px solid var(--rally-red); outline-offset: 3px; }

/* ============================================================
   SUBTLE CRT (kept as a nod, much more restrained)
   ============================================================ */

.crt-scanlines-soft {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(21, 17, 10, 0.025) 4px
  );
  mix-blend-mode: multiply;
}

.konami-mode { animation: rally-rave 0.5s linear infinite; }
@keyframes rally-rave {
  0%   { filter: hue-rotate(0deg); }
  50%  { filter: hue-rotate(20deg) saturate(1.4); }
  100% { filter: hue-rotate(0deg); }
}
.konami-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9998;
  background: var(--rally-red);
  color: var(--paper);
  padding: 10px;
  text-align: center;
  font-family: var(--sans-cond);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
}


/* ============================================================
   MAGAZINE PALETTE NOTES
   Primary ink is British Racing Green; rally red used as the
   single spot colour. Backgrounds layer cream + paper-cool +
   the deep BRG for inverted spreads.
   ============================================================ */

:root {
  --rally-cream:  #f3f2ec;
}

body {
  background: var(--paper);
}

/* spreads breathe more; wider negative space between sections */
.spread { margin: 80px 0; }
@media (max-width: 720px) { .spread { margin: 56px 0; } }

/* ============================================================
   SECTION BACKGROUND VARIANTS — clear visual differentiation
   ============================================================ */

/* full-bleed coloured spread (no horizontal scroll thanks to body overflow:hidden) */
.spread-bleed {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 64px clamp(16px, 4vw, 56px);
}
@media (max-width: 720px) { .spread-bleed { padding: 48px 16px; } }

.intro-section {
  margin-top: 32px;
  margin-bottom: 80px;
}

.now-section {
  background: var(--paper-cool);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 64px clamp(16px, 4vw, 56px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.garage-section {
  margin-top: 80px;
  position: relative;
}
.garage-section::before {
  content: '';
  display: block;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--ink) 0, var(--ink) 6px,
    transparent 6px, transparent 12px
  );
  margin-bottom: 40px;
}

.features-section {
  background: var(--brg-deep);
  color: var(--paper);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 72px clamp(16px, 4vw, 56px);
}
.features-section .section-rule { color: var(--paper); border-top-color: var(--paper); border-bottom-color: var(--ink-mute); }
.features-section .section-rule-num { color: var(--rally-cream); }
.features-section .section-rule-right { color: var(--paper-deep); }
.features-section .section-rule::before { background: var(--rally-cream); }
.features-section .feature-card {
  border-top-color: var(--paper);
  color: var(--paper);
}
.features-section .feature-card h3 { color: var(--paper); }
.features-section .feature-card .excerpt { color: var(--paper-deep); }
.features-section .feature-card .meta { color: var(--paper-deep); }
.features-section .feature-card .red { color: var(--rally-cream); }
.features-section .btn-print { background: var(--rally-red); color: var(--paper); }
.features-section .btn-print:hover { background: var(--paper); color: var(--ink); }

.anexo-section {
  margin-top: 80px;
}

.contact-section {
  background: var(--paper-warm);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 80px clamp(16px, 4vw, 56px);
  border-top: 6px double var(--ink);
  border-bottom: 6px double var(--ink);
}

/* ============================================================
   POST CAROUSEL
   ============================================================ */

.carousel-section {
  margin: 24px 0 8px;
}

.carousel-tag {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-family: var(--sans-cond);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.carousel-pill {
  background: var(--rally-red);
  color: var(--paper);
  padding: 4px 12px;
  letter-spacing: 0.3em;
}

.carousel-meta {
  color: var(--ink-mute);
  font-style: italic;
  font-family: var(--serif-body);
  text-transform: none;
  letter-spacing: 0.04em;
}

.carousel-window {
  border: 1px solid var(--ink);
  background: var(--paper-warm);
  overflow: hidden;
  position: relative;
  height: 168px;
}
@media (max-width: 720px) { .carousel-window { height: 200px; } }

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 18px 22px;
  position: relative;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
@media (max-width: 720px) {
  .carousel-slide { padding: 16px; }
}

.carousel-num {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif-display);
  font-size: 56px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--rally-red);
  letter-spacing: -0.03em;
}
@media (max-width: 720px) {
  .carousel-num { font-size: 40px; left: 10px; }
}

.carousel-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--sans-cond);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.carousel-title {
  font-family: var(--serif-display);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.1;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-cta {
  font-family: var(--sans-cond);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rally-red);
}

.carousel-slide:hover .carousel-title { text-decoration: underline; text-underline-offset: 4px; }

.carousel-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}

.carousel-dot {
  width: 28px;
  height: 4px;
  border: none;
  background: var(--ink-faint);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.carousel-dot.active { background: var(--rally-red); }

/* ============================================================
   INTRO LAYOUT — copy + contact stack
   ============================================================ */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) {
  .intro-grid {
    grid-template-columns: 1.6fr 1fr;
    gap: 64px;
    align-items: start;
  }
}

.intro-copy { position: relative; }
.intro-copy::before {
  content: '';
  position: absolute;
  top: -8px; left: 0;
  width: 90px; height: 4px;
  background: var(--rally-red);
}
.intro-copy { padding-top: 12px; }

.intro-contacts {
  background: var(--paper-warm);
  border: 1px solid var(--ink);
  padding: 24px;
  position: relative;
  box-shadow: 6px 6px 0 var(--paper-shadow);
}
.intro-contacts::before {
  content: 'TARJETERO';
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--paper);
  padding: 0 8px;
  font-family: var(--sans-cond);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
}

.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px dotted var(--ink-mute);
  text-decoration: none;
  color: var(--ink);
  transition: padding 0.15s ease, background 0.15s ease;
}
.contact-row:last-child { border-bottom: none; }
.contact-row:hover {
  background: var(--paper);
  padding-left: 10px;
}

.contact-glyph {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-display);
  font-size: 18px;
  background: var(--paper);
  flex-shrink: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.contact-channel {
  font-family: var(--sans-cond);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rally-red);
}

.contact-handle {
  font-family: var(--serif-display);
  font-size: 17px;
  line-height: 1.1;
  color: var(--ink);
  word-break: break-word;
}

.contact-arrow {
  font-family: var(--sans-cond);
  color: var(--ink-mute);
  font-size: 16px;
  transition: transform 0.15s;
}
.contact-row:hover .contact-arrow { transform: translate(2px, -2px); color: var(--rally-red); }

/* ============================================================
   BIG CTA BUTTON
   ============================================================ */

.btn-print-lg {
  padding: 16px 24px;
  font-size: 14px;
  letter-spacing: 0.26em;
}
.btn-print-lg .btn-arrow {
  display: inline-block;
  transition: transform 0.2s;
  font-size: 18px;
}
.btn-print-lg:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact-form-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 1024px) {
  .contact-form-wrap { grid-template-columns: 1fr 1.4fr; gap: 64px; }
}

.contact-intro { padding-top: 12px; }
.contact-intro::before {
  content: '';
  display: block;
  width: 80px; height: 4px;
  background: var(--rally-red);
  margin-bottom: 16px;
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 28px;
  position: relative;
  box-shadow: 8px 8px 0 var(--paper-shadow);
}
.contact-form::before {
  content: 'CARTA AL DIRECTOR · MOD-A2';
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--paper-warm);
  padding: 0 10px;
  font-family: var(--sans-cond);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-block { display: block; margin-top: 16px; }
.form-block:first-child { margin-top: 0; }

.form-label {
  display: block;
  font-family: var(--sans-cond);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--paper-warm);
  border: 1px solid var(--ink);
  font-family: var(--serif-body);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.form-input:focus {
  border-color: var(--rally-red);
  background: var(--paper);
}
.form-input::placeholder { color: var(--ink-faint); font-style: italic; }

.form-textarea {
  font-family: var(--serif-body);
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

select.form-input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 12px) center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}

.form-meta {
  font-family: var(--serif-body);
  font-size: 13px;
  font-style: italic;
  color: var(--ink-mute);
}

.form-sent {
  text-align: center;
  padding: 24px 0;
}

/* ============================================================
   NOW CARD — distinguish from default body
   ============================================================ */

.now-card {
  background: var(--paper-warm);
  border: 1px solid var(--ink);
  padding: 24px;
  box-shadow: 6px 6px 0 var(--paper-shadow);
}

.now-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dotted var(--ink-mute);
  align-items: baseline;
}
.now-item:first-child { padding-top: 0; }
.now-item:last-child { border-bottom: none; padding-bottom: 0; }
.now-item .tag {
  font-family: var(--sans-cond);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rally-red);
}
.now-item .text {
  font-family: var(--serif-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

/* ============================================================
   PAPER FOLIO - kicker accent on intro contacts headline
   ============================================================ */

.intro-contacts h3 { letter-spacing: -0.01em; }

