/*
 * ASK FOR TASK minimal company design system.
 *
 * This file is the canonical source for shared visual decisions. Historical
 * stylesheet names remain in use as component layers, but their global values
 * must resolve through these tokens rather than introduce a second palette,
 * type stack, spacing scale, radius, or shadow language.
 */
:root {
  color-scheme: light;

  /* Brand and interface colour */
  --color-ink: #17201d;
  --color-ink-soft: #34403b;
  --color-muted: #626c67;
  --color-paper: #ffffff;
  --color-paper-overlay: rgb(255 255 255 / 96%);
  --color-on-dark: #ffffff;
  --color-on-dark-muted: rgb(255 255 255 / 78%);
  --color-canvas: #f6f7f3;
  --color-canvas-deep: #eef1ec;
  --color-line: #d7dcd6;
  --color-line-strong: #b9c1ba;
  --color-blue: #2858d6;
  --color-blue-deep: #173b8f;
  --color-blue-soft: #eaf0ff;
  --color-lime: #cbff58;
  --color-lime-soft: #f0ffd1;
  --color-coral: #ff7864;
  --color-coral-soft: #fff0ea;
  --color-teal: #087565;
  --color-yellow: #ffd764;
  --color-yellow-soft: #fff6ce;
  --color-purple: #604ac7;
  --color-purple-soft: #f1effb;
  --color-green: #177061;
  --color-green-soft: #eaf5f1;
  --color-growth: #247347;
  --color-growth-soft: #edf6ef;
  --color-design: #a63d31;
  --color-design-soft: #fff0eb;
  --color-photography: #814812;
  --color-photography-soft: #f7f0e9;
  --color-website: #1f5fbf;
  --color-website-soft: #eef4ff;
  --color-app-soft: #e9f6f2;
  --color-default-soft: #edf2ff;

  /* Typography */
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --measure-copy: 68ch;
  --measure-wide: 1200px;
  --text-display: 58px;
  --text-display-compact: 50px;
  --text-heading: 38px;
  --text-heading-compact: 35px;
  --text-subheading: 23px;
  --text-body: 16px;
  --text-lead: 18px;
  --text-meta: 11px;
  --leading-display: 1.08;
  --leading-heading: 1.12;
  --leading-body: 1.55;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --gutter-desktop: 28px;
  --gutter-tablet: 18px;
  --gutter-mobile: 15px;
  --section-desktop: 80px;
  --section-mobile: 56px;

  /* Shape, elevation, and motion */
  --radius-none: 0;
  --radius-signal: 2px;
  --radius-compact: 3px;
  --radius-control: 4px;
  --radius-card: 6px;
  --radius-feature: 8px;
  --radius-round: 50%;
  --shadow-none: none;
  --shadow-transparent: 0 0 0 rgb(23 32 29 / 0%);
  --shadow-focus: 0 0 0 3px rgb(40 88 214 / 12%);
  --shadow-xs: 0 8px 20px rgb(23 32 29 / 8%);
  --shadow-sm: 0 10px 24px rgb(23 32 29 / 14%);
  --shadow-nav: 0 12px 30px rgb(23 32 29 / 7%);
  --shadow-card: 0 12px 30px rgb(23 32 29 / 9%);
  --shadow-soft: 0 18px 48px rgb(23 32 29 / 9%);
  --shadow-medium: 0 18px 38px rgb(23 32 29 / 9%);
  --shadow-large: 0 24px 70px rgb(23 32 29 / 24%);
  --shadow-hero: 0 28px 60px rgb(23 32 29 / 18%);
  --shadow-accent-inset: inset 0 3px 0 var(--page-accent);
  --motion-instant: 160ms;
  --motion-fast: 180ms;
  --motion-standard: 220ms;
  --motion-deliberate: 240ms;
  --motion-content: 280ms;
  --motion-medium: 320ms;
  --motion-emphasis: 360ms;
  --motion-section: 380ms;
  --motion-reveal: 420ms;
  --motion-reveal-slow: 450ms;
  --motion-gallery: 500ms;
  --motion-stagger: 520ms;
  --motion-enter: 620ms;
  --ease-standard: ease;
  --ease-out: ease-out;
  --ease-signal: ease-in-out;
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);

  /* Accessibility */
  --focus-ring: 0 0 0 3px rgb(40 88 214 / 28%);
}

/* Shared interaction baseline. Component layers may refine layout only. */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--color-blue-deep);
  outline-offset: 3px;
}

/*
 * Brand motif rule: the large outlined A4T graphic is a single-use signature
 * within a major composition. It remains decorative and cannot carry content.
 */
.home-hero::after {
  pointer-events: none;
  user-select: none;
}

/* Internal visual-QA route. This is a reference surface, not a public offer. */
.system-page {
  background: var(--color-canvas);
}

.system-main {
  padding-block: var(--space-9);
}

.system-intro {
  display: grid;
  max-width: 820px;
  gap: var(--space-5);
  margin-bottom: var(--space-9);
}

.system-intro h1 {
  font-size: clamp(42px, 6vw, 72px);
}

.system-section {
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-line-strong);
}

.system-section-head {
  display: grid;
  max-width: var(--measure-copy);
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.system-swatch,
.system-sample {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-paper);
}

.system-swatch-color {
  min-height: 112px;
  border-bottom: 1px solid var(--color-line);
  background: var(--swatch);
}

.system-swatch-copy,
.system-sample {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
}

.system-swatch-copy span,
.system-token-label {
  color: var(--color-muted);
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
}

.system-swatch-ink .system-swatch-color { background: var(--color-ink); }
.system-swatch-blue .system-swatch-color { background: var(--color-blue); }
.system-swatch-lime .system-swatch-color { background: var(--color-lime); }
.system-swatch-coral .system-swatch-color { background: var(--color-coral); }
.system-swatch-canvas .system-swatch-color { background: var(--color-canvas); }
.system-swatch-navy .system-swatch-color { background: var(--color-blue-deep); }
.system-swatch-line .system-swatch-color { background: var(--color-line); }
.system-swatch-paper .system-swatch-color { background: var(--color-paper); }

.system-type-list {
  display: grid;
  gap: var(--space-6);
}

.system-type-display {
  margin: 0;
  color: var(--color-ink);
  font-size: var(--text-display);
  font-weight: 560;
  line-height: var(--leading-display);
  text-wrap: balance;
}

.system-type-list article {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: baseline;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-line);
}

.system-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.system-form {
  display: grid;
  max-width: 720px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.system-form label {
  display: grid;
  gap: var(--space-2);
  color: var(--color-ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.system-form input,
.system-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-control);
  padding: var(--space-3) var(--space-4);
  color: var(--color-ink);
  background: var(--color-paper);
}

.system-form label:last-child {
  grid-column: 1 / -1;
}

.system-form textarea {
  min-height: 120px;
  resize: vertical;
}

.system-dark-sample {
  color: var(--color-paper);
  background: var(--color-blue-deep);
}

.system-dark-sample :where(h3, p) {
  color: inherit;
}

.system-dark-sample .system-token-label {
  color: var(--color-on-dark-muted);
}

@media (max-width: 900px) {
  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .system-main {
    padding-block: var(--space-8);
  }

  .system-grid,
  .system-type-list article,
  .system-form {
    grid-template-columns: 1fr;
  }

  .system-type-display {
    font-size: 36px;
  }

  .system-form label:last-child {
    grid-column: auto;
  }

  .system-action-row .button {
    width: 100%;
  }
}
