/* Jalealcerro: Brazilian mountains in flat, loud colour. Cream paper, navy ink, ipê yellow and pink, forest green, sky.
   Thick ink outlines and pressable buttons; no gradients, no glows. Display: Bricolage Grotesque. Body: Plus Jakarta Sans.
   The departures board: Space Mono. */
:root {
  --ink: #10223d;
  --ink-2: #33465f;
  --muted: #5e6d82;
  --paper: #fff7ea;
  --paper-2: #f6ead4;
  --white: #ffffff;
  --sun: #ffb81c;
  --pink: #d6006e; /* deep enough for white words on it and for pink words on the paper */
  --pink-hi: #ff2e93; /* the bright one, on the navy departures board */
  --leaf: #0f8150;
  --leaf-2: #0d7a47;
  --sky: #8fd8ff;
  --coral: #ff6a3d;
  --line: 2px solid var(--ink);
  --r: 18px;
  --shadow: 0 4px 0 var(--ink);
  --display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(40px, 6.2vw, 84px); }
h2 { font-size: clamp(30px, 4.2vw, 54px); }
h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.small { font-size: 14px; color: var(--muted); }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border: var(--line); border-radius: 999px; background: var(--sun); color: var(--ink); font: 800 17px/1 var(--display); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: var(--shadow); }
.btn.pink { background: var(--pink); color: var(--white); }
.btn.white { background: var(--white); }
.btn.ink { background: var(--ink); color: var(--white); }
.btn.leaf { background: var(--leaf); color: var(--white); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; box-shadow: 0 3px 0 var(--ink); }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 700; }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--display); letter-spacing: -0.03em; white-space: nowrap; flex: none; }
.logo svg { width: 36px; height: 36px; }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a.on { background: var(--paper-2); }
.langs { display: flex; border: var(--line); border-radius: 999px; overflow: hidden; }
.langs button { border: 0; background: var(--white); padding: 6px 10px; font: 800 13px/1 var(--body); cursor: pointer; min-width: 44px; min-height: 44px; }
.langs button.on { background: var(--ink); color: var(--white); }
@media (max-width: 760px) {
  .top .wrap { height: 58px; gap: 10px; }
  .logo { font-size: 19px; }
  .logo svg { width: 30px; height: 30px; }
  .nav a.wide { display: none; }
  .nav a { padding: 7px 9px; font-size: 14px; }
}
@media (max-width: 420px) {
  .logo { font-size: 17px; gap: 7px; }
  .logo svg { width: 27px; height: 27px; }
  .nav { gap: 2px; }
  .nav a { padding: 6px 7px; font-size: 13px; }
  .langs button { padding: 5px 7px; font-size: 12px; min-width: 44px; min-height: 44px; }
}

/* forms */
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 800; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--muted); }
input, select, textarea { font: 600 16px/1.3 var(--body); color: var(--ink); background: var(--white); border: var(--line); border-radius: 14px; padding: 13px 14px; width: 100%; min-width: 0; min-height: 50px; appearance: none; -webkit-appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2310223d' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--sun); outline-offset: 1px; }
.bad input, .bad select, .bad textarea, input.bad { border-color: #d2153d; background: #fff2f4; }
.err { color: #c0102f; font-weight: 700; font-size: 14px; min-height: 1em; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; border: var(--line); border-radius: 999px; padding: 8px 14px; background: var(--white); font-weight: 700; font-size: 14px; cursor: pointer; user-select: none; }
.checks input { width: auto; min-height: 0; padding: 0; border: 0; appearance: auto; -webkit-appearance: auto; accent-color: var(--ink); }
.checks label:has(input:checked) { background: var(--sun); }

/* cards */
.card { background: var(--white); border: var(--line); border-radius: var(--r); box-shadow: 0 5px 0 var(--ink); }
.pad { padding: clamp(18px, 3vw, 28px); }
.trips { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.trip { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.trip:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); }
.trip .art { position: relative; aspect-ratio: 16 / 10; border-bottom: var(--line); overflow: hidden; }
.trip .art svg { width: 100%; height: 100%; }
.trip .when { position: absolute; left: 12px; top: 12px; background: var(--ink); color: var(--white); font: 700 13px/1 var(--mono); padding: 7px 10px; border-radius: 8px; letter-spacing: .02em; }
.trip .alt { position: absolute; right: 12px; top: 12px; background: var(--white); border: var(--line); font: 700 12px/1 var(--mono); padding: 5px 8px; border-radius: 8px; }
.trip .body { padding: 16px 18px 18px; display: grid; gap: 8px; flex: 1; }
.trip .name { font: 800 22px/1.05 var(--display); letter-spacing: -0.02em; }
.trip .where { font-size: 14px; color: var(--muted); font-weight: 600; }
.trip .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.price { font: 800 26px/1 var(--display); letter-spacing: -0.02em; }
.price small { font: 600 13px/1 var(--body); color: var(--muted); letter-spacing: 0; }
.level { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.level i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ink); display: inline-block; }
.level i.on { background: var(--ink); }
.facts-line { font-size: 13px; font-weight: 700; color: var(--ink-2); font-family: var(--mono); }
.go-plan { font: 800 16px/1 var(--display); color: var(--pink); }
.trip:hover .go-plan { text-decoration: underline; text-underline-offset: 3px; }
.wx { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: #e5f6ff; }
.wx.rain { background: #e6ecff; }
.wx.storm { background: var(--coral); color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--white); }

/* sections */
[id] { scroll-margin-top: 76px; }
.sec { padding: clamp(56px, 8vw, 110px) 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button { border: var(--line); background: var(--white); border-radius: 999px; padding: 9px 14px; font-weight: 800; font-size: 14px; cursor: pointer; }
.tabs button.on { background: var(--ink); color: var(--white); }
.empty { padding: 30px; text-align: center; border: 2px dashed var(--ink-2); border-radius: var(--r); color: var(--ink-2); font-weight: 600; }

/* footer: the Copacabana waves */
.foot { background: var(--ink); color: var(--paper); margin-top: 40px; }
.waves { height: 46px; background-color: var(--paper); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='46' viewBox='0 0 120 46'%3E%3Cpath d='M0 23 C 15 3, 45 3, 60 23 S 105 43, 120 23 V46 H0Z' fill='%2310223d'/%3E%3C/svg%3E"); background-size: 120px 46px; background-repeat: repeat-x; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-top: 36px; padding-bottom: 46px; }
.foot a { color: var(--paper); text-decoration: none; font-weight: 600; display: block; padding: 4px 0; }
.foot a:hover { text-decoration: underline; }
.foot .logo { color: var(--paper); margin-bottom: 10px; }
.foot p { color: #b9c4d3; font-size: 14px; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .wrap > :first-child { grid-column: 1 / -1; } }

/* page shells */
.page { padding: clamp(28px, 5vw, 56px) 0 40px; }
.page-head { display: grid; gap: 10px; margin-bottom: 26px; }
.crumb { font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink-2); }
.notice { border: var(--line); border-radius: 14px; padding: 14px 16px; background: var(--white); font-weight: 600; }
.notice.sun { background: #fff1c2; }
.notice.pink { background: #ffe0ec; }
.notice.leaf { background: #d9f5e6; }
.notice.storm { background: var(--coral); color: var(--ink); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--paper-2); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 999px; font-weight: 700; z-index: 90; box-shadow: 0 4px 0 #0005; }

/* sign-in */
.signin { display: grid; gap: 14px; }
.signin form { display: grid; gap: 12px; }

/* the departures board with the day's six times */
.tboard { container-type: inline-size; background: #0b1a30; color: var(--sun); border: 3px solid #0a1526; border-radius: 18px; box-shadow: 0 6px 0 #050c18; padding: 14px 14px 10px; font-family: var(--mono); }
.tb-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 700 12px/1 var(--mono); letter-spacing: .1em; padding: 0 2px 12px; }
.tb-head .tb-sun { color: var(--sky); white-space: nowrap; }
.tb-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink-hi); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.tb-cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 8px; }
.tb-cell { display: grid; gap: 6px; min-width: 0; }
.tb-cell .lab { font: 700 10px/1 var(--mono); letter-spacing: .06em; color: #9fb4d3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-cell.hot .lab, .tb-cell.hot .fl { color: var(--pink-hi); }
.tb-cell .vb { font: 700 9px/1 var(--mono); color: #9fb4d3; text-transform: uppercase; letter-spacing: .06em; min-height: 9px; }
.digits { display: flex; gap: 2px; align-items: center; }
.fl { display: inline-grid; place-items: center; width: 17px; height: 28px; background: #1c3150; border: 1px solid #2b4466; border-radius: 3px; font: 700 17px/1 var(--mono); color: var(--sun); position: relative; flex: none; }
.fl::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #0b1a30; }
.fl.go { animation: flipc .055s linear; }
@keyframes flipc { from { transform: scaleY(.4); } to { transform: scaleY(1); } }
.colon { font: 700 17px/1 var(--mono); width: 7px; text-align: center; color: var(--sun); }
@container (max-width: 560px) { .tb-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; } }
@container (max-width: 330px) { .fl { width: 14px; height: 24px; font-size: 14px; } .colon { font-size: 14px; width: 5px; } .tb-head { font-size: 10px; } }

/* the go / no-go stamp */
.stamp { width: 132px; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); display: grid; place-items: center; transform: rotate(-10deg); flex: none; background: var(--sun); color: var(--ink); }
.stamp .ring { width: 84%; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed currentColor; display: grid; place-content: center; text-align: center; gap: 5px; padding: 6px; }
.stamp b { font: 800 22px/.95 var(--display); letter-spacing: -0.01em; }
.stamp small { font: 700 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.stamp.go { background: var(--leaf); color: var(--white); }
.stamp.no { background: var(--pink); color: var(--white); }
.stamp.sm { width: 96px; } .stamp.sm b { font-size: 16px; } .stamp.sm small { font-size: 8px; }
.stamp.pop { animation: stampIn .42s cubic-bezier(.2, .9, .3, 1.35); }
@keyframes stampIn { from { transform: rotate(-28deg) scale(1.7); opacity: 0; } to { transform: rotate(-10deg) scale(1); opacity: 1; } }

/* segmented choices */
.seg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; align-self: start; }
.seg button { border: var(--line); background: var(--white); border-radius: 999px; padding: 10px 14px; font: 800 14px/1 var(--body); cursor: pointer; min-height: 44px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.seg button:disabled { opacity: .4; cursor: default; }

/* a picture made big */
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(16, 34, 61, .88); display: grid; place-items: center; padding: 16px; }
.lightbox img { max-width: min(760px, 100%); max-height: calc(100vh - 90px); border: 3px solid var(--ink); border-radius: 10px; background: var(--white); box-shadow: 0 8px 0 #050c18; }
.lightbox .lb-bar { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: var(--line); background: var(--white); font: 800 22px/1 var(--display); cursor: pointer; }
.lightbox .lb-nav.prev { left: 14px; } .lightbox .lb-nav.next { right: 14px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* papel picado: a garland of cut-paper flags hanging under the header, on every page (Jalealcerro's Mexican touch) */
.top { position: sticky; }
.top::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 40px; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22336%22%20height%3D%2240%22%20viewBox%3D%220%200%20336%2040%22%3E%3Cpath%20d%3D%22M0%204%20H336%22%20stroke%3D%22%2310223d%22%20stroke-width%3D%222%22/%3E%3Cpath%20d%3D%22M4%204%20H52%20V30%20L46%2036%20L40%2030%20L34%2036%20L28%2030%20L22%2036%20L16%2030%20L10%2036%20L4%2030%20Z%20M28%2010%20L34%2017%20L28%2024%20L22%2017%20Z%20M14%2013%20a3%203%200%201%200%200.01%200%20Z%20M42%2013%20a3%203%200%201%200%200.01%200%20Z%22%20fill%3D%22%23d6006e%22%20fill-rule%3D%22evenodd%22%20stroke%3D%22%2310223d%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M60%204%20H108%20V30%20L102%2036%20L96%2030%20L90%2036%20L84%2030%20L78%2036%20L72%2030%20L66%2036%20L60%2030%20Z%20M84%2010%20L90%2017%20L84%2024%20L78%2017%20Z%20M70%2013%20a3%203%200%201%200%200.01%200%20Z%20M98%2013%20a3%203%200%201%200%200.01%200%20Z%22%20fill%3D%22%23ffb81c%22%20fill-rule%3D%22evenodd%22%20stroke%3D%22%2310223d%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M116%204%20H164%20V30%20L158%2036%20L152%2030%20L146%2036%20L140%2030%20L134%2036%20L128%2030%20L122%2036%20L116%2030%20Z%20M140%2010%20L146%2017%20L140%2024%20L134%2017%20Z%20M126%2013%20a3%203%200%201%200%200.01%200%20Z%20M154%2013%20a3%203%200%201%200%200.01%200%20Z%22%20fill%3D%22%230f8150%22%20fill-rule%3D%22evenodd%22%20stroke%3D%22%2310223d%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M172%204%20H220%20V30%20L214%2036%20L208%2030%20L202%2036%20L196%2030%20L190%2036%20L184%2030%20L178%2036%20L172%2030%20Z%20M196%2010%20L202%2017%20L196%2024%20L190%2017%20Z%20M182%2013%20a3%203%200%201%200%200.01%200%20Z%20M210%2013%20a3%203%200%201%200%200.01%200%20Z%22%20fill%3D%22%238fd8ff%22%20fill-rule%3D%22evenodd%22%20stroke%3D%22%2310223d%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M228%204%20H276%20V30%20L270%2036%20L264%2030%20L258%2036%20L252%2030%20L246%2036%20L240%2030%20L234%2036%20L228%2030%20Z%20M252%2010%20L258%2017%20L252%2024%20L246%2017%20Z%20M238%2013%20a3%203%200%201%200%200.01%200%20Z%20M266%2013%20a3%203%200%201%200%200.01%200%20Z%22%20fill%3D%22%239b7ae0%22%20fill-rule%3D%22evenodd%22%20stroke%3D%22%2310223d%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M284%204%20H332%20V30%20L326%2036%20L320%2030%20L314%2036%20L308%2030%20L302%2036%20L296%2030%20L290%2036%20L284%2030%20Z%20M308%2010%20L314%2017%20L308%2024%20L302%2017%20Z%20M294%2013%20a3%203%200%201%200%200.01%200%20Z%20M322%2013%20a3%203%200%201%200%200.01%200%20Z%22%20fill%3D%22%23ff6a3d%22%20fill-rule%3D%22evenodd%22%20stroke%3D%22%2310223d%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E") 0 0 / 336px 40px repeat-x; pointer-events: none; z-index: 5; animation: picado 6s ease-in-out infinite alternate; transform-origin: top; }
@keyframes picado { from { transform: skewX(-1.2deg); } to { transform: skewX(1.2deg); } }
@media (prefers-reduced-motion: reduce) { .top::after { animation: none; } }
