/* ============================================================
   [Your Shop Name] — barbershop, Accra
   Palette: Nord (polar night / snow storm / frost)
   Type: JetBrains Mono, weight inverted (thin headings, heavy body)
   ============================================================ */

:root {
  /* Nord — dark (default) */
  --bg:        #2e3440;
  --bg-2:      #3b4252;
  --bg-3:      #434c5e;
  --ink:       #eceff4;
  --ink-soft:  #d8dee9;
  --ink-mute:  #a9b3c4;
  --accent:    #88c0d0;
  --accent-2:  #8fbcbb;
  --secondary: #a3be8c;
  --warn:      #ebcb8b;
  --line:      rgba(216, 222, 233, 0.16);
  --line-soft: rgba(216, 222, 233, 0.09);
  --glow-a:    rgba(136, 192, 208, 0.16);
  --glow-b:    rgba(163, 190, 140, 0.10);
  --shadow:    0 1px 0 rgba(236, 239, 244, 0.04), 0 18px 40px -28px rgba(0, 0, 0, 0.7);

  --wrap: 68rem;
  --pad: clamp(1.25rem, 4vw, 3rem);

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Nord — light (snow storm) */
html[data-theme="light"] {
  --bg:        #eceff4;
  --bg-2:      #e5e9f0;
  --bg-3:      #d8dee9;
  --ink:       #2e3440;
  --ink-soft:  #3b4252;
  --ink-mute:  #4c566a;
  --accent:    #3b7f96;
  --accent-2:  #2f7f7c;
  --secondary: #4f7a3a;
  --warn:      #8a6a1f;
  --line:      rgba(46, 52, 64, 0.18);
  --line-soft: rgba(46, 52, 64, 0.10);
  --glow-a:    rgba(136, 192, 208, 0.34);
  --glow-b:    rgba(163, 190, 140, 0.24);
  --shadow:    0 1px 0 rgba(255, 255, 255, 0.6), 0 18px 40px -30px rgba(46, 52, 64, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--mono);
  font-weight: 700;                 /* deliberately heavy body */
  font-size: clamp(0.94rem, 0.9rem + 0.2vw, 1.02rem);
  line-height: 1.65;
  color: var(--ink-soft);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 8% 0%, var(--glow-a) 0%, transparent 62%),
    radial-gradient(ellipse 65% 50% at 100% 82%, var(--glow-b) 0%, transparent 58%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.22em; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap-narrow { max-width: 46rem; }

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

h1, h2, h3 { color: var(--ink); margin: 0; }

h1 {
  font-weight: 200;                  /* deliberately thin */
  font-size: clamp(2.1rem, 1.35rem + 3.6vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-block: 0.6rem 1.2rem;
}

h2 {
  font-weight: 200;
  font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-block: 0.5rem 1rem;
}

h3 {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

p { margin: 0 0 1rem; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 0.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.eyebrow .ln {
  color: var(--accent);
  opacity: 0.75;
  font-weight: 400;
}

.lede {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.14rem);
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 44ch;
}

.section-intro {
  font-weight: 400;
  color: var(--ink-mute);
  max-width: 58ch;
  margin-bottom: 2.5rem;
}

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-right: auto;
  min-height: 44px;
}
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); font-weight: 400; }
.brand-name { font-size: 0.98rem; }

.nav {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.6rem);
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink-mute);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 0.18s ease;
}
.nav a:hover { color: var(--accent); text-decoration: none; }

.theme-toggle {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  min-height: 44px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
  padding-block: 0.7rem;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: scroll 34s linear infinite;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}
.marquee-track .dot { color: var(--accent); opacity: 0.7; }

@keyframes scroll { to { transform: translateX(-50%); } }

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

.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 5rem); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease,
              color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.25rem 2rem;
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
}
.hero-facts dt {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.3rem;
}
.hero-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  font-size: 0.95rem;
}

/* ---------- sections ---------- */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt {
  background: color-mix(in srgb, var(--bg-2) 55%, transparent);
  border-block: 1px solid var(--line-soft);
}

/* ---------- menu ---------- */

.menu {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.menu-group h3 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
  margin-bottom: 1.25rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.menu .item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1.25rem;
  align-items: baseline;
  padding-block: 0.85rem;
  border-bottom: 1px dashed var(--line-soft);
}
.menu .item:last-child { border-bottom: 0; }

.item-name {
  margin: 0 0 0.2rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.item-desc {
  margin: 0;
  font-weight: 400;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-mute);
  max-width: 46ch;
}
.item-price {
  margin: 0;
  color: var(--secondary);
  font-weight: 500;
  font-size: 0.86rem;
  white-space: nowrap;
}

.menu-note {
  margin-top: 2.5rem;
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--ink-mute);
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.step {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.step-num {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
}
.step h3 { margin-bottom: 0.5rem; }
.step p {
  margin: 0;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--ink-mute);
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.card {
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: clamp(1.35rem, 3vw, 1.9rem);
  box-shadow: var(--shadow);
}
.card h3 {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.card-lead {
  color: var(--ink);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.7;
}
.card-note {
  margin: 0 0 0.6rem;
  font-weight: 400;
  font-size: 0.84rem;
  color: var(--ink-mute);
}

.hours { list-style: none; margin: 0 0 1rem; padding: 0; }
.hours li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding-block: 0.4rem;
  border-bottom: 1px dashed var(--line-soft);
  font-weight: 400;
  font-size: 0.88rem;
}
.hours li:last-child { border-bottom: 0; }
.hours li span:last-child { color: var(--ink); }
.hours li.closed span:last-child { color: var(--ink-mute); }

/* ---------- form ---------- */

.form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-full { grid-column: 1 / -1; }

.field label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field .opt { text-transform: none; letter-spacing: 0.04em; opacity: 0.7; }

.field input,
.field select,
.field textarea {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  min-height: 48px;
  width: 100%;
  transition: border-color 0.18s ease;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-mute); opacity: 0.75; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); outline: none; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-status {
  margin: 0.9rem 0 0;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--secondary);
}
.form-status.is-error { color: var(--warn); }

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--line-soft); }
.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding-block: 0.35rem;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 2rem 0.85rem 0;
  position: relative;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  color: var(--accent);
  font-weight: 400;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 0 0 1rem;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--ink-mute);
  max-width: 62ch;
}

/* ---------- closing ---------- */

.closing {
  padding-block: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--line-soft);
}
.closing blockquote {
  margin: 0;
  max-width: 34ch;
}
.closing p {
  font-weight: 200;
  font-size: clamp(1.35rem, 1rem + 1.8vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 1rem;
}
.closing cite {
  font-style: normal;
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
  padding-block: 2.5rem 4rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.footer-name {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.footer-line {
  margin: 0.2rem 0 0;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ink-mute);
}
.footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.footer-nav a {
  color: var(--ink-mute);
  font-size: 0.8rem;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-nav a:hover { color: var(--accent); text-decoration: none; }

.muted.attribution {
  flex-basis: 100%;
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-mute);
}
.muted.attribution a { color: var(--ink-mute); }
.muted.attribution a:hover { color: var(--accent); }

/* ---------- placeholders (owner fill-ins) ---------- */

[data-placeholder="true"] {
  color: var(--warn);
  text-decoration: underline dotted;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

/* ---------- responsive ---------- */

@media (max-width: 34rem) {
  .topbar-inner { min-height: auto; padding-block: 0.6rem; }
  .nav { order: 3; width: 100%; gap: 1rem; }
  .nav a { min-height: 40px; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .footer-nav { margin-left: 0; }
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .btn:hover { transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
