/* =========================================================================
   FATE BMX COLOMBIA: hoja de estilos propia

   Marca, no tienda. Fondo blanco, tinta negra, cero color de acento: lo unico
   que tiene color en estas paginas son las fotos (y son negras).

   Este archivo es independiente del CSS de Stike (assets/css/styles.css):
   las paginas de fate/ no lo cargan. Si algun dia Fate se muda a su propio
   dominio, la carpeta fate/ se lleva completa (css, js, fuentes, imagenes).

   Indice
     1. Tokens        5. Hero              9. Pagina interna / coleccion
     2. Base          6. Secciones home   10. Historias y articulos
     3. Header/menu   7. Piezas           11. Footer
     4. Utilidades    8. Principios       12. Movimiento y responsive
   ========================================================================= */

/* ----------------------------------------------------------------- 1. TOKENS */
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  /* Solo neutros. Nada de matices: ni un gris azulado, ni un acento. */
  --bg: #fff;
  --ink: #0b0b0b;
  --ink-2: #444;      /* texto de lectura secundario */
  --ink-3: #6b6b6b;   /* etiquetas; 5.3:1 sobre blanco, pasa AA */
  --line: #e8e8e8;    /* filetes finos */
  --line-2: #cfcfcf;

  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 3.2vw, 48px);
  --max: 1440px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 9'%3E%3Cpath d='M0 4.5h14.2M10.6 1l3.8 3.5-3.8 3.5' fill='none' stroke='%23000' stroke-width='1.1'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ 2. BASE */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;            /* Instrument Serif solo existe en 400: nada de negrita falsa */
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: #000; color: #fff; }
:focus-visible { outline: 2px solid #000; outline-offset: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
em { font-style: italic; }
strong { font-weight: 600; }

.skip {
  position: absolute; left: var(--gutter); top: -80px; z-index: 100;
  background: #000; color: #fff; padding: 12px 18px; font-size: 13px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ 3. HEADER/MENU */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg);
  transition: transform .5s var(--ease), box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header:focus-within { transform: none; }

.bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header-h); max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
}
.nav { display: flex; gap: clamp(22px, 2.8vw, 44px); }
.nav-right { justify-self: end; }
.nav a, .link, .btn, .label {
  font-size: 12px; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
}
.nav a { position: relative; padding-block: 8px; text-decoration: none; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.mark { display: grid; place-items: center; width: 48px; height: 48px; }
.mark img { width: 40px; height: 40px; transition: transform 1.2s var(--ease); }
.mark:hover img { transform: rotate(90deg); }

.menu-btn { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; margin-left: -10px; }
.menu-btn span { display: block; width: 22px; height: 1px; background: #000; transition: transform .45s var(--ease), opacity .3s; }
.menu-btn span + span { margin-top: 7px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 50; background: var(--bg);
  padding: calc(var(--header-h) + 20px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  visibility: hidden; opacity: 0;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.menu.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.menu nav { display: grid; }
.menu nav a {
  font-family: var(--serif); font-size: clamp(44px, 13.5vw, 76px); line-height: 1.06; letter-spacing: -.01em;
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line);
}
.menu-foot { color: var(--ink-3); font-size: 14px; line-height: 1.6; }
.menu-foot a { color: var(--ink); }
body.menu-open { overflow: hidden; }

/* -------------------------------------------------------------- 4. UTILIDADES */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: clamp(88px, 12vw, 184px); }
.section--tight { padding-block: clamp(56px, 8vw, 112px); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label { color: var(--ink-3); }
.label b { color: var(--ink); font-weight: 500; margin-right: 1em; }

.link {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  padding-bottom: 7px; border-bottom: 1px solid var(--ink);
  transition: gap .45s var(--ease);
}
.link::after {
  content: ""; width: 16px; height: 9px; background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
}
.link:hover { gap: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none;
  padding: 18px 30px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  transition: background .35s ease, color .35s ease;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn--line { background: #fff; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }

/* ------------------------------------------------------------------- 5. HERO */
.hero {
  position: relative; display: grid; place-items: center; text-align: center;
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  padding: clamp(16px, 3vh, 40px) var(--gutter) clamp(72px, 11vh, 120px);
}
.hero-emblem { width: min(44vh, 520px, 74vw); width: min(44svh, 520px, 74vw); height: auto; margin-inline: auto; }
.hero-title {
  margin-top: clamp(20px, 3.4vh, 44px);
  font-size: clamp(44px, 6.4vw, 104px); line-height: 1;
}
.hero-meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 3.5vh, 36px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; color: var(--ink-3);
}
.hero-meta span:first-child { text-align: left; }
.hero-meta span:last-child { text-align: right; }
.hero-meta i { display: block; width: 1px; height: 44px; background: var(--line-2); position: relative; overflow: hidden; }
.hero-meta i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(-100%); animation: cue 2.6s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* ----------------------------------------------------------- 6. SECCIONES HOME */
.manifesto .grid { row-gap: 36px; }
.manifesto .label { grid-column: 1 / span 3; padding-top: 14px; }
.manifesto-text {
  grid-column: 4 / -1; max-width: 19em;
  font-family: var(--serif); font-size: clamp(32px, 4.4vw, 68px); line-height: 1.08; letter-spacing: -.012em; text-wrap: balance;
}
.manifesto .link { grid-column: 4 / -1; justify-self: start; margin-top: 12px; }

.head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(48px, 7vw, 104px); }
.head-row h2 { font-size: clamp(38px, 5.4vw, 84px); line-height: 1; margin-top: 18px; }

.detail .grid { align-items: start; row-gap: 56px; }
.detail-text { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 56px); }
.detail-text h2 { font-size: clamp(38px, 5vw, 76px); line-height: 1; margin: 18px 0 28px; }
.detail-text .desc { color: var(--ink-2); max-width: 30em; }
.detail-media { grid-column: 7 / -1; display: grid; gap: clamp(48px, 7vw, 112px); }
.detail-media figure:nth-child(2) { width: 84%; justify-self: end; }
.detail-media figcaption, .piece-cap { display: flex; gap: 14px; align-items: baseline; margin-top: 18px; }
.detail-media figcaption { color: var(--ink-3); font-size: 13px; }

.stories { border-top: 1px solid var(--ink); }
.story {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 18px; gap: 24px; align-items: baseline;
  padding-block: clamp(26px, 3.2vw, 44px); border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding .6s var(--ease);
}
.story:hover { padding-left: clamp(8px, 1.4vw, 20px); }
.story .n { color: var(--ink-3); font-size: 13px; }
.story .t { font-family: var(--serif); font-size: clamp(30px, 3.8vw, 58px); line-height: 1.04; letter-spacing: -.01em; }
.story .m { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.story::after {
  content: ""; width: 16px; height: 9px; align-self: center; background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  transition: transform .5s var(--ease);
}
.story:hover::after { transform: translateX(6px); }

.where { text-align: center; border-top: 1px solid var(--line); }
.where h2 { font-size: clamp(36px, 5.6vw, 88px); line-height: 1.02; max-width: 15em; margin: 24px auto 44px; }
.where .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.where .fine { margin-top: 36px; color: var(--ink-3); font-size: 14px; }

/* ----------------------------------------------------------------- 7. PIEZAS */
.pieces { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(64px, 9vw, 144px); }
.piece { display: block; text-decoration: none; }
.piece-media, .item-media, .index-row .media { position: relative; overflow: hidden; }
.piece-media img, .item-media img, .index-row .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform 1.1s var(--ease); }
.piece:hover .piece-media img { transform: scale(1.035); }
.piece-cap .n { color: var(--ink-3); font-size: 13px; min-width: 2.2em; }
.piece-cap .t { font-size: 15px; font-weight: 500; }
.piece-cap .k { margin-left: auto; color: var(--ink-3); font-size: 13px; }

.pieces--home .a { grid-column: 1 / span 8; }
.pieces--home .a .piece-media { aspect-ratio: 3 / 2; }
.pieces--home .b { grid-column: 10 / span 3; align-self: end; }
.pieces--home .b .piece-media { aspect-ratio: 1; }
.pieces--home .c { grid-column: 2 / span 5; }
.pieces--home .c .piece-media { aspect-ratio: 5 / 3; }
.pieces--home .d { grid-column: 8 / span 5; margin-top: clamp(0px, 8vw, 128px); }
.pieces--home .d .piece-media { aspect-ratio: 4 / 3; }

/* ------------------------------------------------------------- 8. PRINCIPIOS */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); border-top: 1px solid var(--ink); }
.rule { padding-top: 28px; }
.rule .n { color: var(--ink-3); font-size: 13px; }
.rule h3 { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.02; margin: clamp(32px, 4.5vw, 72px) 0 20px; }
.rule p { color: var(--ink-2); max-width: 24em; }

/* ------------------------------------------------ 9. PAGINA INTERNA / COLECCION */
.page-head { padding-top: clamp(64px, 10vw, 152px); padding-bottom: clamp(56px, 8vw, 120px); }
.page-head h1 { font-size: clamp(52px, 9vw, 148px); line-height: .96; letter-spacing: -.02em; margin-top: 22px; }
.page-head .lead { margin-top: clamp(24px, 3vw, 40px); max-width: 32em; color: var(--ink-2); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; }

.items { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(72px, 10vw, 160px); padding-bottom: clamp(88px, 12vw, 184px); }
.item { grid-column: span 6; display: flex; flex-direction: column; }
.item.drop { margin-top: clamp(0px, 12vw, 200px); }
.item--wide { grid-column: 1 / -1; }
.item-media { aspect-ratio: 4 / 3; }
.item--wide .item-media { aspect-ratio: 16 / 8; }
.item:hover .item-media img { transform: scale(1.03); }
.item-body { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 8px; margin-top: 28px; }
.item-body .n { color: var(--ink-3); font-size: 13px; padding-top: 10px; }
.item-body h2 { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.04; }
.item-body .k { margin-top: 10px; }
.item-body .desc { color: var(--ink-2); margin-top: 16px; max-width: 28em; }
.item-links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 24px; }
.cta-end { border-top: 1px solid var(--line); text-align: center; }
.cta-end h2 { font-size: clamp(34px, 5vw, 76px); line-height: 1.02; max-width: 14em; margin: 22px auto 40px; }

/* ------------------------------------------------- 10. HISTORIAS Y ARTICULOS */
.index-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; padding-block: clamp(36px, 5vw, 72px); border-top: 1px solid var(--line); text-decoration: none; }
.index-row:last-child { border-bottom: 1px solid var(--line); }
.index-row .media { grid-column: 1 / span 5; aspect-ratio: 4 / 3; }
.index-row:hover .media img { transform: scale(1.04); }
.index-row .txt { grid-column: 7 / -1; }
.index-row .txt h2 { font-size: clamp(34px, 4.4vw, 68px); line-height: 1.02; margin: 16px 0 20px; }
.index-row .txt .desc { color: var(--ink-2); max-width: 28em; margin-bottom: 28px; }
.index-row:nth-child(even) .media { grid-column: 8 / -1; grid-row: 1; }
.index-row:nth-child(even) .txt { grid-column: 1 / span 6; grid-row: 1; }

/* Una sola columna editorial: titulo, portada, texto, cierre y navegacion
   comparten el mismo borde izquierdo. Solo el texto se angosta para leerse bien. */
.article-head, .article-cover, .article-body, .article-cta, .article-nav {
  max-width: 1040px; margin-inline: auto; padding-inline: var(--gutter);
}
.article-head { padding-top: clamp(56px, 9vw, 136px); }
.article-head h1 { font-size: clamp(44px, 7vw, 112px); line-height: .98; letter-spacing: -.02em; margin-top: 24px; }
.article-dek { margin-top: clamp(24px, 3vw, 40px); max-width: 34em; color: var(--ink-2); font-size: clamp(18px, 1.7vw, 23px); line-height: 1.55; }
.article-cover { margin-block: clamp(48px, 7vw, 104px); }
.article-cover img { width: 100%; max-width: var(--cover-w, 100%); }

.article-body { font-size: clamp(17.5px, 1.35vw, 19px); line-height: 1.78; color: #1c1c1c; }
.article-body > * { max-width: 680px; }
.article-body p + p { margin-top: 1.3em; }
.article-body h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.06; margin: 2.3em 0 .6em; }
.article-body blockquote {
  max-width: 840px; margin: 1.8em 0; padding-left: clamp(18px, 2.4vw, 32px); border-left: 1px solid var(--ink);
  font-family: var(--serif); font-style: italic; font-size: clamp(27px, 3.2vw, 40px); line-height: 1.18; letter-spacing: -.005em; color: var(--ink);
}
.article-body ul { margin: 1.6em 0; border-top: 1px solid var(--line); }
.article-body li { padding: 15px 0; border-bottom: 1px solid var(--line); }

.article-cta { margin-top: clamp(88px, 11vw, 160px); padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--ink); display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.article-cta h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.04; }
.article-cta p { color: var(--ink-2); margin-top: 14px; max-width: 28em; }
.article-nav { padding-bottom: clamp(72px, 9vw, 128px); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ----------------------------------------------------------------- 11. FOOTER */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 96px) 36px; }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; }
.foot-brand { grid-column: 1 / span 4; }
.foot-brand img { width: 72px; height: 72px; }
.foot-brand p { margin-top: 20px; max-width: 22em; color: var(--ink-3); font-size: 14px; line-height: 1.6; }
.foot-col { grid-column: span 2; }
.foot-col.c1 { grid-column: 6 / span 2; }
.foot-col.c2 { grid-column: 8 / span 2; }
.foot-col.c3 { grid-column: 10 / -1; }
.foot-col h3 { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--ink-3); margin-bottom: 18px; }
.foot-col a, .foot-col p { display: block; font-size: 15px; line-height: 1.5; padding-block: 4px; text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.foot-bottom a { color: inherit; }

/* ------------------------------------------------ 12. MOVIMIENTO Y RESPONSIVE */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 1000px) {
  .manifesto .label, .manifesto-text, .manifesto .link { grid-column: 1 / -1; }
  .manifesto .label { padding-top: 0; }
  .detail-text { grid-column: 1 / -1; position: static; }
  .detail-media { grid-column: 1 / -1; }
  .pieces--home .a { grid-column: 1 / -1; }
  .pieces--home .b { grid-column: 8 / -1; }
  .pieces--home .c { grid-column: 1 / span 7; }
  .pieces--home .d { grid-column: 6 / -1; margin-top: 0; }
  .index-row .media, .index-row:nth-child(even) .media { grid-column: 1 / span 6; grid-row: auto; }
  .index-row .txt, .index-row:nth-child(even) .txt { grid-column: 7 / -1; grid-row: auto; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col, .foot-col.c1, .foot-col.c2, .foot-col.c3 { grid-column: span 4; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .menu-btn { display: flex; }
  .mark img { width: 36px; height: 36px; }
  .hero-meta span { display: none; }
  .hero-meta { grid-template-columns: 1fr; justify-items: center; }
  .item { grid-column: 1 / -1; }
  .item.drop { margin-top: 0; }
  .item--wide .item-media { aspect-ratio: 4 / 3; }
  .story { grid-template-columns: 1fr 18px; row-gap: 10px; }
  .story .n { display: none; }
  .story .m { grid-column: 1; grid-row: 2; white-space: normal; }
  .story .t { grid-column: 1; grid-row: 1; }
  .story::after { grid-column: 2; grid-row: 1; }
  .head-row { flex-direction: column; align-items: flex-start; }
  .rules { grid-template-columns: 1fr; }
  .rule { padding-bottom: 36px; }
  .rule + .rule { border-top: 1px solid var(--line); }
  .rule h3 { margin-top: 24px; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .pieces--home .a, .pieces--home .b, .pieces--home .c, .pieces--home .d { grid-column: 1 / -1; }
  .index-row .media, .index-row:nth-child(even) .media,
  .index-row .txt, .index-row:nth-child(even) .txt { grid-column: 1 / -1; }
  .index-row .txt { margin-top: 28px; }
  .item-body { grid-template-columns: 1fr; }
  .item-body .n { padding-top: 0; margin-bottom: 8px; }
  .foot-col, .foot-col.c1, .foot-col.c2, .foot-col.c3 { grid-column: span 6; }
  .btn { width: 100%; }
  .where .actions { flex-direction: column; }
}
