/* Ochriva · Pigment Folio
   Layout: a magazine cover opening onto pigment-colored bands; each story wears its own pigment. */
:root {
  --ground: #F3EBDD;
  --ink: #1B1713;
  --muted: #5A4A3C;
  --rule: #D6C8B2;
  --ochre: #C58B3A;
  --indigo: #1F2A44;
  --sienna: #8A4A2A;
  --umber: #3A2A1F;
  --cream-on-dark: #F3EBDD;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --text: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.pigment-tag { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
h1, h2, h3 { text-wrap: balance; }

/* Bar (inner pages) */
.bar { border-bottom: 1px solid var(--ink); background: var(--ground); }
.bar-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 32px; padding-block: 14px; }
.bar-logo { display: block; width: 168px; }
.bar nav, .fc-top nav { display: flex; flex-wrap: wrap; gap: 0 26px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.bar nav a, .fc-top nav a { text-decoration: none; padding: 12px 0; }
.bar nav a[aria-current="page"] { border-bottom: 2px solid var(--ink); }
.bar nav a:hover, .fc-top nav a:hover { opacity: 0.7; }

/* Front cover */
.frontcover { background: var(--ochre); color: var(--ink); }
.fc-in { display: flex; flex-direction: column; gap: 28px; padding-block: 24px 56px; }
.fc-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.fc-logo { margin: 0; }
.fc-logo img { width: 100%; }
.fc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.fc-col { display: flex; flex-direction: column; gap: 28px; }
.fc-right { text-align: right; }
.coverline { text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.cl-title { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.05; }
.cl-dek { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.coverline:hover .cl-title { text-decoration: underline; text-underline-offset: 4px; }
.fc-motto { margin-top: auto; font-family: var(--display); font-style: italic; font-size: 22px; text-decoration: none; }
.fc-hero { display: block; text-decoration: none; }
@media (max-width: 860px) {
  .fc-grid { grid-template-columns: minmax(0, 1fr); }
  .fc-hero { order: -1; }
  .fc-right { text-align: left; }
}

/* Pigment plates (cover images) */
.plate { margin: 0; position: relative; overflow: hidden; color: var(--on, var(--cream-on-dark)); }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate-color { display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; }
.plate-name { font-family: var(--display); font-size: clamp(22px, 2.4vw, 34px); line-height: 1; }
.plate-code { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 6px; color: var(--on-soft, var(--cream-on-dark)); }
.fc-plate { aspect-ratio: 4 / 5; height: 100%; min-height: 360px; }
.card-plate { aspect-ratio: 3 / 2; }
.hero-plate { aspect-ratio: 21 / 9; margin-top: 0; }
.hero-plate .plate-name { font-size: clamp(36px, 6vw, 88px); }
.hero-plate.plate-color { padding: clamp(18px, 3vw, 40px); }
@media (max-width: 640px) { .hero-plate { aspect-ratio: 4 / 3; } }

/* Bands */
.band { padding-block: 88px; }
.band-indigo { background: var(--indigo); color: var(--cream-on-dark); }
.band-sienna { background: var(--sienna); color: var(--cream-on-dark); }
.band-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; border-bottom: 1px solid currentColor; padding-bottom: 16px; margin-bottom: 40px; }
.band-head h2, .section-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.05; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 48px 28px; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.card .eyebrow { opacity: 0.85; }
.card-title { font-family: var(--display); font-size: 27px; line-height: 1.1; }
.card-dek { font-size: 15px; line-height: 1.5; opacity: 0.88; }
.card:hover .card-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Houses list on cover */
.house-list { display: flex; flex-direction: column; }
.house-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(243, 235, 221, 0.35); text-decoration: none; }
.hr-name { font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); }
.hr-craft { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.hr-swatch { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(243, 235, 221, 0.6); }
.house-row:hover .hr-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Article */
.cover { color: var(--on); }
.cover-in { padding-block: 56px 48px; display: flex; flex-direction: column; gap: 18px; max-width: 1100px; }
.cover-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.cover h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(44px, 7vw, 104px); line-height: 0.98; letter-spacing: -0.01em; }
.cover .dek { margin: 0; max-width: 760px; font-family: var(--display); font-style: italic; font-size: clamp(20px, 2vw, 25px); line-height: 1.4; color: var(--on-soft); }
.byline { font-size: 14px; color: var(--on-soft); }
.body-wrap { display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 280px); justify-content: space-between; gap: 48px 64px; padding-block: 64px 24px; }
@media (max-width: 960px) { .body-wrap { grid-template-columns: minmax(0, 1fr); } }
.prose { font-size: 19px; line-height: 1.72; min-width: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.15; margin: 1.6em 0 0.6em; }
.prose blockquote { margin: 1.4em 0; padding: 0.8em 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-family: var(--display); font-style: italic; font-size: 28px; line-height: 1.3; }
.prose ul { padding-left: 1.1em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.55em; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lede-para::first-letter { float: left; font-family: var(--display); font-weight: 600; font-size: 4.4em; line-height: 0.82; padding: 0.08em 0.1em 0 0; }
.aside { display: flex; flex-direction: column; gap: 28px; font-size: 14px; color: var(--muted); align-self: start; position: sticky; top: 24px; }
@media (max-width: 960px) { .aside { position: static; } }
.house-link { display: block; text-align: center; padding: 16px 20px; background: var(--ink); color: var(--ground); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.house-link:hover { background: var(--umber); }
.sources ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.sources a { color: var(--ink); overflow-wrap: anywhere; }
.correction { margin: 0; line-height: 1.5; }
.more { padding-block: 72px 96px; border-top: 1px solid var(--rule); margin-top: 48px; }
.more .section-title { margin-bottom: 36px; }

/* Index pages */
.page-head { border-bottom: 1px solid var(--ink); }
.page-head .wrap { padding-block: 56px 40px; display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(48px, 7vw, 96px); line-height: 1; }
.page-head .dek { margin: 0; font-family: var(--display); font-style: italic; font-size: 22px; color: var(--muted); max-width: 680px; }
.list-wrap { padding-block: 56px 96px; }
.list-wrap .card .eyebrow, .list-wrap .card-dek, .more .card .eyebrow, .more .card-dek { color: var(--muted); opacity: 1; }
.house-entries { display: flex; flex-direction: column; }
.house-entry { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px 0; border-top: 1px solid var(--rule); }
.he-swatch { width: 48px; height: 48px; border-radius: 50%; }
.he-main h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.1; }
.he-main p { margin: 0; color: var(--muted); max-width: 720px; }
.he-links { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-align: right; }
.he-links a { padding: 6px 0; }
@media (max-width: 720px) { .house-entry { grid-template-columns: 40px minmax(0, 1fr); } .he-links { grid-column: 2; text-align: left; } .he-swatch { width: 40px; height: 40px; } }

/* Correspondence + footer */
.letter { background: var(--umber); color: var(--cream-on-dark); }
.letter-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding-block: 72px; }
.letter-copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 12px; }
.letter .eyebrow { color: var(--ochre); }
.letter-line { margin: 0; font-family: var(--display); font-size: clamp(26px, 3vw, 40px); line-height: 1.15; }
.signup { flex: 1 1 380px; display: flex; flex-wrap: wrap; gap: 10px; }
.signup input { flex: 1 1 220px; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--cream-on-dark); background: transparent; color: var(--cream-on-dark); font: inherit; }
.signup input::placeholder { color: #CDBFAA; }
.signup button { height: 52px; padding: 0 26px; border: 0; background: var(--ochre); color: var(--ink); font: inherit; font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.signup-soon { flex: 1 1 380px; margin: 0; color: #E6D8C4; }
.foot { background: var(--ink); color: var(--cream-on-dark); }
.foot-in { display: flex; flex-direction: column; gap: 40px; padding-block: 56px 28px; }
.foot-logo { width: 220px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 32px 72px; font-size: 14px; }
.foot-cols div { display: flex; flex-direction: column; gap: 6px; }
.foot-cols .eyebrow { color: var(--ochre); padding-bottom: 6px; }
.foot-cols a { text-decoration: none; padding: 4px 0; }
.foot-cols a:hover { text-decoration: underline; }
.foot-legal { border-top: 1px solid #4A3D31; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12px; color: #CDBFAA; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

.band .card-plate, .frontcover .fc-plate { box-shadow: inset 0 0 0 1px rgba(243, 235, 221, 0.28); }
.body-wrap { padding-top: 56px; }

/* Cover: lead story + contents */
.cover-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
@media (max-width: 860px) { .cover-grid { grid-template-columns: minmax(0, 1fr); } }
.lead { position: relative; min-height: 560px; display: flex; align-items: flex-end; text-decoration: none; color: var(--on); overflow: hidden; }
.lead-img, .feature-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead.has-photo::after, .feature.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 16, 12, 0.72) 0%, rgba(20, 16, 12, 0.15) 55%, rgba(20, 16, 12, 0) 100%); }
.lead.has-photo, .feature.has-photo { --on: #F3EBDD; --on-soft: #E6D8C4; }
.lead-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 3vw, 40px); max-width: 720px; }
.lead-title { font-family: var(--display); font-size: clamp(38px, 5vw, 72px); line-height: 1; }
.lead-dek { font-family: var(--display); font-style: italic; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.4; color: var(--on-soft); }
.lead-pig { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-soft); }
.lead:hover .lead-title { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.toc { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.toc-head { padding: 14px 0 6px; }
.toc a:not(.toc-more) { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 14px; padding: 14px 0; border-bottom: 1px solid rgba(27, 23, 19, 0.3); text-decoration: none; }
.toc .sw { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; align-self: center; box-shadow: inset 0 0 0 1px rgba(27, 23, 19, 0.2); }
.toc .t { font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.12; }
.toc .h { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.toc a:hover .t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.toc-more { margin-top: auto; padding-top: 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }

/* Full-bleed feature */
.feature { position: relative; min-height: clamp(420px, 52vw, 720px); display: flex; align-items: flex-end; color: var(--on); overflow: hidden; }
.feature-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; padding-block: 56px; text-decoration: none; width: 100%; }
.feature-title { font-family: var(--display); font-size: clamp(44px, 7vw, 108px); line-height: 0.98; max-width: 1000px; }
.feature-dek { font-family: var(--display); font-style: italic; font-size: clamp(18px, 2vw, 24px); line-height: 1.4; max-width: 720px; color: var(--on-soft); }
.feature-read { align-self: flex-start; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding: 10px 0 4px; }
.feature-copy:hover .feature-title { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }

.credit { position: absolute; right: 12px; bottom: 10px; z-index: 1; font-size: 11px; letter-spacing: 0.06em; color: #F3EBDD; background: rgba(20, 16, 12, 0.55); padding: 4px 8px; }

/* Story hero with a photograph: show the whole image, no crop */
.hero-plate.has-photo { aspect-ratio: auto; background: #ECE8E1 !important; display: flex; justify-content: center; padding: clamp(16px, 3vw, 40px); }
.hero-plate.has-photo img { width: auto; height: auto; max-width: 100%; max-height: min(78vh, 820px); object-fit: contain; }

/* Newsstand cover: one full-bleed photograph, logo over the top, cover lines over the bottom */
.newsstand { position: relative; min-height: clamp(600px, 50vw, 860px); overflow: hidden; background: var(--umber); color: var(--ink); display: flex; }
.ns-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.newsstand::after { content: ""; position: absolute; inset: auto 0 0 0; height: 62%; background: linear-gradient(to top, rgba(20,16,12,0.86) 0%, rgba(20,16,12,0.5) 50%, rgba(20,16,12,0) 100%); z-index: 1; pointer-events: none; }
.ns-in { position: relative; z-index: 2; display: flex; flex-direction: column; width: 100%; padding-block: 22px 44px; }
.ns-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 28px; color: #F3EBDD; }
.ns-lead { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; max-width: 820px; }
.ns-title { font-family: var(--display); font-size: clamp(42px, 6.4vw, 96px); line-height: 0.98; }
.ns-dek { font-family: var(--display); font-style: italic; font-size: clamp(18px, 1.9vw, 24px); line-height: 1.4; color: #E6D8C4; max-width: 640px; }
.ns-lead:hover .ns-title { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.ns-lines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; }
@media (max-width: 960px) { .ns-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ns-lines { grid-template-columns: minmax(0, 1fr); } .ns-lines a:nth-child(n+3) { display: none; } }
.ns-lines a { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid rgba(243,235,221,0.45); text-decoration: none; color: inherit; }
.ns-lines .h { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #E2B46A; }
.ns-lines .t { font-family: var(--display); font-weight: 600; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.12; }
.ns-lines a:hover .t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
/* A bright photograph with open space: set the copy in ink, no dark scrim */
.feature.has-photo.ink-dark .feature-copy { color: #1B1713; }
.feature.has-photo.ink-dark .feature-dek { color: #2E241B; }
.feature.has-photo.ink-dark::after { background: linear-gradient(to right, rgba(201,146,43,0.55) 0%, rgba(201,146,43,0.2) 38%, rgba(201,146,43,0) 55%); }
.feature.ink-dark .feature-title { max-width: 9.5ch; }
.feature.ink-dark .feature-dek { max-width: 30ch; }
@media (max-width: 700px) { .feature.has-photo.ink-dark::after { background: linear-gradient(to top, rgba(214,160,60,0.92) 0%, rgba(214,160,60,0.7) 50%, rgba(214,160,60,0) 85%); } .feature.ink-dark .feature-dek { max-width: none; } }

/* Masthead band above the newsstand photo */
.ns-mast { background: var(--ground, #F3EBDD); padding: 22px 0 26px; border-bottom: 1px solid rgba(27,23,19,0.18); }
.ns-logo { margin: 22px auto 0; max-width: 760px; line-height: 0; }
.ns-logo img { width: 100%; height: auto; display: block; }
@media (max-width: 700px) { .ns-logo { margin-top: 14px; } }
