/* ============================================================
   [Your shop name] — Accra barber shop
   Palette: Nord (IDE). Type: JetBrains Mono, inverted weights.
   ============================================================ */

:root {
  /* Nord — light mode (Snow Storm surfaces, Polar Night ink) */
  --bg:        #eceff4;
  --bg-2:      #e5e9f0;
  --surface:   #ffffff;
  --surface-2: #f4f6fa;
  --ink:       #2e3440;
  --ink-soft:  #4c566a;
  --ink-faint: #7b8394;
  --line:      #d3d9e3;
  --accent:    #5e81ac;
  --accent-2:  #4f7a5f;
  --glow-a:    rgba(136, 192, 208, 0.30);
  --glow-b:    rgba(163, 190, 140, 0.24);
  --shadow:    0 1px 2px rgba(46, 52, 64, 0.06), 0 12px 32px -18px rgba(46, 52, 64, 0.35);
}

html[data-theme="dark"] {
  /* Nord — dark mode (Polar Night surfaces, Snow Storm ink) */
  --bg:        #2e3440;
  --bg-2:      #292e39;
  --surface:   #343b48;
  --surface-2: #3b4252;
  --ink:       #eceff4;
  --ink-soft:  #c8cfdb;
  --ink-faint: #98a1b3;
  --line:      #434c5e;
  --accent:    #88c0d0;
  --accent-2:  #a3be8c;
  --glow-a:    rgba(136, 192, 208, 0.16);
  --glow-b:    rgba(163, 190, 140, 0.12);
  --shadow:    0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -22px rgba(0, 0, 0, 0.7);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;                 /* inverted hierarchy: body is heavy */
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 8% 0%,  var(--glow-a) 0%, transparent 62%),
    radial-gradient(ellipse 65% 55% at 100% 88%, var(--glow-b) 0%, transparent 58%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }

/* Inverted weight hierarchy — headings are the light ones */
h1 { font-weight: 200; }
h2 { font-weight: 200; }
h3 { font-weight: 400; }

p { margin: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
}

/* ---------------- top bar ---------------- */

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

.topbar__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand__mark { color: var(--accent); font-weight: 200; }

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle__icon { font-size: 0.9rem; }

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

.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  padding: 0.55rem 0;
  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;
  gap: 3rem;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee__track .dot { color: var(--accent); }

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

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

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) 4rem;
}

.section-head { margin: 0 0 2.5rem; }
.section-head__num {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-head__title {
  font-size: clamp(2rem, 6vw, 3.25rem);
  margin-bottom: 1rem;
}
.section-head__note {
  max-width: 58ch;
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 0.92rem;
}

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

.hero {
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 0.98;
  margin-bottom: 1.75rem;
  max-width: 16ch;
}

.hero__lede {
  max-width: 56ch;
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 2.25rem;
}

.hero__actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn--solid { background: var(--accent); color: var(--bg); }
.btn--solid:hover { background: transparent; color: var(--accent); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--bg); }
.btn--full { width: 100%; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  margin: 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero__facts div { display: flex; gap: 0.6rem; align-items: baseline; }
.hero__facts dt {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero__facts dd { margin: 0; font-size: 0.85rem; font-weight: 700; }

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

.menu { padding: clamp(3rem, 8vw, 5.5rem) 0; border-bottom: 1px solid var(--line); }

.menu__grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

.menu__group h3 {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding-bottom: 0.6rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }

.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
}
.item__name { font-weight: 700; font-size: 0.95rem; }
.item__price {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--accent);
  white-space: nowrap;
}
.item__desc {
  grid-column: 1 / -1;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

.menu__foot {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------------- how it works ---------------- */

.how { padding: clamp(3rem, 8vw, 5.5rem) 0; border-bottom: 1px solid var(--line); }

.how__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  counter-reset: step;
}
.how__steps li {
  counter-increment: step;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.how__steps li::before {
  content: "0" counter(step);
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.how__steps h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.how__steps p {
  font-weight: 400;
  font-size: 0.87rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

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

.faq { padding: clamp(3rem, 8vw, 5.5rem) 0; border-bottom: 1px solid var(--line); }

.faq__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  transition: color 0.18s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.faq__q {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 46ch;
}

.faq__mark {
  font-size: 1.1rem;
  font-weight: 200;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq__item[open] .faq__mark { transform: rotate(45deg); }

.faq__a {
  padding: 0 0 1.5rem;
  max-width: 62ch;
}
.faq__a p {
  font-weight: 400;
  font-size: 0.87rem;
  color: var(--ink-soft);
}

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

.cards {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card h3 {
  font-size: 1.05rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.card__lead { font-weight: 400; font-size: 0.9rem; color: var(--ink); }
.card__note { font-weight: 400; font-size: 0.82rem; color: var(--ink-soft); }
.card__note--small { font-size: 0.78rem; }
.card__links { margin-top: auto; }

.link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.link:hover { color: var(--ink); border-bottom-color: var(--ink); }

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

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

.form { display: grid; gap: 1rem; }

.field { display: grid; gap: 0.4rem; }
.field__label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field input,
.field textarea {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
  min-height: 44px;
  width: 100%;
  resize: vertical;
  transition: border-color 0.18s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }
.field input:focus,
.field textarea:focus { border-color: var(--accent); outline: none; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.form__status {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--accent-2);
}
.form__status[data-state="error"] { color: #bf616a; }

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

.closing { padding: clamp(3rem, 8vw, 5.5rem) 0 1rem; }

.closing blockquote {
  margin: 0;
  max-width: 34ch;
}
.closing p {
  font-size: clamp(1.35rem, 4vw, 2.1rem);
  font-weight: 200;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.closing cite {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

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

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.site-foot__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
}
.site-foot__brand { font-weight: 700; font-size: 0.85rem; }
.site-foot__meta {
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.attribution {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.attribution a { color: var(--ink-soft); }

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

@media (min-width: 640px) {
  .how__steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .menu__grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 4rem; }
  .menu__group:first-child { grid-column: 1 / -1; }
  .menu__group:first-child .menu__list { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 3rem; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .how__steps { grid-template-columns: repeat(4, 1fr); }
  .faq__q { font-size: 1.05rem; }
}

/* ---------------- reduced motion ---------------- */

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