/* HAUTE LUMIÈRE — the reading room around the issues.
 *
 * Two registers only. Daylight is the house register and the default; Nocturne
 * answers a reader whose machine is set to dark. The seven registers are
 * editorial moods and belong to the issues themselves — the room around them
 * does not need all seven, it needs to disappear.
 *
 * Radius zero. One hairline. Gold is never a fill.
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Manrope:wght@300;400;500;600&display=swap');

/* HL:REGISTERS — from tokens/colors.css by bin/house_registers.py; do not hand-edit. */
html[data-register='aurora']{
  --paper:#F4F9FD; --paper-2:#E9F2FA; --ink:#17283A; --ink-soft:#3A5062;
  --text-body:#3A5062; --text-muted:#4E6B87; --muted:#4E6B87;
  --gold:#B7A667; --gold-d:#93813C; --rule:#D2E5F2; --border-light:#D2E5F2;
  --desk:#C3D9EC; --veil:20,42,64 ; --grain-blend:multiply ;
  --photo-grade:sepia(.14) hue-rotate(165deg) saturate(1.07) brightness(1.03) contrast(1.01) ;
  --image-filter:sepia(.14) hue-rotate(165deg) saturate(1.07) brightness(1.03) contrast(1.01) ;
  --panel:var(--ink) ; --panel-ink:var(--paper) ;
  color-scheme:light;
}

:root,
html[data-register='daylight']{
  --paper:#FAF8F3; --paper-2:#F3EFE6; --ink:#0C1E16; --ink-soft:#334A3F;
  --text-body:#334A3F; --text-muted:#5C7065; --muted:#5C7065;
  --gold:#C5A059; --gold-d:#9A7A3A; --rule:#E1E7E2; --border-light:#E1E7E2;
  --desk:#D6DAD4; --veil:12,30,22 ; --grain-blend:multiply ;
  --photo-grade:saturate(1.04) contrast(1.03) brightness(1.01) ;
  --image-filter:saturate(1.04) contrast(1.03) brightness(1.01) ;
  --panel:var(--ink) ; --panel-ink:var(--paper) ;
  color-scheme:light;
}

html[data-register='solstice']{
  --paper:#FDF8E4; --paper-2:#F7EFD3; --ink:#3A3117; --ink-soft:#5C4F28;
  --text-body:#5C4F28; --text-muted:#75683B; --muted:#75683B;
  --gold:#C79A3C; --gold-d:#A2782A; --rule:#EDE3C4; --border-light:#EDE3C4;
  --desk:#E6DBB6; --veil:58,49,23 ; --grain-blend:multiply ;
  --photo-grade:sepia(.26) saturate(1.1) brightness(1.04) ;
  --image-filter:sepia(.26) saturate(1.1) brightness(1.04) ;
  --panel:var(--ink) ; --panel-ink:var(--paper) ;
  color-scheme:light;
}

html[data-register='dusk']{
  --paper:#FBF4EA; --paper-2:#F4E8DA; --ink:#33201A; --ink-soft:#5A3C2E;
  --text-body:#5A3C2E; --text-muted:#7A5B4C; --muted:#7A5B4C;
  --gold:#D69A4C; --gold-d:#B0713C; --rule:#EDDFCE; --border-light:#EDDFCE;
  --desk:#E0CDB8; --veil:51,32,26 ; --grain-blend:multiply ;
  --photo-grade:sepia(.16) saturate(1.24) contrast(1.07) brightness(1.02) ;
  --image-filter:sepia(.16) saturate(1.24) contrast(1.07) brightness(1.02) ;
  --panel:var(--ink) ; --panel-ink:var(--paper) ;
  color-scheme:light;
}

html[data-register='vespers']{
  --paper:#3A2E22; --paper-2:#463829; --ink:#F2E3C8; --ink-soft:#DCC9A6;
  --text-body:#DCC9A6; --text-muted:#C0AB8A; --muted:#C0AB8A;
  --gold:#D9AE6A; --gold-d:#C79753; --rule:#55432F; --border-light:#55432F;
  --desk:#241C14; --veil:36,28,20 ; --grain-blend:screen ;
  --photo-grade:sepia(.55) saturate(.85) contrast(1.02) ;
  --image-filter:sepia(.55) saturate(.85) contrast(1.02) ;
  --panel:var(--desk) ; --panel-ink:var(--ink) ;
  color-scheme:dark;
}

html[data-register='midnight']{
  --paper:#111620; --paper-2:#171E2A; --ink:#EFE8D8; --ink-soft:#CFC7B4;
  --text-body:#CFC7B4; --text-muted:#8E97A6; --muted:#8E97A6;
  --gold:#D9B472; --gold-d:#C39A56; --rule:#2A3140; --border-light:#2A3140;
  --desk:#080B11; --veil:5,8,14 ; --grain-blend:screen ;
  --photo-grade:contrast(1.14) brightness(.9) saturate(1.04) ;
  --image-filter:contrast(1.14) brightness(.9) saturate(1.04) ;
  --panel:var(--desk) ; --panel-ink:var(--ink) ;
  color-scheme:dark;
}

html[data-register='nocturne']{
  --paper:#0E1712; --paper-2:#131F18; --ink:#EDE6D2; --ink-soft:#C9C2AA;
  --text-body:#C9C2AA; --text-muted:#7E8C80; --muted:#7E8C80;
  --gold:#C7A468; --gold-d:#AC8B4C; --rule:#243128; --border-light:#243128;
  --desk:#070B08; --veil:7,13,9 ; --grain-blend:screen ;
  --photo-grade:sepia(.14) hue-rotate(75deg) saturate(.82) contrast(1.13) brightness(.87) ;
  --image-filter:sepia(.14) hue-rotate(75deg) saturate(.82) contrast(1.13) brightness(.87) ;
  --panel:var(--desk) ; --panel-ink:var(--ink) ;
  color-scheme:dark;
}

:root{
  --on-photo:#FBF8F0 ;
  --on-photo-soft:rgba(250,246,236,.78) ;
}

@media (prefers-color-scheme:dark){
  :root:not([data-register]){
    --paper:#0E1712; --paper-2:#131F18; --ink:#EDE6D2; --ink-soft:#C9C2AA;
    --text-body:#C9C2AA; --text-muted:#7E8C80; --muted:#7E8C80;
    --gold:#C7A468; --gold-d:#AC8B4C; --rule:#243128; --border-light:#243128;
    --desk:#070B08; --veil:7,13,9 ; --grain-blend:screen ;
    --photo-grade:sepia(.14) hue-rotate(75deg) saturate(.82) contrast(1.13) brightness(.87) ;
    --image-filter:sepia(.14) hue-rotate(75deg) saturate(.82) contrast(1.13) brightness(.87) ;
    --panel:var(--desk) ; --panel-ink:var(--ink) ;
    color-scheme:dark;
  }
}
/* /HL:REGISTERS */



* {
  box-sizing: border-box;
}

html {
  background: var(--desk);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-body);
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Furniture the reader ignores: uppercase, tracked, sans. Nothing else. */
.f {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  filter: var(--image-filter);
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }
}

/* ── masthead ─────────────────────────────────────────────────────────── */

.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 26px 0 22px;
}
.masthead .bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.masthead .lockup {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 26px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}
.masthead nav {
  display: flex;
  gap: 26px;
}
.masthead nav a:hover {
  color: var(--gold-d);
}

/* ── the hero cover ───────────────────────────────────────────────────── */

.cover {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1px;
  background: var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 860px) {
  .cover {
    grid-template-columns: 1fr;
  }
}
.cover > * {
  background: var(--paper);
}
.cover .plate {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.cover .plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}
.cover .say {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 640px) {
  .cover .say {
    padding: 40px 20px;
  }
}

h1.issue-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 14px 0 0;
}
.dek {
  font-size: clamp(20px, 2.4vw, 26px);
  font-style: italic;
  color: var(--text-muted);
  margin: 18px 0 0;
  max-width: 30ch;
}

/* Gold is never a fill: the mark is a rule and a word, never a button. */
.enter {
  display: inline-block;
  margin-top: 36px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--gold);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: border-color 0.6s ease, color 0.6s ease;
}
.enter:hover {
  color: var(--gold-d);
  border-bottom-color: var(--gold-d);
}
[data-hit] {
  position: relative;
}
[data-hit]::after {
  content: '';
  position: absolute;
  inset: -14px -8px;
}

/* ── the contents ─────────────────────────────────────────────────────── */

section.band {
  padding: 76px 0;
  border-bottom: 1px solid var(--rule);
}
section.band:last-of-type {
  border-bottom: none;
}
.band h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  color: var(--ink);
  margin: 10px 0 40px;
}

ol.contents {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
ol.contents li {
  border-bottom: 1px solid var(--rule);
}
ol.contents a,
ol.contents .row {
  display: grid;
  grid-template-columns: 54px 1fr 52px;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  transition: color 0.5s ease;
}
ol.contents a:hover {
  color: var(--gold-d);
}
ol.contents a:hover .t {
  color: var(--gold-d);
}
ol.contents .n {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
ol.contents .t {
  font-size: 25px;
  color: var(--ink);
  line-height: 1.15;
  transition: color 0.5s ease;
}
ol.contents .t small {
  display: block;
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.35;
}
ol.contents .p {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-align: right;
}
@media (max-width: 560px) {
  ol.contents a,
  ol.contents .row {
    grid-template-columns: 34px 1fr;
  }
  ol.contents .p {
    display: none;
  }
  ol.contents .t {
    font-size: 21px;
  }
}

/* ── the shelf of issues ──────────────────────────────────────────────── */

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.shelf article {
  background: var(--paper);
  padding: 0 0 30px;
}
.shelf .plate {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 24px;
}
.shelf .plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  transition: transform 1.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.shelf article:hover .plate img {
  transform: scale(1.02);
}
.shelf .say {
  padding: 0 26px;
}
.shelf h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 32px;
  line-height: 1.02;
  color: var(--ink);
  margin: 8px 0 10px;
}
.shelf p {
  font-style: italic;
  color: var(--text-muted);
  margin: 0;
}

/* ── the letter box ───────────────────────────────────────────────────── */

form.stay {
  display: flex;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  max-width: 520px;
  margin-top: 24px;
}
form.stay input,
form.stay button {
  border: 0;
  background: var(--paper);
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--ink);
  padding: 16px 18px;
}
form.stay input {
  flex: 1;
  min-width: 0;
}
form.stay input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}
form.stay input:focus {
  outline: none;
  background: var(--paper-2);
}
form.stay button {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.5s ease;
  white-space: nowrap;
}
form.stay button:hover {
  color: var(--gold-d);
}
.note {
  margin-top: 14px;
  font-style: italic;
  color: var(--text-muted);
}

footer.colophon {
  border-top: 1px solid var(--rule);
  padding: 40px 0 64px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
footer.colophon a:hover {
  color: var(--gold-d);
}

/* ── a set work ───────────────────────────────────────────────────────────
   One column, one measure, hairlines and nothing else. A book set here is
   read, not browsed, so the page gives it the width of a page and gets out
   of the way. */

article.set {
  padding: 64px 0 0;
}
.opening {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 44px;
  max-width: 40ch;
}
.opening .sub {
  font-size: clamp(21px, 2.4vw, 28px);
  font-style: italic;
  color: var(--ink);
  margin: 12px 0 0;
}
.opening .meta {
  margin-top: 30px;
}
.held {
  border-left: 1px solid var(--gold);
  padding: 4px 0 4px 22px;
  margin: 44px 0 0;
  max-width: 62ch;
}
.held p {
  font-style: italic;
  color: var(--text-muted);
  margin: 0 0 10px;
}
.held p:last-child {
  margin-bottom: 0;
}

nav.chapters {
  margin: 56px 0 0;
  border-top: 1px solid var(--rule);
  padding-top: 26px;
}
nav.chapters ol {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  columns: 2;
  column-gap: 46px;
}
@media (max-width: 720px) {
  nav.chapters ol {
    columns: 1;
  }
}
nav.chapters li {
  break-inside: avoid;
  border-bottom: 1px solid var(--rule);
}
nav.chapters a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  transition: color 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
nav.chapters a:hover {
  color: var(--gold-d);
}
nav.chapters .n {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}
nav.chapters .t {
  font-size: 19px;
  color: var(--ink);
  line-height: 1.2;
}

.prose {
  max-width: 68ch;
  margin: 66px 0 96px;
}
.prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.04;
  color: var(--ink);
  margin: 76px 0 8px;
  padding-top: 34px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 24px;
}
.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
/* A subheading in these manuscripts is a sentence a reader says in their head
   — "The Great Separation: How Sexuality Lost Its Soul" is a voice, not
   furniture — so it is serif, and the gold hairline does the work the
   uppercase would otherwise have done. */
.prose h3,
.prose h4 {
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
  margin: 48px 0 14px;
  scroll-margin-top: 24px;
}
.prose p {
  margin: 0 0 22px;
}
.prose strong {
  font-weight: 500;
  color: var(--ink);
}
.prose em {
  font-style: italic;
}
.prose ol,
.prose ul {
  margin: 0 0 24px;
  padding-left: 24px;
}
.prose li {
  margin-bottom: 9px;
}
.prose blockquote {
  border-left: 1px solid var(--gold);
  margin: 30px 0;
  padding-left: 24px;
  font-style: italic;
  color: var(--text-muted);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 52px 0;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82em;
  color: var(--ink);
}

/* ── the imprint's own shelf ─────────────────────────────────────────── */

.works {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.works li {
  border-bottom: 1px solid var(--rule);
}
.works .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: baseline;
  padding: 30px 0;
  transition: color 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.works a.row:hover,
.works a.row:hover h3 {
  color: var(--gold-d);
}
.works h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.04;
  color: var(--ink);
  margin: 0 0 8px;
  transition: color 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.works p {
  font-style: italic;
  color: var(--text-muted);
  margin: 0;
  max-width: 56ch;
}
.works .state {
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .works .row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .works .state {
    text-align: left;
  }
}

/* ── the door ────────────────────────────────────────────────────────── */

body.door {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.door .wrap {
  max-width: 620px;
}
.door h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 18px 0 0;
}
.door .dek {
  max-width: 46ch;
}
.door .ways {
  display: flex;
  gap: 34px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-top: 44px;
  border-top: 1px solid var(--rule);
  padding-top: 30px;
}
.door form {
  margin: 0;
}
.door button {
  border: 0;
  background: none;
  padding: 0 0 5px;
  border-bottom: 1px solid var(--gold);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
    border-color 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.door button:hover {
  color: var(--gold-d);
  border-bottom-color: var(--gold-d);
}
.door .away {
  font-style: italic;
  color: var(--text-muted);
}
.door .away:hover {
  color: var(--gold-d);
}
.door .small {
  margin-top: 40px;
  font-style: italic;
  color: var(--text-muted);
  font-size: 16px;
  max-width: 52ch;
}

footer.colophon .bar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}

.works .also {
  margin: -14px 0 22px;
}
.works .also a {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
  transition: color 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
    border-color 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.works .also a:hover {
  color: var(--gold-d);
  border-bottom-color: var(--gold);
}
