/* The house type: Allo (Josh Puckett, OFL; Latin, display optical size) or Geom (Google Fonts, OFL) for headlines, Redaction (Jeremy Mickel, OFL)
   or BIZ UDPMincho (Morisawa, OFL) for the serif, Pilcrow Rounded (Fontshare) for text. Older faces below stay for the type study pages. */
:root{--f-display:"Allo",system-ui,sans-serif;--f-serif:"Redaction",Georgia,serif;--f-text:"Pilcrow Rounded",system-ui,sans-serif}
html[data-sans=geom]{--f-display:"Geom",system-ui,sans-serif}
html[data-serif=mincho]{--f-serif:"BIZ UDPMincho",Georgia,serif;font-synthesis-style:none}
/* Boska, Gambetta, Zodiak, Melodrama, Gambarino: Fontshare. Zalando Sans, Commissioner, Familjen Grotesk, Hanken Grotesk, Imbue,
   Literata, Young Serif, Gloock, EB Garamond: Google Fonts (OFL). Basteleur: Velvetyne (OFL). Timeless: timeless.co/type. */
@font-face{font-family:"Literata";src:url(fonts/literata.woff2) format("woff2");font-weight:200 900;font-display:swap}
@font-face{font-family:"Literata";src:url(fonts/literata-italic.woff2) format("woff2");font-weight:200 900;font-style:italic;font-display:swap}
/* developing serif (lib/press.js): each word fades in, word by word, as it enters view. Opacity only: nothing on text ever animates
   a transform, a filter, letter-spacing or a font axis, so glyphs never resample or shimmer */
.press .develop:not(.ready){visibility:hidden}
.dw{transition:opacity .7s ease-out}
.dw[data-l="100"]{opacity:.08}
.dw[data-l="70"]{opacity:.3}
.dw[data-l="50"]{opacity:.55}
.dw[data-l="35"]{opacity:.75}
.dw[data-l="20"]{opacity:.9}
/* gathering headline: letters fade in from the centre outward; weight and spacing never change */
.gl{opacity:0;transition:opacity .9s ease-out}
.gathered .gl{opacity:1}
/* the concept menu stays out of the way: move to the bottom-right corner, or tap the key there, to bring it back */
.switcher{transition:opacity .45s cubic-bezier(.16,1,.3,1),translate .6s cubic-bezier(.16,1,.3,1)}
html.tucked .switcher{opacity:0;translate:0 18px;pointer-events:none}
.menu-key{position:fixed;color:#4E4560;z-index:51;right:16px;bottom:16px;width:34px;height:34px;border-radius:50%;border:0;padding:0;cursor:pointer;display:grid;place-items:center;
  background:rgb(255 255 255 / .55);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 0 0 1px rgb(43 34 56 / .08);color:#5B4479;opacity:.55;transition:opacity .3s,background .3s}
.menu-key:hover,.menu-key:focus-visible,html:not(.tucked) .menu-key{opacity:1;background:rgb(255 255 255 / .85)}
.menu-key:focus-visible{outline:1.5px solid #A88543;outline-offset:2px}
.menu-key svg{width:16px;height:16px}
/* a soft wash of the tulip colours behind the house pages */
body.tone{background-image:radial-gradient(55% 45% at 92% 0%,rgb(246 201 216 / .55),transparent 70%),radial-gradient(45% 40% at 0% 38%,rgb(205 212 246 / .5),transparent 70%),radial-gradient(50% 40% at 70% 100%,rgb(255 217 196 / .45),transparent 70%);background-attachment:fixed}
@media (prefers-reduced-motion:reduce){.gl,.dw{opacity:1 !important;transition:none}}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;font-size:106.25%}
/* reading size: 17px on phones, 18px from tablet landscape up */
@media (min-width:900px){html{font-size:112.5%}}
/* nothing decorative may widen the page: clip, which keeps sticky positioning working */
html,body{overflow-x:clip}
body{margin:0;-webkit-font-smoothing:antialiased;text-rendering:auto;font-kerning:normal;font-variant-ligatures:common-ligatures}
img,svg,canvas{display:block;max-width:100%}
h1,h2,h3,p,blockquote,figure,ol,ul{margin:0}
/* the hanging quote: the serif's own curly marks, set with the words themselves; each takes no width, so the lines stay centred */
.verse blockquote{position:relative}
.q-open,.q-close{display:inline-block;font-family:var(--f-serif);font-style:normal;font-weight:400;line-height:0;color:var(--quote,rgb(140 122 168 / .5));pointer-events:none;user-select:none}
.q-open{font-size:3.2em;width:.5em;margin-left:-.5em;vertical-align:-.36em;text-align:left;translate:-.12em 0}
.q-close{font-size:1.8em;width:.4em;margin-right:-.4em;vertical-align:-.3em;text-align:right;translate:.1em 0}
@media (max-width:760px){.q-open{font-size:2.4em;vertical-align:-.3em}.q-close{font-size:1.5em}}
/* quote emphasis: one or two phrases set upright and bold, inside the italic */
.verse blockquote .key{font-style:normal;font-weight:700;letter-spacing:-.01em}
/* no widows or orphans: headings balance their lines, paragraphs avoid a lone last word */
h1,h2,h3,h4,blockquote,figcaption,.tag,.st,.sign{text-wrap:balance}
p,li,dd{text-wrap:pretty}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* concept switcher: a quiet index, not a control panel */
.switcher{position:fixed;z-index:50;left:50%;bottom:18px;transform:translateX(-50%);display:flex;gap:2px;padding:3px;border-radius:999px;max-width:calc(100vw - 20px);overflow-x:auto;scrollbar-width:none;
  background:rgb(250 248 246 / .82);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  box-shadow:0 0 0 1px rgb(43 34 56 / .08),0 6px 18px -10px rgb(43 34 56 / .25);
  font:500 .8rem/1 var(--f-text);letter-spacing:.03em}
.switcher a{color:#4E4560;text-decoration:none;padding:8px 12px;border-radius:999px;white-space:nowrap;transition:color .3s,background .3s}
.switcher a:hover{color:#2B2238}
.switcher a[aria-current]{color:#2B2238;background:rgb(43 34 56 / .06)}
.switcher a:focus-visible{outline:1.5px solid #A88543;outline-offset:1px}
@media (max-width:420px){.switcher a{padding:8px 9px}}

/* paper: fine fibre grain plus slow mottling, over everything, never intercepting input */
body.paper::after{content:"";position:fixed;inset:0;z-index:40;pointer-events:none;mix-blend-mode:multiply;opacity:.32;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .42 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .4 0 0 0 0 .55 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E")}
@media (prefers-reduced-transparency:reduce){body.paper::after{display:none}}

/* quiet signup: one hairline, one word */
.sub{display:flex;align-items:center;width:min(380px,100%);border-bottom:1px solid currentColor;color:rgb(43 34 56 / .35);transition:color .4s}
.sub:focus-within{color:rgb(43 34 56 / .8)}
.sub input{flex:1;min-width:0;border:0;background:transparent;padding:12px 0 11px;font:inherit;font-size:1rem;color:#2B2238}
.sub input::placeholder{color:#544A63}
.sub input:focus{outline:none}
.sub button{border:0;background:none;padding:12px 0 11px 18px;font:inherit;font-size:.95rem;color:#2B2238;cursor:pointer;display:flex;gap:8px;align-items:center}
.sub button::after{content:"";width:18px;height:1px;background:currentColor;transition:width .5s cubic-bezier(.16,1,.3,1)}
.sub button:hover::after{width:28px}
.sub button:focus-visible{outline:1.5px solid #A88543;outline-offset:4px}
.sub-note{margin-top:10px;font-size:.84rem;line-height:1.38;color:#4E4560;min-height:1.5em;max-width:380px}
.sub-note[data-state=err]{color:#8A3550}
.sub-note[data-state=ok]{color:#2B2238}

.reveal{opacity:0;transition:opacity 1.4s cubic-bezier(.16,1,.3,1)}
.reveal.in{opacity:1}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transition:none}}

/* the logo lockup: Sacred Link in Redaction, set tight; PRESS heavier, tracked, and tucked close under the name.
   Centred by default (Sema, stacked logos); .start sets it flush left (Acts, and any lockup beside the logo) */
.lockup{display:inline-grid;justify-items:center;row-gap:.1em;line-height:1}
.lockup .ln{font-family:"Redaction",serif;font-weight:400;font-style:normal;letter-spacing:-.035em;line-height:.86;white-space:nowrap;font-kerning:normal}
.lockup .lp{display:block;font:600 .3em/1 var(--f-text);font-style:normal;text-transform:uppercase;letter-spacing:.26em;margin-right:-.26em;white-space:nowrap}
.lockup .lp i{font-style:normal}
.lockup.start{justify-items:start}
.lockup.start .lp{margin:0 0 0 .1em}

/* contact dialog (lib/contact.js). Each theme sets --c-bg, --c-accent and --c-veil. It fades by opacity only. */
.contact{width:min(520px,calc(100vw - 24px));max-width:none;max-height:calc(100svh - 24px);margin:auto;padding:0;border:0;border-radius:18px;
  background:var(--c-bg,#FBF8F2);color:#2B2238;box-shadow:0 1px 0 rgb(255 255 255 / .6) inset,0 30px 80px -28px rgb(43 34 56 / .5);overflow:auto}
.contact::backdrop{background:var(--c-veil,rgb(43 34 56 / .3))}
.contact[open]{animation:contact-in .4s cubic-bezier(.16,1,.3,1)}
@keyframes contact-in{from{opacity:0}}
@media (prefers-reduced-motion:reduce){.contact[open]{animation:none}}
.contact-panel{position:relative;display:grid;gap:18px;padding:clamp(26px,5vw,40px)}
.contact h2{font:400 clamp(2rem,6vw,2.5rem)/1 "Redaction",serif;letter-spacing:-.025em;color:var(--c-accent,#4A2C86);padding-right:44px}
.contact form{display:grid;gap:18px}
.contact label{display:grid;gap:4px;font-size:.84rem;color:#4E4560}
.contact input,.contact textarea{width:100%;font:inherit;font-size:1rem;line-height:1.45;color:#2B2238;background:transparent;border:0;border-radius:0;
  border-bottom:1px solid rgb(43 34 56 / .28);padding:8px 0 9px;transition:border-color .3s}
.contact textarea{resize:vertical;min-height:7.2em}
.contact input:focus,.contact textarea:focus{outline:none;border-bottom-color:#2B2238}
.contact .hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.contact button[type=submit]{justify-self:start;border:0;background:none;padding:10px 0;font:inherit;font-size:1rem;color:#2B2238;cursor:pointer;display:flex;gap:10px;align-items:center}
.contact button[type=submit]::after{content:"";width:18px;height:1px;background:currentColor;transition:width .5s cubic-bezier(.16,1,.3,1)}
.contact button[type=submit]:hover::after{width:30px}
.contact button[type=submit]:disabled{opacity:.5;cursor:default}
.contact button:focus-visible{outline:1.5px solid #A88543;outline-offset:4px}
.contact-x{position:absolute;top:clamp(16px,3vw,24px);right:clamp(16px,3vw,24px);width:40px;height:40px;border:0;border-radius:50%;background:rgb(43 34 56 / .06);color:#2B2238;cursor:pointer;display:grid;place-items:center}
.contact-x:hover{background:rgb(43 34 56 / .12)}
.contact-x svg{width:14px;height:14px}
.contact-note{min-height:1.4em;font-size:.88rem;line-height:1.38;color:#4E4560}
.contact-note[data-state=ok]{color:#2B2238}
.contact-note[data-state=err]{color:#8A3550}
