/* Bagabam — Away-inspired size guide + route essay (bgb-) · Persona J utility layer */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --ink: #29203a;
  --accent: #0b6e4f;
  --sand: #f1ebe2;
  --line: #ddd5c6;
  --paper: #fff;
  --muted: #5c5368;
  --display: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body.bgb-body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
}

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

a { color: inherit; }
a:hover { color: var(--accent); }

/* Persona J — utility primitives (tailwind-style fingerprints) */
.flex { display: flex; }
.grid { display: grid; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.tracking-wide { letter-spacing: 0.08em; }
.uppercase { text-transform: uppercase; }
.w-full { width: 100%; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.bgb-skip {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.bgb-skip:focus,
.bgb-skip:focus-visible {
  position: fixed !important;
  left: 1rem !important;
  top: 1rem !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  z-index: 9999 !important;
  padding: 0.65rem 1rem !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-weight: 600;
  text-decoration: none;
}

.bgb-header {
  position: absolute;
  width: 100%;
  z-index: 40;
  color: #fff;
}
.bgb-header--solid {
  position: sticky;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.bgb-header__in {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}
.bgb-brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  text-decoration: none;
  color: inherit;
}
.bgb-brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  margin-top: 0.3rem;
  opacity: 0.92;
}
.bgb-nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.bgb-nav a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}
.bgb-search-bar {
  background: rgba(17, 17, 17, 0.06);
  border-top: 1px solid var(--line);
  padding: 0.5rem 1.5rem;
}
.bgb-header--solid .bgb-search-bar { background: var(--sand); }
.bgb-search-bar input {
  max-width: 14rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  font: inherit;
}

.bgb-hero {
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: linear-gradient(transparent 40%, rgba(17,17,17,0.65)), var(--bgb-hero-img, #333) center/cover no-repeat;
}
.bgb-hero__copy {
  margin: 0 clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 8vh, 5rem);
  max-width: 36rem;
}
.bgb-hero__copy p:first-child {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
}
.bgb-hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 0.4rem 0;
}

.bgb-section { max-width: 56rem; margin: 0 auto; padding: 2rem 1.25rem; }
.bgb-section--wide { max-width: 72rem; }
.bgb-kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}
.bgb-deck { color: var(--muted); max-width: 42rem; }

.bgb-sizes table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
}
.bgb-sizes th,
.bgb-sizes td {
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  text-align: left;
}
.bgb-sizes th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--sand);
}
.bgb-sizes a { font-weight: 600; text-decoration: none; }

.bgb-route { max-width: 42rem; margin: 0 auto; padding: 1.5rem 1.25rem; }
.bgb-route h2 { font-family: var(--display); font-size: 1.75rem; }
.bgb-route p { font-size: 1.02rem; }

.bgb-aside {
  max-width: 42rem;
  margin: 0 auto 2rem;
  padding: 1rem 1.25rem;
  background: var(--paper);
  border-left: 4px solid var(--accent);
}

.bgb-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}
.bgb-catalog a {
  display: block;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
}
.bgb-catalog img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.bgb-catalog span {
  display: block;
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.bgb-threads {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.bgb-threads li {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.bgb-threads time {
  font-size: 0.78rem;
  color: var(--muted);
}
.bgb-threads .postbody a {
  font-weight: 600;
  text-decoration: none;
}
.bgb-threads .postbody p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.bgb-thread-meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
}

.bgb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  gap: 2rem;
  max-width: 72rem;
  margin: 2rem auto;
  padding: 0 1.25rem;
}
.bgb-sheet h1 { font-family: var(--display); font-size: 2rem; }
.bgb-body-copy section { margin: 1.5rem 0; }
.bgb-body-copy h2 { font-family: var(--display); font-size: 1.25rem; }
.bgb-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin: 1rem 0;
}

.bgb-sizecard {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.bgb-places { list-style: none; padding: 0; }
.bgb-places li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.bgb-places span { color: var(--muted); font-size: 0.88rem; }

.bgb-form {
  display: grid;
  gap: 0.85rem;
  max-width: 28rem;
}
.bgb-form input,
.bgb-form textarea {
  width: 100%;
  padding: 0.7rem;
  font: inherit;
  border: 1px solid var(--line);
}
.bgb-hp { position: absolute; left: -9999px; }
.bgb-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.1rem;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
.bgb-success { color: var(--accent); font-weight: 600; }

.bgb-hit { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.bgb-hit-meta { font-size: 0.78rem; color: var(--muted); }

.bgb-foot {
  background: var(--ink);
  color: #eee;
  padding: 2rem clamp(1.25rem, 5vw, 3rem);
  margin-top: 3rem;
}
.bgb-foot a { color: #ddd; margin-right: 1rem; text-decoration: none; font-size: 0.88rem; }
.bgb-foot__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .bgb-layout { grid-template-columns: 1fr; }
  .bgb-threads li { grid-template-columns: 1fr; }
  .bgb-foot__cols { grid-template-columns: 1fr; }
  .bgb-header { position: relative; background: var(--ink); }
}
