/* 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');

:root,
html[data-register='daylight'] {
  --paper: #faf8f3;
  --paper-2: #f3efe6;
  --ink: #0c1e16;
  --ink-soft: #334a3f;
  --text-body: #334a3f;
  --text-muted: #5c7065;
  --gold: #c5a059;
  --gold-d: #9a7a3a;
  --rule: #e1e7e2;
  --desk: #d6dad4;
  --image-filter: saturate(1.04) contrast(1.03) brightness(1.01);
}

html[data-register='nocturne'] {
  --paper: #0e1712;
  --paper-2: #131f18;
  --ink: #ede6d2;
  --ink-soft: #c9c2aa;
  --text-body: #c9c2aa;
  --text-muted: #7e8c80;
  --gold: #c7a468;
  --gold-d: #ac8b4c;
  --rule: #243128;
  --desk: #080d0a;
  --image-filter: contrast(1.1) brightness(0.92) saturate(1.02);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-register='daylight']) {
    --paper: #0e1712;
    --paper-2: #131f18;
    --ink: #ede6d2;
    --ink-soft: #c9c2aa;
    --text-body: #c9c2aa;
    --text-muted: #7e8c80;
    --gold: #c7a468;
    --gold-d: #ac8b4c;
    --rule: #243128;
    --desk: #080d0a;
    --image-filter: contrast(1.1) brightness(0.92) saturate(1.02);
  }
}

* {
  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.22, 0.61, 0.36, 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);
}
