/* ==========================================================================
   styles.css — the SHARED FOUNDATION for all three direction drafts.

   What this file is: reset, type scale, spacing rhythm, layout shape and the
   responsive rules. It is deliberately COLOUR-FREE. Every colour each
   direction needs is declared inside that direction's own <style> block, so
   the three pages cannot drift apart structurally and a reviewer diffing them
   sees only visual-language differences.

   Grounding
   ----------
   Values that come from the product are named after their source in
   C:\Repository\main\client\src\ui\tokens.ts — that file is the single holder
   of the product's colour and geometry literals, and a colour-guard test
   fails the product's suite on a literal anywhere else. The site does not
   import it (it is TypeScript, and the site is hand-written HTML); the values
   below are transcribed with the token they came from, so the link back is
   visible rather than assumed.

   NO BUILD STEP. NO FRAMEWORK. NO NETWORK CALL. NO WEBFONT.
   Opens by double-click from the filesystem. Type is the system UI stack
   (Segoe UI Variable on Windows, per the product's wordmark face G9), so no
   font is fetched and no layout shifts on load.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* plan 111 D-3: smooth anchor scrolling. The reduced-motion block below
     (scroll-behavior: auto !important) already neutralises this for readers
     who asked for less motion. */
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
figure,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   2. Design tokens — GEOMETRY only. No colour in this file by design.
      Numbers that mirror the product carry the token name in a comment.
   -------------------------------------------------------------------------- */

:root {
  /* type scale — base 17px so a phone reads comfortably at arm's length */
  --font-ui: "Segoe UI Variable Display", "Segoe UI", -apple-system,
    BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Consolas", monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.125rem, 0.95rem + 0.8vw, 1.375rem);
  --step-2: clamp(1.375rem, 1.1rem + 1.3vw, 1.875rem);
  --step-3: clamp(2rem, 1.35rem + 3.2vw, 3.25rem);     /* raised: bigger titles */
    --step-4: clamp(2.75rem, 1.5rem + 6.2vw, 5.5rem);    /* raised: bigger hero */
    --step-5: clamp(3.25rem, 1.5rem + 8.6vw, 7rem);      /* the promise, largest */

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-body: 1.62;

  /* spacing rhythm */
  --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: 4.5rem;
  --sp-9: 6rem;

  /* the reading measure. tokens.ts chatColumn.maxWidth = 768 (the product's
     chat reading column) — the same number, because a conversation column is
     the one measure already proven legible in this product. */
  --measure: 68ch;
  --measure-narrow: 58ch;

  /* generous gutters on a desktop, comfortable ones on a phone */
  --gutter: clamp(1.25rem, 0.9rem + 2.2vw, 3.5rem);
  --block: clamp(3.5rem, 2.5rem + 5vw, 7rem);
}

/* --------------------------------------------------------------------------
   3. Page frame
   -------------------------------------------------------------------------- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* plan 111 amendment 01 (B1): the horizontal clip comes back HERE, but as
     `clip`, not `hidden`. `overflow-x: hidden` makes .page a scroll container,
     and every section lives inside it — so `animation-timeline: view()`
     resolved against a scrollport that never scrolls and the reveal was
     frozen (measured: identical section opacity at every scroll position,
     #start stuck at ~0.35, 2.05:1 contrast). `overflow-x: clip` clamps the
     hero bloom WITHOUT creating a scroll container, so the sticky header
     still sticks to the viewport and the view() timelines track the page
     scroll. AC4 (scrollWidth === clientWidth) still holds. */
  overflow-x: clip;
}

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* plan 111 amendment 01 (B1): the former `main { overflow-x: hidden }` rule
   is removed. As a scroll container, main made every section's
   `animation-timeline: view()` track main's (never-scrolling) scrollport and
   froze the reveal. The horizontal clip now lives on .page as `clip` (see
   above), which does not create a scroll container. */

.section {
  padding-block: var(--block);
}

/* A section's small label: the running head of the page, in words a
   construction professional uses. */
.eyebrow {
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--sp-4);
}

.section-title {
  font-size: var(--step-2);
  line-height: var(--leading-tight);
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-5);
  max-width: var(--measure);
}

.lede {
  font-size: var(--step-1);
  line-height: var(--leading-snug);
  max-width: var(--measure-narrow);
  margin-bottom: var(--sp-5);
}

.prose {
  font-size: var(--step-0);
  line-height: var(--leading-body);
  max-width: var(--measure);
}

.prose + .prose {
  margin-top: var(--sp-4);
}

/* --------------------------------------------------------------------------
   4. Masthead
   -------------------------------------------------------------------------- */

.masthead {
  padding-block: var(--sp-5);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-5);
}

/* plan 118 D-1: the lockup is the brand word (the traced mark's M + lowercase
   "etis"), so the shared rule drops text-transform and the tracking settles at
   0.01em — no uppercase wordmark remains in the served CSS. The live page's
   inline <style> restates these with the lockup's own spacing. (The old
   "upper case comes from CSS" convention is retired with plan 118: the
   wordmark is a word now, not a label.) */
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.04em;
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* The mark is an <img>; it must not be affected by the wordmark's upper-casing
   or inherit its weight as a replaced element. */
.mark {
  display: block;
  flex: none;
  text-transform: none;
}

.wordmark__sub {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-block: var(--block) var(--block);
}

.hero__title {
  font-size: var(--step-3);
  line-height: var(--leading-tight);
  font-weight: 680;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: var(--sp-5);
  text-wrap: balance;
}

.hero__support {
  font-size: var(--step-1);
  line-height: var(--leading-snug);
  max-width: var(--measure-narrow);
}

/* --------------------------------------------------------------------------
   6. Numbered capability list (shared by all directions)
   -------------------------------------------------------------------------- */

.items {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}

@media (min-width: 46rem) {
  .items {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5) var(--sp-6);
  }
}

.item__key {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.item__body {
  font-size: var(--step-0);
  line-height: var(--leading-body);
}

/* --------------------------------------------------------------------------
   7. Two-column honest-status block ("Where Metis is today")
   -------------------------------------------------------------------------- */

.status {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}

@media (min-width: 46rem) {
  .status {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }
}

.status__head {
  font-size: var(--step-0);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.status__list li {
  font-size: var(--step-0);
  line-height: var(--leading-body);
  padding-block: var(--sp-2);
}

.status__list li + li {
  margin-top: var(--sp-1);
}

/* --------------------------------------------------------------------------
   8. Slot blocks — placeholders the operator must fill. Deliberately loud:
      a placeholder that looks finished is a lie the page can then tell.
   -------------------------------------------------------------------------- */

.slot {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  line-height: 1.5;
  padding: var(--sp-4);
}

.slot__tag {
  display: block;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: var(--sp-2);
}

.figure {
  margin: var(--sp-5) 0 0;
}

.figure__box {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-7) var(--sp-4);
  border-style: dashed;
  border-width: 1px;
  min-height: 14rem;
}

.figure__caption {
  font-size: var(--step--1);
  line-height: 1.5;
  margin-top: var(--sp-3);
  max-width: var(--measure);
}

/* --------------------------------------------------------------------------
   9. Call to action
   -------------------------------------------------------------------------- */

.action {
  padding-block: var(--block);
}

.action__title {
  font-size: var(--step-2);
  line-height: var(--leading-tight);
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-4);
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: var(--sp-6);
  margin-top: auto;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  align-items: baseline;
  justify-content: space-between;
  font-size: var(--step--1);
}

/* --------------------------------------------------------------------------
   11. Accessibility basics — no colour-only meaning, visible focus.
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

@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;
  }
  /* plan 113 S4: a reader who asked for less motion did not ask for the page
     to stop them at panel edges. Scroll snapping is a motion effect, so it
     switches off here too; the offset still comes from the panels' own
     scroll-margin-top (anchors still land the panel top a full --header-h
     below the bar). !important, like every other rule in this block, because
     the page's own <style> block (later in the cascade, same specificity)
     sets scroll-snap-type: y mandatory at min-width 897 px (amendments 06
     and 07: none by default, mandatory only at >= 897 px). */
  html {
    scroll-snap-type: none !important;
  }
}

/* --------------------------------------------------------------------------
   12. Print — a construction reader may print the page for a site meeting.
      Both directions inherit this.
   -------------------------------------------------------------------------- */

@media print {
  .site-footer,
  .figure__box {
    display: none;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }
}