/* Hewston brand tokens, Version 5 (the clean look, title case, amber). Import once, then use the variables everywhere. */
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@600&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* Color */
  --hw-ink: #0E1116;          /* primary text, logo, dark sections, primary buttons */
  --hw-paper: #F3F4F6;        /* sidebars, cards, quiet bands */
  --hw-surface: #FFFFFF;      /* page background */
  --hw-fill: #E8EAEE;         /* soft gray fill: chips, search, secondary buttons */
  --hw-fill-hover: #DDE0E6;
  --hw-signal: #E5642F;       /* the satellite: one highlight per screen */
  --hw-signal-deep: #C2410C;  /* orange text and links on light backgrounds */
  --hw-slate: #4A5261;        /* secondary text on light */
  --hw-line: #D9DCE2;         /* hairlines and dividers on light */
  --hw-night: #171B22;        /* cards on ink */
  --hw-fill-dark: #232934;    /* soft fill on ink */
  --hw-mist: #A9B1BD;         /* secondary text on dark */
  --hw-line-dark: #2A303A;    /* hairlines and dividers on dark */

  /* Status colors. Green means good. Red means off, needs you, or emergency. */
  --hw-good: #1B7F3B;
  --hw-good-night: #5BD08A;
  --hw-alert: #C62828;
  --hw-alert-night: #FF6B5E;
  --hw-alert-soft: #FDF0EE;   /* quiet background behind a "needs you" row */

  /* Amber: a fact the customer must read or remember. Words and a tinted box only, never a button. */
  --hw-important: #8A5A00;
  --hw-important-night: #FFC857;
  --hw-important-soft: #FFF4D9;
  --hw-important-soft-night: #2B2412;

  /* Type */
  --hw-font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --hw-font-body: "Inter", system-ui, sans-serif;
  --hw-font-mono: "JetBrains Mono", ui-monospace, monospace; /* codes and technical readouts only */

  --hw-text-hero: clamp(2.5rem, 6vw, 4.5rem);
  --hw-text-h1: clamp(2rem, 4.5vw, 3.25rem);
  --hw-text-h2: clamp(1.5rem, 3vw, 2.25rem);
  --hw-text-h3: 1.25rem;
  --hw-text-lead: 1.5rem;
  --hw-text-body: 1.0625rem;
  --hw-text-small: 0.9375rem;
  --hw-text-label: 0.8125rem;

  /* Shape and space */
  --hw-radius-card: 20px;
  --hw-radius-input: 12px;
  --hw-radius-pill: 999px;
  --hw-shadow-field: 0 0 0 1px var(--hw-line), 0 12px 32px rgba(14, 17, 22, 0.08);
  --hw-space-1: 4px;
  --hw-space-2: 8px;
  --hw-space-3: 16px;
  --hw-space-4: 24px;
  --hw-space-5: 40px;
  --hw-space-6: 64px;
  --hw-space-7: 104px;
  --hw-max-width: 1160px;
}

body {
  margin: 0;
  background: var(--hw-surface);
  color: var(--hw-ink);
  font-family: var(--hw-font-body);
  font-size: var(--hw-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--hw-font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0;
}

/* The gray line under a headline */
.hw-lead {
  font-size: var(--hw-text-lead);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--hw-slate);
}

/* Labels: small, never all capitals. Type short names in title case in the markup. */
.hw-label {
  font-family: var(--hw-font-body);
  font-weight: 600;
  font-size: var(--hw-text-label);
  color: var(--hw-slate);
}

/* Buttons: pills, body font. Type the words in title case in the markup ("Take the Tour"). */
.hw-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--hw-radius-pill);
  background: var(--hw-ink);
  color: var(--hw-surface);
  font-family: var(--hw-font-body);
  font-weight: 600;
  font-size: var(--hw-text-small);
  text-decoration: none;
  cursor: pointer;
}
.hw-button:hover { background: #232934; }
.hw-button:focus-visible { outline: 3px solid var(--hw-signal); outline-offset: 3px; }

/* Orange button: ink text only. One per screen. */
.hw-button--signal { background: var(--hw-signal); color: var(--hw-ink); }
.hw-button--signal:hover { background: #EC7A4A; }

/* Secondary button: soft gray fill. The old outline class points here too. */
.hw-button--soft,
.hw-button--ghost { background: var(--hw-fill); color: var(--hw-ink); box-shadow: none; }
.hw-button--soft:hover,
.hw-button--ghost:hover { background: var(--hw-fill-hover); }

/* Quiet button: words only, for the least important actions */
.hw-button--quiet { background: transparent; color: var(--hw-ink); padding: 0 14px; font-weight: 500; }
.hw-button--quiet:hover { background: var(--hw-paper); }

/* Emergency button: the only solid red control */
.hw-button--alert { background: var(--hw-alert); color: #FFFFFF; }
.hw-button--alert:hover { background: #B02222; }

/* Chips: topic shortcuts */
.hw-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--hw-radius-pill);
  background: var(--hw-fill);
  color: var(--hw-ink);
  font-family: var(--hw-font-body);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
}
.hw-chip:hover { background: var(--hw-fill-hover); }
.hw-chip:focus-visible { outline: 3px solid var(--hw-signal); outline-offset: 3px; }

/* Cards: soft gray, no border, no shadow */
.hw-card {
  background: var(--hw-paper);
  border: 0;
  border-radius: var(--hw-radius-card);
  padding: var(--hw-space-4);
}

/* The main ask field: the one place a shadow is allowed */
.hw-field {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 64px;
  padding: 0 10px;
  border-radius: var(--hw-radius-pill);
  background: var(--hw-surface);
  box-shadow: var(--hw-shadow-field);
}

/* Small inputs such as search */
.hw-input {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--hw-radius-input);
  background: var(--hw-fill);
  color: var(--hw-ink);
  font-family: var(--hw-font-body);
  font-size: var(--hw-text-small);
}
.hw-input:focus-visible { outline: 3px solid var(--hw-signal); outline-offset: 2px; }

/* Status: a small dot, then the name in bold and the state in gray */
.hw-status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--hw-text-label); }
.hw-status::before {
  content: "";
  flex: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hw-signal);
}
.hw-status--good::before { background: var(--hw-good); }
.hw-status--alert::before { background: var(--hw-alert); }
.hw-status b { font-weight: 600; }
.hw-status span { color: var(--hw-slate); }

/* A quiet "needs you" row */
.hw-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--hw-alert-soft);
  font-size: 0.875rem;
}
.hw-notice::before {
  content: "";
  flex: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hw-alert);
}

/* Important: amber words, or an amber tinted box, for a fact the customer must read or remember */
.hw-important { color: var(--hw-important); font-weight: 600; }
.hw-important-box {
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--hw-important-soft);
  color: var(--hw-ink);
  font-size: var(--hw-text-small);
}
.hw-important-box b,
.hw-important-box strong { color: var(--hw-important); font-weight: 600; }

/* Progress bar */
.hw-progress { height: 4px; border-radius: 2px; background: var(--hw-line); overflow: hidden; }
.hw-progress > * { display: block; height: 100%; border-radius: 2px; background: var(--hw-signal); }

/* Dark sections and night mode */
.hw-dark { background: var(--hw-ink); color: var(--hw-paper); }
.hw-dark .hw-label,
.hw-dark .hw-lead,
.hw-dark .hw-status span { color: var(--hw-mist); }
.hw-dark .hw-card { background: var(--hw-night); }
.hw-dark .hw-button { background: var(--hw-paper); color: var(--hw-ink); }
.hw-dark .hw-button:hover { background: #FFFFFF; }
.hw-dark .hw-button--signal { background: var(--hw-signal); color: var(--hw-ink); }
.hw-dark .hw-button--signal:hover { background: #EC7A4A; }
.hw-dark .hw-button--soft,
.hw-dark .hw-button--ghost,
.hw-dark .hw-chip,
.hw-dark .hw-input { background: var(--hw-fill-dark); color: var(--hw-paper); }
.hw-dark .hw-button--quiet { background: transparent; color: var(--hw-paper); }
.hw-dark .hw-button--alert { background: var(--hw-alert); color: #FFFFFF; }
.hw-dark .hw-status--good::before { background: var(--hw-good-night); }
.hw-dark .hw-status--alert::before { background: var(--hw-alert-night); }
.hw-dark .hw-progress { background: var(--hw-line-dark); }
.hw-dark .hw-important { color: var(--hw-important-night); }
.hw-dark .hw-important-box { background: var(--hw-important-soft-night); color: var(--hw-paper); }
.hw-dark .hw-important-box b,
.hw-dark .hw-important-box strong { color: var(--hw-important-night); }
