/* ALO legibility floor for moorsachi.com (.claude/rules/legibility.md):
   labels and meta 13px, decorative marks 12px, nothing under 12px, thumb-sized footer links.
   Loaded last, after each page's own styles, so it only ever raises a size. */

/* Text size: one site-wide preference (textsize.js). Percentages of the reader's own
   browser setting, so a larger browser default still counts. Medium is the default:
   body 16 / 18 / 21px at a standard 16px browser setting. Every rem scales together. */
html{font-size:112.5%}
html[data-text-size="small"]{font-size:100%}
html[data-text-size="large"]{font-size:131.25%}

/* the control: header (desktop) and the top of the mobile menu */
.tsize{display:inline-flex;align-items:center}
.tsize__label{font-family:var(--font-utility);font-weight:500;font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--moor-ink-secondary);margin-right:.25rem;white-space:nowrap}
.tsize__btn{position:relative;min-width:44px;min-height:44px;padding:0;margin:0;background:transparent;border:0;border-radius:2px;color:var(--moor-ink-secondary);font-family:var(--font-display);font-weight:500;font-style:normal;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:color .2s ease}
.tsize__btn--small{font-size:15px}
.tsize__btn--medium{font-size:19px}
.tsize__btn--large{font-size:24px}
.tsize__btn:hover,.tsize__btn[aria-pressed="true"]{color:var(--moor-purple-ink)}
.tsize__btn[aria-pressed="true"]::after{content:"";position:absolute;left:13px;right:13px;bottom:7px;height:2px;border-radius:1px;background:currentColor}
.tsize__btn:focus-visible{outline:2px solid var(--moor-purple-bright,#B591E0);outline-offset:-2px}
.tsize--panel{display:flex;width:100%;padding-bottom:.9rem;margin-bottom:1.25rem;border-bottom:1px solid var(--moor-hairline)}
.tsize--panel .tsize__label{margin-right:auto}
/* header gaps stay at their Small measure; only the type grows */
/* one side gutter for header, sections and footer: 2rem, outside the page width */
.moor-nav__inner{box-sizing:content-box;padding-left:2rem;padding-right:2rem;gap:28px}
.moor-nav__links{gap:28px}
.moor-nav__end{gap:10px}
@media (max-width:768px){.tsize--nav{display:none}}
/* The header row holds the links, the control and the founding link only while it fits.
   Measured widths (index, the widest header): 975 / 1050 / 1160px without the label,
   1063 / 1138 / 1251px with it. Below that, the header hands over to the menu, exactly as
   on a phone. em queries follow the reader's browser setting, as the root size does. */
.tsize--nav .tsize__label{display:none}
@media (min-width:68.75em){html[data-text-size="small"] .tsize--nav .tsize__label{display:inline}}
@media (min-width:73.75em){html:not([data-text-size="small"]):not([data-text-size="large"]) .tsize--nav .tsize__label{display:inline}}
@media (min-width:81.25em){html[data-text-size="large"] .tsize--nav .tsize__label{display:inline}}
@media (min-width:769px) and (max-width:63.99em){html[data-text-size="small"] .moor-nav__links,html[data-text-size="small"] .moor-nav__join,html[data-text-size="small"] .tsize--nav{display:none}html[data-text-size="small"] .moor-nav__menu-toggle{display:inline-flex!important}html[data-text-size="small"] .moor-nav__panel:not([hidden]),html[data-text-size="small"] .moor-nav__scrim:not([hidden]){display:block!important}}
@media (min-width:769px) and (max-width:68.74em){html:not([data-text-size="small"]):not([data-text-size="large"]) .moor-nav__links,html:not([data-text-size="small"]):not([data-text-size="large"]) .moor-nav__join,html:not([data-text-size="small"]):not([data-text-size="large"]) .tsize--nav{display:none}html:not([data-text-size="small"]):not([data-text-size="large"]) .moor-nav__menu-toggle{display:inline-flex!important}html:not([data-text-size="small"]):not([data-text-size="large"]) .moor-nav__panel:not([hidden]),html:not([data-text-size="small"]):not([data-text-size="large"]) .moor-nav__scrim:not([hidden]){display:block!important}}
@media (min-width:769px) and (max-width:75.99em){html[data-text-size="large"] .moor-nav__links,html[data-text-size="large"] .moor-nav__join,html[data-text-size="large"] .tsize--nav{display:none}html[data-text-size="large"] .moor-nav__menu-toggle{display:inline-flex!important}html[data-text-size="large"] .moor-nav__panel:not([hidden]),html[data-text-size="large"] .moor-nav__scrim:not([hidden]){display:block!important}}

/* skip link: first tab stop, visible on focus */
.skip-link{position:absolute;left:1rem;top:-4rem;z-index:1000;padding:.75rem 1.1rem;background:var(--moor-surface-base,#09080E);color:var(--moor-ink-primary,#F0ECF5);border:1px solid var(--moor-purple,#9B6FD4);border-radius:2px;font:500 .9375rem/1.2 'Barlow Condensed','Barlow',sans-serif;letter-spacing:.08em;text-decoration:none;min-height:44px;display:inline-flex;align-items:center;transition:top .2s ease}
.skip-link:focus,.skip-link:focus-visible{top:1rem;outline:2px solid var(--moor-purple-bright,#B591E0);outline-offset:2px}
main:focus{outline:none}

/* labels, eyebrows, captions: 13px floor at Small, in rem so it follows the text-size setting */
.section__eyebrow,.vault__label,.symbolism__label,.symbolism__portrait-caption,.journey__label,
.moor-footer__col-title,.limb__gloss,.chakra__position,.chakra__numeral,.fold__parallels,
.fold__parallels strong,.fold__english,.rp__eyebrow,.masters__label,.about-book__meta,
.about-book__quote cite,.book-cover figcaption,.lamp__name,.vault__read-size-label,
.vault__toggle-btn,.vault__citation,.vault__citation strong,.drop__meta,.hero__eyebrow,
.moor-nav__link,.cx-field>span,.xr-open__label,.cx-btn{font-size:max(1em,.8125rem)}
.section__eyebrow,.vault__label,.symbolism__label,.symbolism__portrait-caption,.journey__label,
.moor-footer__col-title,.limb__gloss,.chakra__position,.fold__parallels,.fold__parallels strong,
.rp__eyebrow,.masters__label,.about-book__quote cite,.book-cover figcaption,.lamp__name,
.vault__read-size-label,.vault__toggle-btn,.cx-field>span{font-size:.8125rem}
.moor-nav__link,.hero__eyebrow,.vault__citation,.vault__citation strong,.drop__meta,
.about-book__meta,.chakra__numeral,.fold__english,.xr-open__label,.cx-btn{font-size:.8125rem}

/* footnotes, captions and citations: 14 / 15.75 / 18.4px across the three sizes */
html .vault__citation,html .vault__citation strong,html .about-book__meta,html .about-book__quote cite,
html .book-cover figcaption,html .symbolism__portrait-caption,html .drop__meta{font-size:.875rem}

/* small status marks and decorative text: 12px floor */
.moor-nav__soon-badge,.lamp__state,
.moor-footer__consent{font-size:.75rem}
/* the Master name scales with the card (16px at full size); only ever raise it to the 12px floor */
.front__name{font-size:max(12px,calc(16 * var(--u)))}
.masters__card .meta,p.meta{font-size:12px}

/* thumb-sized links and toggles */
.moor-footer__link{display:inline-flex;align-items:center;min-height:44px;padding-block:0}
.moor-footer__credit{display:inline-flex;align-items:center;min-height:44px}
.vault__toggle-btn,.vault__crosslink-text{min-height:44px}
.vault__crosslink-text{display:inline-flex;align-items:center}

/* higher specificity where a page's own inline style (or listen.js's runtime sheet) loads after this file */
html .book-cover figcaption{font-size:.875rem}
/* the music control's label and its state line ('Play' / 'Now playing') carry meaning: 13px */
html .listen__by,html .listen__full,html .listen__short{font-size:.8125rem}
/* regalia eyebrow sits on a bright photograph in both registers: a near-solid dark chip with light lilac ink (measured against the brightest 5% of pixels behind it) */
html .rp__eyebrow{color:#D7BDF5;background:rgba(9,8,14,.96);padding:.6rem 1.1rem;border-radius:2px;text-shadow:none}
/* purple emphasis on the light page is the ink purple, not the bright one (3.26:1 on cream) */
html[data-register="light"] .about-book__open em{color:var(--moor-purple-ink)}

/* one visible focus ring on site chrome (the browser default is 1px on the nav) */
.moor-nav a:focus-visible,.moor-nav button:focus-visible,.moor-footer a:focus-visible,.moor-footer button:focus-visible{outline:2px solid var(--moor-purple-bright,#B591E0);outline-offset:3px}

/* footer columns on a phone at Medium and Large: two equal columns that wrap their words,
   and the Studio row wraps instead of running off the edge */
@media (max-width:37.5em){
  html:not([data-text-size="small"]) .moor-footer__list--split{grid-template-columns:repeat(2,minmax(0,1fr))}
  html:not([data-text-size="small"]) .moor-footer__link{flex-wrap:wrap}
}

/* phones: the footer keeps the 2rem gutter the sections use (it dropped to 1.5rem),
   and the Studio links stack in one column instead of wrapping unevenly */
@media (max-width:560px){
  html .moor-footer{padding-left:2rem;padding-right:2rem}
  html .moor-footer__watermark{margin-left:-2rem;margin-right:-2rem}
  html .moor-footer__inner > div:nth-child(3) .moor-footer__list{grid-auto-flow:row}
  html .moor-footer__link{overflow-wrap:anywhere}
  /* one axis on a phone: every footer column centres, matching the signature and
     credit beneath it (founder, 2026-11-25: no left-set block over a centred close) */
  html .moor-footer__inner{text-align:center;justify-items:center}
  html .moor-footer__inner > div{width:100%}
  html .moor-footer__list{justify-content:center;justify-items:center}
  html .moor-footer__link{justify-content:center}
  html .moor-footer__letter-lede,html .moor-footer__consent,html .moor-footer__form{margin-left:auto;margin-right:auto}
  html .moor-footer__form{justify-content:center}
  html .moor-footer__note{text-align:center}
}

/* the Seventh Thread: every page ends on a horizon. A thin band of the painted meadow
   (obelisks, lit pillars, mountains, the crystal vessel) fades in across the top of the
   footer, above its text. Phones get a shorter band and a half-size crop. */
html .moor-footer{position:relative;padding-top:calc(3.5rem + 6.5rem)}
html .moor-footer::before{content:"";position:absolute;left:0;right:0;top:0;height:9rem;pointer-events:none;
  background:url('/art/horizon.webp') center 60%/cover no-repeat;opacity:.5;
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000 30%,#000 55%,transparent);
          mask-image:linear-gradient(to bottom,transparent,#000 30%,#000 55%,transparent)}
html .moor-footer > *{position:relative}
html[data-register="light"] .moor-footer::before{opacity:.3}
@media (max-width:560px){
  html .moor-footer{padding-top:calc(3rem + 4.5rem)}
  html .moor-footer::before{height:6.5rem;background-image:url('/art/horizon-sm.webp')}
}
