/* ============================================
   HANDY FAST EDDIE'S — Design Tokens
   Electrical & maintenance trade, Shenango Valley PA
   Palette: warm charcoal + copper/amber (wire + panel light)
   Type: Clash Grotesk (display) + Satoshi (body) — Fontshare
   ============================================ */

:root {
  /* Fluid type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6vw, 6.5rem);

  /* 4px spacing system */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.3rem;
  --radius-md: 0.45rem;
  --radius-lg: 0.65rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1220px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Clash Grotesk', 'Cabinet Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Satoshi', 'Inter', -apple-system, sans-serif;
}

/* ---------- LIGHT MODE ---------- */
:root,
[data-theme='light'] {
  --color-bg: #f5f2ec;
  --color-surface: #ffffff;
  --color-surface-2: #fbf9f5;
  --color-surface-offset: #ece6da;
  --color-surface-offset-2: #e2dac9;
  --color-surface-dynamic: #d8cdb6;
  --color-divider: #e2dac9;
  --color-border: #d6cdb9;

  --color-text: #201a12;
  --color-text-muted: #6b6152;
  --color-text-faint: #a89c86;
  --color-text-inverse: #faf7f1;

  --color-primary: #a8560f;
  --color-primary-hover: #82420a;
  --color-primary-active: #613007;
  --color-primary-highlight: #f0dbbd;

  --color-success: #3f6b2e;
  --color-success-highlight: #d9e5cf;
  --color-error: #9c3232;
  --color-error-highlight: #ecd4d4;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 60 / 0.08);
  --shadow-md: 0 4px 14px oklch(0.2 0.02 60 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.2 0.02 60 / 0.16);
}

/* ---------- DARK MODE ---------- */
[data-theme='dark'] {
  --color-bg: #16130d;
  --color-surface: #1c1811;
  --color-surface-2: #201c14;
  --color-surface-offset: #241f16;
  --color-surface-offset-2: #2b251a;
  --color-surface-dynamic: #362e1f;
  --color-divider: #2b2519;
  --color-border: #3a3222;

  --color-text: #ece5d6;
  --color-text-muted: #a89c86;
  --color-text-faint: #6e6350;
  --color-text-inverse: #1c1811;

  --color-primary: #e8a04c;
  --color-primary-hover: #f0b165;
  --color-primary-active: #f5c07f;
  --color-primary-highlight: #3c2c16;

  --color-success: #86b96a;
  --color-success-highlight: #2c3524;
  --color-error: #dd8484;
  --color-error-highlight: #3a2626;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 14px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #16130d;
    --color-surface: #1c1811;
    --color-surface-2: #201c14;
    --color-surface-offset: #241f16;
    --color-surface-offset-2: #2b251a;
    --color-surface-dynamic: #362e1f;
    --color-divider: #2b2519;
    --color-border: #3a3222;
    --color-text: #ece5d6;
    --color-text-muted: #a89c86;
    --color-text-faint: #6e6350;
    --color-text-inverse: #1c1811;
    --color-primary: #e8a04c;
    --color-primary-hover: #f0b165;
    --color-primary-active: #f5c07f;
    --color-primary-highlight: #3c2c16;
    --color-success: #86b96a;
    --color-success-highlight: #2c3524;
    --color-error: #dd8484;
    --color-error-highlight: #3a2626;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 14px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
  }
}

/* ============================================
   LAYOUT PRIMITIVES
   ============================================ */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-10));
}
.wrap--narrow {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

/* ============================================
   SKIP LINK
   ============================================ */
.skip-link {
  position: absolute;
  left: -999px;
  top: var(--space-2);
  z-index: 100;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
}
.skip-link:focus {
  left: var(--space-2);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-border) l c h / 0.6);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--hidden {
  transform: translateY(-100%);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand__name span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav__links {
  display: flex;
  gap: var(--space-6);
}
.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}
.nav__links a:hover {
  color: var(--color-text);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.phone-link {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .phone-link {
    display: flex;
  }
}
.phone-link svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

@media (max-width: 860px) {
  .nav__links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .btn.header-cta {
    display: none;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-text-faint);
}
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}
.btn svg {
  width: 17px;
  height: 17px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-block: clamp(var(--space-16), 12vw, var(--space-32)) clamp(var(--space-12), 8vw, var(--space-24));
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}
.hero__eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}
.hero h1 em {
  font-style: normal;
  color: var(--color-primary);
}
.hero__sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}
.hero__figure {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, oklch(0.1 0.02 60 / 0.55) 100%);
}
.hero__figure-caption {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  right: var(--space-5);
  color: #f5f1e8;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 2;
}

/* Stat row — asymmetric, typography driven (no icon circles) */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-8);
  gap: var(--space-6);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.stat__num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.stat__num span {
  color: var(--color-primary);
}
.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-head {
  margin-bottom: clamp(var(--space-10), 6vw, var(--space-16));
  max-width: 62ch;
}
.section-head--wide {
  max-width: 78ch;
}
.eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.contact__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: var(--space-4);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}
.section-head p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

/* ============================================
   SERVICES — asymmetric list, not icon-circle grid
   ============================================ */
.services {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.services__layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: start;
}
@media (max-width: 900px) {
  .services__layout {
    grid-template-columns: 1fr;
  }
}
.services__figure {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  position: sticky;
  top: calc(var(--space-16) + 60px);
  box-shadow: var(--shadow-md);
}
@media (max-width: 900px) {
  .services__figure {
    position: static;
    aspect-ratio: 16/9;
  }
}
.services__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-list {
  display: flex;
  flex-direction: column;
}
.service-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-5);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
.service-item:first-child {
  padding-top: 0;
}
.service-item__num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text-faint);
  font-weight: 500;
}
.service-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.service-item p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

/* ============================================
   ABOUT
   ============================================ */
.about__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: center;
}
@media (max-width: 900px) {
  .about__layout {
    grid-template-columns: 1fr;
  }
  .about__layout {
    display: flex;
    flex-direction: column-reverse;
  }
}
.about__figure {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
}
.about__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__body .eyebrow {
  margin-bottom: var(--space-3);
}
.about__body h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
}
.about__body p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}
.about__body p:last-of-type {
  margin-bottom: var(--space-6);
}
.credential-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.credential-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.credential-list svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   SERVICE AREA
   ============================================ */
.area {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.area__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: start;
}
@media (max-width: 860px) {
  .area__layout {
    grid-template-columns: 1fr;
  }
}
.area__towns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-2);
}
.area__towns li {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}
.area__note {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
}

/* ============================================
   PROCESS — numbered, not icon circles
   ============================================ */
.process__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-8), 4vw, var(--space-10));
}
@media (max-width: 860px) {
  .process__list {
    grid-template-columns: 1fr;
  }
}
.process-item__num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-primary-highlight);
  -webkit-text-stroke: 1.5px var(--color-primary);
  color: transparent;
  margin-bottom: var(--space-4);
  display: block;
}
[data-theme='dark'] .process-item__num {
  -webkit-text-stroke: 1.5px var(--color-primary);
}
.process-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.process-item p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

/* ============================================
   CONTACT / QUOTE FORM
   ============================================ */
.contact {
  background: var(--color-surface-offset);
  position: relative;
}
.contact__layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: flex-start;
}
@media (max-width: 900px) {
  .contact__layout {
    grid-template-columns: 1fr;
  }
}
.contact__info h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}
.contact__info p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid var(--color-divider);
}
.contact-detail:first-of-type {
  border-top: none;
}
.contact-detail svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-detail strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.contact-detail a,
.contact-detail span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.contact-detail a:hover {
  color: var(--color-primary);
}

.quote-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-md);
}
.quote-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.quote-card > p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  color: var(--color-text);
  font-size: var(--text-base);
  min-height: 44px;
}
.field textarea {
  min-height: 100px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}
.field-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  min-height: 1em;
}
.field--invalid input,
.field--invalid select,
.field--invalid textarea {
  border-color: var(--color-error);
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-2);
}

.form-status {
  display: none;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}
.form-status.is-visible {
  display: flex;
}
.form-status--success {
  background: var(--color-success-highlight);
  color: var(--color-success);
}
.form-status--error {
  background: var(--color-error-highlight);
  color: var(--color-error);
}
.form-status svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.quote-card.is-submitted .quote-form,
.quote-card.is-submitted h3,
.quote-card.is-submitted > p {
  display: none;
}
.confirm-state {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding-block: var(--space-6);
}
.quote-card.is-submitted .confirm-state {
  display: flex;
}
.confirm-state__icon {
  width: 48px;
  height: 48px;
  color: var(--color-success);
}
.confirm-state h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}
.confirm-state p {
  color: var(--color-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-8);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.footer__brand svg,
.footer__brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  color: var(--color-primary);
}
.footer__brand-text {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
}
.footer__brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
}
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.footer__meta a {
  color: inherit;
  text-decoration: none;
}
.footer__meta a:hover {
  color: var(--color-primary);
}
.footer__bottom {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ============================================
   MOBILE NAV DRAWER
   ============================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav.is-open {
  transform: translateX(0);
}
.mobile-nav__top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-10);
}
.mobile-nav__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.mobile-nav__links a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}
.mobile-nav__cta {
  margin-top: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ============================================
   ADMIN VIEW (hash-routed, password gated)
   ============================================ */
.admin-view {
  display: none;
  min-height: 100dvh;
  padding: clamp(var(--space-8), 5vw, var(--space-16));
}
.admin-view.is-active {
  display: block;
}
.admin-view .wrap {
  max-width: var(--content-wide);
}
.admin-gate {
  max-width: 420px;
  margin: 10vh auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-md);
}
.admin-gate h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.admin-gate p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.admin-table {
  width: 100%;
  font-size: var(--text-sm);
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  white-space: nowrap;
}
.admin-table td.wrap-cell {
  white-space: normal;
  min-width: 220px;
}
.admin-table th {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
}
.admin-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  gap: var(--space-4);
}
.admin-header h1 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
}
.admin-empty {
  text-align: center;
  padding: var(--space-16);
  color: var(--color-text-muted);
}

/* Skeleton loader */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-surface-offset) 25%,
    var(--color-surface-dynamic) 50%,
    var(--color-surface-offset) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
  height: 1.2em;
  margin-bottom: var(--space-2);
}

/* Spinner for form submit */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid oklch(from var(--color-text-inverse) l c h / 0.35);
  border-top-color: var(--color-text-inverse);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.is-loading .spinner {
  display: inline-block;
}
.is-loading .btn-label {
  opacity: 0.75;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
