/*
 * CodesWeave base layer. Consumes tokens.css only — no raw values.
 *
 * Load order matters: the Bootstrap 5 grid and the self-hosted web fonts
 * come first so the token layer and everything below can override them.
 * Pages link this file plus their own page stylesheet; shared component
 * styles are pulled in here so every screen gets identical chrome.
 */
/* Self-hosted so the site never depends on a font CDN at runtime.
   Only the weights and the latin subset the design actually uses. */
@import './vendor/fonts/lora-400.css';
@import './vendor/fonts/lora-500.css';
@import './vendor/fonts/lora-600.css';
@import './vendor/fonts/lora-700.css';
@import './vendor/fonts/dm-sans-500.css';
@import './vendor/fonts/dm-sans-600.css';
/* The design's third family. It carries one measured role — the quoted
   brief reference on a cart line — so only its 400 weight is loaded. */
@import './vendor/fonts/work-sans-400.css';
/* The fourth: the display family, and every line of the transactional
   email templates. Those set it at 400 and 700 only. */
@import './vendor/fonts/gelasio-400.css';
@import './vendor/fonts/gelasio-700.css';

@import './tokens.css';

@import './components/site-header.css';
@import './components/site-footer.css';
@import './components/button.css';
@import './components/currency-selector.css';
@import './components/account-shell.css';
@import './components/field.css';
@import './components/summary-card.css';
@import './components/order-summary.css';
/* The basket's editable line — Figma component 8663:9718 — shared by
   /cart/ and its own component canvas at /cart-item-row/. */
@import './components/cart-line.css';
@import './components/payment-shell.css';
/* The transactional email templates and the header and footer components
   (8467:4018, 8467:4015) they are built from. */
@import './components/email.css';
/* The running head and foot of the brand-guidelines sheets — Figma
   component 7501:4654 — and the sheet frame its auto-layout describes.
   Unrelated to the site header and footer above it. */
@import './components/header-footer.css';
/* The banded section the services and contact screens are both built
   out of; their page stylesheets add what is only true of one of them. */
@import './components/marketing-section.css';
/* The "start a project" band the example-works index and the process
   screen both close on — Figma component 7655:295 / 7668:27. */
@import './components/cta-band.css';
/* After field.css: the composer restates the field's fill and the input's
   block padding for the cards it sits in, and wins on source order. */
@import './components/brief-shell.css';
/* After button.css: both account-form and auth-shell restate the button's
   width, padding and justification for the form they sit in, and they win
   on source order rather than on specificity. */
@import './components/account-form.css';
@import './components/auth-shell.css';
/* After button.css for the same reason: the popup restates the button's
   width, padding and justification for the panel it sits in. */
@import './components/popup.css';

*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: light;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-surface);
  color: var(--color-body);
  font-family: var(--font-serif);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-serif);
}

p { margin: 0; }

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-standard),
              opacity var(--motion-fast) var(--ease-standard);
}

a:hover,
a:focus-visible { color: var(--color-ink); }

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

button, input, select, textarea { font: inherit; color: inherit; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* The content box the whole design is laid out in: 1440px of content
   inside a 1920px frame (240px of side padding) and 327px inside 375px. */
.shell {
  width: min(var(--shell-max), 100% - 2 * var(--shell-gutter));
  margin-inline: auto;
}

/* Horizontal rules, at the three measured weights. The reset is on the
   element so a component can still position a rule with a class. */
hr {
  border: 0;
  margin: 0;
}

.rule {
  height: 1px;
  background: var(--color-rule);
}

.rule--strong {
  height: 2px;
  background: var(--color-rule-strong);
}

/* Typographic roles shared by the chrome and by every page. */
.type-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
  text-transform: uppercase;
}

.type-label--sm {
  font-size: var(--type-label-sm-size);
  line-height: var(--type-label-sm-line);
}

.type-label--gold { color: var(--color-gold); }

.type-meta {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--type-meta-size);
  line-height: var(--type-meta-line);
}

.type-meta--sm {
  font-size: var(--type-label-sm-size);
  line-height: var(--type-label-sm-line);
}

.type-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--type-heading-size);
  line-height: var(--type-heading-line);
  color: var(--color-ink);
}

.type-lede {
  font-weight: 500;
  font-size: var(--type-lede-size);
  line-height: var(--type-lede-line);
}

/* Two breakpoints, one document. Where a screen's two frames write the
   same line differently — a stage named "Discover" at 1920 and
   "Interrogate" at 375, a card the narrow frame retitles, a section only
   one of them draws — both are in the markup and exactly one is shown.

   Each class only ever hides, and only at the width that does not draw
   it. Setting a positive display at the other width would work on a span
   and a paragraph but would flatten anything already laid out — a
   `.button` is a flex row, and reverting its display would take that
   away. */
@media (max-width: 991.98px) {
  .at-wide { display: none; }
}

@media (min-width: 992px) {
  .at-narrow { display: none; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--layer-menu);
  padding: 12px 20px;
  background: var(--color-ink);
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
}

.skip-link:focus {
  left: 0;
  color: var(--color-cream);
}

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