/* ============================================================================
   PROTOTYPE: "architectural" direction for foyai.com (homepage only).
   Loaded after site.css and scoped to html.arch, so removing the class or
   this <link> restores the current design exactly.

   - Type: Hubot Sans (wide, heavy) for headlines, Mona Sans for body,
     Martian Mono (narrow) for structural labels and the scroll ruler only.
   - Palette: neutral grey-white paper, near-black ink, rust kept for actions.
   - Shape: square corners, hairline drawing-sheet frame, no soft shadows on
     ordinary content.
   ============================================================================ */

html.arch {
  /* paper (token names kept so site.css picks the new values up) */
  --cream-page:   #F2F1EE;
  --cream-raise:  #FFFFFF;
  --cream-sink:   #E9E8E4;
  --cream-edge:   #D9D8D3;
  --cream:        #ECEBE7;

  /* ink */
  --ink-100:      #101014;
  --ink-80:       #24262C;
  --ink-60:       #565962;
  --ink-40:       #8A8D95;
  --ink-30:       #A4A6AD;
  --ink-20:       #C9CACE;
  --ink-line:     rgba(16,16,20,.12);
  --ink-line-strong: rgba(16,16,20,.24);

  /* type */
  /* type: from site.css (Hubot Sans / Mona Sans / Martian Mono) */

  --t-hero:       clamp(40px, 5.4vw, 72px);
  --t-display:    clamp(32px, 4vw, 52px);
  --ls-eyebrow:   0.08em;

  /* square */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;

  /* flat: shadows only where artifacts overlap */
  --shadow-1: none;
  --shadow-2: 0 1px 0 rgba(16,16,20,.05), 0 18px 40px -24px rgba(16,16,20,.28);
  --shadow-md: 0 1px 0 rgba(16,16,20,.05), 0 18px 40px -24px rgba(16,16,20,.28);

  /* drawing-sheet lines */
  --frame-line: rgba(16,16,20,.10);
  --tick:       rgba(16,16,20,.55);
  --accent:     #2F5BD3;
}

html.arch body {
  font-feature-settings: "kern";
  letter-spacing: -0.006em;
}

/* ── Display face: every display-font element is Outfit 600, upright (the
      wordmark's face, 2026-11 identity). ─────────────────────────────── */
html.arch :where(h1, h2, h3, h4, .section-display, .nav-feature-t, .hero-headline,
  .feature-title, .quote-text, .stat-value, .price, .footer-cta-headline,
  .tf-question, .preview-title, .how-copy h3, .how-title, .content-title,
  .way-t, .cap-name, .plan-pick h3, .scale-band h3, .how-close-line,
  .pain-head, .bigline, .cta-strip-text, .tile-title, .h2, .h3) {
  font-weight: 600;
  font-style: normal;
  font-stretch: 100%;
  letter-spacing: -0.012em;
}

html.arch :is(.hero-headline, .preview-title, .content-title, .how-title,
  .footer-cta-headline, .section-display, .bigline) {
  font-weight: 600;
  letter-spacing: -0.025em;
  word-spacing: 0.03em;
  line-height: 1.02;
  text-wrap: balance;
}
html.arch .hero-section--home .hero-headline { font-size: clamp(38px, 4.3vw, 60px); }
html.arch .hero-section--home .hero-headline br { display: none; }
html.arch :is(.preview-title, .content-title, .how-title, .footer-cta-headline) {
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.06;
}

/* No decorative italic words in headlines. */
html.arch :is(h1, h2, h3, .hero-headline, .preview-title, .content-title,
  .how-title, .footer-cta-headline, .section-display) em {
  font-style: normal;
  color: inherit;
}

/* ── Labels: the body sans in sentence case, never mono. ───────────────── */
html.arch :is(.eyebrow, .eyebrow-rule, .section-eyebrow) {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-60);
}
html.arch .seq-k { font-size: 10.5px; letter-spacing: 0; }
html.arch .seq-n { color: var(--ink-100); }

/* ── Buttons and cards: square, flat, crisp borders. ──────────────────── */
html.arch .btn { font-weight: 600; letter-spacing: -0.005em; }
html.arch .btn-primary { color: #FFFFFF; }
html.arch .btn-secondary { background: #FFFFFF; border-color: var(--ink-100); }
html.arch .btn-secondary:hover { background: var(--ink-100); color: #FFFFFF; border-color: var(--ink-100); }
html.arch .seq-card { box-shadow: none; border-color: var(--ink-line-strong); }
html.arch .seq-col { background: rgba(16,16,20,.03); }
html.arch .tpl { background: #FFFFFF; }

/* Ornamental blueprint fragments go; the frame below replaces them. */
html.arch .hero-grid-bg { display: none; }

/* ── Drawing-sheet frame: hairlines at the content edges, full height. ── */
@media (min-width: 1100px) {
  html.arch body::before {
    content: "";
    position: fixed;
    inset: 0 auto 0 50%;
    width: min(var(--content-max), calc(100vw - 112px));
    transform: translateX(-50%);
    border-left: 1px solid var(--frame-line);
    border-right: 1px solid var(--frame-line);
    pointer-events: none;
    z-index: 30;
  }
}

/* ── Scroll ruler (assets/proto/ruler.js) ─────────────────────────────── */
.ruler {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 56px;
  z-index: 45;
  overflow: hidden;
  cursor: crosshair;
  display: none;
}
@media (min-width: 1100px) and (hover: hover) { .ruler { display: block; } }
.ruler-glass {
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--cream-page) 60%, transparent);
  -webkit-mask-image: linear-gradient(to left, #000 45%, transparent);
          mask-image: linear-gradient(to left, #000 45%, transparent);
}
.ruler-track {
  position: absolute;
  inset: 0 0 auto 0;
  will-change: transform;
}
.ruler-tick {
  position: absolute;
  right: 0;
  height: 1px;
  width: 8px;
  background: var(--tick);
  opacity: .45;
  transform-origin: right center;
  transition: transform 140ms cubic-bezier(.2,.7,.3,1), opacity 140ms linear;
}
.ruler-tick.is-5  { width: 13px; opacity: .6; }
.ruler-tick.is-10 { width: 20px; opacity: .85; }
.ruler-num {
  position: absolute;
  right: 25px;
  transform: translateY(-50%);
  font: 400 9px/1 var(--font-label);
  letter-spacing: 0;
  color: var(--ink-60);
}
.ruler-mark {
  position: absolute;
  right: 0;
  width: 34px;
  height: 1px;
  background: var(--accent);
  will-change: transform;
}
.ruler-mark-num {
  position: absolute;
  right: 37px;
  top: 0;
  transform: translateY(-50%);
  font: 500 9.5px/1 var(--font-label);
  letter-spacing: 0;
  color: var(--accent);
  white-space: nowrap;
}

/* Section index: stacked bottom-right, the current section set large.
   Only where the margin is wide enough not to sit on content. */
.ruler-index {
  position: fixed;
  right: 72px;
  bottom: 28px;
  z-index: 44;
  display: none;
  text-align: right;
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.05;
}
@media (min-width: 1640px) and (hover: hover) { .ruler-index { display: block; } }
.ruler-index a {
  display: block;
  font-size: 15px;
  color: var(--ink-30);
  transition: color 160ms linear, font-size 220ms cubic-bezier(.2,.7,.3,1);
}
.ruler-index a:hover { color: var(--ink-80); }
.ruler-index a.is-on { color: var(--ink-100); font-size: 26px; }

@media (prefers-reduced-motion: reduce) {
  .ruler-tick, .ruler-index a { transition: none; }
}
