@import url('https://fonts.googleapis.com/css2?family=Karla:wght@400;700&family=Playfair+Display:wght@400;700;800&display=swap');

:root { --font-display: 'Playfair Display'; --font-body: 'Karla'; }

:root {
  --marble: #f6f4f1;
  --marble-deep: #ece8e1;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #3c3a37;
  --muted: #8b857c;
  --line: #e2ddd3;
  --brass: #b08d57;
  --brass-deep: #8f6f3e;
  --brass-soft: #f1e9da;
  --scrim: rgba(20, 19, 18, 0.66);
  --radius: 4px;
  --shadow: 0 26px 60px rgba(26, 26, 26, 0.16);
  --shadow-soft: 0 14px 34px rgba(26, 26, 26, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(120% 80% at 85% -10%, rgba(176, 141, 87, 0.1), transparent 60%),
    radial-gradient(90% 70% at 0% 110%, rgba(176, 141, 87, 0.07), transparent 55%),
    var(--marble);
  color: var(--ink);
  font-family: var(--font-body), ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  background: var(--ink);
  color: var(--marble);
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------------------------------------------------------------- *
 * Floating chrome: a wordmark and an index link that hover over the
 * gallery and every article. No top brand bar, no horizontal nav.
 * ---------------------------------------------------------------- */
.floating-chrome {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.1rem, 3vw, 2.6rem);
  pointer-events: none;
}

.nameplate,
.index-link {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(246, 244, 241, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.nameplate {
  padding: 0.5rem 1rem 0.5rem 0.75rem;
}

.nameplate-mark {
  width: 0.62rem;
  height: 0.62rem;
  background: var(--brass);
  transform: rotate(45deg);
  border-radius: 1px;
}

.nameplate-word {
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nameplate-word em {
  font-style: italic;
  font-weight: 400;
  color: var(--brass-deep);
}

.index-link {
  padding: 0.55rem 1.05rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}

.index-link:hover {
  color: var(--brass-deep);
}

/* ---------------------------------------------------------------- *
 * Home: full-bleed masonry gallery of cover tiles.
 * ---------------------------------------------------------------- */
.gallery-page {
  min-height: 100vh;
}

.gallery {
  column-count: 3;
  column-gap: clamp(1rem, 1.8vw, 1.75rem);
  padding: clamp(6.5rem, 9vw, 8.5rem) clamp(1.1rem, 3vw, 2.6rem) 2rem;
}

.tile {
  display: block;
  width: 100%;
  margin: 0 0 clamp(1rem, 1.8vw, 1.75rem);
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Editorial opener that introduces the gallery from inside it. */
.tile--manifesto {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.6rem, 2.4vw, 2.4rem);
}

.manifesto-kicker {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--brass-deep);
}

.manifesto-title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display), Georgia, serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.manifesto-lede {
  margin: 0 0 1.3rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.manifesto-lens {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.manifesto-lens li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.manifesto-lens li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--brass);
  transform: rotate(45deg);
}

.manifesto-topics {
  margin: 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.manifesto-topics i {
  font-style: normal;
  color: var(--brass);
}

/* Cover tiles. The marble gradient is the cover surface, with the Playfair
   title overlaid on a scrim and a small category tag. */
.tile--cover {
  position: relative;
  color: var(--marble);
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
}

.tile--cover:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 70px rgba(26, 26, 26, 0.24);
}

.cover-figure {
  position: relative;
  margin: 0;
  height: 100%;
}

.cover-surface {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(58deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(122deg, rgba(26, 26, 26, 0.06) 0 1px, transparent 1px 30px),
    var(--cover, linear-gradient(135deg, #efe9e2, #cdbfa9));
  background-size: cover;
}

.cover-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 19, 18, 0.05) 0%,
    rgba(20, 19, 18, 0) 34%,
    rgba(20, 19, 18, 0.5) 70%,
    rgba(20, 19, 18, 0.82) 100%
  );
}

.cover-caption {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.4rem 1.5rem 1.6rem;
}

.tile--tall .cover-caption {
  min-height: 27rem;
}

.tile--regular .cover-caption {
  min-height: 21rem;
}

.tile--wide-feel .cover-caption {
  min-height: 24rem;
}

.cover-tag {
  align-self: flex-start;
  padding: 0.34rem 0.7rem;
  background: rgba(246, 244, 241, 0.92);
  color: var(--brass-deep);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-radius: 999px;
}

.cover-title {
  margin: auto 0 0.55rem;
  font-family: var(--font-display), Georgia, serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--marble);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.cover-standfirst {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(246, 244, 241, 0.86);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cover-cue {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brass-soft);
}

.cover-cue::after {
  content: " \2192";
}

.gallery-colophon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 2rem clamp(1.1rem, 3vw, 2.6rem) 3rem;
  border-top: 1px solid var(--line);
  margin: 1rem clamp(1.1rem, 3vw, 2.6rem) 0;
}

.colophon-word {
  font-family: var(--font-display), Georgia, serif;
  font-weight: 800;
  font-size: 1.1rem;
}

.colophon-word em {
  font-style: italic;
  font-weight: 400;
  color: var(--brass-deep);
}

.colophon-note {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------------------------------------------------------------- *
 * Article: image-led visual explainer.
 * ---------------------------------------------------------------- */
.reading {
  width: 100%;
}

.review {
  width: 100%;
  padding-bottom: 4rem;
}

/* Full-bleed lead figure carrying the title, over the lead image with a
   marble-gradient fallback so it looks finished before any jpg exists. */
.lead-figure {
  display: flex;
  flex-direction: column;
  min-height: clamp(26rem, 72vh, 42rem);
  margin: 0 0 clamp(1.8rem, 3vw, 2.8rem);
  background-image:
    linear-gradient(
      180deg,
      rgba(20, 19, 18, 0.36) 0%,
      rgba(20, 19, 18, 0.18) 38%,
      rgba(20, 19, 18, 0.62) 100%
    ),
    url("/images/marblecanvas-lead.jpg"),
    var(--cover, linear-gradient(135deg, #efe9e2, #cdbfa9));
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
}

.lead-frame {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 9rem) clamp(1.3rem, 4vw, 3rem) clamp(1.6rem, 3vw, 2.6rem);
  color: var(--marble);
}

.lead-tag {
  padding: 0.4rem 0.85rem;
  background: var(--brass);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.lead-title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display), Georgia, serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.lead-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.3rem;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--line);
}

.lead-caption .byline {
  color: var(--ink);
  font-weight: 700;
}

.lead-caption .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brass);
}

/* Shared reading column for every text block under the lead. */
.standfirst,
.criteria,
.article-content,
.faq,
.sourcing,
.review-foot {
  width: 100%;
  max-width: 47rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.2rem, 4vw, 2rem);
  padding-right: clamp(1.2rem, 4vw, 2rem);
}

.standfirst {
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  font-style: italic;
  line-height: 1.42;
  color: var(--ink);
  margin: 0 auto clamp(1.8rem, 3vw, 2.6rem);
  max-width: 44rem;
}

/* Criteria visual grid (derived from the post tags). */
.criteria {
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
}

.criteria-heading {
  font-family: var(--font-display), Georgia, serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brass-deep);
  margin: 0 0 1rem;
}

.criteria-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.85rem;
}

.criterion {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--brass);
  border-radius: var(--radius);
}

.criterion-index {
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brass);
  line-height: 1;
}

.criterion-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

/* ---- Injected article body ---- */
.article-content {
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.article-content > * {
  max-width: 100%;
}

.article-content h2 {
  font-family: var(--font-display), Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 2.6rem 0 0.9rem;
  padding-top: 1.1rem;
  position: relative;
}

.article-content h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.4rem;
  height: 2px;
  background: var(--brass);
}

.article-content h3 {
  font-family: var(--font-display), Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 1.9rem 0 0.6rem;
}

.article-content p {
  margin: 0 0 1.2rem;
}

.article-content a {
  color: var(--brass-deep);
  text-decoration: underline;
  text-decoration-color: rgba(176, 141, 87, 0.45);
  text-underline-offset: 0.18em;
  font-weight: 600;
}

.article-content a:hover {
  text-decoration-color: var(--brass-deep);
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.4rem;
  padding-left: 0;
  list-style: none;
}

.article-content ul li,
.article-content ol li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
}

.article-content ul li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--brass);
  transform: rotate(45deg);
}

.article-content ol {
  counter-reset: marble-ol;
}

.article-content ol li {
  counter-increment: marble-ol;
}

.article-content ol li::before {
  content: counter(marble-ol);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display), Georgia, serif;
  font-weight: 700;
  color: var(--brass);
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.6rem;
  border-left: 3px solid var(--brass);
  font-family: var(--font-display), Georgia, serif;
  font-style: italic;
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  line-height: 1.36;
  color: var(--ink);
}

.article-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: 0.95rem;
}

.article-content thead th {
  text-align: left;
  font-family: var(--font-body), system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: var(--brass-deep);
  padding: 0.7rem 0.9rem;
  border-bottom: 2px solid var(--ink);
  white-space: nowrap;
}

.article-content tbody td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}

.article-content tbody tr:nth-child(even) {
  background: rgba(176, 141, 87, 0.05);
}

.article-content figure {
  margin: 2rem 0;
}

.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.article-content figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* ---- FAQ ---- */
.faq {
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
}

.faq-title,
.sourcing-title {
  font-family: var(--font-display), Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--ink);
  margin: 0 0 1.1rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.3rem 0;
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.3rem;
  color: var(--brass);
  line-height: 1;
}

.faq details[open] summary::before {
  content: "\2013";
}

.faq details p {
  margin: 0 0 1rem 1.95rem;
  color: var(--ink-soft);
}

/* ---- Sourcing + foot ---- */
.sourcing {
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.sourcing p {
  margin: 0;
}

.review-foot {
  margin-top: clamp(2rem, 3vw, 2.6rem);
}

.to-index {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brass-deep);
}

.to-index::before {
  content: "\2190";
}

.to-index:hover {
  color: var(--ink);
}

/* ---------------------------------------------------------------- *
 * Responsive collapse.
 * ---------------------------------------------------------------- */
@media (max-width: 980px) {
  .gallery {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .gallery {
    column-count: 1;
    padding-top: 6rem;
  }

  .index-link {
    letter-spacing: 0.14em;
  }

  .lead-figure {
    min-height: 24rem;
  }
}
