/* ═══════════════════════════════════════════════════════════════════════
   ZARIIA — shared page language.  Rev. 26 July 2026 (2): THE REGISTERED
   VESSEL.

   ── Where this comes from ──────────────────────────────────────────────
   Four sources, and they are one idea. A Greek amphora, a Kutchi pot, a
   Moroccan lantern and a matryoshka are all VESSELS CARRYING BANDED
   DECORATION, and each of them either opens or lets light through.

     · GREEK POTTERY  — the body divided into horizontal REGISTERS, each
       band a separate field, separated by a MEANDER (the Greek key). The
       key is drawn as ornament here, which is not a pun the project needs
       to explain: it is what the ornament has always been called.
     · KUTCHI EARTHENWARE — fired clay body with fine BONE-SLIP lines and
       dotted bands laid over it. The wheel's horizontal trace is left
       visible in the ground. Terracotta is the body, not an accent.
     · MOROCCAN — light arriving THROUGH A PIERCED SCREEN, so illumination
       is a pattern of points rather than a wash; and the zellij eight-
       point star as the section marker.
     · MATRYOSHKA — NESTING. Sealed matter is drawn as a frame inside a
       frame inside a frame, the innermost unlit. One thing inside another
       is the object this label makes.

   ── The device ─────────────────────────────────────────────────────────
   The page is read as a fired vessel: horizontal registers on a clay
   ground, ruled apart by meander bands, lit through a pierced screen,
   with the sealed channel shown as a nesting rather than as a panel.
   (Replaces the previous "lit aperture" pass, which read as a generic
   dark page — Prayas: "does not have its own look enough".)

   ── The chord moved, and this is a brand decision ──────────────────────
   Away from indigo-night-as-dominant, toward a FIRED EARTHENWARE BODY:
   black-slip dark, terracotta, bone slip, struck gold, with the Moroccan
   blue-teal as the cold counter-voice. The meanings are unchanged —
   gold = the open song, terracotta/ember = the sealed channel alight,
   teal = the cold latent state. `../brand/brand.md` needs updating to
   match; flagged, not done silently.
   Type: Antic Didone (display AND prose) / Cutive Mono (machinery only).
   ═══════════════════════════════════════════════════════════════════════ */

:root{
  /* the clay body */
  --fired:#150c07; --fired-deep:#0d0705; --clay:#2e170e; --clay-lit:#412013;
  /* red-figure terracotta */
  --terra:#b4522a; --terra-hi:#d4703c; --terra-deep:#7a3218;
  /* bone slip — the painted line on the pot */
  --slip:#eadfcb; --slip-dim:#a3947a;
  /* struck gold */
  --gold:#e0ae5c; --gold-hi:#f2d79c; --gold-deep:#b98a3e;
  /* zellij — the cold counter-voice */
  --zellij:#1c5a6e; --zellij-hi:#3d93a6; --latent:#264a5a;

  --rule:rgba(234,223,203,.13); --rule-lit:rgba(224,174,92,.30);
  --display:'Antic Didone',serif;
  --mono:'Cutive Mono',ui-monospace,monospace;
  --ease:cubic-bezier(.22,.61,.36,1);

  /* THE MEANDER — the Greek key, tiled. Ornament and namesake at once. */
  --meander:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='18' viewBox='0 0 34 18'%3E%3Cg fill='none' stroke='%23e0ae5c' stroke-width='1' stroke-linecap='square'%3E%3Cpath d='M0 17h34'/%3E%3Cpath d='M4 17V4h13v9H9V8h4'/%3E%3Cpath d='M21 17V4h13'/%3E%3C/g%3E%3C/svg%3E");
  /* the pierced screen — light arrives as points, not a wash */
  --pierce:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='%23eadfcb'%3E%3Ccircle cx='24' cy='24' r='1.3'/%3E%3Ccircle cx='6' cy='11' r='.8'/%3E%3Ccircle cx='40' cy='15' r='.9'/%3E%3Ccircle cx='12' cy='38' r='.7'/%3E%3Ccircle cx='36' cy='41' r='.8'/%3E%3C/g%3E%3C/svg%3E");
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{background:var(--fired);color:var(--slip);font-family:var(--display);
  font-size:19px;line-height:1.72;overflow-x:hidden;position:relative}

/* ── the ground: a fired clay body, with the wheel's trace left in it ── */
.ground{position:fixed;inset:0;z-index:-3;
  background:
    radial-gradient(104% 62% at 78% 4%,  rgba(180,82,42,.15), transparent 58%),
    radial-gradient(90% 62% at 10% 96%, rgba(28,90,110,.20), transparent 64%),
    linear-gradient(178deg, #24120b 0%, var(--fired) 44%, var(--fired-deep) 100%)}
/* the wheel-turned horizontal banding — the medium showing through */
.ground::before{content:"";position:absolute;inset:0;opacity:.5;
  background:repeating-linear-gradient(180deg,
    rgba(234,223,203,.030) 0 1px, transparent 1px 7px)}
.ground::after{content:"";position:absolute;inset:0;
  background:radial-gradient(122% 92% at 50% 38%, transparent 40%, rgba(0,0,0,.52) 100%)}

/* the Moroccan pierced screen: light through cut openings */
.wash{position:fixed;inset:0;z-index:-2;pointer-events:none;opacity:.10;
  background-image:var(--pierce);background-size:48px 48px;
  -webkit-mask-image:radial-gradient(46% 34% at 74% 12%, #000 0%, transparent 72%);
  mask-image:radial-gradient(46% 34% at 74% 12%, #000 0%, transparent 72%)}
.grain{position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.34;mix-blend-mode:overlay}

/* ── layout ── */
.wrap{max-width:1120px;margin:0 auto;padding:0 clamp(22px,5vw,68px)}
.bay{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);
  gap:clamp(32px,5vw,84px);align-items:start}
.bay.flip{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
.bay.even{grid-template-columns:1fr 1fr}
@media(max-width:820px){.bay,.bay.flip,.bay.even{grid-template-columns:1fr;gap:30px}}

/* ── REGISTERS — the page banded like a vessel, ruled by meanders ── */
section{padding:clamp(66px,10vh,132px) 0;position:relative}
section+section::before{content:"";position:absolute;top:0;left:0;right:0;height:18px;opacity:.20;
  background-image:var(--meander);background-repeat:repeat-x;background-size:34px 18px;
  -webkit-mask-image:linear-gradient(90deg,#000 0%,#000 52%,transparent 88%);
  mask-image:linear-gradient(90deg,#000 0%,#000 52%,transparent 88%)}
/* alternate registers carry a slightly different body, as on a pot */
section:nth-of-type(even)::after{content:"";position:absolute;inset:0;z-index:-1;
  left:50%;transform:translateX(-50%);width:100vw;
  background:linear-gradient(180deg, rgba(65,32,19,.30), rgba(65,32,19,0))}

/* ── the zellij eight-point star: section marker ── */
.star{display:inline-block;width:13px;height:13px;margin-right:11px;
  vertical-align:-1px;background:var(--gold);opacity:.85;
  clip-path:polygon(50% 0%,61% 26%,87% 15%,76% 40%,100% 50%,76% 60%,87% 85%,
    61% 74%,50% 100%,39% 74%,13% 85%,24% 60%,0% 50%,24% 40%,13% 15%,39% 26%)}

/* ── the lit register: a band of warmth, ruled top and bottom ── */
.aperture{position:relative;padding:clamp(34px,4vw,58px) clamp(28px,3.4vw,52px);
  background:linear-gradient(180deg, rgba(46,23,14,.62), rgba(21,12,7,.62));
  border-top:1px solid var(--rule-lit);border-bottom:1px solid var(--rule);
  isolation:isolate}
.aperture::before{content:"";position:absolute;inset:-36% -20%;z-index:-1;pointer-events:none;
  background:radial-gradient(48% 40% at var(--lx,28%) var(--ly,16%),
    rgba(224,174,92,.20) 0%, rgba(180,82,42,.09) 40%, transparent 74%);
  filter:blur(48px)}
.aperture.tealed{border-top-color:rgba(61,147,166,.30)}
.aperture.tealed::before{background:radial-gradient(46% 38% at var(--lx,50%) var(--ly,14%),
  rgba(61,147,166,.16) 0%, rgba(28,90,110,.07) 42%, transparent 76%)}

/* colour as MASS — a body of fired terracotta, red-figure ground */
.aperture.mass{background:linear-gradient(164deg,var(--terra) 0%,var(--terra-deep) 52%,#3d1a0e 100%);
  border-top:1px solid rgba(242,215,156,.42);border-bottom:1px solid rgba(122,50,24,.6)}
.aperture.mass::before{background:radial-gradient(46% 40% at 68% 78%,rgba(212,112,60,.30),transparent 76%)}
.aperture.mass p{color:#f7e7d6}
.aperture.mass .label{color:var(--gold-hi)}

/* ── SEALED = NESTED. matryoshka: a frame inside a frame inside a frame,
      the innermost unlit. Presence open, content keyed. ── */
.sealed{position:relative;padding:clamp(30px,3.6vw,46px);
  border:1px solid rgba(38,74,90,.55);background:rgba(13,7,5,.42);
  box-shadow:
    inset 0 0 0 6px rgba(13,7,5,.0),
    inset 0 0 0 7px rgba(38,74,90,.34),
    inset 0 0 0 14px rgba(13,7,5,0),
    inset 0 0 0 15px rgba(38,74,90,.20)}
.sealed::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(112deg, transparent 0 12px, rgba(38,74,90,.07) 12px 13px)}

/* ── type ── */
.label{font-family:var(--mono);font-size:11px;letter-spacing:.26em;text-transform:uppercase;
  color:var(--zellij-hi);display:block;margin-bottom:20px}
.label.warm{color:var(--gold)} .label.cold{color:var(--latent)}
h1,h2,h3,h4{font-family:var(--display);font-weight:400;letter-spacing:.015em;line-height:1.12}
h1{font-size:clamp(50px,8.4vw,116px);color:var(--gold-hi);letter-spacing:.035em}
h2{font-size:clamp(29px,4vw,52px);color:var(--slip);margin-bottom:26px;line-height:1.16}
h3{font-size:clamp(22px,2.3vw,30px);color:var(--gold);margin:46px 0 14px}
p,li{font-family:var(--display);font-size:19px;line-height:1.72;
  margin-bottom:20px;max-width:58ch;color:rgba(234,223,203,.88)}
p.lede{font-size:clamp(21px,2.4vw,30px);line-height:1.5;color:var(--gold-hi);
  margin-bottom:22px;max-width:40ch}
p.quiet{font-family:var(--mono);color:var(--slip-dim);font-size:13px;line-height:1.8;max-width:52ch}
em{font-style:italic;color:var(--terra-hi)}
strong{font-weight:400;color:var(--gold-hi)}
a{color:var(--zellij-hi);text-decoration:none;border-bottom:1px solid rgba(61,147,166,.34);
  transition:color .5s var(--ease),border-color .5s var(--ease)}
a:hover{color:var(--gold-hi);border-color:var(--gold)}
.dev{font-family:var(--display);font-size:1.14em;color:var(--gold-hi)}

/* ── navigation ── */
nav.top{display:flex;align-items:center;gap:clamp(18px,3vw,40px);flex-wrap:wrap;min-height:44px;
  font-family:var(--mono);padding:32px 0 0;height:76px;font-size:11px;letter-spacing:.22em;text-transform:uppercase}
nav.top .home{display:flex;align-items:center;gap:13px;border:none;
  transition:opacity .5s var(--ease)}
nav.top .home img{transition:transform .6s var(--ease)}
nav.top .home:hover img{transform:translateY(-1px)}
nav.top .home:hover span{color:#fff}
nav.top .home span{transition:color .5s var(--ease)}
nav.top .home img{width:31px;height:31px;flex:none}
nav.top .home span{font-family:var(--display);font-size:20px;letter-spacing:.06em;
  color:var(--gold-hi);text-transform:none}
nav.top a{color:var(--slip-dim);border:none;padding-bottom:4px;border-bottom:1px solid transparent}
nav.top a:hover{color:var(--gold-hi)}
nav.top a[aria-current]{color:var(--zellij-hi);border-bottom-color:rgba(61,147,166,.5)}
nav.top .sp{flex:1}

/* ── essay pages ── */
.essaytop{padding:clamp(56px,10vh,120px) 0 clamp(28px,4vh,50px);position:relative}
.essaytop::after{content:"";position:absolute;bottom:0;left:0;width:min(300px,52%);height:18px;
  opacity:.26;background-image:var(--meander);background-repeat:repeat-x;background-size:34px 18px}
.essaytop h1{font-size:clamp(38px,6.4vw,80px);max-width:17ch;line-height:1.1}
.essay{max-width:none}
.essay p,.essay li{max-width:64ch}
.essay .pull{font-family:var(--display);font-size:clamp(22px,2.5vw,32px);line-height:1.44;
  color:var(--gold-hi);margin:44px 0;padding-left:30px;
  border-left:2px solid var(--terra);max-width:34ch}
.essay ul{margin:0 0 22px 0}
.essay li{list-style:none;position:relative;padding:10px 0 10px 28px}
/* bullets are small zellij stars, not dashes */
.essay li::before{content:"";position:absolute;left:0;top:20px;width:9px;height:9px;
  background:var(--gold);opacity:.75;
  clip-path:polygon(50% 0%,61% 26%,87% 15%,76% 40%,100% 50%,76% 60%,87% 85%,
    61% 74%,50% 100%,39% 74%,13% 85%,24% 60%,0% 50%,24% 40%,13% 15%,39% 26%)}
.note{border-top:1px solid var(--rule);margin-top:64px;padding-top:28px}
.note p{font-family:var(--mono);font-size:12px;line-height:1.85;color:var(--slip-dim);max-width:78ch}

footer{padding:clamp(52px,7vh,96px) 0 clamp(44px,6vh,76px);margin-top:44px;position:relative}
footer::before{content:"";position:absolute;top:0;left:0;width:min(300px,52%);height:18px;opacity:.22;
  background-image:var(--meander);background-repeat:repeat-x;background-size:34px 18px}
.colophon{display:flex;flex-wrap:wrap;gap:14px 38px;font-family:var(--mono);
  font-size:12px;color:var(--slip-dim);letter-spacing:.06em}

/* ── reveals ── */
.rise{opacity:0;transform:translateY(18px);
  transition:opacity 1.9s var(--ease),transform 1.9s var(--ease)}
.rise.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .rise{opacity:1;transform:none}}
