/* biome-ignore-all lint/style/noDescendingSpecificity: context selectors (footer a, .tool p) refine the base rules on purpose. */
/* Bazair website (website spec §9): the approved department-store look. Black, white and light beige; Barlow
   Condensed for display, navigation, buttons and headings, Barlow for text. Fonts are self-hosted; nothing is loaded
   from another origin. */
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #5e5e5e;
  --dark: #0b0b0b;
  --beige: #eadfcc;
  --on-beige: #111111;
  --tile: #f4efe6;
  --line: #111111;
  --hair: #e4e2dd;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --ink: #f1efea;
    --muted: #a9a7a2;
    --dark: #000000;
    --tile: #1e1c19;
    --line: #f1efea;
    --hair: #2e2c29;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121212;
  --ink: #f1efea;
  --muted: #a9a7a2;
  --dark: #000000;
  --tile: #1e1c19;
  --line: #f1efea;
  --hair: #2e2c29;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Announcement bar */
.announce {
  background: var(--dark);
  color: #ffffff;
  text-align: center;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 16px;
  line-height: 1.5;
}

/* Header: languages left, logo centred, Connect right; the upper-case menu centred below. */
header.top {
  border-bottom: 1px solid var(--hair);
}
.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px 16px;
  padding-block: 14px 6px;
}
.bar .left,
.bar .right {
  display: flex;
  align-items: center;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bar .right {
  justify-content: flex-end;
}
nav.lang {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
nav.lang a {
  text-decoration: none;
}
nav.lang a:hover {
  text-decoration: underline;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.mark {
  width: 36px;
  height: 36px;
  flex: none;
}
.word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.connect {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  padding: 6px 14px;
  color: var(--ink);
  text-decoration: none;
}
.connect:hover,
.connect[aria-current="page"] {
  background: var(--ink);
  color: var(--bg);
}
nav.main {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 28px;
  padding-block: 8px 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
nav.main a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
nav.main a:hover,
nav.main a[aria-current="page"] {
  border-bottom-color: var(--ink);
}
nav.main a.hot {
  background: var(--beige);
  color: var(--on-beige);
  padding-inline: 6px;
}

/* Type */
h1,
h2,
h3 {
  font-family: var(--display);
  text-transform: uppercase;
  text-wrap: balance;
}
h1 {
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.95;
  margin: 0 0 18px;
}
h2 {
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 14px;
}
h3 {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: 0.03em;
  margin: 0 0 8px;
}
p {
  margin: 0 0 12px;
  max-width: 68ch;
}
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.lede {
  font-size: 1.08rem;
}
.note {
  font-size: 0.9rem;
  color: var(--muted);
}
code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--tile);
  padding: 2px 6px;
  overflow-wrap: anywhere;
}
pre {
  font: 0.88rem / 1.6 var(--mono);
  background: var(--tile);
  padding: 14px 18px;
  overflow-x: auto;
  margin: 0 0 18px;
  max-width: 100%;
}
pre code {
  background: none;
  padding: 0;
  overflow-wrap: normal;
}
pre.prompt {
  white-space: pre-wrap;
}
pre.prompt code {
  overflow-wrap: anywhere;
}
.endpoint {
  font-family: var(--mono);
  font-size: 0.95rem;
  background: var(--beige);
  color: var(--on-beige);
  padding: 4px 10px;
  word-break: break-all;
}

/* Buttons: square, condensed, upper case. */
.squares {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.sq,
.black {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 14px 28px;
}
.sq {
  background: #ffffff;
  color: #111111;
  min-width: 190px;
}
.sq:hover {
  background: var(--beige);
}
.black {
  background: var(--ink);
  color: var(--bg);
}
.black:hover {
  opacity: 0.88;
}

/* Home hero: black, a huge condensed headline, the last word beige, a beige stripe at the foot. */
.hero {
  background: var(--dark);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-block: 56px 58px;
  gap: 22px;
}
.hero .eyebrow {
  color: var(--beige);
  margin: 0;
}
.hero h1 {
  font-size: clamp(3.6rem, 11vw, 8.6rem);
  line-height: 0.86;
  letter-spacing: -0.005em;
  margin: 0;
}
.hero h1 span {
  display: block;
}
.hero h1 .accent {
  color: var(--beige);
}
.hero .lede {
  max-width: 54ch;
  color: #dedbd5;
  margin: 0;
}
.hero .squares {
  justify-content: center;
}
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9rem;
  color: #cfcdc8;
}
.chips q {
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 12px;
  quotes: "“" "”";
}
.stripes {
  position: absolute;
  inset: auto 0 0 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--beige) 0 40px, transparent 40px 80px);
  opacity: 0.85;
}
.cta {
  display: flex;
  justify-content: center;
  padding-block: 30px 10px;
}

/* Inner pages: a black page-title band. */
.pagehead {
  background: var(--dark);
  color: #ffffff;
  border-bottom: 10px solid var(--beige);
}
.pagehead .wrap {
  padding-block: 48px 44px;
}
.pagehead .eyebrow {
  color: var(--beige);
}
.pagehead .lede {
  color: #dedbd5;
  max-width: 62ch;
}
.pagehead .squares {
  margin-top: 22px;
}
.pagehead a:not(.sq) {
  color: #ffffff;
}

/* Section titles centred over a hairline; the product grid on beige tiles. */
.section-title {
  text-align: center;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin: 56px 0 18px;
}
.sub {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 22px;
  max-width: 60ch;
}
.rule {
  border: 0;
  border-top: 1.5px solid var(--line);
  margin: 0;
}
.products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  padding-block: 34px 10px;
}
.item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.img {
  aspect-ratio: 4 / 5;
  background: var(--tile);
  display: grid;
  place-items: center;
}
.img svg {
  width: 56%;
  height: auto;
}
/* In the dark theme the black garments get an outline so they stay visible on the dark tiles. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .img path {
    stroke: #6b6762;
    stroke-width: 1;
  }
}
:root[data-theme="dark"] .img path {
  stroke: #6b6762;
  stroke-width: 1;
}
.brandrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.heart {
  width: 20px;
  height: 20px;
  flex: none;
}
.name {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}
.price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
}
.price s {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
}
.tag {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  background: var(--beige);
  color: var(--on-beige);
  padding: 1px 7px;
}
.caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0 auto 8px;
}

/* Tools as a ruled grid. */
.tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1.5px solid var(--line);
  margin-top: 6px;
}
.tool {
  padding: 22px 18px 24px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.tool h3 {
  font-size: 1.3rem;
  margin: 0;
}
.tool code {
  align-self: flex-start;
  background: none;
  padding: 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.tool p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.endpoint-line {
  text-align: center;
  max-width: none;
  padding-top: 26px;
}
.endpoint-line code {
  font-size: 1rem;
  background: var(--beige);
  color: var(--on-beige);
  padding: 6px 12px;
}

/* Content rows of the inner pages: a heading column and a text column, between hairlines. */
.pad {
  padding-block: 44px;
}
section + section > .columns {
  border-top: 1px solid var(--hair);
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: 40px;
}
.columns > *,
.two > * {
  min-width: 0;
}
.columns > div:first-child h3,
.columns > div:first-child .eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.columns h3 {
  margin-top: 6px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border-top: 1.5px solid var(--line);
  margin-top: 56px;
  padding-top: 28px;
}
.two p,
.columns p,
.steps {
  color: var(--muted);
}
.two .eyebrow,
.columns strong,
.columns code,
.steps strong,
.steps code {
  color: var(--ink);
}
.steps {
  margin: 0 0 18px;
  padding-left: 22px;
  max-width: 68ch;
}
.steps li {
  margin-bottom: 6px;
}
.steps li::marker {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
}

/* Tables */
.tablewrap {
  overflow-x: auto;
  margin-bottom: 18px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  border-top: 1.5px solid var(--line);
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--hair);
}
th {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
td {
  color: var(--muted);
}

/* 404 */
.notfound {
  background: var(--dark);
  color: #ffffff;
}
.notfound .wrap {
  padding-block: 90px;
}
.notfound .eyebrow {
  color: var(--beige);
}
.notfound a {
  color: #ffffff;
}

/* Footer: black, upper-case links. */
footer {
  margin-top: 64px;
  background: var(--dark);
  color: #cfcdc8;
}
footer .wrap {
  padding-block: 34px;
  display: flex;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
  align-items: center;
}
footer p {
  margin: 0;
}
footer a {
  color: #cfcdc8;
}
footer .links {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
footer .links a {
  color: #ffffff;
  text-decoration: none;
}
footer .links a:hover {
  text-decoration: underline;
}
footer .disclosure {
  flex-basis: 100%;
  max-width: none;
  font-size: 0.85rem;
}

/* The page-view counter image takes no space (usage-stats spec). */
.v {
  position: absolute;
  width: 1px;
  height: 1px;
}

@media (max-width: 900px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
  .tools {
    grid-template-columns: 1fr 1fr;
  }
  .columns,
  .two {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
@media (max-width: 620px) {
  .bar {
    grid-template-columns: 1fr auto;
  }
  .bar .left {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.85rem;
  }
  .word {
    font-size: 1.8rem;
  }
  nav.main {
    gap: 4px 16px;
    font-size: 0.95rem;
  }
  .tools {
    grid-template-columns: 1fr;
  }
  th {
    white-space: normal;
  }
  .sq {
    min-width: 0;
    flex: 1 1 auto;
  }
}
