/* brand.css — BlackBud tokens, type, base elements. Shared by the storefront and the back office. */
@font-face { font-family: 'Anton'; src: url('/fonts/anton-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* palette */
  --black: #000000;      /* base: true matte black */
  --asphalt: #111112;    /* raised surfaces */
  --tar: #19191b;        /* inputs, hover surfaces */
  --graphite: #2b2b2f;   /* borders, rules */
  --smoke: #8e8e95;      /* secondary text */
  --chalk: #f2f2ee;      /* primary text */
  --volt: #40d265;       /* electric green: actions, focus, the brand band */
  --volt-ink: #021a0a;   /* text on volt */
  --alarm: #ff5a4f;      /* errors only */

  --display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* type scale (1.25 minor third on a 16px base) */
  --t-xs: .78rem; --t-sm: .875rem; --t-md: 1rem; --t-lg: 1.25rem; --t-xl: 1.563rem; --t-2xl: 1.953rem; --t-3xl: 2.441rem;

  --notch: 14px;         /* the tear-notch corner from a sealed bag */
  --notch-sm: 8px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--chalk);
  font: 400 var(--t-md)/1.55 var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
::selection { background: var(--volt); color: var(--volt-ink); }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; }
[hidden] { display: none !important; }

.display { font-family: var(--display); font-weight: 400; line-height: .9; letter-spacing: .005em; text-transform: uppercase; }
.muted { color: var(--smoke); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* notch: cut top-right corner */
.notch { clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%); }
.notch-sm { clip-path: polygon(0 0, calc(100% - var(--notch-sm)) 0, 100% var(--notch-sm), 100% 100%, 0 100%); }

/* buttons */
.btn {
  --b: var(--chalk); --f: var(--black);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.6em; background: var(--b); color: var(--f);
  font: 600 var(--t-sm)/1 var(--body); letter-spacing: .01em; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn.volt { --b: var(--volt); --f: var(--volt-ink); clip-path: polygon(0 0, calc(100% - var(--notch-sm)) 0, 100% var(--notch-sm), 100% 100%, 0 100%); }
.btn.ghost { background: transparent; color: var(--chalk); box-shadow: inset 0 0 0 1px var(--graphite); clip-path: none; }
@media (hover: hover) {
  .btn:hover { background: #fff; }
  .btn.volt:hover { background: var(--chalk); color: var(--black); }
  .btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--chalk); background: transparent; color: var(--chalk); }
}
.btn.block { width: 100%; }
.btn.sm { min-height: 38px; padding: 0 1em; font-size: var(--t-xs); }
.btn[disabled], .btn.busy { opacity: .45; pointer-events: none; }
.link { color: var(--chalk); text-decoration: underline; text-decoration-color: var(--graphite); text-underline-offset: .25em; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--volt); }

/* form fields */
.field { display: grid; gap: 6px; }
.field > span { font-size: var(--t-sm); font-weight: 500; color: var(--chalk); }
.field > small { color: var(--smoke); font-size: var(--t-xs); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; background: var(--tar); border: 1px solid var(--graphite);
  border-radius: 0; color: var(--chalk); font-size: 16px; transition: border-color .15s;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--volt); }
.input::placeholder, .textarea::placeholder { color: #5d5d63; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238e8e95' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); color: var(--smoke); cursor: pointer; }
.check input { appearance: none; width: 20px; height: 20px; flex: none; margin: 1px 0 0; border: 1px solid var(--graphite); background: var(--tar); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--volt); border-color: var(--volt); }
.check input:checked::after { content: ''; width: 10px; height: 6px; border: 2px solid var(--volt-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.err { color: var(--alarm); font-size: var(--t-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
