/* StaffBee website: shared styles for index.html and legal.html.
   Colours are tokens; dark mode follows the OS, and data-theme on <html>
   can force either one. */

:root {
  color-scheme: light dark;
  --bg: #FBF8F2;          /* register paper */
  --bg-alt: #F3EDE1;
  --surface: #FFFFFF;
  --ink: #15221F;
  --ink-2: #44534F;
  --line: #E2DACA;
  --rule: rgba(15, 118, 110, .10);  /* ledger lines */
  --brand: #0F766E;
  --brand-ink: #FFFFFF;
  --brand-strong: #0B5E58;
  --brand-soft: #DDF1EC;
  --brand-deep: #0A4F4A;
  --honey: #E9B530;
  --honey-soft: #FBEFC8;
  --hex: rgba(15, 118, 110, .09);
  --present: #15803D;
  --late: #B45309;
  --leave: #0369A1;
  --shadow: 0 28px 60px -28px rgba(10, 60, 54, .45);
  --radius: 18px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1A18;
    --bg-alt: #0E2320;
    --surface: #112A27;
    --ink: #E6F2EF;
    --ink-2: #A6C0BA;
    --line: #21403B;
    --rule: rgba(45, 212, 191, .08);
    --brand: #2DD4BF;
    --brand-ink: #032B27;
    --brand-strong: #5EEAD4;
    --brand-soft: #123A35;
    --brand-deep: #0F766E;
    --honey: #F4C542;
    --honey-soft: #3A3116;
    --hex: rgba(45, 212, 191, .07);
    --present: #4ADE80;
    --late: #FBBF24;
    --leave: #38BDF8;
    --shadow: 0 28px 60px -24px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  --bg: #0A1A18; --bg-alt: #0E2320; --surface: #112A27; --ink: #E6F2EF; --ink-2: #A6C0BA;
  --line: #21403B; --rule: rgba(45, 212, 191, .08); --brand: #2DD4BF; --brand-ink: #032B27;
  --brand-strong: #5EEAD4; --brand-soft: #123A35; --brand-deep: #0F766E; --honey: #F4C542;
  --honey-soft: #3A3116; --hex: rgba(45, 212, 191, .07); --present: #4ADE80; --late: #FBBF24;
  --leave: #38BDF8; --shadow: 0 28px 60px -24px rgba(0, 0, 0, .7);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; font-variation-settings: "SOFT" 60, "opsz" 72; }
h1 { font-size: clamp(2.3rem, 7.5vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 5vw, 2.8rem); }
h3 { font-size: 1.3rem; font-variation-settings: "SOFT" 60, "opsz" 24; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Honeycomb: a tile of pointy-top hexagons, drawn as a mask so it takes the theme colour. */
.honeycomb { position: relative; isolation: isolate; }
.honeycomb::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--hex);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97'%3E%3Cpath d='M28 0L56 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") 0 0 / 56px 97px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97'%3E%3Cpath d='M28 0L56 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") 0 0 / 56px 97px;
}
.hex { clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; justify-content: center;
  min-height: 48px; padding: .7em 1.3em; border-radius: 14px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 24px -12px var(--brand); }
.btn-primary:hover { background: var(--brand-strong); text-decoration: none; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); text-decoration: none; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-weight: 500; font-size: .72rem; opacity: .85; letter-spacing: .02em; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.3rem/1 var(--display); font-variation-settings: "SOFT" 80, "opsz" 30; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 10px 12px; border-radius: 10px; }
.site-nav a:not(.btn):hover { color: var(--ink); background: var(--bg-alt); }
.site-nav .btn { min-height: 42px; padding: .5em 1em; font-size: .95rem; }
@media (max-width: 859px) { .site-nav a:not(.btn) { display: none; } }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 40px 0 32px; font-size: .95rem; color: var(--ink-2); }
.site-foot .wrap { display: grid; gap: 24px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot nav a { color: var(--ink); }
@media (min-width: 720px) { .site-foot .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.foot-note { margin: 0; }

/* ---------- Placeholders: details only the business can supply ---------- */
.ph { background: var(--honey-soft); color: var(--ink); border-bottom: 2px dashed var(--honey); padding: 0 .25em; border-radius: 4px; font-weight: 500; }
