/* ==========================================================================
   GSW Transport — base.css
   Design tokens, reset, typography, utilities.
   Load order: base.css -> layout.css -> components.css -> pages.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Neutrals ------------------------------------------------------------- */
  --c-ink:        #1d1d1f;   /* headings, primary buttons        17.4:1 on white */
  --c-body:       #424245;   /* body copy                         9.9:1 on white */
  --c-muted:      #6e6e73;   /* secondary copy                    4.9:1 on white */
  --c-line:       #d2d2d7;   /* decorative hairlines and dividers               */
  --c-control:    #86868b;   /* interactive control borders        3.6:1        */
  --c-line-soft:  #e8e8ed;
  --c-surface:    #ffffff;
  --c-surface-alt:#f5f5f7;   /* section + card tint                             */
  --c-surface-3:  #ececf0;
  --c-dark:       #14181d;   /* dark sections                                   */
  --c-dark-soft:  #1f242b;

  /* Brand ---------------------------------------------------------------- */
  --c-accent:      #d2650e;  /* brand orange — fills, marks, graphics           */
  --c-accent-deep: #b85c0a;  /* orange that carries white text     4.6:1        */
  --c-accent-text: #a9530a;  /* orange as text on white            5.3:1        */
  --c-accent-soft: #fdeadb;
  --c-accent-lift: #ff9a4d;  /* orange on dark backgrounds         7.9:1        */

  /* Status --------------------------------------------------------------- */
  --c-ok:       #146c43;  --c-ok-bg:    #e7f4ec;
  --c-warn:     #8a5800;  --c-warn-bg:  #fdf2dd;
  --c-bad:      #a5231c;  --c-bad-bg:   #fbeae9;
  --c-info:     #1c5a87;  --c-info-bg:  #e8f1f8;

  /* Typography ----------------------------------------------------------- */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg:   1.1875rem;
  --fs-xl:   1.375rem;

  /* Spacing -------------------------------------------------------------- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 5.5rem;   --sp-10: 7.5rem;

  /* Shape ---------------------------------------------------------------- */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 20px;  --r-xl: 28px;  --r-pill: 980px;

  --sh-1: 0 1px 3px rgba(0, 0, 0, 0.05);
  --sh-2: 0 4px 20px rgba(0, 0, 0, 0.07);
  --sh-3: 0 18px 48px rgba(0, 0, 0, 0.12);

  /* Layout --------------------------------------------------------------- */
  --container: 1040px;
  --container-wide: 1200px;
  --container-text: 720px;
  --header-h: 56px;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --t: 220ms var(--ease);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-body);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-4);
  color: var(--c-ink);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.022em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; }
h4 { font-size: var(--fs-lg); line-height: 1.3; }
h5, h6 { font-size: var(--fs-base); line-height: 1.4; }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--c-ink); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--c-accent-text); }

img, svg, video { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.2rem; }
li { margin-bottom: var(--sp-2); }
li:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--c-line-soft); margin: var(--sp-6) 0; }

strong, b { color: var(--c-ink); font-weight: 600; }
small { font-size: var(--fs-sm); }
address { font-style: normal; }
figure { margin: 0; }

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--c-surface-alt);
  border-radius: var(--r-sm);
  padding: 0.15em 0.4em;
}

/* --------------------------------------------------------------------------
   3. Focus + accessibility helpers
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--c-accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--c-ink);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Utilities — deliberately few
   -------------------------------------------------------------------------- */
.t-center { text-align: center; }
.t-muted  { color: var(--c-muted); }
.t-sm     { font-size: var(--fs-sm); }
.t-xs     { font-size: var(--fs-xs); }
.nowrap   { white-space: nowrap; }

.lead {
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.5;
  color: var(--c-muted);
  letter-spacing: -0.01em;
}

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }

.list-plain { list-style: none; padding-left: 0; }

.list-tick { list-style: none; padding-left: 0; }
.list-tick li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--sp-3);
}
.list-tick li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.46em;
  width: 1.05rem;
  height: 1.05rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a9530a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   5. Motion + print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .site-footer, .to-top, .no-print { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
