/* Layout: a living sky + skyline hero (day in light theme, night in dark), then calm data sections on a sky-tinted ground. */
:root {
  --bg: #f2f6fb;
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, .72);
  --ink: #16213f;
  --ink-soft: #55617d;
  --line: rgba(22, 33, 63, .12);
  --accent: #0d7a74;
  --accent-ink: #ffffff;
  --accent-soft: #d8f1ee;
  --sun: #ffb321;
  --sun-glow: rgba(255, 179, 33, .45);
  --sky-top: #7dbdf0;
  --sky-mid: #b9dcf6;
  --sky-bottom: #eaf4fc;
  --city-far: #c3d8ec;
  --city-near: #a3bfdb;
  --city-ground: #f2f6fb;
  --window: #ffffff;
  --window-lit: #ffffff;
  --win-op: .45;
  --cloud: #ffffff;
  --cloud-op: .9;
  --stars-op: 0;
  --t-cold: #4b8cf0;
  --t-cool: #47b3c9;
  --t-mild: #f2b134;
  --t-warm: #f27b3d;
  --rain: #7fa6d9;
  --hl: rgba(13, 122, 116, .08);
  --slot: #7e8aa6;
  --on-photo: #ffffff;
  --photo-shade: rgba(8, 14, 36, .78);
  --wear-base: #b9dcf6;
  --wear-mid: #f2b134;
  --wear-outer: #0d7a74;
  --wear-feet: #8a6a4f;
  --wear-trim: #ffffff;

  --display: 'Gabarito', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --radius: 18px;
  --shadow: 0 12px 34px -16px rgba(22, 33, 63, .28);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1129; --surface: #131b38; --glass: rgba(19, 27, 56, .74);
    --ink: #e9eeff; --ink-soft: #9ba7c9; --line: rgba(233, 238, 255, .12);
    --accent: #3fcfbf; --accent-ink: #062320; --accent-soft: rgba(63, 207, 191, .14);
    --sun: #f3efd9; --sun-glow: rgba(243, 239, 217, .28);
    --sky-top: #070c26; --sky-mid: #131d4a; --sky-bottom: #24306a;
    --city-far: #1a2556; --city-near: #0f1738; --city-ground: #0b1129;
    --window: #2a3570; --window-lit: #ffcf6e; --win-op: 1;
    --cloud: #2b3870; --cloud-op: .55; --stars-op: 1;
    --t-cold: #6ea2ff; --t-cool: #5cc9dc; --t-mild: #f5c35a; --t-warm: #ff9461;
    --rain: #5a7fc0; --hl: rgba(63, 207, 191, .1); --slot: #7884a8;
    --shadow: 0 12px 34px -16px rgba(0, 0, 0, .6);
    --wear-base: #4d6bb3; --wear-mid: #d99a2b; --wear-outer: #2fa596; --wear-feet: #9b7b5f; --wear-trim: #131b38;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1129; --surface: #131b38; --glass: rgba(19, 27, 56, .74);
  --ink: #e9eeff; --ink-soft: #9ba7c9; --line: rgba(233, 238, 255, .12);
  --accent: #3fcfbf; --accent-ink: #062320; --accent-soft: rgba(63, 207, 191, .14);
  --sun: #f3efd9; --sun-glow: rgba(243, 239, 217, .28);
  --sky-top: #070c26; --sky-mid: #131d4a; --sky-bottom: #24306a;
  --city-far: #1a2556; --city-near: #0f1738; --city-ground: #0b1129;
  --window: #2a3570; --window-lit: #ffcf6e; --win-op: 1;
  --cloud: #2b3870; --cloud-op: .55; --stars-op: 1;
  --t-cold: #6ea2ff; --t-cool: #5cc9dc; --t-mild: #f5c35a; --t-warm: #ff9461;
  --rain: #5a7fc0; --hl: rgba(63, 207, 191, .1); --slot: #7884a8;
  --shadow: 0 12px 34px -16px rgba(0, 0, 0, .6);
  --wear-base: #4d6bb3; --wear-mid: #d99a2b; --wear-outer: #2fa596; --wear-feet: #9b7b5f; --wear-trim: #131b38;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* hidden always hides, whatever display a class sets */
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 20px; }
.eyebrow { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }


/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.035em; line-height: 1; }
.wordmark .o-sun { position: relative; display: inline-block; }
.wordmark .o-sun::after {
  content: ""; position: absolute; left: 50%; top: -.16em; width: .2em; height: .2em; border-radius: 50%;
  transform: translateX(-10%); background: var(--sun); box-shadow: 0 0 0 .05em var(--sun-glow);
}
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); background: var(--hl); }
.nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }

/* ---------- Sky hero ---------- */
.sky { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky-top), var(--sky-mid) 55%, var(--sky-bottom)); isolation: isolate; }
.sky-layer { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.stars { opacity: var(--stars-op); transition: opacity .6s; }
.star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .2; } }
/* Pivot sits far below the top edge, so the sun/moon arcs high in the sky and never reaches the skyline */
.orbit { position: absolute; left: 72%; top: 820px; width: 0; height: 0; animation: orbit 70s ease-in-out infinite alternate; }
.orb { position: absolute; left: -46px; top: -760px; width: 92px; height: 92px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 18px var(--sun-glow), 0 0 80px 30px var(--sun-glow); }
@keyframes orbit { from { transform: rotate(-14deg); } to { transform: rotate(10deg); } }
.cloud { position: absolute; fill: var(--cloud); opacity: var(--cloud-op); animation: drift linear infinite; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
.skyline { position: absolute; top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 190px; }
.skyline .far { fill: var(--city-far); }
.skyline .near { fill: var(--city-near); }
.skyline .ground { fill: var(--city-ground); }
.skyline .win { fill: var(--window); opacity: var(--win-op); }
.skyline .win.lit { fill: var(--window-lit); }
.skyline .win.blink { animation: blink 7s steps(1) infinite; }
@keyframes blink { 40% { fill: var(--window); } 75% { fill: var(--window-lit); } }

.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-block: 64px 210px; }
.hero > * { min-width: 0; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 1.15rem; color: var(--ink-soft); margin-top: 18px; max-width: 34ch; }
.search { margin-top: 28px; display: flex; gap: 8px; background: var(--surface); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); max-width: 480px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 16px; font-size: 1.05rem; }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 22px; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .12s; }
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-size: .88rem; padding: 6px 12px; border-radius: 999px; background: var(--glass); text-decoration: none; color: var(--ink); border: 1px solid var(--line); cursor: pointer; }
.chip:hover { border-color: var(--accent); }

.now-card { background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 24px; padding: 20px 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.now-card h2 { font-size: 1.05rem; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.now-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.now-list li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.now-list li:first-child { border-top: 0; }
.now-city { font-weight: 600; }
.now-city small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .8rem; }
.now-time { font-family: var(--mono); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.now-temp { font-family: var(--mono); font-size: .9rem; color: var(--ink-soft); min-width: 52px; text-align: right; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding-block: 56px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.section-head p { color: var(--ink-soft); max-width: 52ch; margin-top: 6px; }
.panel { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 24px; }
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.grid-2 > *, .grid-3 > * { min-width: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Climate chart */
.chart-wrap { overflow-x: auto; }
.chart { display: block; width: 100%; min-width: 560px; height: auto; }
.chart text { fill: var(--ink-soft); font-family: var(--mono); font-size: 11px; }
.chart .val { fill: var(--ink); font-size: 10.5px; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .zero { stroke: var(--ink-soft); stroke-dasharray: 3 4; opacity: .6; }
.chart .hlcol { fill: var(--hl); }
.chart .rainbar { fill: var(--rain); opacity: .75; }
.b-cold { fill: var(--t-cold); } .b-cool { fill: var(--t-cool); } .b-mild { fill: var(--t-mild); } .b-warm { fill: var(--t-warm); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: var(--ink-soft); margin-top: 10px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.fact { padding: 12px 14px; border-radius: 12px; background: var(--hl); }
.fact .k { font-size: .78rem; color: var(--ink-soft); }
.fact .v { font-family: var(--mono); font-size: 1.1rem; margin-top: 2px; }

/* What to wear */
.wear-top { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.thermo { display: flex; gap: 8px; flex-wrap: wrap; }
.thermo span { font-family: var(--mono); font-size: .85rem; padding: 6px 12px; border-radius: 999px; background: var(--hl); font-variant-numeric: tabular-nums; }
.thermo i { font-style: normal; color: var(--ink-soft); margin-right: 4px; }
.months { display: flex; gap: 6px; overflow-x: auto; padding-block: 16px 6px; margin-bottom: 8px; }
.months button, .months a { flex: none; border: 1.5px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 13px; font-family: var(--mono); font-size: .82rem; cursor: pointer; text-decoration: none; color: var(--ink); }
.months button:hover, .months a:hover { border-color: var(--accent); }
.months button[aria-selected="true"], .months a[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.wear-month { display: grid; gap: 4px; }
.wear-month .thermo { margin-bottom: 10px; }
.wear-summary { font-size: 1.1rem; margin-bottom: 16px; max-width: 70ch; }
.layers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.layers > * { min-width: 0; }
.layer { border-radius: 14px; padding: 16px; background: var(--hl); display: grid; gap: 8px; align-content: start; border: 1.5px solid transparent; }
.layer.off { background: transparent; border: 1.5px dashed var(--line); color: var(--ink-soft); }
.ill { display: grid; place-items: center; height: 96px; border-radius: 10px; background: var(--surface); }
.ill svg { width: 76px; height: 76px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ill .f1 { fill: var(--wc); } .ill .f2 { fill: var(--wear-trim); } .ill .ln { fill: none; }
.layer[data-k="base"] { --wc: var(--wear-base); } .layer[data-k="mid"] { --wc: var(--wear-mid); }
.layer[data-k="outer"] { --wc: var(--wear-outer); } .layer[data-k="feet"] { --wc: var(--wear-feet); }
.layer.off .ill { background: transparent; }
.layer.off .ill svg { opacity: .28; --wc: var(--line); }
.layer .tier { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.layer b { font-weight: 600; font-size: .98rem; line-height: 1.35; }
.acc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.acc span { font-size: .88rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.tips { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .95rem; color: var(--ink-soft); }
.tips li { padding-left: 18px; position: relative; }
.tips li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }

/* Souvenirs */
.souv { list-style: none; margin: 18px 0 0; padding: 0; display: grid; }
.souv li { display: grid; grid-template-columns: 88px minmax(0, 1.5fr) minmax(0, 1.2fr) 150px; gap: 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.souv li:first-child { border-top: 0; }
.souv .ph { width: 88px; height: 88px; border-radius: 14px; object-fit: cover; display: block; background: var(--hl); }
.souv b { display: block; font-size: 1.02rem; }
.souv .why { font-size: .9rem; color: var(--ink-soft); }
.souv .where { font-size: .92rem; }
.souv .where span { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.souv .price { text-align: right; }
.souv .price .v { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1rem; white-space: nowrap; }
.souv .price .u { font-size: .78rem; color: var(--ink-soft); }
.meter { display: inline-flex; gap: 3px; margin-top: 4px; }
.meter i { width: 14px; height: 5px; border-radius: 3px; background: var(--line); }
.meter i.on { background: var(--sun); }

/* Compare tool */
.compare { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.select { appearance: none; width: 100%; padding: 11px 38px 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238893ad' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; cursor: pointer; }
.swap { justify-self: center; border: 0; background: var(--hl); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: .85rem; font-weight: 600; }
.result { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 4px; }
.result .fact .v { font-size: 1.25rem; }

/* Cards (notes) */
.note-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.note-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.glyph { position: relative; height: 150px; display: flex; align-items: end; padding: 16px 18px; overflow: hidden; }
.glyph .big { font-family: var(--display); font-weight: 900; font-size: 3rem; line-height: 1; letter-spacing: -0.04em; position: relative; z-index: 1; }
.glyph .big small { font-size: .45em; font-weight: 700; margin-left: 2px; }
.glyph svg { position: absolute; right: 0; bottom: 0; height: 100%; }
.g-cold { background: linear-gradient(135deg, rgba(75, 140, 240, .22), rgba(71, 179, 201, .12)); }
.g-sun { background: linear-gradient(135deg, rgba(242, 177, 52, .28), rgba(242, 123, 61, .14)); }
.g-night { background: linear-gradient(135deg, rgba(22, 33, 63, .9), rgba(60, 70, 140, .85)); color: #f3efd9; }
.note-body { padding: 18px; display: grid; gap: 8px; align-content: start; }
.note-body h3 { font-size: 1.2rem; font-weight: 700; }
.note-body p { color: var(--ink-soft); font-size: .95rem; }
.meta { font-family: var(--mono); font-size: .75rem; color: var(--ink-soft); }

/* Slots */
.slot { border: 1.5px dashed var(--slot); border-radius: 14px; color: var(--slot); display: grid; place-items: center; text-align: center; padding: 18px; font-size: .85rem; min-height: 90px; }
.slot b { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.aff { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.aff-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.aff-head h3 { font-size: 1.05rem; }
.tag { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--hl); color: var(--ink-soft); }
.map { position: relative; height: 200px; background:
  radial-gradient(circle at 30% 60%, rgba(127, 166, 217, .35) 0 18%, transparent 19%),
  radial-gradient(circle at 75% 30%, rgba(127, 166, 217, .25) 0 12%, transparent 13%),
  repeating-linear-gradient(0deg, transparent 0 34px, var(--line) 34px 35px),
  repeating-linear-gradient(90deg, transparent 0 34px, var(--line) 34px 35px), var(--bg); }
.pin { position: absolute; transform: translate(-50%, -100%); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 4px 10px; font-family: var(--mono); font-size: .8rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }

/* Widgets promo band */
.band { border-radius: 26px; padding: 32px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: linear-gradient(120deg, var(--accent-soft), var(--hl)); border: 1px solid var(--line); }
.band h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.band p { color: var(--ink-soft); margin-top: 8px; max-width: 52ch; }

/* ---------- Article ---------- */
.article-hero { padding-block: 48px 150px; }
.crumbs { font-size: .85rem; color: var(--ink-soft); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.article-hero h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 800; margin-top: 14px; max-width: 20ch; }
.byline { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; font-size: .9rem; color: var(--ink-soft); }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-block: 40px 64px; }
.prose { max-width: 66ch; display: grid; gap: 18px; font-size: 1.07rem; }
.prose h2 { font-size: 1.6rem; font-weight: 800; margin-top: 14px; }
.prose .standfirst { font-size: 1.25rem; line-height: 1.5; color: var(--ink); }
.rank { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rank th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: 8px 10px; border-bottom: 1.5px solid var(--line); }
.rank td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rank .n { font-family: var(--mono); color: var(--ink-soft); width: 28px; }
.rank .num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.rank .city b { display: block; }
.rank .city span { font-size: .82rem; color: var(--ink-soft); }
.bar { height: 10px; border-radius: 999px; background: var(--hl); min-width: 90px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--t-cold), var(--t-cool)); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 6px 8px; }
.callout { border-radius: 14px; padding: 16px 18px; background: var(--hl); font-size: .95rem; }
.callout b { font-family: var(--display); }
.aside { display: grid; gap: 20px; align-content: start; }
.aside .panel h3 { font-size: 1.05rem; margin-bottom: 10px; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.mini-list a { text-decoration: none; font-weight: 600; }
.mini-list a:hover { color: var(--accent); }
.mini-list span { display: block; font-size: .8rem; color: var(--ink-soft); font-weight: 400; }
.offer { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.offer:first-of-type { border-top: 0; }
.offer .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--hl); }
.offer .ic svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.offer b { font-size: .95rem; display: block; }
.offer span { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Widgets page ---------- */
.builder { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.controls { display: grid; gap: 16px; }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.seg button { border: 1.5px solid var(--line); background: var(--bg); border-radius: 10px; padding: 9px 10px; cursor: pointer; font-size: .9rem; font-weight: 600; text-align: left; }
.seg button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.seg.three { grid-template-columns: repeat(3, 1fr); }
.seg.three button { text-align: center; }
.fake-site { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.fake-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.fake-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.fake-bar span { margin-left: 10px; font-family: var(--mono); font-size: .78rem; color: var(--ink-soft); background: var(--bg); padding: 3px 10px; border-radius: 6px; }
.fake-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 24px; align-items: start; }
.fake-text { display: grid; gap: 10px; }
.fake-text .l { height: 10px; border-radius: 6px; background: var(--line); }
.fake-text .h { height: 18px; width: 60%; border-radius: 6px; background: var(--line); margin-bottom: 6px; }
.code { position: relative; margin-top: 16px; background: #0e1530; color: #d9e2ff; border-radius: 14px; padding: 16px 18px; font-family: var(--mono); font-size: .82rem; line-height: 1.6; overflow-x: auto; white-space: pre; }
.code .t { color: #7fd6cb; } .code .a { color: #ffcf6e; } .code .s { color: #a8c1ff; }
.copy { position: absolute; top: 10px; right: 10px; border: 0; border-radius: 8px; padding: 6px 12px; background: #24305e; color: #e9eeff; cursor: pointer; font-size: .8rem; font-family: var(--body); font-weight: 600; }
.note-small { font-size: .85rem; color: var(--ink-soft); margin-top: 10px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.gallery figure { margin: 0; display: grid; gap: 10px; justify-items: start; }
.gallery figcaption { font-size: .9rem; }
.gallery figcaption b { display: block; font-family: var(--display); font-size: 1.05rem; }
.gallery figcaption span { color: var(--ink-soft); }

/* The widgets have their own fixed looks, chosen by the site owner who embeds them */
.w { width: 250px; max-width: 100%; border-radius: 16px; padding: 16px; font-family: var(--body); position: relative; overflow: hidden; }
.w-claro { background: #ffffff; color: #16213f; box-shadow: 0 0 0 1px rgba(22, 33, 63, .1), 0 10px 26px -14px rgba(22, 33, 63, .3); }
.w-oscuro { background: #121a36; color: #e9eeff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.w-cielo { background: linear-gradient(180deg, #7dbdf0, #d7ecfb); color: #16213f; }
.w-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.w-city { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.w-sub { font-size: .75rem; opacity: .7; }
.w-big { font-family: var(--mono); font-size: 2.4rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.w-big small { font-size: .45em; opacity: .7; margin-left: 4px; }
.w-foot { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .7rem; opacity: .75; }
.w-foot svg { width: 14px; height: 14px; }
.w-bars { display: flex; align-items: end; gap: 3px; height: 54px; margin-top: 10px; }
.w-bars i { flex: 1; border-radius: 3px 3px 1px 1px; background: #f2b134; }
.w-bars i.c { background: #4b8cf0; } .w-bars i.k { background: #47b3c9; } .w-bars i.h { background: #f27b3d; }
.w-bars i.now { outline: 2px solid currentColor; outline-offset: 1px; }
.w-months { display: flex; gap: 3px; font-family: var(--mono); font-size: .58rem; opacity: .65; margin-top: 4px; }
.w-months span { flex: 1; text-align: center; }
.w-arc { display: block; width: 100%; height: auto; margin-top: 8px; }
.w-row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .95rem; margin-top: 4px; }
.w-row span { font-size: .7rem; opacity: .7; display: block; font-family: var(--body); }
.w-diff { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 10px; }
.w-diff .t { font-family: var(--mono); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.w-diff .c { font-size: .75rem; opacity: .75; }
.w-diff .mid { font-family: var(--mono); font-size: .8rem; padding: 4px 8px; border-radius: 999px; background: rgba(127, 166, 217, .25); }

/* ---------- Brand page ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.brand-tile { border-radius: var(--radius); display: grid; place-items: center; padding: 48px 24px; min-height: 260px; border: 1px solid var(--line); }
.bt-light { background: #ffffff; color: #16213f; --sun: #ffb321; --sun-glow: rgba(255, 179, 33, .45); --ink: #16213f; --logo-a: #7dbdf0; --logo-b: #eaf4fc; }
.bt-dark { background: #0b1129; color: #e9eeff; --sun: #f3efd9; --sun-glow: rgba(243, 239, 217, .28); --ink: #e9eeff; --logo-a: #070c26; --logo-b: #24306a; }
.bt-sky { background: linear-gradient(180deg, #7dbdf0, #eaf4fc); color: #16213f; --sun: #ffb321; --sun-glow: rgba(255, 179, 33, .45); --ink: #16213f; --logo-a: #4fa3e6; --logo-b: #cfe6f9; }
.lockup { display: flex; align-items: center; gap: 16px; }
.lockup .wordmark { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.app-icons { display: flex; gap: 22px; align-items: end; flex-wrap: wrap; justify-content: center; }
.app-icon { border-radius: 24%; display: grid; place-items: center; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .4); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.swatch { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.swatch i { display: block; height: 70px; }
.swatch div { padding: 10px 12px; font-size: .85rem; }
.swatch code { font-family: var(--mono); font-size: .75rem; color: var(--ink-soft); display: block; }
.specimen { display: grid; gap: 16px; }
.specimen .row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.specimen .row > * { min-width: 0; }

/* ---------- Destination cards (home) ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dest-grid > * { min-width: 0; }
.dest { display: grid; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.dest:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dest img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.dest-body { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 14px 16px 16px; }
.dest-body h3 { font-size: 1.25rem; font-weight: 700; }
.dest-body span { font-size: .85rem; color: var(--ink-soft); }
.dest-body .t { font-family: var(--mono); font-size: 1rem; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.dest-body .t small { display: block; font-family: var(--body); font-size: .72rem; color: var(--ink-soft); }
.dest.feature { grid-column: span 2; grid-row: span 2; }
.dest.feature img { aspect-ratio: auto; height: 100%; min-height: 260px; }
.dest.feature { grid-template-rows: 1fr auto; }
.dest.feature h3 { font-size: 1.7rem; }

/* ---------- Destination page ---------- */
.photo-hero { position: relative; min-height: 380px; display: grid; align-items: end; color: var(--on-photo); overflow: hidden; isolation: isolate; background: var(--ink); }
.photo-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, var(--photo-shade)); }
.photo-hero .wrap { padding-block: 120px 28px; }
.photo-hero .crumbs { color: var(--on-photo); opacity: .85; }
.photo-hero h1 { font-size: clamp(2.8rem, 8vw, 5.4rem); font-weight: 800; letter-spacing: -0.04em; margin-top: 8px; }
.photo-hero .sub { font-size: 1.1rem; opacity: .9; margin-top: 6px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-facts span { font-family: var(--mono); font-size: .88rem; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .28); font-variant-numeric: tabular-nums; }
.hero-facts i { font-style: normal; opacity: .75; margin-right: 6px; font-family: var(--body); }
.credit { font-size: .72rem; opacity: .8; }
.credit a { text-decoration: none; }
.credit a:hover { text-decoration: underline; }
.photo-hero .credit { position: absolute; right: 12px; bottom: 8px; }
.page-tabs { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 10; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.page-tabs .wrap { display: flex; gap: 4px; overflow-x: auto; padding-block: 8px; }
.page-tabs a { flex: none; text-decoration: none; font-size: .9rem; font-weight: 600; padding: 7px 13px; border-radius: 999px; color: var(--ink-soft); }
.page-tabs a:hover { color: var(--ink); background: var(--hl); }
.intro { font-size: 1.2rem; max-width: 62ch; }
.gallery-photos { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.gallery-photos figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; min-width: 0; color: var(--on-photo); }
.gallery-photos figure:first-child { grid-row: span 2; }
.gallery-photos img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.gallery-photos figure:first-child img { aspect-ratio: auto; }
.gallery-photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 8px; background: linear-gradient(180deg, transparent, var(--photo-shade)); font-size: .88rem; font-weight: 600; }
.gallery-photos figcaption .credit { display: block; font-weight: 400; }
.nearby { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nearby li { padding: 14px 16px; border-radius: 12px; background: var(--hl); }
.nearby b { display: block; }
.nearby span { font-family: var(--mono); font-size: .85rem; color: var(--ink-soft); }
.credits { margin-top: 28px; font-size: .85rem; color: var(--ink-soft); }
.credits summary { cursor: pointer; font-weight: 600; }
.credits ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 4px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding-block: 36px 48px; margin-top: 24px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
footer h4 { font-size: .95rem; margin-bottom: 10px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; color: var(--ink-soft); }
footer p { color: var(--ink-soft); font-size: .9rem; margin-top: 10px; max-width: 40ch; }

.view[hidden] { display: none !important; }
[id] { scroll-margin-top: 130px; }

@media (max-width: 920px) {
  .hero, .grid-2, .article, .builder, .brand-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .layers { grid-template-columns: repeat(2, 1fr); }
  .souv li { grid-template-columns: 88px minmax(0, 1fr); row-gap: 8px; }
  .souv .ph { grid-row: span 3; align-self: start; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .dest.feature { grid-row: auto; }
  .dest.feature img { min-height: 0; aspect-ratio: 2 / 1; height: auto; }
  .gallery-photos { grid-template-columns: 1fr 1fr; }
  .gallery-photos figure:first-child { grid-row: auto; grid-column: span 2; }
  .gallery-photos figure:first-child img { aspect-ratio: 2 / 1; }
  .nearby { grid-template-columns: repeat(2, 1fr); }
  .page-tabs { top: calc(env(safe-area-inset-top, 0px) + 0px); position: relative; }
  .souv .where, .souv .price { grid-column: 2; text-align: left; }
  .band { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
  .orbit { left: 84%; top: 790px; }
  .orb { width: 64px; height: 64px; left: -32px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-block: 40px 190px; }
  .nav { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; }
  .fake-body { grid-template-columns: 1fr; }
  .facts, .result { grid-template-columns: 1fr 1fr; }
  .specimen .row { grid-template-columns: 1fr; }
  .search .btn { padding-inline: 16px; }
  /* On phones the swinging arc would cross the headline: park the sun/moon in the corner */
  .orbit { animation: none; left: auto; right: 56px; top: 28px; }
  .orb { top: 0; width: 48px; height: 48px; left: 0; }
  .dest-grid { grid-template-columns: 1fr; }
  .dest.feature { grid-column: auto; }
  .souv li { grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; }
  .souv .ph { width: 72px; height: 72px; }
  .photo-hero { min-height: 320px; }
  .photo-hero .wrap { padding-block: 90px 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Site pages ---------- */
.preview-bar { background: var(--t-mild); color: #16213f; font-size: .85rem; font-weight: 600; text-align: center; padding: 7px 16px; }
.lang-switch { border: 1.5px solid var(--line); }
.stack { display: grid; gap: 20px; margin-top: 20px; }
.pending { border-style: dashed; display: grid; gap: 6px; }
.pending h3 { font-size: 1.3rem; }
.pending p { color: var(--ink-soft); font-family: var(--mono); font-size: .8rem; }
.dest-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.dest-list > li { min-width: 0; }
.dest-list a { display: grid; gap: 2px; align-content: start; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; height: 100%; }
.dest-list a:hover { border-color: var(--accent); }
.dest-list b { font-family: var(--display); font-size: 1.1rem; font-weight: 700; }
.dest-list span { font-size: .85rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.dest-list.ranked a { grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; }
.dest-list.ranked .n { grid-row: span 2; font-family: var(--mono); font-size: .85rem; color: var(--ink-soft); min-width: 2.2ch; text-align: right; }
.continents { columns: 4 220px; column-gap: 32px; }
.continents section { break-inside: avoid; margin-bottom: 24px; }
.continents h3 { font-size: 1.1rem; margin-bottom: 8px; }
.continents ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.continents a { text-decoration: none; font-weight: 600; }
.continents a:hover { color: var(--accent); }
.continents span { font-family: var(--mono); font-size: .78rem; color: var(--ink-soft); }
.nearby a { text-decoration: none; }
.nearby a:hover b { color: var(--accent); }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
.climate-table td.num, .climate-table th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.climate-table th.num { font-family: var(--mono); }

/* Floating "Invitanos un cafecito" (bottom right), after a little scrolling */
.coffee-float {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px;
  background: var(--sun); box-shadow: var(--shadow); animation: coffee-in .3s ease-out;
}
.coffee-float[hidden] { display: none; }
.coffee-float a { display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 999px; background: #16213f; color: #ffffff; font-weight: 700; font-size: .95rem; text-decoration: none; }
.coffee-float a:hover { background: #0b1129; }
.coffee-float a span:first-child { font-size: 1.15rem; line-height: 1; }
.coffee-float button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #16213f; cursor: pointer; }
.coffee-float button:hover { background: rgba(255, 255, 255, .5); }
.coffee-float svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.coffee-float-short { display: none; }
@media (max-width: 680px) {
  .coffee-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .coffee-float-long { display: none; }
  .coffee-float-short { display: inline; }
}
@keyframes coffee-in { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .coffee-float { animation: none; } }
.sky-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sky-facts span { font-family: var(--mono); font-size: .88rem; padding: 7px 13px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sky-facts i { font-style: normal; font-family: var(--body); color: var(--ink-soft); margin-right: 6px; }
.sky-facts b { font-weight: 500; }

/* Photos */
.cover-strip { margin: 0; position: relative; background: var(--hl); }
.cover-strip img { display: block; width: 100%; height: auto; aspect-ratio: 7 / 1; min-height: 120px; object-fit: cover; }
.cover-strip .credit { position: absolute; right: 10px; bottom: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(8, 14, 36, .55); color: #ffffff; font-size: .72rem; }
.cover-strip .credit a { color: inherit; text-decoration: none; }
.cover-strip .credit a:hover { text-decoration: underline; }
.dest-list a img { display: block; width: calc(100% + 32px); max-width: none; margin: -14px -16px 10px; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: 12px 12px 0 0; grid-column: 1 / -1; }
.dest-list.ranked a img + .n { grid-row: auto; }
.dest-list.ranked a { align-items: baseline; }
@media (max-width: 560px) {
  .cover-strip .credit { position: static; display: block; border-radius: 0; background: transparent; color: var(--ink-soft); padding: 4px 16px; }
}
.souv .sources { grid-column: 2 / -1; margin: 0; font-size: .78rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.souv .sources a { color: inherit; }
.souv .ic { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--hl); }
.souv .ic svg { width: 32px; height: 32px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .souv .ic { width: 56px; height: 56px; } }
