/* =========================================================================
   FABRIC OBSERVATORY — page composition (fabric-observatory.html)
   Motifs: specimen loupes, qualitative instrument readings, CSS-woven panels
   ========================================================================= */

.page-fabric { --fo-thread: rgba(32, 33, 36, .55); }

/* ---------- CSS textile swatches (decorative) ---------- */
.fo-swatch--plain {
  background-color: #B9B4A6;
  background-image:
    repeating-linear-gradient(0deg, rgba(32,33,36,.32) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(90deg, rgba(242,239,229,.35) 0 2px, transparent 2px 6px);
}
.fo-swatch--twill {
  background-color: #A98C67;
  background-image:
    repeating-linear-gradient(45deg, rgba(32,33,36,.38) 0 3px, transparent 3px 8px),
    repeating-linear-gradient(45deg, rgba(242,239,229,.18) 0 1px, transparent 1px 4px);
}
.fo-swatch--heather {
  background-color: #7D8590;
  background-image:
    radial-gradient(rgba(242,239,229,.35) 1px, transparent 1.5px),
    radial-gradient(rgba(32,33,36,.35) 1px, transparent 1.5px),
    radial-gradient(rgba(40,57,216,.25) 1px, transparent 1.5px);
  background-size: 5px 5px, 7px 7px, 11px 11px;
  background-position: 0 0, 2px 3px, 5px 1px;
}
.fo-swatch--cord {
  background-color: #6E5A47;
  background-image: repeating-linear-gradient(90deg, rgba(242,239,229,.22) 0 2px, rgba(32,33,36,.3) 2px 4px, transparent 4px 9px);
}
.fo-swatch--open {
  background-color: #CDBFA8;
  background-image:
    repeating-linear-gradient(0deg, rgba(32,33,36,.28) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(32,33,36,.28) 0 1px, transparent 1px 7px);
}
.fo-swatch--smooth {
  background: linear-gradient(120deg, #6F7D8C 0%, #9AA7B4 45%, #6F7D8C 70%, #8593A1 100%);
}

/* ---------- HERO ---------- */
.fo-hero { position: relative; overflow: hidden; padding-top: clamp(28px, 4vw, 56px); }
.fo-hero__grid { display: grid; gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(48px, 7vw, 96px); }
.fo-hero__kicker { margin-bottom: 1.4rem; }
.fo-hero__title { margin: 0; font-weight: 500; }
.fo-hero__mega {
  display: block; font-family: var(--f-cond); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 16.5vw, 10.5rem); line-height: .82; letter-spacing: -0.005em;
}
.fo-hero__mega--outline { color: transparent; -webkit-text-stroke: 2px var(--ivory); }
@supports not (-webkit-text-stroke: 1px black) { .fo-hero__mega--outline { color: var(--ivory); } }
.fo-hero__sub {
  display: block; margin-top: 1.1rem; font-family: var(--f-display); font-size: var(--t-m);
  line-height: 1.15; letter-spacing: -0.01em; max-width: 24ch; color: #E5E3DC;
}
.fo-hero__text .lede { margin-bottom: 1.2rem; }
.fo-hero__text p:not(.lede) { color: #D9D9E4; max-width: 52ch; }
.fo-legend { list-style: none; display: grid; gap: 10px; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(242,239,229,.25); font-size: .88rem; color: #D9D9E4; }
.fo-legend li { display: flex; gap: 12px; align-items: center; }
.fo-legend__icon { flex: none; width: 26px; height: 26px; }
.fo-legend__icon--lens { border-radius: 50%; border: 2px solid var(--ivory); background: radial-gradient(circle at 35% 35%, rgba(242,239,229,.5), transparent 60%); }
.fo-legend__icon--bar { height: 8px; background: linear-gradient(90deg, rgba(242,239,229,.25) 0 25%, var(--verm) 25% 75%, rgba(242,239,229,.25) 75%); }
.fo-hero__strip { display: grid; grid-template-columns: repeat(5, 1fr); height: clamp(56px, 8vw, 120px); }
.fo-hero__strip span { display: block; }

@media (min-width: 900px) {
  .fo-hero__grid { grid-template-columns: 1.15fr 1fr; grid-template-areas: "head head" "text spec"; align-items: start; }
  .fo-hero__head { grid-area: head; }
  .fo-hero__text { grid-area: text; padding-top: 1rem; }
  .fo-hero__specimen { grid-area: spec; }
}
@media (min-width: 1200px) {
  .fo-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(340px, 31%); grid-template-areas: "head spec" "text spec"; column-gap: clamp(40px, 4vw, 72px); }
  .fo-hero__specimen { padding-top: 3.2rem; }
}

/* ---------- Specimen + loupe ---------- */
.fo-spec { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.fo-loupe { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.fo-loupe__lens {
  flex: none; display: block; width: 104px; aspect-ratio: 1; border-radius: 50%;
  background-repeat: no-repeat; background-size: 300% auto;
  background-color: var(--mist);
  border: 4px solid var(--ivory); box-shadow: 0 0 0 1px rgba(32,33,36,.35), 0 14px 34px rgba(32,33,36,.28);
  position: relative;
}
.fo-loupe__lens::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed currentColor; opacity: .45; }
.fo-loupe__tag { font-family: var(--f-display); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; background: var(--carbon); color: var(--ivory); white-space: nowrap; }
@media (min-width: 640px) {
  .fo-spec { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .fo-loupe { flex-direction: column; align-items: center; margin: 22% 0 0 calc(-1 * clamp(12px, 2vw, 28px)); z-index: 2; gap: 18px; }
  .fo-loupe__lens { width: clamp(120px, 12vw, 176px); }
}

/* ---------- Method + cabinet ---------- */
.fo-method__grid { display: grid; gap: clamp(36px, 5vw, 80px); }
.fo-method__note p { max-width: 58ch; }
.fo-cabinet__list { list-style: none; display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--carbon); }
.fo-cabinet__list li { border-bottom: 1px solid rgba(32,33,36,.25); }
.fo-cabinet__list a { display: grid; grid-template-columns: 2.6em 1fr 64px; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; text-decoration: none; font-family: var(--f-display); font-size: 1.08rem; transition: padding .3s var(--ease), color .2s; }
.fo-cabinet__list a:hover { padding-left: 10px; color: var(--ultra); }
.fo-cabinet__no { font-family: var(--f-cond); font-weight: 800; font-size: 1.5rem; color: var(--verm-ink); }
.fo-cabinet__tex { height: 34px; border: 1px solid rgba(32,33,36,.35); }
@media (min-width: 640px) { .fo-cabinet__list { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
@media (min-width: 1000px) { .fo-method__grid { grid-template-columns: 1fr 1.25fr; align-items: start; } }

/* ---------- Chapter heads ---------- */
.fo-ch__head .numeral { margin-bottom: .2em; }
.fo-ch__head h2 { margin-bottom: .35em; }
.fo-ch__head--row { display: flex; align-items: flex-end; gap: clamp(14px, 2vw, 28px); margin-bottom: 1rem; }
.fo-ch__head--row .numeral { font-size: clamp(4.5rem, 10vw, 9.5rem); margin: 0; }

/* ---------- Readings (qualitative scales) ---------- */
.fo-readings { margin: 0; display: grid; gap: 18px; }
.fo-reading dt { font-family: var(--f-display); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin-bottom: 6px; }
.fo-reading dd { margin: 0; }
.fo-scale { display: block; position: relative; height: 12px; background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 10%); opacity: 1; border-bottom: 1px solid currentColor; }
.fo-scale i { position: absolute; top: 2px; bottom: 2px; left: var(--from); right: calc(100% - var(--to)); background: var(--verm); }
.fo-scale__ends { display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .75; margin-top: 4px; }
.fo-reading__val { display: block; font-size: .9rem; margin-top: 2px; }
.fo-readings--compact { margin-top: 1.4rem; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.fo-readings--compact .fo-scale i { background: var(--ultra); }

/* ---------- 01 Wool ---------- */
.fo-wool__grid { display: grid; gap: clamp(28px, 4vw, 56px); }
.fo-wool__readings { padding: clamp(20px, 2.5vw, 32px); background: var(--ivory); border-top: 6px solid var(--carbon); align-self: start; }
@media (min-width: 900px) {
  .fo-wool__grid { grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto 1fr; grid-template-areas: "head plate" "text plate" "read plate"; }
  .fo-wool__grid > .fo-ch__head { grid-area: head; }
  .fo-wool__text { grid-area: text; }
  .fo-wool__plate { grid-area: plate; }
  .fo-wool__readings { grid-area: read; }
}
@media (min-width: 1200px) {
  .fo-wool__grid { grid-template-columns: .9fr 1.15fr .85fr; grid-template-rows: auto 1fr; grid-template-areas: "head head plate" "text read plate"; column-gap: 48px; }
  .fo-wool__plate { margin-top: -4rem; }
}

/* ---------- 02 Wool blends ---------- */
.fo-blend__grid { display: grid; gap: clamp(36px, 5vw, 80px); }
.fo-mix { display: grid; grid-template-columns: 3fr 2fr; margin: 1.6rem 0 .5rem; font-family: var(--f-display); font-size: .82rem; line-height: 1.3; }
.fo-mix span { padding: 16px 14px; min-height: 84px; display: flex; align-items: flex-end; }
.fo-mix__a { background: var(--carbon); color: var(--ivory); }
.fo-mix__b { background: var(--ultra); color: var(--ivory); background-image: repeating-linear-gradient(45deg, rgba(242,239,229,.12) 0 2px, transparent 2px 8px); }
.fo-mix__note { font-size: .82rem; margin-bottom: 1.6rem; }
@media (min-width: 1000px) {
  .fo-blend__grid { grid-template-columns: .9fr 1fr; align-items: start; }
  .fo-blend__plate { position: sticky; top: calc(var(--mast-h) + 24px); }
}

/* ---------- 03/04 Diptych ---------- */
.fo-plate-ivory .plate__frame { background: var(--ivory); }
.fo-diptych__grid { display: grid; gap: clamp(56px, 7vw, 96px); margin-top: clamp(24px, 3vw, 40px); }
.fo-diptych__head { display: flex; align-items: baseline; gap: 16px; border-bottom: 6px solid var(--carbon); margin-bottom: 20px; padding-bottom: 8px; }
.fo-diptych__head h2 { margin: 0; }
.fo-diptych__no { font-family: var(--f-cond); font-weight: 800; font-size: clamp(3rem, 6vw, 5rem); line-height: .8; color: var(--ultra); }
.fo-diptych__panel .plate { margin-bottom: 24px; max-width: 540px; }
.fo-diptych__panel .plate__frame { max-height: none; }
@media (min-width: 900px) {
  .fo-diptych__grid { grid-template-columns: 1fr 1fr; column-gap: clamp(36px, 5vw, 88px); }
  .fo-diptych__panel--offset { margin-top: clamp(80px, 12vw, 200px); }
}

/* ---------- 05 Twill ---------- */
.fo-twill { overflow: hidden; }
.fo-twill__field {
  position: absolute; inset: 0 0 auto auto; width: min(46%, 640px); height: clamp(220px, 34vw, 520px);
  background-image:
    repeating-linear-gradient(135deg, rgba(242,239,229,.16) 0 6px, transparent 6px 16px),
    repeating-linear-gradient(135deg, rgba(28,42,168,.65) 0 2px, transparent 2px 5px);
  -webkit-mask-image: linear-gradient(225deg, #000 30%, transparent 85%); mask-image: linear-gradient(225deg, #000 30%, transparent 85%);
  pointer-events: none;
}
.fo-twill__grid { position: relative; display: grid; gap: clamp(36px, 5vw, 72px); }
.fo-twill__head .numeral { margin-bottom: .1em; }
.fo-twill__head h2 { margin-bottom: .2em; }
.fo-twill__diagrams { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2vw, 24px); align-self: start; }
.fo-weave { margin: 0; }
.fo-weave svg { display: block; width: 100%; height: auto; border: 2px solid var(--ivory); }
.fo-weave figcaption { font-size: .8rem; line-height: 1.35; margin-top: 10px; }
.fo-weave__no { display: inline-block; font-family: var(--f-cond); font-weight: 800; font-size: 1.3rem; margin-right: 4px; color: #FFB8A8; }
.fo-twill .fo-loupe__tag { background: var(--ivory); color: var(--carbon); }
@media (min-width: 1000px) {
  .fo-twill__grid { grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto 1fr; grid-template-areas: "head plate" "text plate" "diag plate"; column-gap: clamp(48px, 6vw, 110px); }
  .fo-twill__head { grid-area: head; }
  .fo-twill__text { grid-area: text; }
  .fo-twill__diagrams { grid-area: diag; }
  .fo-twill__plate { grid-area: plate; align-self: start; margin-top: clamp(80px, 10vw, 180px); }
}

/* ---------- 06 Polyester blends ---------- */
.fo-poly__top { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 72px); }
.fo-poly__lede { align-self: end; }
.fo-poly__grid { display: grid; gap: clamp(28px, 3.5vw, 48px); }
.fo-poly__col { border-top: 2px solid var(--carbon); padding-top: 18px; }
.fo-poly__idx { font-family: var(--f-cond); font-weight: 800; font-size: 2.4rem; line-height: 1; margin: 0 0 .4rem; color: var(--verm-ink); text-transform: uppercase; }
@media (min-width: 700px) {
  .fo-poly__grid { grid-template-columns: 1fr 1fr; }
  .fo-poly__plate { grid-row: span 2; }
}
@media (min-width: 900px) { .fo-poly__top { grid-template-columns: 1fr 1fr; align-items: end; } }
@media (min-width: 1200px) {
  .fo-poly__grid { grid-template-columns: 1.1fr 1fr 1fr 1fr; align-items: start; }
  .fo-poly__plate { grid-row: auto; }
  .fo-poly__col:nth-of-type(2) { margin-top: 4rem; }
  .fo-poly__col:nth-of-type(3) { margin-top: 8rem; }
}

/* ---------- 07 Lightweight (vermilion field — carbon text only) ---------- */
.fo-light__grid { display: grid; gap: clamp(32px, 5vw, 72px); }
.fo-light__head { position: relative; }
.fo-light__word { font-family: var(--f-cond); font-weight: 800; text-transform: uppercase; line-height: .78; font-size: clamp(6rem, 26vw, 22rem); margin: 0 0 .1em; color: transparent; -webkit-text-stroke: 2px var(--carbon); }
.fo-light .plate__no.fo-light__no { color: var(--carbon); }
.fo-light .plate__cap { border-color: var(--carbon); }
.fo-light__block { border-top: 2px solid var(--carbon); padding-top: 20px; margin-bottom: 36px; max-width: 60ch; }
.fo-light__list { list-style: none; margin: 0 0 1.2em; display: grid; gap: 10px; }
.fo-light__list li { padding-left: 26px; position: relative; }
.fo-light__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; background: var(--carbon); border-radius: 50%; }
.fo-light .fo-loupe__lens { border-color: var(--carbon); }
@media (min-width: 1000px) {
  .fo-light__grid { grid-template-columns: 1fr 1.1fr; grid-template-rows: auto 1fr; grid-template-areas: "head text" "plate text"; column-gap: clamp(48px, 6vw, 110px); }
  .fo-light__head { grid-area: head; }
  .fo-light__plate { grid-area: plate; }
  .fo-light__text { grid-area: text; padding-top: clamp(40px, 8vw, 160px); }
}

/* ---------- 08 Properties ---------- */
.fo-props__top { display: grid; gap: 8px; margin-bottom: clamp(40px, 6vw, 88px); }
.fo-props__thin { font-weight: 400; color: transparent; -webkit-text-stroke: 1.5px var(--ivory); }
@supports not (-webkit-text-stroke: 1px black) { .fo-props__thin { color: var(--lav); } }
.fo-props__top .lede { color: #E5E3DC; max-width: 44ch; }
.fo-props__list { list-style: none; display: grid; grid-template-columns: 1fr; border-top: 1px solid rgba(242,239,229,.3); }
.fo-prop { position: relative; padding: 28px 0 30px; border-bottom: 1px solid rgba(242,239,229,.3); }
.fo-prop__no { display: block; font-family: var(--f-cond); font-weight: 800; font-size: 3.2rem; line-height: .9; color: var(--verm); margin-bottom: 12px; }
.fo-prop p { color: #D9D9E4; margin-bottom: .8em; }
.fo-prop .fo-prop__look { font-size: .88rem; color: var(--ivory); margin: 0; }
.fo-prop__look span { font-family: var(--f-display); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #FFB8A8; margin-right: 8px; }
@media (min-width: 700px) {
  .fo-props__list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
@media (min-width: 1100px) {
  .fo-props__list { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .fo-prop { padding: 32px 28px 36px; border-left: 1px solid rgba(242,239,229,.3); }
  .fo-prop:nth-child(4n+1) { border-left: 0; padding-left: 0; }
  .fo-prop:nth-child(n+5) .fo-prop__no { color: #FFB8A8; }
}

/* ---------- Surface comparison ---------- */
.fo-compare__top { display: grid; gap: 10px; margin-bottom: clamp(32px, 5vw, 64px); }
.fo-compare__grid { display: grid; gap: 40px; }
.fo-compare__item .fo-spec { margin-bottom: 22px; }
.fo-compare__item .plate__frame { background: var(--ivory); }
.fo-compare__item p { max-width: 50ch; }
.fo-compare__vs { font-family: var(--f-cond); font-weight: 800; font-size: clamp(3rem, 7vw, 6rem); text-transform: uppercase; color: var(--ultra); line-height: 1; text-align: center; }
@media (min-width: 900px) {
  .fo-compare__top { grid-template-columns: 1fr 1.2fr; align-items: end; column-gap: 64px; }
  .fo-compare__top .label { grid-column: 1 / -1; }
  .fo-compare__top h2 { margin: 0; }
  .fo-compare__grid { grid-template-columns: 1fr auto 1fr; align-items: start; column-gap: clamp(20px, 3vw, 48px); }
  .fo-compare__vs { align-self: center; }
  .fo-compare__item:last-child { margin-top: clamp(60px, 8vw, 140px); }
}

/* ---------- 09 Care ---------- */
.fo-care__grid { display: grid; gap: clamp(32px, 5vw, 80px); }
.fo-care__head p:not(.label) { max-width: 46ch; }
@media (min-width: 1000px) {
  .fo-care__grid { grid-template-columns: .85fr 1.15fr; align-items: start; }
  .fo-care__head { position: sticky; top: calc(var(--mast-h) + 24px); }
}

/* ---------- Continue ---------- */
.fo-next__grid { display: grid; gap: 32px; }
.fo-next__grid p { max-width: 54ch; }
.fo-next__links { list-style: none; display: grid; gap: 8px; align-content: start; }
.fo-next__links a { font-size: 1.05rem; }
@media (min-width: 1000px) { .fo-next__grid { grid-template-columns: 1.1fr 1fr; column-gap: 80px; } }

/* outline numerals: shared .numeral--outline strokes with currentColor, which is transparent — set an explicit stroke colour */
.page-fabric .numeral--outline { -webkit-text-stroke: 2px var(--carbon); }
.page-fabric .t-ultra .numeral--outline, .page-fabric .t-carbon .numeral--outline { -webkit-text-stroke-color: var(--ivory); }
@media (max-width: 420px) { .fo-readings--compact { grid-template-columns: 1fr; } }
