/* The house font page (/fonts/fontland/). Everything typographic here is set in FL Fontland Display (Black unless a weight is chosen). */
.house { --house: FontlandDisplay, var(--display); }
.house .bento-text, .house-name, .house-line, .house-sum, .house-big, .house-grid, .house-tools button[data-insert] { font-family: var(--house); font-weight: 900; }
.house-hero { background: var(--navy, #192d54); color: var(--paper, #f4efe2); padding-block: clamp(3rem, 9vw, 7.5rem) clamp(2.5rem, 6vw, 5rem); }
.house-kicker { margin: 0 0 1rem; font: 500 1.05rem/1.3 var(--body); color: #9cc3ea; }
.house-name { margin: 0; font-size: clamp(4rem, 19vw, 19rem); line-height: 1.05; color: var(--paper, #f4efe2); }
.house-lead { max-width: 44rem; margin: clamp(1.2rem, 3vw, 2.4rem) 0 0; font: 500 clamp(1.15rem, 1.7vw, 1.5rem)/1.6 var(--body); }
.house-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-block-start: 1.8rem; }
.house-hero .button { border-color: var(--paper, #f4efe2); color: var(--paper, #f4efe2); }
.house-hero .button.primary { background: var(--paper, #f4efe2); color: var(--navy, #192d54); }
.house-note { max-width: 40rem; margin: 1.2rem 0 0; font-size: 1rem; line-height: 1.5; color: #c9d6ea; }
.house-line { margin: 0; padding-block: .1em .25em; font-size: clamp(3rem, 12.5vw, 12.5rem); line-height: 1.2; color: var(--navy, #192d54); border-block-end: 3px solid var(--navy, #192d54); outline: none; overflow-wrap: anywhere; cursor: text; }
.house-line:focus-visible { border-color: var(--tekhelet, #4a86c5); }
.house-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-start: 1.1rem; }
.house-tools button { min-width: 3rem; min-height: 3rem; padding: .35rem .9rem; border: 1px solid var(--navy, #192d54); border-radius: 10px; background: var(--white, #faf7ef); color: var(--navy, #192d54); font: 500 1rem/1 var(--body); cursor: pointer; }
.house-tools button[data-insert] { font-size: 1.5rem; }
.house-weight-rows { display: grid; gap: .1em; font-family: var(--house); font-size: clamp(1.7rem, 5.4vw, 5rem); line-height: 1.3; color: var(--navy, #192d54); }
.house-weight-rows p { margin: 0; display: flex; align-items: baseline; gap: 1.2rem; white-space: nowrap; overflow: hidden; border-block-end: 1px solid color-mix(in srgb, var(--navy, #192d54) 25%, transparent); }
.house-weight-rows span { flex: 0 0 4.5rem; font: 500 1rem/1 var(--body); color: var(--tekhelet, #4a86c5); }
.house-tools button:hover, .house-tools button[aria-pressed="true"] { background: var(--navy, #192d54); color: var(--paper, #f4efe2); }
.house-shekel, .house-star { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.house-star { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.house-sum { display: flex; align-items: center; justify-content: center; gap: .12em; direction: rtl; padding: clamp(1.2rem, 3vw, 3rem); border-radius: 14px; background: var(--white, #faf7ef); border: 1px solid var(--rule, #97a8bd); font-size: clamp(4rem, 13vw, 13rem); line-height: 1.1; }
.house-sum i { font: 400 .32em/1 var(--body); color: var(--muted, #4d5f79); padding-inline: .15em; }
.house-shin { color: var(--navy, #192d54); }
.house-het { color: var(--tekhelet, #4a86c5); }
.house-result { color: var(--navy, #192d54); }
.house-copy h2, .house-end h2 { margin: 0 0 .8rem; font: 400 clamp(1.9rem, 3.5vw, 3.15rem)/1.08 var(--display); }
.house-copy p, .house-end p { max-width: 36rem; margin: 0 0 .9rem; font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.65; }
.house-big { margin: 0; display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; background: var(--tekhelet, #4a86c5); color: var(--white, #faf7ef); font-size: clamp(9rem, 26vw, 24rem); line-height: 1; }
.house-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(4.2rem, 8.5vw, 7.5rem), 1fr)); gap: 1px; background: var(--rule, #97a8bd); border: 1px solid var(--rule, #97a8bd); border-radius: 14px; overflow: hidden; direction: rtl; }
.house-grid span { display: grid; place-items: center; aspect-ratio: 1; background: var(--white, #faf7ef); color: var(--navy, #192d54); font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: 1; }
.house-grid-small { margin-block-start: 1rem; grid-template-columns: repeat(auto-fill, minmax(clamp(3.4rem, 6vw, 5rem), 1fr)); }
.house-grid-small span { font-size: clamp(1.6rem, 3vw, 2.6rem); background: var(--paper, #f4efe2); }
.house-end { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); padding: clamp(1.6rem, 5vw, 4rem); border-radius: 18px; background: var(--navy, #192d54); color: var(--paper, #f4efe2); }
.house-end h2 { color: var(--paper, #f4efe2); }
.house-form { display: grid; gap: .9rem; align-content: start; }
.house-form label { display: grid; gap: .35rem; font: 500 1rem/1.3 var(--body); }
.house-form small { font-size: .875rem; opacity: .8; }
.house-form input, .house-form textarea { width: 100%; padding: .7rem .85rem; border: 1px solid #9cc3ea; border-radius: 10px; background: var(--white, #faf7ef); color: var(--navy, #192d54); font: 500 1.05rem/1.4 var(--body); }
.house-form input:focus-visible, .house-form textarea:focus-visible { outline: 3px solid var(--tekhelet, #4a86c5); outline-offset: 2px; }
.house-form .button.primary { justify-self: start; background: var(--paper, #f4efe2); color: var(--navy, #192d54); border-color: var(--paper, #f4efe2); }
.house-form-note, .house-form-status { margin: 0; font-size: .95rem; line-height: 1.5; color: #c9d6ea; }
.house-form-status { font-weight: 700; color: var(--paper, #f4efe2); }
.house-hp { position: absolute; inset-inline-start: -200vw; }
@media (max-width: 820px) {
  .house-shekel, .house-star, .house-end { grid-template-columns: minmax(0, 1fr); }
  .house-star .house-big { order: -1; max-width: 20rem; margin-inline: auto; width: 100%; }
}
/* ש + ח → ₪, drawn from the font's own outlines and driven by the scroll (house.js) */
.house-merge { margin: 0; padding: clamp(.8rem, 2vw, 1.6rem); border-radius: 14px; background: var(--white, #faf7ef); border: 1px solid var(--rule, #97a8bd); }
.house-merge svg { display: block; width: 100%; height: auto; }
.hm-het { fill: var(--navy, #192d54); }
.hm-shin { fill: var(--tekhelet, #4a86c5); }
.hm-plus { fill: none; stroke: var(--muted, #4d5f79); stroke-width: 14; }
.house-merge figcaption { position: relative; min-height: 3.2em; margin-block-start: .4rem; text-align: center; font: 500 clamp(1rem, 1.35vw, 1.25rem)/1.5 var(--body); color: var(--navy, #192d54); }
.house-merge figcaption span { position: absolute; inset: 0; opacity: 0; }
.house-merge figcaption span:last-child { opacity: 1; }
.hm-slider { display: block; width: min(100%, 26rem); margin: .6rem auto .2rem; accent-color: var(--navy, #192d54); direction: ltr; height: 2rem; cursor: pointer; }
.house-alt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.2rem, 4vw, 3.5rem); align-items: center; margin-block: 1.4rem; padding: clamp(1rem, 2.5vw, 2rem); border-radius: 14px; background: var(--white, #faf7ef); border: 1px solid var(--rule, #97a8bd); }
.house-alt-pair { display: flex; gap: .2em; font-family: var(--house); font-weight: 900; font-size: clamp(5rem, 13vw, 11rem); line-height: 1.05; color: var(--navy, #192d54); }
.house-alt-pair span + span, .house-alt-words span + span { color: var(--tekhelet, #4a86c5); }
.house-ss01 { font-feature-settings: "ss01"; }
.house-alt h3 { margin: 0 0 .5rem; font: 400 clamp(1.4rem, 2.2vw, 2rem)/1.15 var(--display); }
.house-alt-words { display: flex; flex-wrap: wrap; gap: .1em .8em; font-family: var(--house); font-weight: 900; font-size: clamp(2rem, 4.5vw, 3.6rem) !important; line-height: 1.2 !important; }
@media (max-width: 700px) { .house-alt { grid-template-columns: minmax(0, 1fr); } }
.house-dlig { font-feature-settings: "dlig"; }
.house-alt-wide { font-size: clamp(3.4rem, 8.5vw, 7.4rem); }
.house-alt-note { max-width: 46rem; margin: 0 0 1.4rem; font-size: 1rem; line-height: 1.6; color: var(--muted, #4d5f79); }
.house-ss02 { font-feature-settings: "ss02"; }
.house-alt-stack { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.house-stack-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2.5rem); font-family: var(--house); font-weight: 900; font-size: clamp(1.7rem, 4vw, 3.6rem); line-height: .95; color: var(--navy, #192d54); }
.house-stack-pair p { margin: 0; max-width: none; font-size: inherit !important; line-height: inherit !important; white-space: nowrap; }
.house-stack-pair p + p { color: var(--tekhelet, #4a86c5); }
@media (max-width: 700px) { .house-alt-stack { grid-template-columns: minmax(0, 1fr); } }
.house-ss03 { font-feature-settings: "ss03"; }
.house-wide-pair { display: grid; gap: clamp(.8rem, 2vw, 1.6rem); font-family: var(--house); font-weight: 900; font-size: clamp(1.7rem, 3.6vw, 3.2rem); line-height: 1.12; color: var(--navy, #192d54); }
.house-wide-pair p { margin: 0; max-width: none; font-size: inherit !important; line-height: inherit !important; white-space: nowrap; }
.house-wide-pair p + p { color: var(--tekhelet, #4a86c5); }
.house-icons { margin-block: 1.4rem; }
.house-icon-grid { margin-block: 1rem; direction: rtl; grid-template-columns: repeat(auto-fill, minmax(clamp(5rem, 9.5vw, 8.5rem), 1fr)); }
.house-icon-grid span { font-size: clamp(2.6rem, 5.4vw, 4.8rem); }
.house-icon-lines { display: grid; gap: .1em; margin: 0; font-family: var(--house); font-weight: 900; font-size: clamp(1.9rem, 5.2vw, 4.6rem); line-height: 1.25; color: var(--navy, #192d54); }
.house-icon-lines span:nth-child(3) { color: var(--tekhelet, #4a86c5); }
.house-icons h3 { margin: 0 0 .5rem; font: 400 clamp(1.4rem, 2.2vw, 2rem)/1.15 var(--display); }
.house-orn-demo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-block: 1rem; font-family: var(--house); font-weight: 900; color: var(--navy, #192d54); text-align: center; }
.house-orn-demo > div { padding: clamp(1rem, 2.4vw, 2rem) .8rem; border-radius: 14px; background: var(--white, #faf7ef); border: 1px solid var(--rule, #97a8bd); overflow: hidden; }
.house-orn-demo b { display: block; font-size: clamp(1.9rem, 4.4vw, 4rem); line-height: 1.1; font-weight: 900; }
.house-orn-demo i { display: block; font-style: normal; font-size: clamp(1rem, 1.9vw, 1.7rem); line-height: 1.6; white-space: nowrap; direction: ltr; }
.house-orn-demo i.tek { color: var(--tekhelet, #4a86c5); }
.house-orn-demo u { text-decoration: none; margin-inline: .25em; color: var(--navy, #192d54); }
.house-orn-demo em { display: block; font-style: normal; font-size: clamp(1rem, 1.8vw, 1.6rem); line-height: 1.3; color: var(--tekhelet, #4a86c5); }
.house-pattern { display: grid; margin: 1rem 0 0; font-family: var(--house); font-weight: 900; font-size: 9.41cqw; line-height: .664; color: var(--navy, #192d54); overflow: hidden; border-radius: 14px; max-width: none !important; }
.house-pattern span { display: block; white-space: nowrap; }
.house-pattern span:nth-child(2) { color: var(--tekhelet, #4a86c5); }
@media (max-width: 760px) { .house-orn-demo { grid-template-columns: minmax(0, 1fr); } }
.house-orn { container-type: inline-size; }
/* ---- The living page (4.12.2026): the name breathes between the weights, a pinned weight scene with the drawing points, the font out in the land ---- */
@font-face { font-family: FontlandDisplayVF; src: url("/assets/fonts/FL-FontlandDisplay-VF-v0.021.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
.house-hero { min-height: calc(100svh - 8rem); display: grid; align-items: center; overflow: hidden; }
.house-name { font-family: FontlandDisplayVF, var(--house); white-space: nowrap; user-select: none; -webkit-user-select: none; }
.house-name span { display: inline-block; font-weight: var(--w, 900); }
.ha-track { margin-block: clamp(1.2rem, 3vw, 2.4rem); }
.house-anatomy { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1rem, 4vw, 4rem); align-items: center; padding: clamp(1rem, 2.5vw, 2.2rem); border-radius: 18px; background: var(--navy, #192d54); color: var(--paper, #f4efe2); }
.ha-track.is-pinned { height: 260vh; }
.is-pinned .house-anatomy { position: sticky; inset-block-start: var(--ha-top, 5rem); height: calc(100svh - var(--ha-top, 5rem) - 1rem); }
.ha-stage { min-height: 0; height: 100%; display: grid; place-items: center; }
.ha-stage svg { display: block; width: 100%; height: 100%; max-height: min(74svh, 46rem); }
.ha-line { fill: none; stroke: #f4efe2; stroke-opacity: .22; stroke-width: 2; }
.ha-fill { fill: var(--paper, #f4efe2); }
.ha-ghost { fill: none; stroke: #9cc3ea; stroke-width: 3; stroke-dasharray: 10 9; }
.ha-handles { fill: none; stroke: var(--tekhelet, #4a86c5); stroke-width: 2.5; }
.ha-off { fill: var(--paper, #f4efe2); stroke: var(--tekhelet, #4a86c5); stroke-width: 3; }
.ha-on { fill: var(--tekhelet, #4a86c5); stroke: var(--navy, #192d54); stroke-width: 3; }
.ha-side { display: grid; gap: clamp(.6rem, 1.6vw, 1.2rem); align-content: center; min-width: 0; }
.ha-read { margin: 0; display: flex; align-items: baseline; gap: 1rem; }
.ha-num { font-family: FontlandDisplayVF, var(--house); font-weight: var(--w, 900); font-size: clamp(3.6rem, 9vw, 8.5rem); line-height: 1; font-feature-settings: "tnum"; direction: ltr; }
.ha-label { font: 500 clamp(1.1rem, 1.6vw, 1.5rem)/1 var(--body); color: #9cc3ea; }
.ha-word { margin: 0; font-family: FontlandDisplayVF, var(--house); font-weight: var(--w, 900); font-size: clamp(1.6rem, 3.3vw, 3.2rem); line-height: 1.25; white-space: nowrap; overflow: hidden; }
.ha-slider { display: block; width: min(100%, 26rem); height: 2rem; accent-color: #9cc3ea; direction: ltr; cursor: pointer; }
.ha-copy { margin: 0; max-width: 32rem; font: 500 1rem/1.6 var(--body); color: #c9d6ea; }
.ha-letters { display: flex; flex-wrap: wrap; gap: .4rem; }
.ha-letters button { flex: 0 0 auto; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid #9cc3ea; border-radius: 10px; background: transparent; color: var(--paper, #f4efe2); font: 900 1.45rem/1 var(--house); cursor: pointer; }
.ha-letters button:hover, .ha-letters button[aria-pressed="true"] { background: var(--paper, #f4efe2); color: var(--navy, #192d54); border-color: var(--paper, #f4efe2); }
.ha-letters button:focus-visible, .ha-slider:focus-visible, .hl-strip:focus-visible { outline: 3px solid #9cc3ea; outline-offset: 2px; }
@media (max-width: 820px) {
  .house-anatomy { grid-template-columns: minmax(0, 1fr); gap: .5rem; align-items: stretch; grid-template-rows: minmax(0, 1fr) auto; }
  .ha-stage svg { max-height: 40svh; }
  .ha-letters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-block-end: .2rem; }
  .ha-copy { font-size: .9rem; line-height: 1.5; }
}
@media (max-width: 820px) and (max-height: 700px) { .ha-copy { display: none; } }
.house-land { margin-block-start: clamp(2.5rem, 6vw, 6rem); background: var(--navy, #192d54); color: var(--paper, #f4efe2); }
.hl-pin { padding-block: clamp(2rem, 5vw, 4rem); overflow: hidden; }
.hl-head h2 { margin: 0 0 .6rem; font: 400 clamp(1.9rem, 3.5vw, 3.15rem)/1.06 var(--display); color: var(--paper, #f4efe2); }
.hl-head p { margin: 0; max-width: 40rem; font: 500 clamp(1.05rem, 1.3vw, 1.25rem)/1.6 var(--body); color: #c9d6ea; }
.hl-strip { display: flex; gap: clamp(.8rem, 2vw, 1.6rem); margin-block-start: clamp(1.2rem, 3vw, 2rem); padding-inline: max(1.05rem, calc((100vw - 88rem) / 2)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hl-strip::-webkit-scrollbar, .ha-letters::-webkit-scrollbar { display: none; }
.hl-strip figure { flex: 0 0 auto; width: min(78vw, 44vh); margin: 0; scroll-snap-align: center; }
.hl-strip img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: #22386a; }
.hl-strip figcaption { margin-block-start: .7rem; max-width: 30ch; font: 500 1rem/1.5 var(--body); color: #c9d6ea; }
.house-land.is-pinned { height: var(--hl-h, 300vh); }
.is-pinned .hl-pin { position: sticky; inset-block-start: var(--ha-top, 5rem); height: calc(100svh - var(--ha-top, 5rem)); padding-block: 1.2rem; display: flex; flex-direction: column; justify-content: center; }
.is-pinned .hl-strip { width: max-content; overflow: visible; scroll-snap-type: none; will-change: transform; }
