/* aethervallis - The Dossier
   Bone broadsheet, ink rules, one bordeaux stamp. Zero radius, zero shadow.
   Adapted from a bone-white perfumery broadsheet system: the flat printed-page
   discipline is kept, the display face is swapped to a didone and one bordeaux
   accent is admitted (the stamp needs a colour that ink cannot give). */

/* ---------- tokens ---------- */
:root {
  --bone: #f2e9de;
  --stone: #e5dcd1;
  --ink: #1e1b18;
  --ink-soft: #57504a;
  --ink-faint: #8b827a;
  --rule: #1e1b18;
  --hair: #cabfb2;
  --bordeaux: #6b1f2a;
  --bordeaux-wash: #e9d9d6;

  --f-display: "Prata", Georgia, serif;
  --f-text: "Assistant", "Helvetica Neue", Arial, sans-serif;
  --f-file: "Courier Prime", "Courier New", monospace;

  --pad: clamp(18px, 5vw, 84px);
  --band: clamp(52px, 8vw, 118px);

  /* the built-in curves are too weak to read as intentional */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: clamp(15px, 0.4vw + 14px, 17px);
  line-height: 1.62;
  font-weight: 400;
}
img { max-width: 100%; height: auto; display: block; border-radius: 0; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.1em; }
li { margin-bottom: 0.4em; }
:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.label {
  font-family: var(--f-file);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.lede {
  font-size: clamp(17px, 0.7vw + 15px, 21px);
  line-height: 1.5;
  max-width: 40ch;
}
.prose { max-width: 68ch; }
.prose h3 {
  font-family: var(--f-display);
  font-size: clamp(20px, 1vw + 17px, 26px);
  margin: 2em 0 0.5em;
}
.prose h3:first-child { margin-top: 0; }
.small { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- shell ---------- */
.pad { padding-inline: var(--pad); }
section { padding-block: var(--band); }
.band-stone { background: var(--stone); }
.rule-top { border-top: 1px solid var(--rule); }

/* ---------- ghost link (the only button in the system) ---------- */
.ghost {
  display: inline-block;
  font-family: var(--f-file);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--bordeaux);
  padding-bottom: 3px;
  background: none;
  transition: color .18s ease, border-color .18s ease, transform .16s var(--ease-out);
}
.ghost:hover { color: var(--bordeaux); }
/* the link is a pressable thing; it should admit that it heard you */
.ghost:active { transform: scale(0.97); }
/* the arrow leans out on hover, but only where a real pointer exists */
@media (hover: hover) and (pointer: fine) {
  .ghost::after { display: inline-block; transition: transform .18s var(--ease-out); }
  .ghost:hover::after { transform: translateX(3px); }
}
.ghost::after { content: " \2192"; }
.ghost--plain::after { content: none; }

/* ---------- header ---------- */
.masthead {
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: var(--bone);
  z-index: 20;
}
.masthead__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
.wordmark {
  font-family: var(--f-display);
  font-size: 21px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--bordeaux); }
.nav { display: none; gap: clamp(14px, 1.8vw, 30px); }
.nav a {
  font-family: var(--f-file);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--bordeaux); }
.burger {
  border: 1px solid var(--rule);
  background: none;
  font-family: var(--f-file);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 7px 12px;
  cursor: pointer;
  color: var(--ink);
  border-radius: 0;
}
.nav-drop { display: none; border-top: 1px solid var(--hair); padding-block: 10px 18px; }
.nav-drop.open { display: block; }
.nav-drop a {
  display: block;
  font-family: var(--f-file);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  padding: 9px 0;
  border-bottom: 1px solid var(--hair);
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .burger, .nav-drop { display: none !important; }
}

/* ---------- hero: document head, not a banner ---------- */
.hero { padding-block: clamp(30px, 5vw, 60px) 0; }
.hero__stamp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(20px, 3vw, 34px);
}
.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(38px, 7.2vw, 108px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  max-width: 15ch;
  margin-bottom: clamp(20px, 2.4vw, 30px);
}
.hero__grid {
  display: grid;
  gap: clamp(22px, 3vw, 44px);
  padding-bottom: clamp(30px, 4vw, 54px);
}
.hero__trust {
  font-family: var(--f-file);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
  border-top: 1px solid var(--hair);
  padding-top: 12px;
  margin: 22px 0 0;
  max-width: 46ch;
}
.hero__cta { margin-top: 22px; }
.hero__figure { margin: 0; }
.hero__figure img { width: 100%; }
figcaption {
  font-family: var(--f-file);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding-top: 8px;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr 1.05fr; align-items: end; }
}

/* ---------- stamp ---------- */
.stamp {
  display: inline-block;
  font-family: var(--f-file);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--bordeaux);
  border: 2px solid var(--bordeaux);
  padding: 5px 10px;
  transform: rotate(-1.6deg);
}
.stamp--refused { transform: rotate(1.4deg); opacity: 0.9; }
.stamp--ink { color: var(--ink-soft); border-color: var(--ink-soft); }

/* ---------- editor note (asymmetric, narrow) ---------- */
.editor { display: grid; gap: clamp(20px, 3vw, 46px); }
.editor__body { max-width: 58ch; }
.editor__pull {
  font-family: var(--f-display);
  font-size: clamp(19px, 1.4vw + 15px, 29px);
  line-height: 1.24;
  border-left: 2px solid var(--bordeaux);
  padding-left: clamp(14px, 1.6vw, 22px);
  margin: 0;
}
@media (min-width: 900px) {
  .editor { grid-template-columns: 1.35fr 1fr; align-items: start; }
}

/* ---------- rules of entry: dense regulation list ---------- */
.regs { display: grid; gap: 0; margin-top: clamp(18px, 2vw, 30px); }
.reg {
  display: grid;
  gap: 4px 26px;
  padding-block: 18px;
  border-top: 1px solid var(--hair);
}
.reg:last-child { border-bottom: 1px solid var(--hair); }
.reg__no {
  font-family: var(--f-file);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--bordeaux);
}
.reg__term { font-family: var(--f-display); font-size: 19px; }
.reg__def { margin: 0; max-width: 62ch; }
@media (min-width: 760px) {
  .reg { grid-template-columns: 62px 1fr 1.7fr; align-items: baseline; }
  .reg__no { padding-top: 2px; }
}

/* ---------- the files ---------- */
.files { display: grid; gap: var(--band); }
.file { border-top: 2px solid var(--rule); padding-top: 20px; }
.file__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  font-family: var(--f-file);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.file__no { color: var(--bordeaux); font-weight: 700; }
.file h3 {
  font-family: var(--f-display);
  font-size: clamp(26px, 3vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.file__sub {
  font-family: var(--f-file);
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.file__grid { display: grid; gap: clamp(20px, 2.6vw, 40px); }
.file__img { margin: 0; }
.file__img img { width: 100%; }
.file__text > p:last-of-type { margin-bottom: 0; }

/* the meta ledger inside a file */
.meta { margin: 0 0 22px; font-family: var(--f-file); font-size: 12.5px; }
.meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px dotted var(--hair);
}
.meta dt { color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.07em; flex-shrink: 0; }
.meta dd { margin: 0; text-align: right; }

/* access score */
.score {
  border: 1px solid var(--rule);
  padding: 14px 16px;
  margin: 22px 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.score__n { font-family: var(--f-display); font-size: 34px; line-height: 1; }
.score__n em { font-style: normal; color: var(--ink-faint); font-size: 17px; }
.score__why {
  font-family: var(--f-file);
  font-size: 11.5px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 0;
  flex: 1 1 220px; /* sit beside the numeral and wrap internally, not below it */
}

/* honest caveat */
.caveat {
  border-left: 2px solid var(--bordeaux);
  background: var(--bordeaux-wash);
  padding: 14px 16px;
  margin-top: 22px;
}
.caveat p { margin: 0; font-size: 14.5px; }
.caveat strong { font-family: var(--f-file); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; display: block; margin-bottom: 5px; color: var(--bordeaux); }

/* file layout variants - the same block must not read twice */
@media (min-width: 900px) {
  .file__grid--img-right { grid-template-columns: 1.25fr 1fr; }
  .file__grid--img-left { grid-template-columns: 1fr 1.25fr; }
  .file__grid--img-left .file__img { order: -1; }
  .file__grid--wide { grid-template-columns: 1fr; max-width: 78ch; }
  .file__grid--split { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------- admissions table (dataviz) ---------- */
.table-scroll { overflow-x: auto; margin-top: clamp(20px, 2.5vw, 34px); }
.adm { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 14px; }
.adm caption {
  text-align: left;
  font-family: var(--f-file);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  padding-bottom: 12px;
}
.adm th, .adm td { text-align: left; padding: 12px 14px 12px 0; vertical-align: top; border-bottom: 1px solid var(--hair); }
.adm thead th {
  font-family: var(--f-file);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--rule);
}
.adm tbody th { font-family: var(--f-display); font-size: 16px; font-weight: 400; }
.adm td.num { font-family: var(--f-file); white-space: nowrap; }

/* access bar: one hue + grey, no filled track, value always labelled */
.bar { display: flex; align-items: center; gap: 9px; font-family: var(--f-file); font-size: 12px; }
.bar__track { width: 86px; height: 9px; border-bottom: 1px solid var(--hair); position: relative; flex-shrink: 0; }
.bar__fill { position: absolute; left: 0; bottom: 0; height: 9px; background: var(--bordeaux); }
.bar__fill--muted { background: var(--ink-faint); }
.bar__v { min-width: 34px; }

/* ---------- house pick ---------- */
.pick { display: grid; gap: clamp(20px, 3vw, 44px); }
.pick h2 { font-family: var(--f-display); font-size: clamp(28px, 3.4vw, 52px); line-height: 1.02; margin-bottom: 16px; }
.pick__body { max-width: 56ch; }
@media (min-width: 900px) { .pick { grid-template-columns: 1fr 1fr; align-items: center; } }

/* ---------- margin notes ---------- */
.notes { display: grid; gap: clamp(22px, 2.6vw, 40px); margin-top: clamp(18px, 2vw, 30px); }
.note { border-top: 1px solid var(--hair); padding-top: 16px; }
.note h3 { font-family: var(--f-display); font-size: 20px; margin-bottom: 8px; }
.note p { margin: 0; font-size: 14.5px; }
@media (min-width: 780px) { .notes { grid-template-columns: repeat(2, 1fr); } }
/* two short notes here; the long one was promoted to its own refusal block below */

/* ---------- faq ---------- */
.faq { max-width: 74ch; margin-top: clamp(16px, 2vw, 26px); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--f-display);
  font-size: clamp(17px, 0.8vw + 15px, 21px);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-file); color: var(--bordeaux); font-size: 17px; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; max-width: 62ch; }

/* ---------- form ---------- */
.form { max-width: 34rem; margin-top: clamp(16px, 2vw, 26px); }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--f-file);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input[type="text"], .field input[type="email"] {
  width: 100%;
  font-family: var(--f-text);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 9px 0;
  -webkit-appearance: none;
}
.field input:focus { outline: none; border-bottom-color: var(--bordeaux); border-bottom-width: 2px; }
.consent { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 20px; }
.consent input { margin-top: 4px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--bordeaux); }
.consent label { font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
button.ghost { cursor: pointer; border-top: 0; border-left: 0; border-right: 0; }
.success {
  display: none;
  border: 1px solid var(--bordeaux);
  padding: 14px 16px;
  margin-top: 18px;
  font-size: 14.5px;
}
.success.show { display: block; }

/* ---------- footer ---------- */
.foot { border-top: 2px solid var(--rule); padding-block: clamp(34px, 4vw, 60px) 30px; }
.foot__grid { display: grid; gap: clamp(24px, 3vw, 44px); }
.foot h2 { font-family: var(--f-display); font-size: 22px; margin-bottom: 10px; }
.foot h3 {
  font-family: var(--f-file);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 7px; }
.foot a { text-decoration: none; border-bottom: 1px solid var(--hair); }
.foot a:hover { border-bottom-color: var(--bordeaux); }
.rg-line {
  border: 1px solid var(--bordeaux);
  color: var(--bordeaux);
  padding: 11px 14px;
  font-family: var(--f-file);
  font-size: 12px;
  letter-spacing: 0.05em;
  margin-top: clamp(24px, 3vw, 36px);
}
.rg-line a { color: var(--bordeaux); }
.disclaimer {
  font-size: 11.5px;
  line-height: 1.62;
  color: var(--ink-faint);
  border-top: 1px solid var(--hair);
  margin-top: 24px;
  padding-top: 18px;
  max-width: 100ch;
}
.disclaimer a { color: var(--ink-faint); }
.copyright { font-family: var(--f-file); font-size: 11px; color: var(--ink-faint); margin: 16px 0 0; letter-spacing: 0.06em; }
@media (min-width: 780px) { .foot__grid { grid-template-columns: 1.5fr 1fr 1fr; } }

/* ---------- legal / plain pages ---------- */
.page-head { padding-block: clamp(34px, 4.5vw, 66px) clamp(22px, 2.6vw, 34px); border-bottom: 1px solid var(--rule); }
.page-head h1 {
  font-family: var(--f-display);
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 20ch;
}
.page-head .label { margin-bottom: 12px; }
.updated { font-family: var(--f-file); font-size: 11.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.09em; margin: 14px 0 0; }

/* ---------- 404 ---------- */
.gone { padding-block: clamp(60px, 12vw, 150px); text-align: left; }
.gone h1 { font-family: var(--f-display); font-size: clamp(40px, 9vw, 120px); line-height: 0.92; margin-bottom: 18px; }
.gone p { max-width: 46ch; }

/* ---------- rules of entry: the header carries the threshold photograph ---------- */
.rules__head { display: grid; gap: clamp(20px, 3vw, 44px); align-items: end; }
.rules__head p { margin-bottom: 0; }
.rules__intro { max-width: 62ch; }
.rules__intro h2 { font-size: clamp(26px, 3.2vw, 44px); max-width: 24ch; margin-bottom: 16px; }
.rules__fig { margin: 0; }
.rules__fig img { width: 100%; }
@media (min-width: 900px) { .rules__head { grid-template-columns: 1.1fr 1fr; } }

/* ---------- evidence plate: two frames that argue one point together ---------- */
.evidence {
  display: grid;
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: clamp(24px, 3vw, 38px);
  border-top: 1px solid var(--hair);
  padding-top: 16px;
}
.evidence__label {
  font-family: var(--f-file);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--bordeaux);
  margin: 0;
}
.evidence__pair { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.evidence figure { margin: 0; }
.evidence img { width: 100%; }
@media (min-width: 760px) { .evidence__pair { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- inset detail: a small frame that sits inside the reading column ---------- */
.detail-fig {
  margin: 26px 0;
  border-left: 2px solid var(--hair);
  padding-left: clamp(12px, 1.4vw, 18px);
}
.detail-fig img { width: 100%; }
@media (min-width: 1000px) {
  /* The detail hangs slightly out of the measure, the way a pasted-in print would.
     Fixed px, not a percentage: a percentage keeps growing on wide screens until it
     escapes the page padding and hands you a horizontal scrollbar. */
  .detail-fig { margin-right: -40px; }
}

/* ---------- admission chips: the verdict, not a colour swatch ---------- */
.chip {
  display: inline-block;
  font-family: var(--f-file);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  padding: 2px 6px;
  border: 1px solid currentColor;
  margin-bottom: 5px;
}
.chip--refused { color: var(--bordeaux); }
.chip--open { color: var(--ink-faint); }
.adm td .chip + span { display: block; font-size: 13px; color: var(--ink-soft); }

.adm__key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 14px;
  font-family: var(--f-file);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-faint);
}
.adm__key span { display: flex; align-items: center; gap: 7px; }
.adm__key i { width: 20px; height: 8px; display: block; }
.adm__key i.is-gaming { background: var(--bordeaux); }
.adm__key i.is-hotel { background: var(--ink-faint); }
/* the paid door is the outlier of the table; the table should say so */
.adm .is-paid { color: var(--bordeaux); font-weight: 700; }

/* ---------- the refusal: the one file with no photograph ---------- */
.refusal {
  border: 2px solid var(--bordeaux);
  padding: clamp(20px, 3vw, 34px);
  margin-top: clamp(24px, 3vw, 38px);
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 14px,
      rgba(107, 31, 42, 0.035) 14px 28px
    );
}
.refusal h3 { font-family: var(--f-display); font-size: clamp(21px, 2vw, 30px); margin-bottom: 10px; }
.refusal p { max-width: 64ch; }
.refusal p:last-child { margin-bottom: 0; }
.stamp--big {
  align-self: start;
  justify-self: start;
  font-family: var(--f-file);
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bordeaux);
  border: 3px double var(--bordeaux);
  padding: 10px 16px;
  transform: rotate(-4deg);
  opacity: 0.78;
  white-space: nowrap;
}
.stamp--big small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 4px;
}
@media (min-width: 820px) { .refusal { grid-template-columns: 1fr auto; align-items: start; } }

/* ---------- marginalia: the pencil note beside the regulation ---------- */
.marginalia {
  display: block;
  font-family: var(--f-file);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-faint);
  border-left: 1px solid var(--bordeaux);
  padding-left: 10px;
  margin: 12px 0 0;
  max-width: 34ch;
}
.marginalia::before {
  content: "Note / ";
  color: var(--bordeaux);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 10px;
}

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