/* Crew Issue: the look of crew-issue-website.html (the home page), shared by the
   store, cart, sign-in, contact and admin pages. Light colors only, no dark mode. */
:root {
  color-scheme: light;
  --navy: #14213d;
  --brass: #b08d2e;
  --brass2: #c9a646;
  --cream: #f3eedf;
  --bg: #f7f4ea;
  --ink: #14213d;
  --soft: #4a5368;
  --card: #ffffff;
  --line: #ddd6c2;
  --band: #ede7d6;
  --footer: #0b1222;
  --danger: #a8402b;
  /* older names, still used by admin.css */
  --tan: var(--band);
  --white: var(--card);
  --ink-soft: var(--soft);
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: clip;
}
a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: 3px; }
h1, h2, h3 { font-family: "Black Ops One", Impact, sans-serif; font-weight: 400; line-height: 1.05; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(36px, 5.2vw, 56px); }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: 20px; }
p { margin: 0; }
.wrap { max-width: calc(1240px + 2 * max(5vw, 16px)); margin: 0 auto; padding-inline: max(5vw, 16px); }
:focus-visible { outline: 3px solid var(--brass2); outline-offset: 2px; }

/* Nav (sticky navy bar with the CI box mark) */
.nav { position: sticky; top: 0; z-index: 5; background: var(--navy); color: var(--cream); }
.nav-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand b { font-family: "Black Ops One", Impact, sans-serif; font-weight: 400; font-size: 22px; letter-spacing: 1px; }
.ci-mark { display: block; flex: none; }
.links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-left: auto; font-size: 15px; font-weight: 500; }
.links a { text-decoration: none; opacity: .9; padding: 10px 0; }
.links a:hover { opacity: 1; text-decoration: underline; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; opacity: 1 !important; }
.cart-count { background: var(--brass2); color: var(--navy); font-size: 13px; font-weight: 700; min-width: 22px; padding: 1px 7px; border-radius: 99px; text-align: center; }
@media (max-width: 600px) { .links { margin-left: 0; gap: 14px; font-size: 14px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  border-radius: 8px; border: 2px solid var(--brass); background: var(--brass); color: var(--navy);
  font: 600 16px Inter, sans-serif; text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--brass2); border-color: var(--brass2); }
.btn-quiet { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-quiet:hover { background: var(--band); border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.link-btn { font: inherit; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; cursor: pointer; }

/* Bands and the store banner */
.band { padding-block: clamp(36px, 5vw, 72px); }
.store-hero { background: var(--band); padding-block: clamp(32px, 4.5vw, 60px); }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--brass); }
.eyebrow a { text-decoration: none; }
.lede { max-width: 60ch; margin-top: 14px; font-size: 18px; color: var(--soft); }
.sample-note { display: inline-block; margin-top: 18px; padding: 6px 12px; font-size: 13px; color: var(--soft); background: var(--card); border: 1px dashed var(--brass); border-radius: 8px; }
.note, .fine { font-size: 13px; color: var(--soft); }

/* Item cards */
.store-items { padding-block: clamp(28px, 4vw, 48px) clamp(40px, 5vw, 72px); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.card-media { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--band); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.art { width: 78%; height: auto; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card h3 { font-size: 20px; line-height: 1.15; }
.type { font-size: 13px; color: var(--soft); }
.desc { font-size: 14px; color: var(--soft); }
.price { margin-top: auto; padding-top: 4px; font-size: 18px; font-weight: 700; white-space: nowrap; }

.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.badge-public { background: var(--band); color: var(--navy); }
.badge-employees { background: var(--navy); color: var(--cream); }

.opts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; }
.opts-label { color: var(--soft); margin-right: 4px; }
.chip { border: 1px solid var(--line); padding: 1px 8px; border-radius: 99px; background: var(--bg); }

.card-locked .card-media { background: repeating-linear-gradient(-45deg, var(--band), var(--band) 10px, var(--bg) 10px, var(--bg) 20px); }
.lock { width: 46px; height: 46px; fill: var(--navy); stroke: var(--navy); stroke-width: 2; }
.lock path { fill: none; }
.lock-label { font-size: 13px; font-weight: 600; color: var(--brass); }

/* Employee sign-in bar */
.employee-bar {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin: 40px 0 16px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--brass); border-radius: 12px;
}
.employee-bar > div { flex: 1 1 320px; }
.employee-bar h2 { font-size: 24px; }
.employee-bar p { margin-top: 6px; color: var(--soft); }
.employee-bar-in { margin: 0 0 20px; align-items: center; }
.empty { color: var(--soft); }

/* Forms */
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.stack-form { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; flex: 1 1 220px; max-width: 360px; }
.stack-form .field { flex: none; width: 100%; max-width: none; }
.field-code { flex: 0 0 auto; }
.field small { font-weight: 400; color: var(--soft); }
.field input, .field select, .field textarea {
  font: 16px Inter, sans-serif; color: var(--ink); width: 100%;
  padding: 11px 12px; min-height: 46px; background: var(--card); border: 2px solid #cfc6ae; border-radius: 8px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--brass2); outline-offset: 1px; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .field-error { color: var(--danger); font-weight: 600; }
.code-input { letter-spacing: 6px; font-size: 22px !important; font-variant-numeric: tabular-nums; max-width: 11ch; }
.text-form { margin-top: 16px; font-size: 14px; color: var(--soft); }
.form-error { margin: 0 0 14px; padding: 10px 14px; background: #fbeeea; border-left: 4px solid var(--danger); border-radius: 8px; color: #6f2615; font-size: 14px; }
.form-note { margin: 0 0 14px; padding: 10px 14px; background: var(--card); border-left: 4px solid var(--brass); border-radius: 8px; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Add to cart */
.add-form { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.add-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.field-select { flex: 1 1 90px; max-width: none; font-size: 13px; }
.field-select select { min-height: 42px; padding: 8px 10px; font-size: 15px; }
.field-qty { flex: 0 0 76px; }

/* Panels (sign-in, approve, thank-you, errors) */
.panel-wrap { padding-block: clamp(32px, 5vw, 64px); max-width: calc(680px + 2 * max(5vw, 16px)); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px 20px; }
@media (min-width: 720px) { .panel { padding: 32px; } }
.panel-title { font-size: clamp(28px, 4.5vw, 40px); margin-bottom: 14px; }
.panel p { margin-bottom: 14px; }
.panel hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* Cart */
.cart-wrap { padding-block: clamp(32px, 5vw, 64px); max-width: calc(900px + 2 * max(5vw, 16px)); }
.cart-lines { list-style: none; margin: 16px 0 24px; padding: 0 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line-name { font-weight: 700; }
.cart-line-opts, .cart-line-unit { font-size: 14px; color: var(--soft); }
.cart-line-total { font-weight: 700; text-align: right; }
.cart-line-qty { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; font-size: 14px; }
.cart-line-qty .link-btn { padding-bottom: 10px; }
@media (min-width: 720px) { .cart-line { grid-template-columns: 1fr auto 90px; } .cart-line-qty { grid-column: auto; } }
.cart-summary { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
@media (min-width: 720px) { .cart-summary { margin-left: auto; max-width: 400px; } }
.cart-summary dl { margin: 0 0 16px; }
.cart-summary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.cart-summary dt { color: var(--soft); }
.cart-summary dd { margin: 0; font-weight: 600; }
.cart-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px !important; }
.cart-total dt, .cart-total dd { color: var(--ink); font-weight: 700; }
.fine { margin-top: 12px; }

/* Contact (navy band, like the home page) */
.contact-band { background: var(--navy); color: var(--cream); }
.contact-band .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 820px) { .contact-band .split { grid-template-columns: minmax(0, 1fr); } }
.contact-band .lede, .contact-band .muted-dark { color: #c7cedb; }
.contact-band a { color: var(--cream); }
.contact-band .field input, .contact-band .field select, .contact-band .field textarea { background: #0f1930; color: var(--cream); border-color: #34446a; }
.contact-band .field small, .contact-band .fine { color: #c7cedb; }
.contact-band .field .field-error { color: #f0b4ae; }
.contact-band .form-error { background: #0f1930; color: #f0b4ae; border-left-color: #f0b4ae; }
.contact-form { max-width: 560px; }
.topics { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.topics legend { font-size: 15px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.radio { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 400; }
.radio input { width: 18px; height: 18px; accent-color: var(--brass2); margin: 0; }

/* Footer */
.site-footer { background: var(--footer); color: #b9c0cf; font-size: 14px; padding-block: 28px; }
.footer-row { display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.site-footer strong { color: var(--cream); }
.site-footer a { color: var(--cream); }

/* Skip link */
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--brass2); color: var(--navy); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 8px; }
.contact-band h1 { font-size: clamp(32px, 4vw, 46px); }
.contact-band .stack-form .field { color: var(--cream); }
.cta-row { margin-top: 24px; }
