/* Clipperhead palette, taken from the shop: cream walls, Belmont sage chairs,
   teal accent walls, the slatted wood desk, and Arty's terracotta nose. */
:root {
  --bg: #f2ede2;
  --surface: #fbf8f1;
  --ink: #1a1a17;
  --muted: #6a6455;
  --line: #e2d9c6;
  --accent: #9db39a;
  --accent-ink: #1a1a17;
  --accent-strong: #4e6b50;
  --teal: #17444d;
  --teal-ink: #f2ede2;
  --clay: #c8553d;
  --clay-ink: #ffffff;
  --wood: #8a5a3b;
  --wood-dark: #5e3b25;
  --ok: #2f6b45;
  --ok-bg: #e1ebdd;
  --warn-bg: #f6e7c8;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(40 30 10 / 6%), 0 8px 24px rgb(40 30 10 / 7%);
  --logo-filter: none;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1312;
    --surface: #171c1b;
    --ink: #eee9dd;
    --muted: #a3a894;
    --line: #2a3230;
    --accent: #9db39a;
    --accent-ink: #0f1312;
    --accent-strong: #b7cbb3;
    --teal: #1f5560;
    --teal-ink: #eee9dd;
    --clay: #e07a62;
    --clay-ink: #0f1312;
    --ok: #8fd0a4;
    --ok-bg: #1b3326;
    --warn-bg: #3a3018;
    --shadow: none;
    --logo-filter: invert(0.93) sepia(0.15);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: 0.02em; line-height: 1.12; margin: 0 0 0.5rem; }
h1 { font-size: clamp(2rem, 6vw, 3rem); text-transform: uppercase; }
h2 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.04em; }
p { margin: 0 0 1rem; }
a { color: var(--accent-strong); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.8rem; color: var(--muted); }

/* Slatted wood band, like the front desk */
.slats {
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--wood) 0 7px, var(--wood-dark) 7px 9px);
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.site-header { padding: 22px 0 6px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand-logo { height: 52px; width: auto; filter: var(--logo-filter); }
.brand-sub { font-size: 0.85rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: 14px; }
@media (max-width: 480px) { .brand-logo { height: 40px; } }

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; padding: 20px 0 48px; }
@media (min-width: 860px) { .grid { grid-template-columns: 1.1fr 0.9fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

/* Shop photo hero */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  min-height: 220px;
  display: flex; align-items: flex-end;
  background: var(--teal) center / cover no-repeat;
  color: #fbf8f1;
  margin-top: 12px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(12 34 39 / 88%) 0%, rgb(12 34 39 / 62%) 45%, rgb(12 34 39 / 0%) 75%),
    linear-gradient(180deg, rgb(12 34 39 / 0%) 40%, rgb(12 34 39 / 55%) 100%);
}
.hero-body { position: relative; padding: 24px; max-width: 640px; }
.hero h1 { margin-bottom: 0.25rem; }
.hero p { margin: 0; opacity: 0.92; }
.hero .eyebrow { color: #c9d8c6; }
@media (min-width: 860px) { .hero { min-height: 300px; } .hero-body { padding: 32px 36px; } }
@media (max-width: 600px) { .hero { background-position: 70% center; } .hero::before { background: rgb(12 34 39 / 68%); } }

.stat-row { display: flex; gap: 12px; margin-bottom: 20px; }
.stat { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); }
.stat-value { font-family: var(--display); font-size: 2.2rem; font-weight: 600; line-height: 1; color: var(--teal); }
@media (prefers-color-scheme: dark) { .stat-value { color: var(--accent-strong); } }
.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

label { display: block; font-weight: 600; font-size: 0.9rem; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 48px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-strong); outline-offset: 1px; border-color: transparent; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem var(--body);
  border: 0; border-radius: 10px;
  padding: 12px 20px; min-height: 48px;
  cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none;
}
.btn:hover { filter: brightness(0.96); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ok { background: var(--teal); color: var(--teal-ink); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 0.875rem; }

.alert { border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; background: var(--warn-bg); }
.alert-ok { background: var(--ok-bg); }

.queue-list { list-style: none; margin: 0; padding: 0; }
.queue-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.queue-list li:last-child { border-bottom: 0; }
.queue-pos {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 0.875rem;
}
.queue-name { flex: 1; font-weight: 500; }
.badge { font-size: 0.75rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge-member { background: var(--teal); color: var(--teal-ink); border-color: transparent; }
.badge-red { background: var(--clay); color: var(--clay-ink); border-color: transparent; }

.ticket { text-align: center; }
.ticket-arty { width: 120px; margin: 0 auto 8px; }
.ticket-pos { font-family: var(--display); font-size: 5rem; font-weight: 700; line-height: 1; color: var(--teal); }
@media (prefers-color-scheme: dark) { .ticket-pos { color: var(--accent-strong); } }
.ticket-label { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.85rem; color: var(--muted); }

.empty { display: flex; align-items: center; gap: 14px; }
.empty img { width: 64px; flex: none; }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 0.875rem; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.footer-row strong { color: var(--ink); }
.tagline { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.75rem; }

/* Loyalty punch card */
.stamp-card { border: 1px dashed var(--accent-strong); border-radius: 12px; padding: 14px; margin: 16px 0; background: var(--bg); }
.stamp-card-ready { border-style: solid; background: var(--ok-bg); }
.points-head { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.points-balance { font-family: var(--display); font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--teal); }
@media (prefers-color-scheme: dark) { .points-balance { color: var(--accent-strong); } }
.points-label { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; color: var(--muted); }
.meter { height: 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; margin: 10px 0; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.stamp-caption { font-size: 0.9rem; font-weight: 600; text-align: center; }
.perk { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--muted); margin: -4px 0 16px; }

/* Spread Smiles Club "drop" */
.drop {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; justify-content: space-between;
  margin-top: 16px; padding: 18px 22px; border-radius: var(--radius);
  background: var(--teal); color: var(--teal-ink); text-decoration: none;
  box-shadow: var(--shadow);
}
.drop-tag { display: inline-block; font: 700 0.7rem var(--body); letter-spacing: 0.14em; text-transform: uppercase; background: var(--clay); color: var(--clay-ink); padding: 3px 8px; border-radius: 999px; margin-bottom: 6px; }
.drop-title { font-family: var(--display); font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.15; }
.drop-meta { font-size: 0.9rem; opacity: 0.85; }
.drop .btn { background: var(--accent); color: var(--accent-ink); }

/* Barber avatars and profile cards */
.avatar {
  border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 600;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-md { width: 48px; height: 48px; font-size: 1.1rem; }
.barber-card { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.barber-card:last-child { border-bottom: 0; }
.barber-card-body { flex: 1; min-width: 0; }
.barber-card-name { font-weight: 600; }
.barber-card-spec { font-size: 0.8rem; color: var(--accent-strong); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.barber-card-bio { font-size: 0.875rem; color: var(--muted); margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.barber-card-links { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 0.875rem; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 16px 0 20px; }
.hero-btn { margin-top: 14px; }
