/* Bantam Labs — site styles. Colors are taken from logo 4a. */

@font-face {
  font-family: "Bebas Neue";
  src: url("/assets/fonts/bebas-neue-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #f2f2f3;
  --surface: #ffffff;
  --text: #1d1f20;
  --muted: #4f5459;
  --accent: #416180;
  --border: #c9cdd1;

  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 42rem;
  --gutter: clamp(1rem, 5vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1f20;
    --surface: #26292b;
    --text: #f2f2f3;
    --muted: #a9aeb3;
    --accent: #b5d9fd;
    --border: #3a3e41;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

main {
  flex: 1;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Hero */

.hero {
  padding-block: clamp(3rem, 12vh, 7rem) clamp(1.25rem, 4vh, 2.5rem);
  text-align: center;
}

.hero h1 {
  margin: 0;
}

.logo {
  width: clamp(11rem, 55vw, 18rem);
  margin-inline: auto;
}

.tagline {
  margin: clamp(2rem, 6vh, 3rem) 0 0;
  font-size: clamp(1.1875rem, 1rem + 1vw, 1.375rem);
  font-weight: 600;
  line-height: 1.4;
  text-wrap: balance;
}

/* Sections */

.section {
  padding-block: clamp(2.5rem, 7vh, 4rem);
  border-top: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.04em;
}

.section p {
  margin: 0;
}

/* Products: add one <li class="card"> per product. */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

/* Logo in the left column, spanning the title and description. */
.card-has-logo {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: 0.5rem;
  align-content: start;
}

.card-has-logo picture {
  grid-row: span 2;
}

.card-logo {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
}

.card h3 {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.3;
}

.card p {
  color: var(--muted);
}

.card-placeholder {
  grid-column: 1 / -1;
  align-items: center;
  padding-block: 2.5rem;
  text-align: center;
}

.card-placeholder p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.08em;
}

.email {
  font-size: 1.1875rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

/* 404 */

.notfound {
  padding-block: clamp(3rem, 12vh, 7rem);
  text-align: center;
}

.notfound .logo {
  width: 7rem;
}

.notfound h1 {
  margin: 2.5rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 2rem + 3vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0.03em;
}

.notfound p {
  margin: 0 0 0.5rem;
}
