/* FILE-MAP:
purpose: >
  Layout layer for the /guide/ route of SINGULARITY — didactic breakdown of the
  direction (palette, type, signature tech, choreography, process), styled in
  the same design system as the experience (tokens from css/main.css).
depends_on:
  - path: main.css
    uses: [tokens, base, header, footer, grain]
used_by:
  - ../guide/index.html
touches:
  db_tables: []
  env: []
  config_files: []
  cache_keys: []
effects: []
invariants:
  - no cards — hierarchy via 1px rules and negative space (DENSITY 2)
  - contrast of all text >= 4.5:1 over the void background
category: frontend
kind: module
END-FILE-MAP */

/* guide uses the static poster as quiet backdrop; dim it further */
.guide-page #field-fallback { opacity: .5; }

.guide-main {
  position: relative;
  z-index: 1;
  padding: 11rem var(--edge) 6rem;
  max-width: 76rem;
  margin: 0 auto;
}

/* intro */
.guide-intro { max-width: 46rem; margin-bottom: 6.5rem; }
.guide-intro .kicker { margin-bottom: 1.75rem; }
.guide-intro h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 1.6rem + 5.4vw, 5.75rem);
  line-height: .98;
  letter-spacing: -.01em;
}
.guide-intro h1 em { color: var(--hot); }
.guide-intro .lede {
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: var(--lede);
  line-height: 1.65;
}

/* sections: label rail left, content right — 1px rules, no cards */
.g-sec {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 2.1fr);
  gap: 2rem 4rem;
  border-top: 1px solid rgba(154, 143, 128, .18);
  padding: 3.5rem 0 4.5rem;
}
.g-label { color: var(--amber); }
.g-label .idx { display: block; color: var(--muted); margin-bottom: .375rem; }

.g-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.g-body > p { max-width: 58ch; color: var(--ink); }
.g-body > p + p { margin-top: 1rem; }
.g-body .note { color: var(--muted); font-size: .9375rem; }

/* dials */
.dials { margin-top: 2rem; display: grid; gap: .875rem; max-width: 26rem; }
.dial { display: grid; grid-template-columns: 7.5rem 1fr 2.5rem; align-items: center; gap: 1rem; }
.dial .bar { height: 1px; background: rgba(154, 143, 128, .25); position: relative; }
.dial .bar i {
  position: absolute; left: 0; top: -0.5px;
  height: 2px; background: var(--amber);
  display: block;
}
.dial b { font-weight: 420; color: var(--ink); text-align: right; }

/* palette swatches */
.swatches {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 1.25rem;
}
.swatch .chip {
  height: 4.5rem;
  border: 1px solid rgba(154, 143, 128, .22);
  margin-bottom: .75rem;
}
.swatch dl { display: grid; gap: .125rem; }
.swatch dt { color: var(--ink); font-family: var(--mono); font-size: var(--micro); letter-spacing: .12em; text-transform: uppercase; }
.swatch dd { color: var(--muted); font-family: var(--mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; }

/* type specimens */
.specimen { border-top: 1px solid rgba(154, 143, 128, .12); padding: 1.75rem 0; }
.specimen:first-of-type { border-top: 0; padding-top: .5rem; }
.specimen .sample-serif { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; }
.specimen .sample-italic { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--amber); }
.specimen .sample-sans { font-size: 1.0625rem; max-width: 52ch; }
.specimen .sample-mono { font-family: var(--mono); font-size: .8125rem; letter-spacing: .08em; color: var(--ink); }
.specimen .who { margin-top: .875rem; display: block; }

/* code */
.g-body pre {
  margin-top: 1.75rem;
  padding: 1.5rem 1.75rem;
  border-left: 1px solid var(--amber-30);
  background: rgba(16, 12, 14, .72);
  overflow-x: auto;
}
.g-body code {
  font-family: var(--mono);
  font-size: .8125rem;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 420;
}
.g-body code b { color: var(--amber); font-weight: 420; }
.g-body code i { color: var(--ink); font-style: normal; }
.caption-code { margin-top: .625rem; display: block; }

/* process list */
.steps { margin-top: 1.5rem; display: grid; gap: 0; counter-reset: step; }
.steps li {
  list-style: none;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  padding: 1.375rem 0;
  border-top: 1px solid rgba(154, 143, 128, .12);
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: var(--micro);
  letter-spacing: .12em;
  color: var(--amber);
  padding-top: .3125rem;
}
.steps li p { color: var(--ink); max-width: 56ch; }
.steps li p span { color: var(--muted); }

/* back-to-experience band */
.g-return {
  border-top: 1px solid rgba(154, 143, 128, .18);
  padding: 5rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}
.g-return .display { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.5rem); max-width: none; }

@media (max-width: 899px) {
  .guide-main { padding-top: 8rem; }
  .g-sec { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem 0 3rem; }
  .steps li { grid-template-columns: 2.5rem 1fr; gap: 1rem; }
}
