/* Buy the Brick: stacked full-width bands on one centered column (max 68rem);
   the logo (brand/logo.png) is the only brand mark: small in the header, large as the
   hero art on wide screens; its yellow, blue and red carry the accents; a yellow stud
   strip divides the sections. */

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(fonts/fredoka-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/figtree-latin.woff2) format("woff2");
}

:root {
  --bg: #ffffff;
  --surface: #f4f5f7;
  --card: #ffffff;
  --ink: #111111;
  --muted: #555d66;
  --line: #dcdfe4;
  --yellow: #f9d406;
  --yellow-dark: #e3c100;
  --on-yellow: #111111;
  --blue: #0096ff;
  --blue-text: #0068b8;
  --red: #ff0000;
  --red-text: #d40000;
  --footer-bg: #111111;
  --footer-fg: #f2f3f5;
  --footer-muted: #a3a9b3;
  --display: "Fredoka", "Avenir Next Rounded", "Trebuchet MS", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 68rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115;
    --surface: #171a20;
    --card: #1c2027;
    --ink: #f2f3f5;
    --muted: #a3a9b3;
    --line: #2b303a;
    --yellow: #f9d406;
    --yellow-dark: #ffe14a;
    --on-yellow: #111111;
    --blue: #0096ff;
    --blue-text: #5fb6ff;
    --red: #ff2a2a;
    --red-text: #ff5c5c;
    --footer-bg: #07080b;
    --footer-fg: #f2f3f5;
    --footer-muted: #8d94a0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #171a20;
  --card: #1c2027;
  --ink: #f2f3f5;
  --muted: #a3a9b3;
  --line: #2b303a;
  --yellow: #f9d406;
  --yellow-dark: #ffe14a;
  --on-yellow: #111111;
  --blue: #0096ff;
  --blue-text: #5fb6ff;
  --red: #ff2a2a;
  --red-text: #ff5c5c;
  --footer-bg: #07080b;
  --footer-fg: #f2f3f5;
  --footer-muted: #8d94a0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
a { color: var(--blue-text); text-underline-offset: 0.15em; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(2.5rem, 2rem + 3.2vw, 4.25rem); letter-spacing: -0.01em; }
h2 { font-weight: 600; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
h3 { font-weight: 600; font-size: 1.3rem; }
p, dl, dd { margin: 0; }
svg { max-width: 100%; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(3rem, 8vw, 6rem); }
.band-surface { background: var(--surface); }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); max-width: 34em; }
.prose { display: grid; gap: 1rem; max-width: 65ch; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.5rem; padding-block: 0.9rem;
}
.brand { display: inline-block; line-height: 0; }
.brand img { display: block; height: 3.25rem; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--blue-text); text-decoration: underline; }

/* Hero */
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem 3rem; align-items: center;
}
.hero-copy { display: grid; gap: 1.25rem; min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.6rem 1.4rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
}
.btn-yellow { background: var(--yellow); color: var(--on-yellow); }
.btn-yellow:hover { background: var(--yellow-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.hero-art { min-width: 0; }
.hero-art img { display: block; width: 100%; height: auto; max-width: 26rem; margin-inline: auto; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}

/* Stud strip */
.studs {
  height: 22px;
  background-image: radial-gradient(circle at 50% 50%, var(--yellow) 0 6px, transparent 7px);
  background-size: 30px 22px;
  background-repeat: repeat-x;
  background-position: center;
}

/* What we make */
.section-head { display: grid; gap: 0.75rem; max-width: 40em; margin-bottom: 2.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.item { display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.item h3::before {
  content: ""; display: inline-block; width: 0.65em; height: 0.65em; border-radius: 50%;
  background: var(--yellow); margin-right: 0.5em; vertical-align: 0.08em;
}
.item:nth-child(3n+2) h3::before { background: var(--blue); }
.item:nth-child(3n) h3::before { background: var(--red); }
.note { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); max-width: 65ch; }

/* Where to find us */
.find-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: start; }
@media (max-width: 760px) { .find-grid { grid-template-columns: 1fr; } }
.market {
  background: var(--card); border: 1px solid var(--line); border-radius: 1rem;
  padding: 1.5rem; display: grid; gap: 0.75rem;
}
.market h3 { font-size: 1.5rem; }
.market dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.35rem 1rem; }
.market dt { font-weight: 600; color: var(--muted); font-size: 0.9rem; padding-top: 0.15rem; }
.booth { display: grid; gap: 0.75rem; }

/* Say hello */
.contact { display: grid; gap: 1rem; max-width: 40em; }
.email {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2.2rem);
  color: var(--red-text); text-decoration: none; overflow-wrap: anywhere;
}
.email:hover { text-decoration: underline; }

/* Footer */
.foot { background: var(--footer-bg); color: var(--footer-fg); padding-block: 2rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; font-size: 0.9rem; }
.foot a { color: var(--footer-fg); }
.foot .muted { color: var(--footer-muted); }

/* Inner pages */
.page { padding-block: clamp(2.5rem, 6vw, 4rem); }
.page .prose h1 { margin-bottom: 0.5rem; }
.page .prose h2 { font-size: 1.35rem; margin-top: 1rem; }
