/* Latitud Cero — shared styles */
/* Self-hosted brand fonts */
@font-face { font-family: "Gloock"; src: url("/fonts/Gloock-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
:root {
  --mist: #EEF1EC;       /* Andean cloud mist: page background */
  --paper: #F8F9F6;      /* raised surfaces */
  --ink: #1E2A2F;        /* volcanic slate: text */
  --ink-soft: #4A5A5F;
  --paramo: #2F4A3A;     /* páramo grassland green: primary */
  --mortino: #4A2D5A;    /* mortiño berry / colada morada: accent */
  --toquilla: #CDB97A;   /* toquilla straw: fine detail */
  --rule: #C9D1C9;
  --coast: #2E5E6E;
  --andes: #2F4A3A;
  --amazon: #3D5A2A;
  --galapagos: #4C4F54;
  /* illustration palette */
  --paramo-2: #4E6E57;
  --sea: #A9C6C8;
  --leaf: #6F8F4E;
  --clay: #B99470;
  --stone: #8E9195;
  --sand: #E9DFC2;
  --avocado: #C8D896;
  --peanut: #9C6B3C;
  --yolk: #E6A93A;
  --bread: #D7B57C;
  --citrus: #E0875A;
  --prawn: #E38A6A;
  --display: "Gloock", Georgia, serif;
  --body: "Figtree", system-ui, sans-serif;
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--paramo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mortino); }
:focus-visible { outline: 3px solid var(--mortino); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-size: 1.5rem; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.brand span { font-family: var(--body); font-size: 0.8rem; color: var(--ink-soft); margin-left: 8px; font-variant-numeric: tabular-nums; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--mortino); text-decoration: underline; }

/* Hero: the equator line */
.hero { position: relative; padding: 64px 0 0; overflow: hidden; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02; margin: 0 0 8px; max-width: 14ch; text-wrap: balance; }
.equator { position: relative; height: 1px; background: var(--ink); margin: 0 -100vw; }
.equator-label { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--ink-soft); padding: 8px 0 0; font-variant-numeric: tabular-nums; }
.hero .lede { font-size: 1.2rem; max-width: 52ch; margin: 36px 0 64px; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .equator { transform-origin: left; animation: draw 1.4s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Illustrations */
.hero-art { display: block; width: 100%; height: clamp(150px, 22vw, 240px); }
@media (prefers-reduced-motion: no-preference) {
  .eq-line { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: line 1.6s cubic-bezier(.2,.7,.2,1) .2s forwards; }
  @keyframes line { to { stroke-dashoffset: 0; } }
}
.mark { width: 22px; height: 22px; vertical-align: -4px; margin-right: 8px; color: var(--ink); }
.spot { display: block; width: 100%; max-width: 200px; height: auto; }
.art-head { display: grid; gap: 20px; }
.art-head .spot { max-width: 130px; order: -1; }
@media (min-width: 760px) {
  .article header.art-head { max-width: calc(var(--measure) + 260px); grid-template-columns: minmax(0, 1fr) 210px; align-items: end; gap: 48px; }
  .art-head .spot { max-width: 210px; order: 0; }
}
.band-icon { width: 44px; height: 44px; margin-bottom: 14px; }
.dish-list .thumb { grid-row: span 2; width: 56px; }
.dish-list .thumb .spot { max-width: 56px; }
@media (min-width: 700px) {
  .dish-list a { grid-template-columns: 64px 15rem 1fr !important; align-items: center; }
  .dish-list .thumb { grid-row: auto; width: 64px; }
  .dish-list .thumb .spot { max-width: 64px; }
}

/* Four worlds band */
.worlds { display: grid; grid-template-columns: 1fr; margin: 0 0 72px; }
@media (min-width: 760px) { .worlds { grid-template-columns: 1fr 1.25fr 1fr 1fr; } }
.world { padding: 28px 24px 32px; color: #F4F5F1; min-height: 220px; display: flex; flex-direction: column; }
.world h2, .world h3 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; margin: 0 0 4px; }
.world .es { font-size: 0.9rem; opacity: 0.8; margin: 0 0 14px; }
.world p { margin: 0 0 16px; font-size: 0.98rem; }
.world a { color: #fff; margin-top: auto; }
.world--coast { background: var(--coast); }
.world--andes { background: var(--andes); }
.world--amazon { background: var(--amazon); }
.world--galapagos { background: var(--galapagos); }

/* Sections */
section.block { padding: 8px 0 56px; }
.block h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 20px; line-height: 1.15; }
.dish-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.dish-list li { border-bottom: 1px solid var(--rule); }
.dish-list a { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 2px 18px; padding: 16px 0; text-decoration: none; color: var(--ink); }
.dish-list strong { font-family: var(--display); font-weight: 400; font-size: 1.45rem; }
.dish-list span { color: var(--ink-soft); }
.dish-list a:hover strong { color: var(--mortino); }
.two-col { display: grid; gap: 32px; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--paper); border-left: 3px solid var(--toquilla); padding: 22px 24px; }
.panel h3 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; margin: 0 0 8px; }
.panel p { margin: 0 0 12px; }

/* Article pages */
.article { padding: 56px 0 72px; }
.article header { max-width: var(--measure); margin-bottom: 36px; }
.crumb { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 18px; }
.crumb a { color: var(--ink-soft); }
.article h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.05; margin: 0 0 18px; }
.article .standfirst { font-size: 1.2rem; color: var(--ink); margin: 0; }
.prose { max-width: var(--measure); }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; margin: 44px 0 12px; line-height: 1.2; }
.prose h3 { font-size: 1.1rem; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); margin: 0 0 32px; max-width: var(--measure); }
.facts div { padding: 12px 16px 12px 0; }
.facts dt { font-size: 0.85rem; color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 600; }

/* Recipe */
.recipe { background: var(--paper); padding: 28px 24px; margin: 32px 0; max-width: var(--measure); border-top: 3px solid var(--paramo); }
.recipe h2 { margin-top: 0; }
.recipe .serves { color: var(--ink-soft); margin-top: -6px; }
.recipe ol li { margin-bottom: 10px; }

/* Where to buy / affiliate */
.buy { border: 1px solid var(--rule); background: var(--paper); padding: 20px 24px; margin: 28px 0; max-width: var(--measure); }
.buy h3 { margin-top: 0; font-size: 1.05rem; }
.buy ul { margin-bottom: 8px; }
.buy .note { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; max-width: 100%; margin: 0 0 24px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); }
thead th { border-bottom: 1px solid var(--ink); font-weight: 600; }

/* Restaurants */
.places { list-style: none; padding: 0; margin: 0 0 24px; max-width: var(--measure); }
.places li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.places h3 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; margin: 0 0 4px; }
.places .where { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 6px; }
.places p { margin: 0; }

.related { border-top: 1px solid var(--ink); padding-top: 20px; margin-top: 48px; max-width: var(--measure); }
.related h2 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; margin: 0 0 10px; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding: 32px 0 48px; font-size: 0.92rem; color: var(--ink-soft); }
.site-foot .wrap { display: grid; gap: 16px; }
@media (min-width: 720px) { .site-foot .wrap { grid-template-columns: 2fr 1fr; } }
.site-foot p { margin: 0 0 8px; }
.site-foot a { color: var(--ink-soft); }
.coord { font-family: var(--display); font-variant-numeric: tabular-nums; }
