/* Novum. Journal stylesheet */

:root {
  --bg: #F4F8FD;
  --panel: #E5EEF9;
  --rule: #D1DEED;
  --muted: #4D5868;
  --body: #2E3642;
  --ink: #0E1A2B;
  --accent: #2D3BD4;
  --night: #0F1E36;
  --night-2: #172A47;
  --night-line: #2A3F60;
  --night-muted: #A9B8CC;
  --night-body: #D3DDEA;

  --serif: 'Instrument Serif', Georgia, serif;
  --text: 'Newsreader', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(20px, 5.5vw, 80px);
  --max: 1440px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--ink); }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.label.accent { color: var(--accent); }

.serif { font-family: var(--serif); font-weight: 400; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header */

.topline {
  height: 44px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--rule);
}
.topline .hide-sm { display: inline; }

.masthead {
  display: block; text-align: center; text-decoration: none;
  padding: 28px 0 16px;
  font-family: var(--serif); font-size: clamp(76px, 12vw, 152px);
  line-height: 1; letter-spacing: -0.03em;
}
.dot { color: var(--accent); }

.nav {
  min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.nav ul {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 36px;
  overflow-x: auto; scrollbar-width: none;
}
.nav ul::-webkit-scrollbar { display: none; }
.nav a {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent { background: var(--accent); border-color: var(--ink); color: #fff; }
.btn.accent:hover { background: var(--ink); }

.bar {
  height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  border-bottom: 1px solid var(--ink);
}
.bar .logo { font-family: var(--serif); font-size: 40px; line-height: 1; text-decoration: none; }
.bar nav { display: flex; gap: 32px; align-items: center; }
.bar nav a:not(.btn) {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
}

/* Picture blocks (placeholders until real photos arrive) */

.pic { position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.pic svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pic .cap {
  position: relative; margin: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}
.pic.blue { background: #C7D8F0; } .pic.blue .cap { color: #24344D; }
.pic.teal { background: #D2E3E8; } .pic.teal .cap { color: #24414A; }
.pic.blush { background: #F2DCD2; } .pic.blush .cap { color: #5A3A2E; }
.pic.lilac { background: #DCD6F0; } .pic.lilac .cap { color: #3A3560; }
.pic.night { background: var(--night-2); border: 1px solid var(--night-line); } .pic.night .cap { color: var(--night-muted); }

/* Homepage: lead story */

.lead {
  padding-top: 64px; padding-bottom: 64px;
  display: grid; grid-template-columns: 7fr 5fr; gap: 32px;
}
.lead .pic { min-height: 580px; text-decoration: none; }
.lead-text { display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; }
.lead h1 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 4.8vw, 68px); line-height: 1.02; letter-spacing: -0.015em;
}
.lead h1 a { text-decoration: none; }
.dek { margin: 0; font-size: 21px; line-height: 1.5; color: var(--muted); }
.byline {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 18px; border-top: 1px solid var(--rule);
}

.mission {
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 72px var(--gutter); text-align: center;
}
.mission p {
  max-width: 1040px; margin: 0 auto;
  font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3vw, 42px); line-height: 1.2;
}

/* Section heads */

.section { padding-top: 96px; padding-bottom: 64px; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.section-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4vw, 56px); line-height: 1; }

/* Small Wonders cards */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.card { display: flex; flex-direction: column; gap: 16px; }
.card .pic { height: 300px; }
.card h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.08; }
.card p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--body); }

/* Quiet Giant band */

.giant { background: var(--night); color: var(--bg); margin-top: 40px; }
.giant .wrap {
  padding-top: 104px; padding-bottom: 104px;
  display: grid; grid-template-columns: 6fr 1fr 5fr; align-items: center;
}
.giant-text { display: flex; flex-direction: column; gap: 26px; grid-column: 1; }
.giant .label { color: var(--night-muted); }
.giant h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5.3vw, 76px); line-height: 1; letter-spacing: -0.015em; }
.giant p { margin: 0; font-size: 21px; line-height: 1.55; color: var(--night-body); }
.giant a { color: var(--bg); font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.giant .pic { grid-column: 3; height: 460px; }

/* Why It Works list */

.works a {
  display: grid; grid-template-columns: 80px 360px 1fr 40px; column-gap: 32px; align-items: baseline;
  padding: 30px 0; border-top: 1px solid var(--rule); text-decoration: none;
}
.works a:first-child { border-top-color: var(--ink); }
.works a:last-child { border-bottom: 1px solid var(--rule); }
.works .num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.works .name { font-family: var(--serif); font-size: 36px; line-height: 1.1; }
.works .idea { font-size: 20px; line-height: 1.5; color: var(--body); }
.works .arrow { font-size: 22px; }

/* Newsletter */

.subscribe {
  margin: 40px var(--gutter) 96px; padding: clamp(40px, 6vw, 80px) clamp(20px, 6vw, 80px);
  background: var(--panel); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.subscribe h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.2vw, 60px); line-height: 1.05; }
.subscribe p { margin: 0; font-size: 20px; color: var(--muted); }
.subscribe form { margin-top: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; max-width: 560px; }
.subscribe .row { display: flex; width: 100%; }
.subscribe input {
  flex: 1; min-width: 0; height: 54px; padding: 0 18px;
  border: 1px solid var(--ink); border-right: 0; background: var(--bg);
  font-family: var(--text); font-size: 18px; color: var(--ink); border-radius: 0;
}
.subscribe .btn { height: 54px; }
.form-note { font-family: var(--mono); font-size: 12px; color: var(--muted); min-height: 1em; }

/* Footer */

.footer { border-top: 1px solid var(--ink); }
.footer .wrap {
  padding-top: 40px; padding-bottom: 56px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap;
}
.footer .logo { font-family: var(--serif); font-size: 36px; line-height: 1; text-decoration: none; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.footer ul a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }

/* Article page */

.story-head { padding: 96px var(--gutter) 56px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.story-head h1 {
  margin: 0; max-width: 1000px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(52px, 7.2vw, 104px); line-height: 0.98; letter-spacing: -0.02em;
}
.story-head .dek { max-width: 760px; font-size: clamp(20px, 1.8vw, 24px); }
.meta { display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: center; }

.hero { margin: 0; }
.hero .pic { height: clamp(320px, 50vw, 720px); }
.hero figcaption { margin-top: 12px; }

.story {
  padding-top: 88px; padding-bottom: 64px;
  display: grid; grid-template-columns: 3fr 6fr 3fr; gap: 32px; align-items: start;
}
.glance { border-top: 1px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 24px; }
.glance dl { margin: 0; display: flex; flex-direction: column; gap: 22px; }
.glance dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.glance dd { margin: 4px 0 0; font-size: 19px; }

.prose { font-size: 21px; line-height: 1.7; color: var(--body); }
.prose p { margin: 0 0 28px; }
.prose h2 { margin: 52px 0 24px; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.1; color: var(--ink); }
.prose .dropcap::first-letter {
  float: left; margin: 8px 12px 0 0;
  font-family: var(--serif); font-size: 104px; line-height: 0.8; color: var(--accent);
}
.prose blockquote {
  margin: 56px 0; padding: 36px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  font-family: var(--serif); font-style: italic; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.15; color: var(--ink);
}
.prose .closer { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--ink); }

.next { border-top: 1px solid var(--ink); padding-top: 72px; padding-bottom: 40px; }
.next-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.next-card .pic { height: 240px; }
.next-card .title { font-family: var(--serif); font-size: 32px; line-height: 1.1; }

/* About page */

.about { padding-top: 96px; padding-bottom: 64px; display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.about h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 7vw, 96px); line-height: 0.98; letter-spacing: -0.02em; }

/* Responsive */

@media (max-width: 1100px) {
  .works a { grid-template-columns: 56px 1fr 32px; row-gap: 8px; }
  .works .idea { grid-column: 2; }
  .works .arrow { grid-column: 3; grid-row: 1; }
  .story { grid-template-columns: 1fr; max-width: 760px; }
  .glance { position: static; }
  .story .spacer { display: none; }
}

@media (max-width: 900px) {
  .lead { grid-template-columns: 1fr; padding-top: 32px; }
  .lead .pic { min-height: 0; height: 64vw; }
  .cards { grid-template-columns: 1fr; gap: 56px; }
  .giant .wrap { grid-template-columns: 1fr; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
  .giant .pic { grid-column: 1; height: 300px; }
  .section { padding-top: 72px; }
  .bar nav a:not(.btn) { display: none; }
  .about { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .topline .hide-sm { display: none; }
  .nav { flex-wrap: wrap; padding: 6px 0; gap: 0 16px; }
  .nav ul { gap: 22px; width: 100%; order: 2; }
  .nav .btn { order: 1; margin-left: auto; }
  .mission { padding: 48px var(--gutter); }
  .story-head { padding-top: 56px; }
  .prose { font-size: 19px; }
  .prose h2 { font-size: 36px; }
  .bar .logo { font-size: 32px; }
  .subscribe .row { flex-direction: column; gap: 10px; }
  .subscribe input { border-right: 1px solid var(--ink); }
  .footer .wrap { flex-direction: column; }
}

/* Also in this issue */
.also {
  padding-top: 72px; padding-bottom: 8px;
  display: grid; grid-template-columns: 4fr 8fr; gap: 40px; align-items: center;
}
.also .pic { height: 280px; }
.also h2 { margin: 14px 0 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.05; }
.also h2 a { text-decoration: none; }
.also p { margin: 0 0 18px; font-size: 19px; color: var(--body); max-width: 640px; }
@media (max-width: 900px) { .also { grid-template-columns: 1fr; gap: 20px; padding-top: 56px; } .also .pic { height: 56vw; } }

/* Company links */
a.co { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: currentColor; }
a.co:hover { color: var(--accent); }
.giant a.co { font-family: inherit; font-size: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--night-muted); }
.giant a.co:hover { color: var(--bg); }
.prose a.co { color: var(--ink); }
.prose a.co:hover { color: var(--accent); }
.card h3 a { text-decoration: none; }
.card .pic { text-decoration: none; }
.card > a.label { margin-top: 2px; }

/* Archive */
.archive-head { padding-top: 88px; padding-bottom: 32px; }
.archive-head h1 { margin: 14px 0 36px; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 88px); line-height: 1; letter-spacing: -0.02em; }
.search { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--ink); padding: 8px 2px 14px; color: var(--muted); max-width: 760px; }
.search input { flex: 1; border: 0; background: transparent; font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); color: var(--ink); outline: none; min-width: 0; }
.search input::placeholder { color: #8A96A8; font-style: italic; }
.search:focus-within { color: var(--accent); border-bottom-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { min-height: 40px; padding: 0 16px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.count { margin-top: 22px; }
.issue-group { padding: 40px 0 24px; }
.alist { display: flex; flex-direction: column; }
.arow { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; padding: 24px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.arow:last-child { border-bottom: 1px solid var(--rule); }
.arow .pic { height: 150px; }
.atitle { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.08; margin: 10px 0 8px; }
.arow p { margin: 0; color: var(--body); font-size: 18px; }
.arow:hover .atitle { color: var(--accent); }
.empty { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--muted); padding: 48px 0; }
@media (max-width: 640px) { .arow { grid-template-columns: 110px 1fr; gap: 18px; } .arow .pic { height: 90px; } .arow p { display: none; } }

/* Nav search: sends readers to the archive results */
.navsearch { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); border-bottom: 1px solid transparent; }
.navsearch svg { width: 14px; height: 14px; flex: none; }
.navsearch input {
  -webkit-appearance: none; appearance: none; border: 0; border-radius: 0; background: transparent; padding: 0; margin: 0; outline: none;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  width: 72px; transition: width .2s ease;
}
.bar .navsearch input { font-size: 12px; }
.navsearch input::placeholder { color: var(--ink); opacity: 1; }
.navsearch input::-webkit-search-cancel-button { -webkit-appearance: none; }
.navsearch input:focus { width: 170px; text-transform: none; letter-spacing: 0.02em; }
.navsearch input:focus::placeholder { color: var(--muted); }
.navsearch:focus-within { color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 900px) { .bar .navsearch input:focus { width: 120px; } }

/* Refinements: thesis line, quieter Subscribe, mobile nav that wraps */
.mission .q { color: var(--accent); }
.nav .btn { background: transparent; color: var(--ink); }
.nav .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
@media (max-width: 640px) {
  .mission { padding: 32px var(--gutter); }
  .mission p { font-size: 23px; line-height: 1.25; }
  .nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; padding: 8px 0 10px; }
  .nav ul { display: contents; }
  .nav a { font-size: 12px; min-height: 36px; }
  .nav .navsearch { min-height: 36px; }
  .nav .navsearch input { font-size: 12px; }
  .nav .btn { display: inline-flex; min-height: 0; padding: 0; border: 0; background: none; color: var(--accent); margin: 0; font-size: 12px; min-height: 36px; }
  .nav .btn::after { content: " \2192"; white-space: pre; }
  .nav .btn:hover { background: none; color: var(--ink); }
}
@media (max-width: 640px) {
  .bar nav { gap: 14px; }
  .bar .navsearch input { width: 58px; }
  .bar .navsearch input:focus { width: 96px; }
  .bar nav .btn { padding: 0 14px; min-height: 38px; font-size: 12px; }
}

/* The Shelf: book recommendations */
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.book h3 { margin: 10px 0 8px; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.book p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted); }
.spine { height: 300px; margin-bottom: 20px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: 28px 26px; position: relative; overflow: hidden; }
.spine::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 1px; background: currentColor; opacity: .25; }
.spine .bt { font-family: var(--serif); font-size: 34px; line-height: 1.02; max-width: 80%; }
.spine .ba { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.spine.s1 { background: #0F1E36; color: #F4F8FD; }
.spine.s2 { background: #EFE7DA; color: #0E1A2B; }
.spine.s3 { background: #2D3BD4; color: #F4F8FD; }
@media (max-width: 900px) {
  .shelf { grid-template-columns: 1fr; gap: 44px; }
  .spine { height: 220px; }
}

/* Mobile menu on a single row */
@media (max-width: 640px) {
  .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0 18px; padding: 4px 0;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a, .nav .btn { font-size: 11px; letter-spacing: .06em; min-height: 40px; flex: none; }
  .nav .navsearch { min-height: 40px; position: relative; flex: none; }
  .nav .navsearch input { width: 18px; margin-left: -22px; padding-left: 22px; box-sizing: content-box; color: transparent; }
  .nav .navsearch input::placeholder { color: transparent; }
  .nav .navsearch input:focus { width: 110px; color: var(--ink); }
  .nav .btn { padding-right: 24px; }
}
/* Shelf covers as portrait books */
.spine { height: auto; aspect-ratio: 2 / 3; width: 100%; max-width: 230px; padding: 24px 20px 22px 30px; box-shadow: 0 1px 0 rgba(14,26,43,.08), 6px 8px 0 -2px rgba(14,26,43,.06); }
.spine .bt { font-size: 26px; max-width: 100%; }
.spine .ba { font-size: 10px; }
@media (max-width: 900px) {
  .shelf { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .spine { height: auto; padding: 14px 10px 12px 18px; }
  .spine::before { left: 9px; }
  .spine .bt { font-size: 17px; }
  .spine .ba { font-size: 8px; letter-spacing: .08em; }
  .book h3 { font-size: 20px; margin: 8px 0 6px; }
  .book p { font-size: 14px; }
  .book .label { font-size: 10px; }
}
@media (max-width: 560px) {
  .shelf { grid-template-columns: 1fr; gap: 36px; }
  .book { display: grid; grid-template-columns: 104px 1fr; column-gap: 18px; align-items: start; }
  .book .spine { grid-row: 1 / span 3; margin: 0; }
  .book h3 { margin-top: 6px; }
}
/* Keep the menu rules solid while the row scrolls */
@media (max-width: 640px) {
  header.wrap { background: linear-gradient(var(--ink), var(--ink)) no-repeat center bottom / calc(100% - 2 * var(--gutter)) 1px; }
  header.wrap .masthead { display: block; border-bottom: 1px solid var(--ink); }
  header.wrap .nav { border: 0; }
}
@media (max-width: 640px) { .nav .navsearch input { width: 0; } .nav .navsearch input:focus { width: 110px; } }
.section-head.stack { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 14px; }
.subscribe h2 { font-size: clamp(32px, 3.2vw, 46px); max-width: 16em; }
.subscribe h2 { max-width: none; text-wrap: balance; }
.bar nav a { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 901px) { .bar nav { gap: 18px; } .bar nav a:not(.btn), .bar .navsearch input { font-size: 11px; letter-spacing: .06em; } .bar nav .btn { padding: 0 16px; } }
@media (max-width: 1000px) { .bar nav a:not(.btn) { display: none; } }
@media (max-width: 1100px) and (min-width: 1001px) { .bar nav { gap: 14px; } .bar .navsearch input { width: 56px; } }
.pic.red { background: #C43B2C; }
.inline-fig { margin: 36px 0; } .inline-fig img { width: 100%; display: block; } .inline-fig figcaption { margin-top: 10px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .cards.two { grid-template-columns: 1fr; } }
.works .new { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-left: 6px; }
.pic img { object-fit: cover; }
.giant-text h2 a { font: inherit; text-transform: none; letter-spacing: inherit; }
.pic img[src$="coperni.jpg"] { object-position: center 18%; }
.prose .src { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
/* Archive: issue separation */
.issue-group { padding: 56px 0 40px; }
.issue-group + .issue-group { border-top: 2px solid var(--ink); margin-top: 32px; }
.issue-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.issue-head h2 { margin: 6px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5vw, 72px); line-height: 1; }
.issue-group:not(.current) .issue-head .accent { color: var(--muted); }
.ashelf { margin-top: 36px; }
.ashelf-row { display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.ashelf .spine { width: 120px; max-width: 120px; margin: 0; padding: 14px 10px 12px 20px; }
.ashelf .spine::before { left: 10px; }
.ashelf .spine .bt { font-size: 14px; }
.ashelf .spine .ba { font-size: 8px; letter-spacing: .08em; }
.also.wonder-one { padding-top: 0; }
/* Shelf carousel: current books, swipe to past issues */
.shelf-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 80px) / 3); gap: 40px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-track .book { scroll-snap-align: start; display: block; }
.shelf-track .book .spine { margin-bottom: 20px; }
.issue-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; min-height: 14px; }
.issue-tag.old { color: var(--muted); }

.shelf-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; border-top: 1px solid var(--rule); padding-top: 16px; }
.shelf-btn { width: 44px; height: 44px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; margin-left: 8px; }
.shelf-btn:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 900px) {
  .shelf-track { grid-auto-columns: 46%; gap: 20px; }
  .shelf-track .book .spine { max-width: 200px; height: auto; padding: 18px 14px 14px 26px; }
  .shelf-track .book .spine .bt { font-size: 20px; }
  .shelf-track .book .spine .ba { font-size: 9px; }
}
@media (max-width: 560px) {
  .shelf-track { grid-auto-columns: 72%; }
  .shelf-track .book { display: block; }
  .shelf-track .book .spine { grid-row: auto; margin: 0 0 16px; max-width: 180px; }
}

.shelf-track .book:nth-child(n+4) .label.accent { color: var(--muted); }
.prose .author { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--muted); }

/* Issue 03: second profile, image on the right */
.lead.flip { margin-top: 72px; grid-template-columns: 5fr 7fr; }
.lead.flip .pic { order: 2; min-height: 520px; }
@media (max-width: 900px) { .lead.flip { grid-template-columns: 1fr; } .lead.flip .pic { order: 0; min-height: 0; } }

/* Shelf: book detail panel */
.shelf-track .book { cursor: pointer; }
.shelf-track .book:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.book .more { display: inline-block; margin-top: 14px; color: var(--accent); }
.shelf-track .book .spine { transition: transform .25s ease, box-shadow .25s ease; }
.shelf-track .book:hover .spine { transform: translateY(-6px); box-shadow: 0 14px 24px rgba(14,26,43,.18); }
.bookmodal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.bookmodal[hidden] { display: none; }
.bm-backdrop { position: absolute; inset: 0; background: rgba(11,20,36,.55); backdrop-filter: blur(4px); animation: bmfade .2s ease; }
.bm-panel { position: relative; background: var(--bg); max-width: 920px; width: 100%; max-height: calc(100vh - 48px); overflow: auto; display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 48px; animation: bmup .25s ease; }
.bm-close { position: absolute; top: 18px; right: 20px; background: none; border: 0; cursor: pointer; color: var(--muted); }
.bm-spine { height: 380px; margin: 0; }
.bm-spine .bt { font-size: 32px; }
.bm-body h3 { margin: 10px 0 6px; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.02; }
.bm-full { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--muted); margin-bottom: 8px; }
.bm-h { margin-top: 22px; color: var(--muted); }
.bm-body p { margin: 8px 0 0; font-size: 17px; line-height: 1.6; }
.bm-pair { display: inline-block; margin-top: 26px; color: var(--accent); }
@keyframes bmfade { from { opacity: 0; } } @keyframes bmup { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 760px) {
  .bookmodal { padding: 0; align-items: flex-end; }
  .bm-panel { grid-template-columns: 1fr; gap: 24px; padding: 56px 24px 32px; max-height: 92vh; }
  .bm-spine { height: 200px; width: 150px; }
  .bm-spine .bt { font-size: 24px; }
  .bm-body h3 { font-size: 34px; }
}

/* Issue 04: shelf intro + consistent book card length */
.shelf-intro { max-width: 640px; margin: -8px 0 28px; font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.shelf-track .book p { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
