@font-face { font-family: "Barlow Condensed"; src: url("assets/barlow-condensed.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/dm-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #f3ebde;
  --ink: #30221c;
  --muted: #644d42;
  --line: #d9c6b1;
  --brand: #8d3428;
  --button-bg: var(--brand);
  --button-fg: #fff;
  --card-bg: #faf4ea;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
}
.ganado {
  --paper: #f2eee3;
  --ink: #26392a;
  --muted: #4e5b48;
  --line: #c6cdb9;
  --brand: #36583c;
  --button-bg: #edca83;
  --button-fg: #202e21;
  --card-bg: #f9f7ef;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--text); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
::selection { background: #f0cf87; color: #30221c; }
.shell { width: min(1320px, calc(100% - clamp(34px, 8.3vw, 120px))); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; z-index: 4; top: 8px; left: 8px; background: white; color: #30221c; padding: 8px 12px; }
section[id] { scroll-margin-top: 90px; }

.header { position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 78px; }
.wordmark { display: inline-grid; flex: none; gap: 4px; align-content: center; min-height: 50px; line-height: .85; }
.wordmark span { color: var(--brand); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.wordmark strong { font: 700 42px/.8 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
.header nav { display: flex; align-items: center; gap: clamp(10px, 3vw, 35px); }
.header nav a { display: grid; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; }
.header nav a:last-child { padding-inline: 11px; border: 1px solid var(--line); border-radius: 4px; }

.hero-layout { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); align-items: center; gap: clamp(24px, 5vw, 82px); padding-block: clamp(42px, 6.8vw, 104px) clamp(36px, 4.8vw, 70px); }
.eyebrow { margin-bottom: 15px; color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1 { font: 700 clamp(67px, 7.8vw, 118px)/.86 var(--display); letter-spacing: -.016em; }
h1 em { color: var(--brand); font-style: normal; }
.intro { max-width: 37ch; margin: 24px 0; color: var(--muted); font-size: clamp(16px, 1.45vw, 20px); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 17px; }
.button, .text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; font-size: 14px; font-weight: 700; line-height: 1.35; }
.button { padding: 10px 15px; border-radius: 5px; }
.primary { background: var(--button-bg); color: var(--button-fg); }
.hero-media { position: relative; overflow: hidden; border-radius: 5px 5px 5px 62px; aspect-ratio: 4/3; background: #795447; }
.hero-media img, .market-motion { width: 100%; height: 100%; object-fit: cover; }
.market-motion { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.market-motion.is-playing { opacity: 1; }
.hero-figure figcaption { display: flex; justify-content: flex-end; align-items: center; gap: 10px; min-height: 44px; font-size: 12px; color: var(--muted); }
.market-replay { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; min-height: 44px; padding: 0 3px; border: 0; background: transparent; color: var(--brand); font-weight: 700; cursor: pointer; }
.market-replay span { font-size: 16px; line-height: 1; }

.ganado .hero { background: #233d30; color: #f8f0e4; }
.ganado .hero-media { border-radius: 5px 62px 5px 5px; background: #182e24; }
.ganado h1 em, .ganado .hero .eyebrow { color: #edca83; }
.ganado .hero .intro, .ganado .hero figcaption { color: #dce5d5; }

.catalog { border-top: 1px solid var(--line); padding-block: clamp(44px, 6.8vw, 96px); }
.catalog-intro { margin-bottom: 25px; }
h2 { font: 700 clamp(46px, 5.7vw, 81px)/.95 var(--display); letter-spacing: -.012em; }
.catalog-intro > p:last-child { margin-top: 14px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--card-bg); font-size: 14px; font-weight: 700; cursor: pointer; }
.filters [aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: white; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.3vw, 30px); margin: 0; padding: 0; list-style: none; }
.ganado .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--card-bg); }
.card img { aspect-ratio: 3/2; object-fit: cover; background: var(--line); }
.card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(14px, 1.8vw, 24px); }
.card-category { color: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
h3 { margin: 3px 0 13px; font: 700 clamp(28px, 2.65vw, 40px)/1.02 var(--display); }
.card-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: auto; padding: 7px 11px; border: 1px solid var(--line); border-radius: 5px; color: var(--brand); font-size: 13px; font-weight: 700; line-height: 1.35; }
.card-link span { font-size: 16px; }

.sell { background: #dce4d2; }
.sell-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(18px, 8vw, 120px); padding-block: clamp(38px, 6.5vw, 78px); }
.sell-layout p:not(.eyebrow) { max-width: 37ch; margin-bottom: 15px; color: var(--muted); }
.sell .primary { background: #233d30; color: #f8f0e4; }
.footer { border-top: 1px solid var(--line); padding-block: 8px; }

@media (hover: hover) and (pointer: fine) {
  .header nav a:hover, .text-link:hover, .market-replay:hover { text-decoration: underline; text-underline-offset: .23em; }
  .primary:hover { filter: brightness(.93); }
  .card-link:hover { border-color: var(--brand); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-figure { animation: arrive 550ms var(--ease) both; }
  .hero-figure { animation-delay: 90ms; }
  .ganado .hero-media img { animation: field-view 4.5s ease-in-out both; }
  .card-link span { transition: transform 160ms var(--ease); }
  .card-link:hover span { transform: translate(2px, -2px); }
  .cards.is-filtered .card:not([hidden]) { animation: arrive 260ms var(--ease) both; }
}
@keyframes arrive { from { opacity: .6; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes field-view { from { transform: scale(1.07) translateX(-1%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 950px) {
  .ganado .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header-inner { min-height: 65px; }
  section[id] { scroll-margin-top: 76px; }
  .wordmark strong { font-size: 36px; }
  .header nav a { font-size: 13px; }
  .hero-layout, .sell-layout { grid-template-columns: 1fr; }
  h1 { font-size: clamp(59px, 11vw, 82px); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .cards, .ganado .cards { grid-template-columns: 1fr; }
  .hero-media { border-radius: 5px 5px 5px 37px; }
  .ganado .hero-media { border-radius: 5px 37px 5px 5px; }
  .footer-inner { flex-wrap: wrap; }
}
