@font-face {
  font-family: "Stefan Simple";
  src: url("fonts/ABCStefanTrial-Simple.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f1ea;
  --ink: #1a1a1a;
  --rule: #1a1a1a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  font-family: "Stefan Simple", "Helvetica Neue", sans-serif;
  color: var(--ink);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(2rem, 8vw, 7rem);
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* ---- ticker ---- */

.ticker {
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid var(--rule);
  padding: 0.5rem 0;
  margin: 0 calc(-1 * clamp(2rem, 8vw, 7rem));
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.ticker-track {
  display: inline-flex;
  animation: scroll 40s linear infinite;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---- masthead ---- */

.masthead {
  padding: 6.5rem 0 3rem;
}

.title {
  font-size: clamp(4rem, 16vw, 9.5rem);
  line-height: 0.92;
  font-weight: normal;
  letter-spacing: -0.02em;
}

.title .fog {
  font-size: 0.45em;
  vertical-align: 0.35em;
  margin-left: 0.1em;
}

.tagline {
  margin-top: 1.75rem;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  max-width: 34em;
}

/* ---- filters ---- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-bottom: 1.5rem;
}

.filter {
  font: inherit;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--rule);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.filter .emoji {
  margin-right: 0.25em;
}

.filter:hover,
.filter.is-active {
  background: var(--ink);
  color: var(--paper);
}

/* ---- empty state ---- */

.empty {
  padding: 2.5rem 0;
  text-align: center;
  font-size: 1.2rem;
  border-top: 2px solid var(--rule);
}

/* ---- board ---- */

main {
  flex: 1;
  padding-bottom: 3rem;
}

.brand {
  --accent: var(--ink);
  padding: 2.5rem 0;
  border-top: 2px solid var(--rule);
}

.brand[hidden] {
  display: none;
}

/* name row */

.brand-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.name {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: normal;
  letter-spacing: -0.01em;
}

/* each brand's own wordmark */
.name-logo {
  display: block;
  height: clamp(1.9rem, 4.6vw, 2.9rem);
  width: auto;
  max-width: 100%;
}

.visit {
  margin-left: auto;
  color: inherit;
  text-decoration: none;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  border-bottom: 2px solid transparent;
}

a.visit:hover {
  border-bottom-color: var(--accent);
}

/* media row: big image left, product grid + meta right */

.brand-media {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.hero {
  display: block;
  align-self: start;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #fff;
}

.hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

a.hero:hover img {
  transform: scale(1.02);
}

.side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.products {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}

.product {
  height: 104px;
  overflow: hidden;
}

.product img {
  display: block;
  height: 100%;
  width: auto;
}

.meta {
  margin-top: auto;
  text-align: right;
}

.blurb {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.address {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.65;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.15rem;
}

/* ---- footer ---- */

footer {
  border-top: 2px solid var(--rule);
  padding: 1.5rem 0 2.5rem;
  text-align: center;
  font-size: 1rem;
}

.sign-off {
  margin-top: 0.5rem;
}

/* ---- small screens ---- */

@media (max-width: 640px) {
  .brand-media {
    grid-template-columns: 1fr;
  }

  .meta {
    text-align: left;
  }
}
