/* Vendpic. One stylesheet for the marketing pages, the dashboard and every
   store. Light only: this gets used outdoors, on a phone, at a game.

   The accent is high-visibility vest yellow. It is spent on exactly three
   things: the primary action, a ticked photo, and an order reference. If it
   appears anywhere else, something has gone wrong. */

@font-face { font-family: "Barlow"; src: url("/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;

  --paper: #ffffff;
  --wash: #f5f6f7;
  --ink: #101114;
  --slate: #5b6470;
  --rule: #e2e5e9;
  --vest: #ffd100;
  --vest-deep: #d9b000;
  --paid: #12703a;
  --stop: #b3261e;

  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 1.25rem;
  --measure: 68rem;
}

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

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

body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

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

a { color: inherit; text-decoration-color: var(--vest-deep); text-underline-offset: 0.18em; text-decoration-thickness: 0.09em; }
a:hover { text-decoration-color: var(--ink); }

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

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 0.98; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.75rem, 7.5vw, 5.25rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: 0; }
p { margin: 0 0 1rem; }
strong { font-weight: 600; }

/* --- shell ------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 44rem; }

.site-header {
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
}
.site-header__in { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.02em;
  text-transform: uppercase; text-decoration: none; margin-right: auto;
  display: inline-flex; align-items: baseline; gap: 0.1em;
}
.wordmark::after { content: ""; width: 0.42em; height: 0.42em; background: var(--vest); display: inline-block; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; font-size: 0.95rem; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.btn):hover { text-decoration: underline; }

main:has(> .section--wash:last-child) + .site-footer { border-top: none; }
.site-footer { border-top: 1px solid var(--rule); flex: none; padding: 2.5rem 0 3.5rem; color: var(--slate); font-size: 0.95rem; }
.site-footer__in { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: baseline; }
.site-footer a { color: var(--ink); }
.site-footer__spacer { margin-left: auto; }

main { display: block; flex: 1 0 auto; }
.section { padding: 4.5rem 0; }
.section--wash { background: var(--wash); border-block: 1px solid var(--rule); }
.section > .wrap > :last-child { margin-bottom: 0; }

/* --- type helpers ------------------------------------------------------ */

.eyebrow {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 0.875rem; color: var(--slate);
  margin: 0 0 1rem; display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 0.2rem; background: var(--vest); }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--slate); max-width: 34em; }
.mono { font-family: var(--mono); }
.small { font-size: 0.9rem; color: var(--slate); }

/* --- buttons and forms ------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 1.0625rem; line-height: 1;
  padding: 0.85rem 1.35rem; border: 2px solid var(--ink); border-radius: 0;
  background: var(--vest); color: var(--ink); text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink); transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn[disabled] { background: var(--wash); color: var(--slate); border-color: var(--rule); box-shadow: none; cursor: not-allowed; transform: none; }
.btn--ghost { background: var(--paper); }
.btn--quiet {
  background: none; border: 1px solid var(--rule); box-shadow: none; color: var(--slate);
  font-family: var(--body); font-weight: 500; text-transform: none; letter-spacing: 0;
  padding: 0.5rem 0.85rem; font-size: 0.9rem;
}
.btn--quiet:hover { transform: none; box-shadow: none; border-color: var(--ink); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 1.75rem 0; }

form label { display: block; font-weight: 500; margin: 1.25rem 0 0.35rem; }
input[type=text], input[type=email], input[type=date], input[type=file], select {
  font: inherit; font-size: 1rem; padding: 0.6rem 0.7rem; width: 100%; max-width: 24rem;
  border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink);
}
input[type=text]:focus, input[type=email]:focus, select:focus { outline: 3px solid var(--vest); outline-offset: 0; }
.field-note { font-size: 0.9rem; color: var(--slate); margin: 0.4rem 0 0; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; margin: 1.5rem 0; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--ink); flex: none; }

.alert { border: 2px solid var(--stop); border-left-width: 6px; padding: 0.85rem 1rem; margin: 1rem 0; background: var(--paper); }
.notice { border: 2px solid var(--ink); border-left-width: 6px; border-left-color: var(--vest); padding: 0.85rem 1rem; margin: 1rem 0; }

/* --- the stub: this project's one signature ---------------------------- */

.stub {
  --notch: 0.6rem;
  display: inline-block; background: var(--paper); border: 2px solid var(--ink);
  padding: 1rem 1.25rem; position: relative; margin: 0 0 2rem;
  box-shadow: 8px 8px 0 var(--vest);
}
.stub__label {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.8rem; color: var(--slate); margin: 0 0 0.35rem;
}
.stub__code {
  font-family: var(--mono); font-weight: 700; font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  letter-spacing: 0.02em; margin: 0; display: inline-block;
  background: linear-gradient(var(--vest), var(--vest)) no-repeat 0 62%/100% 0.55em;
  padding: 0 0.15em;
}
.stub__meta { font-size: 0.95rem; color: var(--slate); margin: 0.5rem 0 0; }
.stub__due { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem; margin: 0.75rem 0 0; padding-top: 0.75rem; border-top: 2px dashed var(--rule); color: var(--slate); font-size: 0.95rem; }
.stub__amt { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--ink); }

/* --- hero -------------------------------------------------------------- */

.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__in { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 60rem) { .hero__in { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { margin-bottom: 1rem; }
.hero h1 em { font-style: normal; display: block; color: var(--slate); }

/* The mock storefront. Tiles are out-of-focus sideline colours rather than
   photographs: the page should promise the product, not fake a portfolio. */
.mock { border: 2px solid var(--ink); background: var(--paper); box-shadow: 10px 10px 0 var(--ink); }
.mock__bar { display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--rule); padding: 0.6rem 0.8rem; font-family: var(--mono); font-size: 0.8rem; color: var(--slate); }
.mock__dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--rule); flex: none; }
.mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; padding: 0.8rem; }
.tile { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.tile::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Ctext x='4' y='22' font-family='monospace' font-size='13' fill='white' fill-opacity='.85' transform='rotate(-18 4 22)'%3E%40yourhandle%3C/text%3E%3C/svg%3E");
  background-size: 78px 40px;
}
.tile--1 { background: radial-gradient(120% 90% at 20% 15%, #9db98a, #55704a 70%, #3c5236); }
.tile--2 { background: radial-gradient(120% 90% at 70% 25%, #c9a06a, #8c6236 75%); }
.tile--3 { background: radial-gradient(110% 100% at 40% 80%, #7e93b5, #2f3f5e 70%); }
.tile--4 { background: radial-gradient(120% 90% at 60% 30%, #b98a8a, #7a3b3b 75%); }
.tile--5 { background: radial-gradient(120% 90% at 25% 70%, #8fae9c, #445c50 75%); }
.tile--6 { background: radial-gradient(120% 90% at 75% 20%, #a9a9b4, #4e4e5a 75%); }
.tile--picked { outline: 3px solid var(--vest); outline-offset: -3px; }
.tile__tick {
  position: absolute; top: 0.3rem; left: 0.3rem; width: 1.3rem; height: 1.3rem;
  background: var(--vest); border: 2px solid var(--ink);
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; line-height: 1;
}
.mock__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule); padding: 0.7rem 0.8rem; }
.mock__price { font-family: var(--mono); font-weight: 700; }
.mock__cta { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--vest); border: 2px solid var(--ink); padding: 0.4rem 0.7rem; font-size: 0.9rem; }

/* --- steps: a real sequence, so it is numbered -------------------------- */

.steps { display: grid; gap: 2rem; counter-reset: step; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.step { border-top: 3px solid var(--ink); padding-top: 1rem; }
.step__n { font-family: var(--mono); font-size: 0.85rem; color: var(--slate); }
.step h3 { margin: 0.35rem 0 0.4rem; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.step p { margin: 0; color: var(--slate); }

/* --- feature rows ------------------------------------------------------ */

.rows { border-top: 1px solid var(--rule); margin: 2.5rem 0 0; }
.row { display: grid; gap: 0.35rem 2.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 46rem) { .row { grid-template-columns: 15rem 1fr; } }
.row__k { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.15rem; }
.row__v { color: var(--slate); margin: 0; }

/* --- pricing ----------------------------------------------------------- */

.plan { border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--vest); padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--paper); }
.plan__price { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 9vw, 4.5rem); line-height: 1; margin: 0; }
.plan__price span { font-family: var(--body); font-size: 1.0625rem; font-weight: 500; color: var(--slate); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 1.5rem 0; }
.plan li { padding: 0.55rem 0 0.55rem 1.8rem; border-bottom: 1px solid var(--rule); position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 0.85rem; height: 0.85rem; background: var(--vest); border: 2px solid var(--ink); }

/* --- prose (terms, privacy) -------------------------------------------- */

.prose { max-width: 40rem; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2.5rem; }
.prose p { color: var(--slate); }
.prose p strong { color: var(--ink); }

/* --- storefront -------------------------------------------------------- */

.store-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem; border-bottom: 1px solid var(--rule); }
.store-head h1 { margin-bottom: 0.35rem; }
.backlink { display: inline-block; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; color: var(--slate); text-decoration: none; margin-bottom: 1rem; }
.backlink:hover { color: var(--ink); }

.event-grid, .photo-grid { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.75rem; }
.event-grid { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.photo-grid { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }
.event-grid a { text-decoration: none; display: block; border: 1px solid var(--rule); }
.event-grid a:hover { border-color: var(--ink); }
.event-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--wash); }
.event-grid__name { display: block; font-family: var(--display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; padding: 0.6rem 0.7rem 0; }
.event-grid__count { display: block; font-family: var(--mono); font-size: 0.8rem; color: var(--slate); padding: 0 0.7rem 0.7rem; }

.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--wash); display: block; }
.photo-grid label { display: block; position: relative; cursor: pointer; }
.photo-grid label input {
  position: absolute; top: 0.5rem; left: 0.5rem; width: 1.75rem; height: 1.75rem;
  margin: 0; z-index: 1; appearance: none; -webkit-appearance: none;
  background: color-mix(in srgb, var(--paper) 85%, transparent); border: 2px solid var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.photo-grid label input:checked { background: var(--vest); }
.photo-grid label input:checked::after {
  content: ""; width: 0.55rem; height: 0.95rem; margin-top: -0.2rem;
  border: solid var(--ink); border-width: 0 0.22rem 0.22rem 0; transform: rotate(45deg);
}
.photo-grid label:has(input:checked) img { outline: 4px solid var(--vest); outline-offset: -4px; }
.photo-grid label:has(input:focus-visible) img { outline: 4px solid var(--ink); outline-offset: -4px; }

/* The buy bar follows the buyer down the gallery: on a phone the tiles are
   taller than the screen, and a button at the bottom of the page is a button
   nobody finds. */
.buybar {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  background: var(--paper); border-top: 2px solid var(--ink);
  padding: 0.85rem 0 max(0.85rem, env(safe-area-inset-bottom)); margin-top: 1.5rem;
}
.buybar__note { color: var(--slate); font-size: 0.9rem; margin: 0; }

.price-line { font-family: var(--mono); font-weight: 700; }

/* --- order page -------------------------------------------------------- */

.order-amount { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 8vw, 3.75rem); line-height: 1; margin: 0.25rem 0 0.75rem; }
.dl-grid { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.dl-grid a { display: block; text-decoration: none; border: 2px solid var(--ink); background: var(--paper); }
.dl-grid a:hover { box-shadow: 4px 4px 0 var(--vest); }
.dl-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dl-grid span {
  display: block; text-align: center; font-family: var(--display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; padding: 0.5rem; border-top: 2px solid var(--ink);
}

/* --- dashboard --------------------------------------------------------- */

.app-head { border-bottom: 1px solid var(--rule); padding: 2.5rem 0 1.5rem; }
.app-head h1 { margin-bottom: 0.35rem; }
.app-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--slate); font-size: 0.95rem; margin: 0.5rem 0 0; }
.app-meta .mono { color: var(--ink); }

.panel { border: 1px solid var(--rule); padding: clamp(1.25rem, 3vw, 1.75rem); margin: 1.5rem 0; }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.panel h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.panel--flag { border-color: var(--ink); border-left: 6px solid var(--vest); }

.list { list-style: none; padding: 0; margin: 1rem 0 0; }
.list > li { padding: 0.9rem 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; }
.list > li:last-child { border-bottom: 1px solid var(--rule); }
.list a { font-family: var(--display); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; text-decoration: none; }
.list a:hover { text-decoration: underline; }

.tag {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem;
  border: 1px solid var(--rule); padding: 0.15rem 0.45rem; color: var(--slate);
}
.tag--live { border-color: var(--ink); color: var(--ink); background: var(--vest); }
.tag--paid { border-color: var(--paid); color: var(--paid); }

.orders { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.orders .order { padding: 1.1rem 0; border-top: 1px solid var(--rule); display: grid; gap: 0.6rem; }
.orders .order:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 46rem) { .orders .order { grid-template-columns: 1fr auto; align-items: center; } }
.order__what { display: flex; flex-wrap: wrap; gap: 0.35rem 0.85rem; align-items: baseline; }
.order__ref { font-family: var(--mono); font-weight: 700; font-size: 1.1rem; background: linear-gradient(var(--vest), var(--vest)) no-repeat 0 74%/100% 0.45em; padding: 0 0.15em; }
.order__amt { font-family: var(--mono); font-weight: 700; }
.order__meta { color: var(--slate); font-size: 0.9rem; width: 100%; margin: 0; }
.order__do { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.order__do form { display: inline; }
.order--cancelled .order__ref { background: none; color: var(--slate); }

.stat { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; align-items: baseline; margin: 0 0 0.75rem; }
.stat__n { font-family: var(--mono); font-weight: 700; }
.meter { height: 0.5rem; background: var(--wash); border: 1px solid var(--rule); margin: 0.5rem 0 0; }
.meter__fill { height: 100%; background: var(--vest); }

/* --- sign in ----------------------------------------------------------- */

.gate { max-width: 26rem; margin: clamp(3rem, 9vw, 6rem) auto; }
.gate .btn { width: 100%; margin-bottom: 0.85rem; }
.provider-mark { font-weight: 700; font-family: var(--display); }

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