/* Design tokens — 8pt soft grid, 16px base. Copied from the standing design
   system and adjusted to Karaoke Rentals Cebu's brand (teal/coral, matching
   the Page's profile/cover art). */

:root {
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --text-caption:      0.75rem;
  --text-body:         1rem;
  --text-lead:         1.25rem;
  --text-h3:           1.5rem;
  --text-h2:           2rem;
  --text-h1:           2.5rem;

  --leading-caption:   16px;
  --leading-body:      24px;
  --leading-lead:      28px;
  --leading-h3:        32px;
  --leading-h2:        40px;
  --leading-h1:        48px;

  --weight-regular:    400;
  --weight-medium:     500;
  --weight-semibold:   600;
  --weight-bold:       700;
  --tracking-caps:     0.04em;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:  16px;
  --radius-full: 999px;

  --touch-target:     44px;
  --touch-target-lg:  48px;
  --touch-gap:         8px;
  --transition:      160ms ease;

  --grid-columns:        12;
  --gutter:              16px;
  --container-max:     1200px;
  --container-padding:   16px;

  --bp-sm:  480px;
  --bp-md:  768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;

  --color-bg:            #ffffff;
  --color-surface:       #f3f8f6;
  --color-surface-raised:#ffffff;
  --color-border:        #d8e3df;
  --color-border-strong: #a9beb7;

  --color-text:          #15181c;
  --color-text-muted:    #59616d;
  --color-text-inverse:  #ffffff;

  /* Brand accent: teal, matching the Page's profile/cover art (#0F6E56). */
  --color-accent:         #0b5c47;
  --color-accent-hover:   #084c3b;
  --color-accent-subtle:  #e6f3ef;
  --color-on-accent:      #ffffff;

  --color-success:        #146c37;
  --color-success-subtle: #e6f4ec;
  --color-warning:        #8a5a00;
  --color-warning-subtle: #fdf2dc;
  --color-danger:         #b3261e;
  --color-danger-subtle:  #fdeceb;

  --shadow-sm: 0 1px 2px rgb(15 24 32 / 0.06);
  --shadow-md: 0 2px 8px rgb(15 24 32 / 0.08);
  --shadow-lg: 0 8px 24px rgb(15 24 32 / 0.12);

  --focus-ring: 0 0 0 3px rgb(11 92 71 / 0.35);
}

@media (min-width: 1024px) {
  :root {
    --text-h1:    3.5rem;
    --leading-h1: 64px;
    --gutter:     24px;
    --container-padding: 24px;
  }
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg:             #0e1116;
    --color-surface:        #141a18;
    --color-surface-raised: #1a2220;
    --color-border:         #2a3733;
    --color-border-strong:  #41544d;

    --color-text:           #e9ecf1;
    --color-text-muted:     #a2abb8;
    --color-text-inverse:   #0e1116;

    --color-accent:         #5fd4ac;
    --color-accent-hover:   #80e0bf;
    --color-accent-subtle:  #10251f;
    --color-on-accent:      #0e1116;

    --color-success:        #6ed49b;
    --color-success-subtle: #10251a;
    --color-warning:        #e8bd6a;
    --color-warning-subtle: #2a2011;
    --color-danger:         #ff9a92;
    --color-danger-subtle:  #2d1513;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 2px 8px rgb(0 0 0 / 0.45);
    --shadow-lg: 0 8px 24px rgb(0 0 0 / 0.5);

    --focus-ring: 0 0 0 3px rgb(95 212 172 / 0.4);
  }
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

h1 { font-size: var(--text-h1); line-height: var(--leading-h1); font-weight: var(--weight-bold);     margin: 0; }
h2 { font-size: var(--text-h2); line-height: var(--leading-h2); font-weight: var(--weight-semibold); margin: 0; }
h3 { font-size: var(--text-h3); line-height: var(--leading-h3); font-weight: var(--weight-semibold); margin: 0; }
p  { margin: 0; }

a {
  color: var(--color-accent);
  text-underline-offset: 2px;
}
a:hover { color: var(--color-accent-hover); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

button, [role="button"], a.button, input[type="submit"] {
  min-height: var(--touch-target);
  min-width:  var(--touch-target);
  font-family: inherit;
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.button-row { display: flex; flex-wrap: wrap; gap: var(--touch-gap); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
