/* ============================================================
   greyhour-brand.css — TheGreyHour.Studio web brand kit
   Drop-in stylesheet. No build step, no framework.

   1) Add the fonts to your <head>:
      <link rel="preconnect" href="https://fonts.googleapis.com">
      <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
      <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">

   2) Link this file:
      <link rel="stylesheet" href="greyhour-brand.css">

   3) Use the tokens (var(--teal)) and component classes (.btn, .card,
      .throb, …) anywhere. A full live reference is in greyhour-starter.html.
   ============================================================ */

/* ---- TOKENS ---- */
:root {
  /* base */
  --ink:        #0f0f10;   /* deepest bg / splash */
  --bg:         #18181a;   /* page background */
  --surface:    #1f1f22;   /* cards, panels */
  --charcoal:   #2e2e2e;   /* the mark, tiles */
  --line:       rgba(255,255,255,0.07);
  --line-2:     rgba(255,255,255,0.12);

  /* brand */
  --teal:       #42c9c9;   /* primary / actions / the plus */
  --teal-dim:   #2f9a9a;
  --teal-soft:  rgba(66,201,201,0.14);

  /* accents — comfortable, never neon */
  --amber:      #e3b261;
  --coral:      #e07a5f;
  --violet:     #9b8cd9;

  /* text */
  --text:       #ece9e3;
  --text-soft:  #a5a39e;
  --text-mute:  #6f7370;
  --text-faint: #545452;

  /* type */
  --font-ui:    'Space Grotesk', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, monospace;

  /* shape */
  --radius:      14px;
  --radius-lg:   18px;
  --radius-pill: 999px;
}

/* ---- BASE (optional — remove if you have your own reset) ---- */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; }
::selection { background: var(--teal-soft); }

/* ---- TYPE HELPERS ---- */
.mono  { font-family: var(--font-mono); }
.label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
         text-transform: uppercase; color: var(--text-mute); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 500;
  padding: 11px 18px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--teal); color: var(--ink);
  transition: filter .15s ease, transform .05s ease;
}
.btn:hover  { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn--ghost:hover { background: rgba(255,255,255,0.04); filter: none; }

/* ---- CARD ---- */
.card { background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius-lg); padding: 28px; }

/* ---- INPUT ---- */
.input {
  width: 100%; font-family: var(--font-mono); font-size: 14px;
  color: var(--text); background: var(--ink);
  border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 14px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--text-faint); }
.input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }

/* ---- TAG / BADGE ---- */
.tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-soft);
       border: 1px solid var(--line-2); border-radius: var(--radius-pill); padding: 6px 12px; }
.tag--teal { color: var(--teal); border-color: var(--teal); }

/* ---- PROGRESS ---- */
.track { height: 7px; border-radius: var(--radius-pill);
         background: rgba(255,255,255,0.08); overflow: hidden; }
.fill  { height: 100%; border-radius: var(--radius-pill);
         background: linear-gradient(90deg, var(--teal-dim), var(--teal));
         box-shadow: 0 0 12px rgba(66,201,201,.5); }

/* ---- LOADERS / THROBBERS ---- */
/* arc spinner */
.throb { width: 26px; height: 26px; border-radius: 50%;
         border: 3px solid var(--teal-soft); border-top-color: var(--teal);
         animation: throb-spin .8s linear infinite; }
.throb--sm { width: 16px; height: 16px; border-width: 2px; }
.throb--lg { width: 40px; height: 40px; border-width: 4px; }
@keyframes throb-spin { to { transform: rotate(360deg); } }

/* flipping hourglass — wrap your logo <svg> in .hg-throb */
.hg-throb { display: inline-flex; animation: hg-flip 1.6s cubic-bezier(.7,0,.3,1) infinite; }
@keyframes hg-flip {
  0%, 28%  { transform: rotate(0deg); }
  50%, 78% { transform: rotate(180deg); }
  100%     { transform: rotate(360deg); }
}

/* pulsing dots — .dots > span ×3 */
.dots { display: inline-flex; gap: 7px; align-items: center; }
.dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--teal);
             animation: dot-pulse 1.1s ease-in-out infinite; }
.dots span:nth-child(2) { animation-delay: .18s; }
.dots span:nth-child(3) { animation-delay: .36s; }
@keyframes dot-pulse {
  0%, 100% { opacity: .25; transform: scale(.7); }
  40%      { opacity: 1;  transform: scale(1); }
}

/* ---- CODE BLOCK ---- */
.code { font-family: var(--font-mono); font-size: 13px; color: var(--teal);
        background: var(--ink); border: 1px solid var(--line);
        border-radius: 10px; padding: 14px 16px; overflow-x: auto;
        white-space: pre; display: block; }
