/* Mobile-first retro. #e8e8e8, Press Start 2P + VT323, black borders. */
:root {
  --bg: #e8e8e8;
  --panel: #f8f8f8;
  --ink: #0f0f0f;
  --mid: #4a4a4a;
  --pixel: "Press Start 2P", monospace;
  --text: "VT323", "Courier New", monospace;
  --shadow: 3px 3px 0 var(--ink);
  --wrap: 1040px;
  --pad: 16px;
  --home-nav-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--bg);
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.card:hover,
  .btn:hover { transform: none; }
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 22px;
  line-height: 1.25;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 8px;
  top: -64px;
  z-index: 30;
  padding: 8px 10px;
  background: var(--panel);
  border: 3px solid var(--ink);
}

.skip:focus { top: 8px; }

.wrap {
  width: min(var(--wrap), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 400;
  overflow-wrap: break-word;
}

h1 {
  font-family: var(--text);
  font-size: 32px;
  line-height: 1.05;
  max-width: 16ch;
}

.nowrap { white-space: nowrap; }

h2 {
  margin-bottom: 16px;
  font-family: var(--pixel);
  font-size: 11px;
  line-height: 1.7;
}

h3 {
  font-family: var(--text);
  font-size: 28px;
  line-height: 1.05;
}

p { margin: 0; }

header.nav.nav--home {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  box-sizing: border-box;
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  background: #e8e8e8;
  border-bottom: 4px solid #0f0f0f;
  box-shadow: none;
  overflow: visible;
}

header.nav.nav--home .nav__inner {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  padding: 0;
  overflow: visible;
}

header.nav.nav--home .nav__brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 36px;
  width: 78px;
}

header.nav.nav--home .nav__logo {
  display: block;
  height: 36px;
  width: 78px;
  max-width: none;
  max-height: 36px;
  object-fit: contain;
  object-position: left center;
}

header.nav.nav--home .nav__panel {
  display: block;
  min-width: 0;
  margin-left: auto;
}

header.nav.nav--home .nav__links {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0 2px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
  list-style: none;
}

header.nav.nav--home .nav__links::-webkit-scrollbar { display: none; }

header.nav.nav--home .nav__links a {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #0f0f0f;
  font-family: "VT323", "Courier New", monospace;
  font-size: 20px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

header.nav.nav--home .nav__links a:hover,
header.nav.nav--home .nav__links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  header.nav.nav--home .nav__links { gap: 12px; }
  header.nav.nav--home .nav__links a { font-size: 18px; }
}

.hero {
  padding: 28px 0 24px;
  background: var(--panel);
  border-bottom: 4px solid var(--ink);
}

.lede {
  margin-top: 12px;
  font-size: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin-top: 16px;
  min-height: 44px;
  padding: 8px 12px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  background: var(--ink);
  color: var(--panel);
  font-family: var(--text);
  font-size: 22px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
  appearance: none;
}

.btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn--ghost { background: var(--panel); color: var(--ink); }

.section { padding: 28px 0; }

.kicker {
  margin: 0 0 8px;
  font-family: var(--text);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
}

.cards,
.pair,
.team {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.cards > *,
.pair > *,
.team > * { min-width: 0; }

.card,
.panel,
.person,
.row {
  min-width: 0;
  background: var(--panel);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  color: inherit;
  text-decoration: none;
}

a.card:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.card p,
.row p { color: var(--mid); font-size: 22px; }

.num { font-family: var(--pixel); font-size: 11px; }

.panel { padding: 16px; }

.convenio {
  display: grid;
  gap: 16px;
  align-items: center;
}

.jar-logo {
  width: min(168px, 100%);
  height: auto;
  margin: 0;
  background: #000;
  border: 3px solid var(--ink);
}

.place { margin-top: 4px; color: var(--mid); font-size: 22px; }

.panel > p { margin-top: 8px; }

.plain {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.plain li {
  padding: 6px 0;
  border-top: 2px solid var(--ink);
  font-size: 22px;
}

.plain--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.marcas .card { padding: 16px 14px; }

.plain--inline li {
  padding: 0;
  border: 0;
}

.plain--inline li + li::before {
  content: "· ";
}

.marcas { margin-top: 28px; }

.marcas__more {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
  margin: 14px 0 0;
  color: var(--mid);
  font-size: 22px;
}

.marcas__more a { color: inherit; }

.sync-brand:hover,
body.retro-surface .rb a.card:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.more {
  display: inline-block;
  margin-top: 0;
  font-size: 22px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border: 2px solid var(--ink);
}

.card--quiet { margin-top: 12px; }

.person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 420px;
  object-fit: cover;
  border-bottom: 3px solid var(--ink);
  background: #ddd;
}

.person--diego img { object-position: 50% 15%; }
.person--josue img { object-position: 40% 40%; }

.person div { padding: 12px; display: flex; flex-direction: column; gap: 4px; }

.role {
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
}

.footer {
  border-top: 4px solid var(--ink);
  padding: 18px 0 28px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
}

.footer a { font-size: 22px; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer p { font-size: 20px; color: var(--mid); }

@media (min-width: 720px) {
  :root { --pad: 24px; --shadow: 4px 4px 0 var(--ink); }

  h1 { font-size: 44px; }
  h2 { font-size: 13px; }

  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pair,
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { max-width: 920px; }

  .convenio {
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 28px;
  }
}

/* Beat the old fixed 72px bar on /china/ without changing the 64px home bar. */
body.retro-surface header.nav.nav--home {
  position: sticky;
  height: 64px;
  min-height: 64px;
  max-height: 64px;
}

body.retro-surface .rb-subnav {
  top: 64px;
  margin-top: 0;
}

@media (max-width: 768px) {
  body.retro-surface header.nav.nav--home .nav__links {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: auto;
    min-height: 0;
    max-height: none;
  }
}

/* Catalog and brand sheets use the same rhythm as the home. */
body.retro-surface .rb {
  font-family: "VT323", "Courier New", monospace;
  font-size: 22px;
  line-height: 1.25;
}

body.retro-surface .rb .container {
  width: min(1040px, calc(100% - 32px));
  max-width: 1040px;
  margin-inline: auto;
  padding-left: 0;
  padding-right: 0;
}

body.retro-surface .rb h1,
body.retro-surface .rb h3,
body.retro-surface .rb h4 {
  font-family: "VT323", "Courier New", monospace;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: 0;
}

body.retro-surface .rb h2 {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  line-height: 1.7;
}

body.retro-surface .rb .btn,
body.retro-surface .rb a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  min-height: 44px;
  padding: 8px 12px;
  border: 3px solid #0f0f0f;
  box-shadow: 3px 3px 0 #0f0f0f;
  background: #0f0f0f;
  color: #f8f8f8;
  font-family: "VT323", "Courier New", monospace;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
}

body.retro-surface .rb .btn:hover,
body.retro-surface .rb a.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #0f0f0f;
  text-decoration: none;
}

body.retro-surface .rb-subnav__inner {
  font-family: "VT323", "Courier New", monospace;
  font-size: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sync-brands {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.sync-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 3px solid var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.sync-brand strong {
  font-family: var(--text);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.05;
}

.sync-brand span { color: var(--mid); font-size: 22px; }

.sync-back { margin-bottom: 8px; font-size: 20px; }

.sync-shot {
  margin-top: 12px;
  border: 3px solid var(--ink);
  background: #fff;
}

.sync-shot img,
.sync-shot video {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

@media (min-width: 720px) {
  .sync-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.inquiry {
  width: min(480px, calc(100vw - 24px));
  max-height: min(90vh, 640px);
  overflow: auto;
  margin: auto;
  padding: 16px;
  border: 3px solid #0f0f0f;
  background: #f8f8f8;
  color: #0f0f0f;
  box-shadow: 4px 4px 0 #0f0f0f;
}

.inquiry::backdrop { background: rgba(15, 15, 15, 0.45); }

.inquiry h2 { margin-bottom: 8px; }

.inquiry p { font-size: 20px; }

.inquiry label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  font-size: 20px;
}

.inquiry input,
.inquiry textarea {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #0f0f0f;
  background: #fff;
  color: #0f0f0f;
  font: 22px/1.2 "VT323", "Courier New", monospace;
  padding: 8px;
}

.programs,
.inquiry .programs {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.programs li,
.inquiry .programs li {
  padding: 6px 0;
  border-top: 2px solid #0f0f0f;
  font-size: 22px;
}

.inquiry .inquiry__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inquiry .inquiry__close {
  margin-top: 16px;
  background: #f8f8f8;
  color: #0f0f0f;
}

.trip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.trip__item {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 3px solid var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
  color: inherit;
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.2;
  text-align: left;
  cursor: zoom-in;
  appearance: none;
}

.trip__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 3px solid var(--ink);
}

.trip__item span {
  display: block;
  padding: 8px 10px 10px;
  font-size: 18px;
  line-height: 1.2;
}

.trip-lb {
  width: min(960px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: auto;
  padding: 16px;
  overflow: auto;
  border: 3px solid #0f0f0f;
  background: #f8f8f8;
  color: #0f0f0f;
}

.trip-lb::backdrop { background: rgba(15, 15, 15, 0.55); }

.trip-lb__bar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.trip-lb__bar [data-trip-close] { margin-left: auto; }

.trip-lb figure { margin: 12px 0 0; }

.trip-lb img {
  width: 100%;
  max-height: min(70vh, 640px);
  object-fit: contain;
  background: #fff;
  border: 3px solid #0f0f0f;
}

.trip-lb figcaption { margin-top: 8px; font-size: 20px; }

.trip-lb button {
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 2px solid #0f0f0f;
  background: #f8f8f8;
  font-family: "VT323", "Courier New", monospace;
  font-size: 22px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .trip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
