/*
 * Metamahal — site styles.
 * Concept: a palace of well-described knowledge, drawn as an architect's
 * plan. Ink walls on lime plaster; saffron marks where you are.
 *
 * Palette
 *   Chuna  (lime plaster)  #EEEFE9  ground
 *   Siyahi (ink)           #1A1E25  text, walls
 *   Neel   (indigo)        #2B3E8C  links, field names, rules
 *   Kesar  (saffron)       #E5A027  markers, hover, current room
 *   Sabz   (garden green)  #2F6A53  checks
 * Type
 *   Eczar (display), Anek Latin (text and labels), Courier Prime (metadata fields)
 */

:root {
  --chuna: #EEEFE9;
  --chuna-deep: #E3E5DD;
  --paper: #F8F8F4;
  --siyahi: #1A1E25;
  --siyahi-soft: #454B55;
  --neel: #2B3E8C;
  --kesar: #E5A027;
  --kesar-wash: #F4DFB3;
  --sabz: #2F6A53;
  --rule: rgba(26, 30, 37, .2);
  --rule-strong: rgba(26, 30, 37, .55);

  --f-display: "Eczar", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-text: "Anek Latin", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "Courier Prime", "Courier New", Courier, monospace;

  --gutter: 1rem;
  --fs-note: 1rem;
  --measure: 38rem;
  --shadow-card: 4px 4px 0 var(--siyahi);
  color-scheme: only light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- base ---------- */
body {
  background: var(--chuna);
  color: var(--siyahi);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  overflow-wrap: break-word;
}
@media (min-width: 64em) { body { font-size: 1.125rem; } }

a { color: var(--neel); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--siyahi); text-decoration-color: var(--kesar); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--neel); outline-offset: 3px; }
.band--ink :focus-visible { outline-color: var(--kesar); }

h1, h2 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.012em; }
h1 { font-size: clamp(2.25rem, 1.35rem + 4.3vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2.3vw, 2.9rem); line-height: 1.08; }
h3 { font-family: var(--f-text); font-stretch: 108%; font-weight: 650; font-size: 1.2rem; line-height: 1.3; }
@media (min-width: 64em) { h3 { font-size: 1.3rem; } }
p + p { margin-top: 1em; }
strong { font-weight: 650; }
code, .mono { font-family: var(--f-mono); font-size: .95em; }

.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: .5rem; top: -4rem; z-index: 50; background: var(--siyahi); color: var(--chuna); padding: .75rem 1rem; font-weight: 600; }
.skip:focus { top: .5rem; color: var(--chuna); }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }
@media (min-width: 48em) { :root { --gutter: 2rem; } }
@media (min-width: 64em) { :root { --fs-note: .9375rem; } }
@media (min-width: 80em) { :root { --gutter: 3rem; } }

.section { padding-block: 3.25rem; }
.section--tight { padding-block: 2rem; }
@media (min-width: 64em) { .section { padding-block: 5.5rem; } .section--tight { padding-block: 3rem; } }
.section + .section:not(.band) { border-top: 1px solid var(--rule); }

.band--ink { background: var(--siyahi); color: var(--chuna); }
.band--ink a { color: var(--kesar-wash); }
.band--ink a:hover { color: #fff; }
.band--deep { background: var(--chuna-deep); }

.split { display: grid; gap: 2rem; }
@media (min-width: 64em) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.prose { max-width: var(--measure); }
.prose h2 { margin: 2.25rem 0 .75rem; }
.prose h3 { margin: 1.75rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-top: .75rem; }
.prose li + li { margin-top: .4rem; }
.prose p + ul, .prose p + ol { margin-top: .6rem; }
.prose ul + p, .prose ol + p { margin-top: 1rem; }

/* ---------- small type ---------- */
.eyebrow {
  display: flex; align-items: baseline; gap: .6rem;
  font-family: var(--f-text); font-stretch: 122%; font-weight: 650;
  font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--neel); margin-bottom: 1rem;
}
.eyebrow__no { font-family: var(--f-mono); letter-spacing: 0; font-weight: 700; font-stretch: 100%; }
.band--ink .eyebrow { color: var(--kesar); }
.lead { font-size: 1.2rem; line-height: 1.5; max-width: 34rem; }
@media (min-width: 64em) { .lead { font-size: 1.375rem; } }
.muted { color: var(--siyahi-soft); }
.band--ink .muted { color: #C9CCC4; }
.small { font-size: var(--fs-note); }

/* dimension line: a drawn measurement used as a divider */
.dim {
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--f-mono); font-size: .9375rem; color: var(--neel);
  margin: 1.5rem 0; max-width: 34rem;
}
.dim::before, .dim::after {
  content: ""; flex: 1; height: 14px; min-width: 2rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(135deg, transparent 44%, currentColor 44% 56%, transparent 56%) left center / 10px 10px no-repeat;
  border-left: 1px solid currentColor;
}
.dim::after {
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(135deg, transparent 44%, currentColor 44% 56%, transparent 56%) right center / 10px 10px no-repeat;
  border-left: 0; border-right: 1px solid currentColor;
}
.band--ink .dim { color: var(--kesar); }

/* ---------- header and index-tab navigation ---------- */
.site-head { border-bottom: 2px solid var(--siyahi); background: var(--chuna); position: relative; z-index: 20; }
.site-head__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; padding: .5rem 0; }
.brand img { width: 168px; height: auto; }
@media (min-width: 48em) { .brand img { width: 190px; } }

.nav-toggle { display: none; }
.js .nav-toggle {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .9rem;
  background: transparent; border: 2px solid var(--siyahi); cursor: pointer;
  font-stretch: 118%; font-weight: 650; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
}
.nav-toggle__icon { width: 18px; height: 12px; border-top: 2px solid; border-bottom: 2px solid; position: relative; }
.nav-toggle__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid; }
.nav-toggle[aria-expanded="true"] { background: var(--kesar); }

.site-nav { flex-basis: 100%; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.site-nav ul { list-style: none; border-top: 1px solid var(--rule); margin-bottom: .75rem; }
.site-nav li { border-bottom: 1px solid var(--rule); }
.site-nav a {
  display: flex; align-items: center; gap: .9rem; min-height: 48px; padding: .4rem .25rem;
  color: var(--siyahi); text-decoration: none; font-weight: 600; font-size: 1.0625rem;
}
.site-nav__no { font-family: var(--f-mono); font-weight: 400; font-size: .875rem; color: var(--neel); width: 1.6rem; }
.site-nav a[aria-current="page"] { background: var(--kesar); padding-left: .6rem; }
.site-nav a:hover { background: var(--kesar-wash); }
.site-nav__cta a { justify-content: center; background: var(--siyahi); color: var(--chuna); margin: .75rem 0 .25rem; }
.site-nav__cta a:hover, .site-nav__cta a[aria-current="page"] { background: var(--kesar); color: var(--siyahi); }

@media (min-width: 70em) {
  .site-head__row { flex-wrap: nowrap; align-items: flex-end; min-height: 5rem; }
  .brand { align-self: center; }
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; flex-basis: auto; }
  .site-nav ul { display: flex; align-items: flex-end; gap: .25rem; border: 0; margin: 0; }
  .site-nav li { border: 0; }
  .site-nav a {
    min-height: 44px; padding: .55rem .8rem .45rem; gap: .45rem;
    font-size: .9375rem; border: 1.5px solid var(--rule-strong); border-bottom: 0;
    background: var(--paper); margin-bottom: 0;
  }
  .site-nav__no { width: auto; font-size: .75rem; }
  .site-nav a[aria-current="page"] { background: var(--kesar); border-color: var(--siyahi); padding-left: .8rem; padding-bottom: .6rem; }
  .site-nav a:hover { background: var(--kesar-wash); }
  .site-nav__cta { margin-left: .5rem; }
  .site-nav__cta a { margin: 0; border-color: var(--siyahi); background: var(--siyahi); color: var(--chuna); }
  .site-nav__cta a:hover, .site-nav__cta a[aria-current="page"] { background: var(--kesar); color: var(--siyahi); }
}

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .5rem 1.25rem;
  border: 2px solid var(--siyahi); background: var(--siyahi); color: var(--chuna);
  font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  box-shadow: 3px 3px 0 var(--kesar);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover { background: var(--kesar); color: var(--siyahi); box-shadow: 3px 3px 0 var(--siyahi); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--siyahi); }
.btn--ghost { background: transparent; color: var(--siyahi); box-shadow: none; }
.btn--ghost:hover { background: var(--kesar-wash); box-shadow: none; }
.band--ink .btn { background: var(--kesar); color: var(--siyahi); border-color: var(--kesar); box-shadow: 3px 3px 0 var(--chuna); }
.band--ink .btn:hover { background: var(--chuna); border-color: var(--chuna); }
.arrow::after { content: "\2192"; font-family: var(--f-text); }
.textlink { font-weight: 650; text-decoration-thickness: 2px; }

/* ---------- the floor plan ---------- */
.plan {
  position: relative; width: 100%; aspect-ratio: 300 / 362;
  container-type: inline-size; isolation: isolate;
}
.plan__walls { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.plan__wall { fill: var(--siyahi); }
.plan__gap { fill: var(--chuna); }
.plan__annex { fill: none; stroke: var(--siyahi); stroke-width: 2; stroke-dasharray: 6 4; }
.plan__chamber { stroke: none; }
.plan__chamber-line { fill: none; stroke: var(--siyahi); stroke-width: 1.6; }
.jali { fill: none; stroke: var(--siyahi); stroke-opacity: .42; stroke-width: .5; }

.room {
  position: absolute; z-index: 1; display: flex; flex-direction: column; gap: .1rem;
  padding: 4.5cqi 3.6cqi; color: var(--siyahi); text-decoration: none; line-height: 1.12;
  background: transparent; transition: background-color .15s ease;
}
.room__no { font-family: var(--f-mono); font-size: clamp(.75rem, 3.6cqi, 1rem); color: var(--neel); }
.room__name { font-weight: 650; font-stretch: 90%; font-size: clamp(.8125rem, 4.3cqi, 1.125rem); overflow-wrap: normal; word-break: normal; hyphens: manual; }
.room:hover, .room:focus-visible { background: var(--kesar); color: var(--siyahi); }
.room:focus-visible { outline-offset: -3px; z-index: 3; }
.room.is-here { background: var(--kesar); }
.room--tl { left: 2.667%; top: 2.21%; }
.room--tc { left: 34.778%; top: 2.21%; }
.room--tr { left: 66.889%; top: 2.21%; }
.room--ml { left: 2.667%; top: 28.822%; }
.room--c  { left: 34.778%; top: 28.822%; }
.room--mr { left: 66.889%; top: 28.822%; }
.room--bl { left: 2.667%; top: 55.433%; }
.room--bc { left: 34.778%; top: 55.433%; }
.room--br { left: 66.889%; top: 55.433%; }
.room--tl, .room--tc, .room--tr, .room--ml, .room--c, .room--mr, .room--bl, .room--bc, .room--br { width: 30.444%; height: 25.23%; }
.room--annex { left: 2.667%; top: 82.873%; width: 94.667%; height: 14.917%; flex-direction: row; align-items: center; gap: .75rem; padding-block: 0; }
.room--c { align-items: center; justify-content: center; text-align: center; padding: 0; }
.room--c .room__name {
  background: var(--chuna); padding: .2em .45em; position: relative; z-index: 3; border: 1.5px solid var(--siyahi);
  font-family: var(--f-mono); font-weight: 700; font-stretch: 100%; font-size: clamp(.75rem, 3.7cqi, 1rem); letter-spacing: .02em;
}
.room--c:hover .room__name, .room--c:focus-visible .room__name { background: var(--kesar); }

.plan--mini .room { padding: 6cqi; }
.plan--mini .room__no { font-size: clamp(.8125rem, 7cqi, 1.05rem); font-weight: 700; color: var(--siyahi); }
.plan--mini .room--c .room__name { font-size: clamp(.6875rem, 5.4cqi, .8125rem); padding: .15em .3em; }

.plan-figure { margin: 0; }
.plan-figure figcaption { margin-top: 1rem; font-size: var(--fs-note); color: var(--siyahi-soft); max-width: 36rem; }
.drawing-title { display: flex; align-items: center; gap: .6rem; font-family: var(--f-mono); font-size: .9375rem; color: var(--siyahi); margin-top: 1rem; }
.drawing-title__no {
  display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 1.5px solid var(--siyahi);
  border-radius: 50%; font-weight: 700; font-size: .875rem; flex: none;
}
.drawing-title span:last-child { border-bottom: 1.5px solid var(--siyahi); padding-bottom: .1rem; }

.legend { list-style: none; display: grid; gap: .55rem; margin-top: 1rem; font-size: var(--fs-note); }
.legend li { display: flex; gap: .75rem; align-items: flex-start; }
.legend__key { flex: none; width: 2.25rem; height: 1.1rem; margin-top: .2rem; }
.legend__key--wall { background: var(--siyahi); height: .45rem; margin-top: .55rem; }
.legend__key--gap { background: linear-gradient(90deg, var(--siyahi) 0 30%, transparent 30% 70%, var(--siyahi) 70%) center / 100% .45rem no-repeat; }
.legend__key--dash { background: repeating-linear-gradient(90deg, var(--siyahi) 0 6px, transparent 6px 10px) center / 100% 2px no-repeat; }
.legend__key--jali { background: url("../img/jali.svg") 0 0 / 12px 12px; border: 1.5px solid var(--siyahi); }

/* ---------- the octagon (one object in plan) ---------- */
.octa { position: relative; width: 100%; max-width: 40rem; aspect-ratio: 1; container-type: inline-size; margin-inline: auto; }
.octa__walls { position: absolute; inset: 0; width: 100%; height: 100%; }
.octa__room {
  position: absolute; width: 27%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .1rem; line-height: 1.15;
}
.octa__room--0 { left: 50%; top: 15.5%; }
.octa__room--1 { left: 74.4%; top: 25.6%; }
.octa__room--2 { left: 84.5%; top: 50%; }
.octa__room--3 { left: 74.4%; top: 74.4%; }
.octa__room--4 { left: 50%; top: 84.5%; }
.octa__room--5 { left: 25.6%; top: 74.4%; }
.octa__room--6 { left: 15.5%; top: 50%; }
.octa__room--7 { left: 25.6%; top: 25.6%; }
.octa__no {
  display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%;
  border: 1.5px solid var(--siyahi); font-family: var(--f-mono); font-weight: 700; font-size: clamp(.6875rem, 2.6cqi, .875rem);
}
.octa__rel { font-family: var(--f-mono); color: var(--neel); font-size: clamp(.6875rem, 2.7cqi, .9375rem); }
.octa__name { font-weight: 650; font-size: clamp(.75rem, 3cqi, 1.0625rem); }
.octa__core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--chuna); border: 1.5px solid var(--siyahi); padding: .35em .6em; text-align: center; line-height: 1.15;
}
.octa__core-k { display: block; font-family: var(--f-mono); font-size: clamp(.6875rem, 2.6cqi, .875rem); color: var(--neel); }
.octa__core-v { display: block; font-family: var(--f-display); font-weight: 600; font-size: clamp(.875rem, 3.6cqi, 1.25rem); }
@container (max-width: 30rem) {
  .octa__rel { display: none; }
}

/* ---------- catalogue card (a raised index card) ---------- */
.card {
  position: relative; background: var(--paper); border: 1.5px solid var(--siyahi); box-shadow: var(--shadow-card);
  padding: 1.6rem 1.1rem 1.1rem; margin-top: 1.25rem;
  transition: background-color .4s ease;
}
.card__tab {
  position: absolute; top: -1.05rem; left: 1rem; background: var(--paper); border: 1.5px solid var(--siyahi); border-bottom: 0;
  padding: .15rem .65rem 0; font-family: var(--f-text); font-stretch: 120%; font-weight: 650; font-size: .75rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--siyahi); transition: background-color .4s ease;
}
.card.is-here .card__tab { background: var(--kesar); }
.card.is-here { background: #FBF6EA; }
.card__title { font-family: var(--f-mono); font-weight: 700; font-size: 1rem; border-bottom: 1.5px solid var(--neel); padding-bottom: .4rem; margin-bottom: .6rem; }
.fields { display: grid; gap: .1rem; font-family: var(--f-mono); font-size: var(--fs-note); line-height: 1.4; }
.fields > div { display: grid; grid-template-columns: 1fr; padding: .4rem 0; border-bottom: 1px dotted var(--rule-strong); }
.fields > div:last-child { border-bottom: 0; }
.fields dt { color: var(--neel); font-weight: 700; }
.fields dd { color: var(--siyahi); }
@media (min-width: 40em) {
  .fields > div { grid-template-columns: minmax(9.5rem, 38%) 1fr; gap: 1rem; }
}
.oblig { display: inline-block; min-width: 1.5em; margin-right: .4em; text-align: center; font-weight: 700; font-size: .8125rem; border: 1px solid currentColor; line-height: 1.35; }
.oblig--m { background: var(--siyahi); color: var(--paper); border-color: var(--siyahi); }
.oblig--r, .oblig--o { color: var(--siyahi); background: var(--kesar-wash); border-color: var(--kesar); }

/* ---------- lists ---------- */
.checks { list-style: none; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 1.75rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: .8rem; height: .8rem;
  border: 2px solid var(--sabz); background: linear-gradient(var(--sabz), var(--sabz)) center / 40% 40% no-repeat;
}
.numbered { list-style: none; counter-reset: n; display: grid; gap: 1.25rem; }
.numbered > li { counter-increment: n; position: relative; padding-left: 3rem; }
.numbered > li::before {
  content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .05rem;
  font-family: var(--f-mono); font-weight: 700; color: var(--neel); font-size: .9375rem;
  border-top: 2px solid currentColor; padding-top: .15rem; width: 2.1rem;
}
.band--ink .numbered > li::before { color: var(--kesar); }

/* register: a ruled catalogue table */
.register { width: 100%; border-collapse: collapse; font-size: 1rem; }
.register caption { text-align: left; font-family: var(--f-mono); font-size: var(--fs-note); color: var(--siyahi-soft); padding-bottom: .75rem; }
.register th, .register td { text-align: left; vertical-align: top; padding: .8rem .75rem .8rem 0; border-bottom: 1px solid var(--rule); }
.register thead th {
  font-stretch: 118%; font-weight: 650; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--neel); border-bottom: 2px solid var(--siyahi); padding-bottom: .5rem;
}
.register td:first-child, .register th[scope="row"] { font-family: var(--f-mono); font-weight: 700; white-space: nowrap; }
.register a { font-weight: 600; }
@media (max-width: 47.99em) {
  .register--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .register--stack tr { display: block; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
  .register--stack th, .register--stack td { display: block; border: 0; padding: .1rem 0; white-space: normal; }
  .register--stack td[data-label]::before {
    content: attr(data-label); display: block; font-stretch: 118%; font-weight: 650; font-size: .6875rem;
    letter-spacing: .12em; text-transform: uppercase; color: var(--neel); margin-top: .5rem;
  }
}

/* ---------- home ---------- */
.hero { padding-block: 2.25rem 3.25rem; }
.hero__grid { display: grid; gap: 2.5rem; }
.hero h1 { max-width: 12ch; }
.hero__plan { max-width: 30rem; width: 100%; }
@media (min-width: 48em) and (max-width: 63.99em) {
  .hero__plan { max-width: none; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 2rem; align-items: end; }
  .lost .plan-figure { max-width: 26rem; }
}
@media (min-width: 64em) {
  .hero { padding-block: 4rem 5.5rem; }
  .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4rem; align-items: center; }
  .hero__plan { justify-self: end; max-width: 33rem; }
}

.gap-list { list-style: none; counter-reset: g; margin-top: 2rem; border-top: 1px solid rgba(238, 239, 233, .25); }
.gap-list > li { counter-increment: g; display: grid; gap: .5rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(238, 239, 233, .25); }
.gap-list h3 { font-family: var(--f-display); font-weight: 600; font-stretch: 100%; font-size: 1.35rem; color: var(--chuna); }
.gap-list h3::before { content: counter(g, decimal-leading-zero) "  "; font-family: var(--f-mono); font-size: .9375rem; color: var(--kesar); white-space: pre; }
@media (min-width: 64em) {
  .gap-list > li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; }
}
.gap-list p { color: #DADCD4; }
.verdict { margin-top: 2.25rem; font-family: var(--f-display); font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem); line-height: 1.2; max-width: 30ch; }
.verdict em { font-style: normal; color: var(--kesar); }

/* six of twenty: the DataCite properties as drawer slots */
.strip { margin-top: 2rem; }
.strip__slots { list-style: none; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; max-width: 34rem; }
@media (min-width: 64em) { .strip__slots { grid-template-columns: repeat(20, minmax(0, 1fr)); max-width: none; } }
.strip__slots li {
  aspect-ratio: 1 / 1.25; display: grid; place-items: end center; padding-bottom: .2rem;
  font-family: var(--f-mono); font-size: .75rem; border: 1.5px solid var(--kesar); color: var(--kesar);
}
.strip__slots li.is-m { background: var(--chuna); border-color: var(--chuna); color: var(--siyahi); font-weight: 700; }
.strip__key { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: .9rem; font-size: var(--fs-note); }
.strip__key span { display: inline-flex; align-items: center; gap: .5rem; }
.strip__key i { width: 1rem; height: 1rem; border: 1.5px solid var(--kesar); display: inline-block; }
.strip__key i.is-m { background: var(--chuna); border-color: var(--chuna); }

.fn { font-family: var(--f-mono); font-size: .8em; vertical-align: super; line-height: 0; text-decoration: none; padding: 0 .1em; }
.sources { list-style: none; counter-reset: s; display: grid; gap: .5rem; font-size: var(--fs-note); margin-top: 1rem; }
.sources li { counter-increment: s; position: relative; padding-left: 2rem; }
.sources li::before { content: "[" counter(s) "]"; position: absolute; left: 0; font-family: var(--f-mono); color: var(--neel); }
.band--ink .sources li::before { color: var(--kesar); }

.rooms-index { list-style: none; display: grid; border-top: 2px solid var(--siyahi); margin-top: 1.5rem; }
.rooms-index li { border-bottom: 1px solid var(--rule); }
.rooms-index a {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .25rem 1rem; padding: .9rem 0; min-height: 48px;
  color: var(--siyahi); text-decoration: none;
}
.rooms-index a:hover { background: var(--kesar-wash); }
.rooms-index__no { font-family: var(--f-mono); font-weight: 700; color: var(--neel); grid-row: span 2; padding-top: .1rem; }
.rooms-index__name { font-weight: 650; font-size: 1.0625rem; }
.rooms-index__meta { grid-column: 2; font-size: var(--fs-note); color: var(--siyahi-soft); }
@media (min-width: 64em) {
  .rooms-index a { grid-template-columns: 3rem minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); align-items: baseline; }
  .rooms-index__no { grid-row: auto; }
  .rooms-index__meta { grid-column: auto; }
}

.trio { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 64em) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; } }
.trio > div { padding-top: 1rem; border-top: 2px solid var(--siyahi); }
@media (min-width: 64em) { .trio > div { padding: 1.25rem 1.75rem 0 0; } .trio > div + div { padding-left: 1.75rem; border-left: 1px solid var(--rule); } }
.trio h3 { margin-bottom: .5rem; }

.name-split { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: flex-start; }
@media (min-width: 48em) { .name-split { gap: 1rem 2.25rem; } }
.name-part { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.6rem, 2rem + 3vw, 4.2rem); line-height: 1; width: min-content; }
.name-part small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: .9375rem; line-height: 1.3; letter-spacing: 0; color: var(--neel); margin-top: .5rem; }
.name-plus { font-family: var(--f-mono); font-size: 2rem; line-height: 1; color: var(--kesar); padding-top: .55em; }

/* ---------- what we publish ---------- */
.dim-gap { margin-top: 1.75rem; }
.publish-intro { display: grid; gap: 2rem; }
.publish-intro h1 { max-width: 14ch; }
.publish-plan { max-width: 26rem; }
@media (min-width: 48em) and (max-width: 63.99em) {
  .publish-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); align-items: end; }
}
@media (min-width: 64em) { .publish-plan { display: none; } }
.publish-layout { display: grid; gap: 2.5rem; }
.side-plan { display: none; }
@media (min-width: 64em) {
  .publish-layout { grid-template-columns: 13.5rem minmax(0, 1fr); gap: 4rem; align-items: start; }
  .side-plan { display: block; position: sticky; top: 1.5rem; }
  .side-plan p { font-family: var(--f-mono); font-size: .8125rem; color: var(--siyahi-soft); margin-top: .6rem; line-height: 1.35; }
}
.roomsec { padding-block: 2.75rem; border-top: 2px solid var(--siyahi); scroll-margin-top: 1rem; }
.roomsec:first-child { border-top: 0; padding-top: 0; }
.roomsec__no { font-family: var(--f-mono); font-size: .9375rem; color: var(--neel); display: block; margin-bottom: .35rem; }
.roomsec h2 { margin-bottom: .75rem; }
.roomsec__body { display: grid; gap: 2rem; margin-top: 1.75rem; }
@media (min-width: 80em) { .roomsec__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }
.roomsec h3 { margin-bottom: .9rem; }
.agency { display: flex; flex-wrap: wrap; gap: .4rem .75rem; align-items: baseline; margin-top: 1rem; padding: .75rem 0; border-block: 1px solid var(--rule); font-size: 1rem; }
.agency__k { font-stretch: 118%; font-weight: 650; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--neel); }
.agency + .agency { border-top: 0; margin-top: 0; }
.quote-link { margin-top: 1.75rem; }

/* ---------- rich metadata ---------- */
.meta-plan { margin-top: 2rem; }
.card-key { margin-top: 1.1rem; }
.card-key .oblig { margin-left: .2rem; }
.key-h { margin: 3rem 0 1.25rem; }
.octa-key { gap: 1.25rem 3rem; }
@media (min-width: 64em) { .octa-key { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.octa-key p + p { margin-top: .25rem; }
.octa-key code { color: var(--neel); font-weight: 700; }
.fields--props dt { display: flex; align-items: baseline; gap: .15rem; }

/* ---------- process steps (for authors) ---------- */
.steps { list-style: none; counter-reset: st; position: relative; display: grid; gap: 0; margin-top: 1.5rem; }
.steps > li { counter-increment: st; position: relative; padding: 0 0 2rem 3.75rem; }
.steps > li::before {
  content: counter(st); position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center; background: var(--paper); border: 2px solid var(--siyahi);
  font-family: var(--f-mono); font-weight: 700; z-index: 1;
}
.steps > li::after { content: ""; position: absolute; left: 1.2rem; top: 2.5rem; bottom: 0; border-left: 2px dashed var(--siyahi); }
.steps > li:last-child::after { display: none; }
.steps h3 { margin-bottom: .35rem; padding-top: .35rem; }

/* ---------- index tabs (Crossref's eleven elements) ---------- */
.tabs-row { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.tabs-row li {
  font-family: var(--f-mono); font-size: .9375rem; padding: .35rem .7rem .3rem; background: var(--paper);
  border: 1.5px solid var(--siyahi); border-bottom-width: 4px; border-bottom-color: var(--kesar);
}

/* ---------- policies and long pages ---------- */
.doc { display: grid; gap: 2.5rem; }
@media (min-width: 64em) { .doc { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; align-items: start; } }
.toc { border-top: 2px solid var(--siyahi); padding-top: .75rem; }
@media (min-width: 64em) { .toc { position: sticky; top: 1.5rem; } }
.toc h2 { font-family: var(--f-text); font-stretch: 118%; font-weight: 650; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--neel); margin-bottom: .5rem; }
.toc ol { list-style: none; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: .6rem; padding: .35rem 0; min-height: 44px; align-items: center; color: var(--siyahi); text-decoration: none; font-size: var(--fs-note); line-height: 1.25; }
.toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--f-mono); color: var(--neel); font-size: .8125rem; flex: none; }
.toc a:hover, .toc a.is-here { background: var(--kesar-wash); }
.doc-sec { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--rule); scroll-margin-top: 1rem; }
.doc-sec:last-child { border-bottom: 0; }
.doc-sec h2 { margin-bottom: 1rem; }
.doc-sec h3 { margin: 1.5rem 0 .5rem; }
.doc-sec ul, .doc-sec ol:not(.numbered):not(.checks) { padding-left: 1.25rem; margin-top: .6rem; }
.doc-sec li + li { margin-top: .4rem; }
.doc-sec .register { margin-top: 1.25rem; }
.version { font-family: var(--f-mono); font-size: .875rem; color: var(--siyahi-soft); margin-top: 1rem; }

.note {
  border: 1.5px solid var(--siyahi); background: var(--paper); padding: 1rem 1.1rem; margin-top: 1.25rem;
  border-left-width: 8px; border-left-color: var(--kesar);
}
.note p + p { margin-top: .6rem; }

/* status list (about) */
.status { list-style: none; display: grid; border-top: 2px solid var(--siyahi); margin-top: 1.25rem; }
.status li { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 40em) { .status li { grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; } }
.status__state { font-family: var(--f-mono); font-weight: 700; font-size: .875rem; white-space: nowrap; }
.status__state--done { color: var(--sabz); }
.status__state--open { color: var(--siyahi-soft); }
.status__state--done::before { content: "\25A0  "; white-space: pre; }
.status__state--open::before { content: "\25A1  "; white-space: pre; }

.scripts-word { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: baseline; margin-top: 1.25rem; }
.scripts-word span { display: grid; gap: .1rem; }
.scripts-word b { font-family: var(--f-display); font-weight: 500; font-size: 2.6rem; line-height: 1.2; }
.scripts-word b[lang="ur"] { font-family: "Gulzar", var(--f-display); font-weight: 400; line-height: 1.6; }
.scripts-word small { font-family: var(--f-mono); font-size: .875rem; color: var(--siyahi-soft); }

.swatches { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: .75rem; margin-top: 1.25rem; }
.swatches li { border: 1.5px solid var(--siyahi); background: var(--paper); font-size: .875rem; line-height: 1.3; }
.swatches i { display: block; height: 3.25rem; border-bottom: 1.5px solid var(--siyahi); }
.swatches span { display: block; padding: .45rem .55rem; }
.swatches b { display: block; }
.swatches code { font-size: .8125rem; }
.sw-chuna { background: var(--chuna); } .sw-siyahi { background: var(--siyahi); } .sw-neel { background: var(--neel); }
.sw-kesar { background: var(--kesar); } .sw-sabz { background: var(--sabz); }

/* ---------- FAQ ---------- */
.faq-group + .faq-group { margin-top: 3rem; }
@media (min-width: 64em) {
  .faq-group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4rem; align-items: start; }
  .faq-group > h2 { position: sticky; top: 1.5rem; }
}
.faq-group > h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); margin-bottom: .75rem; }
.faq { border-top: 2px solid var(--siyahi); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 1.5rem; gap: 1rem; align-items: center;
  min-height: 48px; padding: .85rem 0; font-weight: 650; font-size: 1.0625rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 1rem; height: 1rem; justify-self: end;
  background: linear-gradient(var(--siyahi), var(--siyahi)) center / 100% 2px no-repeat, linear-gradient(var(--siyahi), var(--siyahi)) center / 2px 100% no-repeat;
}
.faq details[open] summary::after { background: linear-gradient(var(--siyahi), var(--siyahi)) center / 100% 2px no-repeat; }
.faq summary:hover { background: var(--kesar-wash); }
.faq__a { padding: 0 0 1.25rem; max-width: var(--measure); }
.faq__a p + p { margin-top: .75rem; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.35rem; max-width: 40rem; }
.field { display: grid; gap: .35rem; }
.field__label { font-weight: 650; }
.field__label .opt { font-weight: 400; color: var(--siyahi-soft); }
.field__hint { font-size: var(--fs-note); color: var(--siyahi-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .6rem .75rem; background: var(--paper);
  border: 1.5px solid var(--siyahi); border-radius: 0; font-size: 1.0625rem;
}
.field textarea { min-height: 10rem; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background: var(--paper) linear-gradient(45deg, transparent 50%, var(--siyahi) 50%) calc(100% - 1.15rem) 55% / .45rem .45rem no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--neel); outline-offset: 1px; }
.field--error input, .field--error select, .field--error textarea { border-color: #A3271F; border-width: 2px; }
.field__error { color: #A3271F; font-weight: 600; font-size: var(--fs-note); }
.checkline { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .75rem; align-items: start; }
.checkline input { width: 1.4rem; height: 1.4rem; margin: .15rem 0 0; accent-color: var(--siyahi); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.errors { border: 2px solid #A3271F; background: #FBEDEA; padding: 1rem 1.1rem; }
.errors h2 { font-family: var(--f-text); font-stretch: 108%; font-size: 1.125rem; font-weight: 700; margin-bottom: .5rem; }
.errors ul { padding-left: 1.2rem; }
.errors li + li { margin-top: .35rem; }
.errors a { color: #7E1D17; font-weight: 600; }
.sent { border: 2px solid var(--sabz); background: #E7F0EA; padding: 1.25rem 1.25rem; }
.sent h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.contact-aside { display: grid; gap: 1.5rem; align-content: start; }
.contact-aside .card { margin-top: 1rem; }
.contact-list { list-style: none; display: grid; gap: .5rem; margin-top: .5rem; }

/* ---------- 404 ---------- */
.lost { display: grid; gap: 2.5rem; }
@media (min-width: 64em) { .lost { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4rem; align-items: center; } }
.lost .plan { max-width: 24rem; }

/* ---------- footer: the title block ---------- */
.site-foot { border-top: 2px solid var(--siyahi); background: var(--chuna); padding: 2.5rem 0 2rem; margin-top: 0; }
.titleblock { display: grid; border: 2px solid var(--siyahi); background: var(--paper); }
.titleblock__brand { display: flex; align-items: center; gap: .9rem; padding: 1rem; border-bottom: 1.5px solid var(--siyahi); }
.titleblock__brand img { width: 44px; height: 44px; flex: none; }
.titleblock__name { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
.titleblock__sub { display: block; font-size: .875rem; color: var(--siyahi-soft); }
.titleblock__grid { display: grid; grid-template-columns: 1fr 1fr; }
.titleblock__grid > div { padding: .6rem 1rem; border-right: 1px solid var(--siyahi); border-bottom: 1px solid var(--siyahi); }
.titleblock__grid > div:nth-child(2n) { border-right: 0; }
.titleblock__grid > div:nth-last-child(-n + 2) { border-bottom: 0; }
.titleblock dt { font-stretch: 118%; font-weight: 650; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--neel); }
.titleblock dd { font-family: var(--f-mono); font-size: .9375rem; }
@media (min-width: 64em) {
  .titleblock { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .titleblock__brand { border-bottom: 0; border-right: 1.5px solid var(--siyahi); }
  .titleblock__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .titleblock__grid > div { border-bottom: 0; border-right: 1px solid var(--siyahi); }
  .titleblock__grid > div:nth-child(2n) { border-right: 1px solid var(--siyahi); }
  .titleblock__grid > div:last-child { border-right: 0; }
}
.site-foot__cols { display: grid; gap: 2rem; margin-top: 2.25rem; }
@media (min-width: 48em) { .site-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .site-foot__cols { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 3rem; } }
.foot-h { font-family: var(--f-text); font-stretch: 118%; font-weight: 650; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--neel); margin-bottom: .6rem; }
.foot-nav ol { list-style: none; columns: 2; column-gap: 1.5rem; }
.foot-nav li { break-inside: avoid; }
.foot-nav a { display: flex; gap: .55rem; align-items: center; min-height: 44px; color: var(--siyahi); text-decoration: none; font-size: var(--fs-note); line-height: 1.2; }
.foot-nav a span { font-family: var(--f-mono); color: var(--neel); font-size: .8125rem; }
.foot-nav a:hover, .foot-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--kesar); text-decoration-thickness: 3px; }
.foot-contact ul { list-style: none; display: grid; gap: .35rem; font-size: var(--fs-note); }
.foot-contact a { display: inline-flex; min-height: 44px; align-items: center; }
.foot-note { font-size: var(--fs-note); }
.foot-note p { max-width: 30rem; }
.foot-legal { color: var(--siyahi-soft); margin-top: .75rem; }

.wa-float {
  position: fixed; z-index: 40; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.1rem;
  background: var(--sabz); color: #fff; border: 2px solid var(--siyahi); box-shadow: 3px 3px 0 var(--siyahi);
  font-weight: 650; text-decoration: none;
}
.wa-float:hover { background: var(--kesar); color: var(--siyahi); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- print ---------- */
@media print {
  .site-head nav, .nav-toggle, .skip, .wa-float, .btn-row, .side-plan { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .band--ink { background: #fff; color: #000; }
  a { color: #000; }
}

/* About opens with the name itself, set large */
h1.name-split .name-part { font-size: clamp(2.9rem, 1.5rem + 6vw, 7rem); }
h1.name-split .name-plus { font-size: clamp(2rem, 1.2rem + 2.5vw, 3.25rem); }

/* the form message is the target of the form post; keep it clear of the top edge */
#form-status { scroll-margin-top: 1.5rem; }

/* phone: icon-only WhatsApp button, so it covers less of the page */
.wa-float { gap: .5rem; }
.wa-float .icon { width: 22px; height: 22px; flex: none; }
@media (max-width: 600px) {
  .wa-float { width: 52px; min-height: 52px; padding: 0; justify-content: center; }
  .wa-float .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- editorial board (editors.php) and opt-out (optout.php) ---------- */
.editor-grid { display: grid; gap: .75rem 2rem; margin-top: 1.5rem; }
@media (min-width: 64em) { .editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.editor-card { display: flex; flex-direction: column; margin-top: 1.25rem; }
.editor-card__h { font-stretch: 118%; font-weight: 650; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--neel); margin: 1.25rem 0 .75rem; }
.editor-card .quote-link { margin-top: auto; padding-top: 1.5rem; }
.editors-apply { margin-top: 2rem; }
.field input.mono { letter-spacing: .04em; }
.optout-form { margin-top: 1.75rem; }
.optout-form + p { margin-top: 1.25rem; max-width: 34rem; }
#optout-status { max-width: 40rem; margin-top: 1.5rem; }
