/* Buzzville Bazaar · buzzvillebazaar.com */

@font-face {
  font-family: 'Chicle';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/chicle-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/work-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/work-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/work-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/work-sans-700.woff2') format('woff2');
}

:root {
  --cream: #FBF1D9;
  --ink: #1C1B19;
  --teal: #2F6E72;
  --orange: #E8873A;
  --orange-hover: #F4B06A;
  --white: #FFFFFF;
  --muted: #5A5750;
  --card-text: #3D3B37;
  --ink-hover: #3D3B37;
  --footer-2: #CFC8B4;
  --footer-3: #9B8462;
  --display: 'Chicle', serif;
  --body: 'Work Sans', sans-serif;
  --header-h: 84px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
}

img { max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--teal); }
a:hover { color: var(--orange); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 14px;
  font: 600 14px/1 var(--body);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--cream); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap { max-width: 1120px; margin: 0 auto; }

.label {
  font: 600 12px/1 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
}

h2 { font: 400 44px/1 var(--display); }
.c-teal { color: var(--teal); }
.c-orange { color: var(--orange); }
.c-ink { color: var(--ink); }
.c-cream { color: var(--cream); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 14px 22px;
  font: 600 15px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .12s ease;
  -webkit-appearance: none;
  appearance: none;
}
.btn:hover { color: var(--ink); }
.btn-orange { background: var(--orange); }
.btn-orange:hover { background: var(--orange-hover); }
.btn-cream { background: var(--cream); }
.btn-cream:hover { background: var(--white); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--ink-hover); color: var(--cream); }
.btn[disabled] { cursor: progress; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--cream);
  border-bottom: 4px solid var(--ink);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand picture, .plate picture, .footer-brand picture { display: block; flex: none; line-height: 0; }
.brand img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.brand-name { font: 400 26px/1 var(--display); }
.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font: 600 14px/1 var(--body);
}
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--orange); }
.btn-nav {
  box-shadow: 4px 4px 0 var(--ink);
  padding: 10px 16px;
  font-size: 14px;
}

/* Hero */
.hero { padding: 56px 24px 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 {
  font: 400 clamp(44px, 6vw, 76px)/1 var(--display);
  color: var(--teal);
  text-wrap: balance;
}
.hero-lead {
  font-size: 19px;
  line-height: 1.5;
  max-width: 520px;
  text-wrap: pretty;
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
}
.decor { position: absolute; opacity: .7; height: auto; }
.decor-gameboy { left: 4%; top: 0; width: 22%; transform: rotate(-9deg); }
.decor-slr { right: 2%; top: 2%; width: 26%; transform: rotate(6deg); }
.decor-card { left: 0; bottom: 4%; width: 17%; transform: rotate(7deg); }
.decor-camcorder { right: 0; bottom: 8%; width: 28%; transform: rotate(-5deg); }
.decor-ipod { left: 40%; top: -4%; width: 14%; transform: rotate(8deg); }
.decor-robot { left: 44%; bottom: -2%; width: 15%; transform: rotate(-6deg); }

.plate {
  box-sizing: content-box;
  position: relative;
  background: var(--cream);
  border: 5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 380px;
}
.plate img { width: 120px; height: 120px; object-fit: contain; flex: none; }
.plate-text { display: flex; flex-direction: column; gap: 8px; }
.plate-title { font: 400 28px/1.05 var(--display); color: var(--teal); }

/* Ink band */
.band {
  background: var(--ink);
  color: var(--cream);
  padding: 16px 24px;
  text-align: center;
}
.band p { font: 400 24px/1.2 var(--display); }

/* What I buy */
.buy {
  background: var(--white);
  border-bottom: 4px solid var(--ink);
  padding: 64px 24px;
}
.stack { display: flex; flex-direction: column; gap: 28px; }
.section-head { display: flex; flex-direction: column; gap: 8px; }
.section-head p {
  font-size: 17px;
  line-height: 1.5;
  max-width: 620px;
  text-wrap: pretty;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 18px;
}
.cat {
  background: var(--cream);
  border: 3px solid var(--ink);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cat-head { display: flex; align-items: center; gap: 14px; }
.cat-head img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.cat-head h3 { font: 400 26px/1.05 var(--display); color: var(--teal); }
.cat p { font-size: 15px; line-height: 1.55; color: var(--card-text); }

.sub-head { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.sub-head h3 { font: 400 34px/1 var(--display); color: var(--orange); }
.sub-head p {
  font-size: 16px;
  line-height: 1.5;
  max-width: 620px;
  text-wrap: pretty;
}
.buyout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 18px;
}
.buyout {
  background: var(--orange);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.buyout h4 { font: 400 28px/1.05 var(--display); }
.buyout p { font-size: 15px; line-height: 1.55; }
.note { font-size: 15px; color: var(--muted); }

/* How it works */
.how { padding: 64px 24px; }
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 18px;
}
.step {
  background: var(--white);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-num { font: 400 48px/1 var(--display); color: var(--orange); }
.step h3 { font: 600 18px/1.3 var(--body); }
.step p { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Send me photos */
.sell {
  background: var(--teal);
  color: var(--cream);
  padding: 64px 24px;
}
.sell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px;
  align-items: start;
}
.sell-copy { display: flex; flex-direction: column; gap: 18px; }
.sell h2 { font-size: 48px; color: var(--cream); }
.sell-lead { font-size: 18px; line-height: 1.5; text-wrap: pretty; }
.sell-email { font-size: 15px; }
.sell-email a, .sell-email a:hover { color: var(--cream); font-weight: 700; }
.sell-email a:focus-visible { outline-color: var(--cream); }
.pickup {
  background: var(--cream);
  color: var(--ink);
  border: 4px solid var(--ink);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pickup .label { color: var(--teal); }
.pickup p:not(.label), .ends-up p:not(.label) { font-size: 15px; line-height: 1.5; }
.ends-up {
  border-top: 2px solid rgba(251, 241, 217, .4);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Form */
.photo-form {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  border: 5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: 600 13px/1 var(--body);
}
.field input,
.field textarea {
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: 0;
  padding: 12px;
  font: 400 16px var(--body);
  background: var(--white);
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea {
  font: 400 16px/1.45 var(--body);
  resize: vertical;
}
.field input[type="file"] {
  border-style: dashed;
  padding: 14px;
  font: 400 14px var(--body);
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
  padding: 7px 12px;
  font: 600 13px/1 var(--body);
  cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover { background: var(--orange-hover); }
.field input:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.field [aria-invalid="true"] { border-left-width: 10px; border-left-color: var(--orange); }
.field-hint { font: 400 12px/1.4 var(--body); color: var(--muted); }
.photo-form .btn { align-self: flex-start; }
.form-note { font-size: 12px; color: var(--muted); }
.form-msg {
  background: var(--white);
  border: 3px solid var(--ink);
  border-left: 10px solid var(--orange);
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
}
.form-msg a { color: var(--ink); font-weight: 600; }
.form-success {
  font: 400 28px/1.05 var(--display);
  color: var(--teal);
}
.form-success:focus { outline: none; }
.photo-form.is-done > :not(.form-success) { display: none; }
[hidden] { display: none !important; }

/* Honeypot: kept off-screen for people, visible to bots */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* About */
.about { padding: 64px 24px; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 40px;
  align-items: center;
}
.photo-frame {
  box-sizing: content-box;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  border: 5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  background: var(--white);
  overflow: hidden;
}
.photo-frame img, .photo-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}
.photo-frame img { object-fit: cover; object-position: center 30%; }
.about-copy { display: flex; flex-direction: column; gap: 18px; }
.about-copy p { font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font: 600 12px/1 var(--body);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tags li {
  background: var(--cream);
  border: 3px solid var(--ink);
  padding: 8px 12px;
}

/* Refer */
.refer {
  background: var(--orange);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  padding: 56px 24px;
}
.refer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 32px;
  align-items: center;
}
.refer-copy { display: flex; flex-direction: column; gap: 12px; }
.refer-copy p { font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.refer-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 40px 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--cream);
  border-radius: 50%;
  padding: 4px;
  flex: none;
}
.footer-id { display: flex; flex-direction: column; gap: 4px; }
.footer-name { font: 400 24px/1 var(--display); }
.footer-id a, .footer-id a:hover { color: var(--orange); font-size: 14px; text-decoration: none; }
.footer-id a:focus-visible { outline-color: var(--cream); }
.footer-sell { font-size: 13px; color: var(--footer-2); }
.footer-copy { font-size: 13px; color: var(--footer-3); }

/* Simple pages (404, form fallback) */
.simple-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.simple-main .brand img { width: 56px; height: 56px; object-fit: contain; }
.simple-title { font: 400 clamp(44px, 8vw, 64px)/1 var(--display); color: var(--teal); }
.simple-text { font-size: 18px; line-height: 1.5; text-wrap: pretty; }

/* Small screens: two-row sticky header, left-aligned share buttons */
@media (max-width: 640px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand cta"
      "nav nav";
    align-items: center;
    column-gap: 12px;
    row-gap: 12px;
    padding: 10px 16px;
  }
  .header-right { display: contents; }
  .brand { grid-area: brand; gap: 10px; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 22px; }
  .btn-nav { grid-area: cta; padding: 9px 12px; box-shadow: 3px 3px 0 var(--ink); }
  .site-nav { grid-area: nav; gap: 20px; }
  .refer-actions { justify-content: flex-start; }
}
@media (max-width: 360px) {
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 20px; }
  .btn-nav { font-size: 13px; padding: 8px 10px; }
  .site-nav { gap: 16px; font-size: 13px; }
  .hero, .buy, .how, .sell, .about, .refer, .site-footer { padding-left: 16px; padding-right: 16px; }
  .photo-form { padding: 18px; }
  .plate { padding: 16px; gap: 12px; }
  .plate img { width: 84px; height: 84px; }
  .plate-title { font-size: 24px; }
}

@media print {
  .site-header { position: static; }
  .photo-form, .refer-actions { display: none; }
}
