/* ═══════════════════════════════════════════════════════════════════════════
   FRAMESIE ARTICLE STYLES
   Shared CSS for /learn and /discover content hubs
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  /* Colors */
  --bg: #f8f1e7;
  --paper: #fff9f1;
  --ink: #1f1b16;
  --muted: #6b6056;
  --accent: #c44d2a;
  --teal: #2A7585;
  --teal-light: #f5fbfc;
  --rule: rgba(31, 27, 22, 0.1);

  /* Shadows */
  --shadow: 0 20px 50px rgba(31, 27, 22, 0.15);
  --shadow-sm: 0 8px 24px rgba(31, 27, 22, 0.1);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;

  /* Spacing */
  --content-max: 960px;
  --page-max: 1160px;
  --gutter: 24px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   2. BASE
   ───────────────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}


/* ─────────────────────────────────────────────────────────────────────────────
   3. SKIP LINK
   ───────────────────────────────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   4. LAYOUT
   ───────────────────────────────────────────────────────────────────────────── */

.article-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.article-header-bar {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--ink);
}

.article-main {
  flex: 1;
  max-width: var(--page-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.article-content {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* Full-width sections break out of content width */
.article-content--wide {
  max-width: 960px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   5. WORDMARK
   ───────────────────────────────────────────────────────────────────────────── */

.wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 28px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  position: relative;
  display: inline-block;
  padding: 8px 10px 8px 8px;
}

.wordmark:hover {
  color: var(--accent);
}

.wordmark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-top: 1.5px solid var(--teal);
  border-left: 1.5px solid var(--teal);
}

.wordmark::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-bottom: 1.5px solid var(--teal);
  border-right: 1.5px solid var(--teal);
}


/* ─────────────────────────────────────────────────────────────────────────────
   6. TYPOGRAPHY (PROSE)
   ───────────────────────────────────────────────────────────────────────────── */

.prose h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 48px 0 16px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin: 32px 0 12px;
}

.prose p {
  margin: 0 0 16px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.prose a:hover {
  border-bottom-color: var(--teal);
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 8px;
}

.prose li:last-child {
  margin-bottom: 0;
}

.prose strong {
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

/* Inline CTA link within prose */
.prose-cta {
  display: inline-block;
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.prose-cta:hover {
  border-bottom-color: var(--teal);
}


/* ─────────────────────────────────────────────────────────────────────────────
   7. ARTICLE HEADER
   ───────────────────────────────────────────────────────────────────────────── */

.article-header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 24px;
}

.article-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  background: var(--teal-light);
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
  text-wrap: balance;
}

.article-date {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}


/* ─────────────────────────────────────────────────────────────────────────────
   8. CONTENT BLOCKS
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Images with captions ── */

.figure {
  margin: 32px 0;
}

.figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* Full-bleed image variant */
.figure--wide {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Blockquotes ── */

.blockquote {
  margin: 32px 0;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--muted);
}

.blockquote p {
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

.blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-style: normal;
  color: var(--muted);
}

.blockquote cite::before {
  content: '— ';
}

/* ── Callout/Tip boxes ── */

.callout {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--teal-light);
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
}

.callout-heading {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 8px;
}

.callout p {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}

.callout p + p {
  margin-top: 12px;
}

/* ── Comparison tables ── */

.table-wrap {
  margin: 32px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}

.table th {
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
}

.table tr:nth-child(even) td {
  background: rgba(248, 241, 231, 0.5);
}

.table tr:last-child td {
  border-bottom: none;
}

/* ── Numbered step lists ── */

.steps {
  margin: 32px 0;
  padding: 0;
  list-style: none;
  counter-reset: step-counter;
}

.step {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  counter-increment: step-counter;
}

.step:last-child {
  margin-bottom: 0;
}

.step::before {
  content: counter(step-counter);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: white;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.3;
}

.step-content p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   9. BOTTOM CTA
   ───────────────────────────────────────────────────────────────────────────── */

/* Full card style (for /learn articles) */
.bottom-cta {
  margin: 64px 0 48px;
  padding: 40px;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.bottom-cta-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}

.bottom-cta-text {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 24px;
}

/* Minimal inline style (for /learn pages) */
.bottom-cta--minimal {
  margin: 48px 0 40px;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

/* Discover CTA — fuller landing-style section */
.bottom-cta--discover {
  margin: 64px 0 48px;
  padding: 56px 48px;
}

.bottom-cta--discover .bottom-cta-title {
  font-size: clamp(26px, 5vw, 36px);
  margin-bottom: 16px;
}

.bottom-cta--discover .bottom-cta-text {
  font-size: 17px;
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 28px;
}

.bottom-cta-trust {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 20px rgba(196, 77, 42, 0.25);
}

.btn--primary:hover {
  background: #b34428;
}


/* ─────────────────────────────────────────────────────────────────────────────
   10. ARTWORK CARD (Discover)
   ───────────────────────────────────────────────────────────────────────────── */

.artwork-card {
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.artwork-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.artwork-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  padding: 24px;
  min-height: 280px;
}

.artwork-card-image img {
  display: block;
  max-width: 100%;
  max-height: 360px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.artwork-card-body {
  padding: 24px;
  border-top: 1px solid var(--rule);
}

.artwork-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.3;
}

.artwork-card-artist {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 4px;
}

.artwork-card-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}

/* Teal "Try in Framesie" button — invitation style */
.btn--teal {
  background: var(--teal);
  color: white;
  box-shadow: 0 6px 16px rgba(42, 117, 133, 0.25);
  font-size: 14px;
  padding: 10px 18px;
}

.btn--teal:hover {
  background: #236d7a;
}

.artwork-card .btn--teal {
  width: 100%;
  justify-content: center;
}


/* ─────────────────────────────────────────────────────────────────────────────
   11. ARTWORK GRID (Discover)
   ───────────────────────────────────────────────────────────────────────────── */

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin: 0 0 64px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   12. FEATURED SECTION (Discover)
   ───────────────────────────────────────────────────────────────────────────── */

.featured-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: stretch;
  margin-top: 60px;
  margin-bottom: 72px;
}

.featured-artwork-wrap {
  position: relative;
  width: auto;
  max-width: 360px;
}

.featured-artwork {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-artwork img {
  display: block;
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(31, 27, 22, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Landscape artwork in featured section - wider container */
.featured-artwork-wrap--landscape {
  max-width: 480px;
}

.featured-artwork-wrap--landscape img {
  max-height: 320px;
}

.featured-artwork img:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(31, 27, 22, 0.28);
}

/* Link wrapper for featured artwork image */
.featured-artwork-link {
  display: block;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.featured-artwork-link:hover {
  transform: scale(1.02);
}

/* Featured artwork callout (under bio) */
.featured-artwork-callout {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.featured-artwork-callout-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 8px;
}

.featured-artwork-callout-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}

.featured-artwork-callout-meta {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}

.featured-artwork-callout .btn--teal {
  font-size: 14px;
  padding: 12px 20px;
}

/* Artist details on right */
.featured-details {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}

.featured-details .artist-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 16px;
}

.featured-details .artist-name .artist-dates {
  font-family: var(--font-body);
  font-size: 0.45em;
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.15em;
}

.featured-details .artist-intro {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0;
}

/* Artwork details on right (single-artwork pages) */
.artwork-details {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}

.artwork-details .artwork-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 8px;
}

.artwork-details .artwork-artist {
  font-size: 17px;
  margin: 0 0 20px;
}

.artwork-details .artwork-artist a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.artwork-details .artwork-artist a:hover {
  border-bottom-color: var(--teal);
}

/* Compact horizontal metadata */
.artwork-meta {
  margin: 0;
}

.artwork-meta-primary {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 6px;
}

.artwork-meta-secondary {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 6px;
}

.artwork-meta-secondary a {
  color: var(--teal);
  text-decoration: none;
}

.artwork-meta-secondary a:hover {
  text-decoration: underline;
}

.artwork-details .artwork-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}

/* Sizing block (pushed to bottom of details column) */
.artwork-sizing {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.artwork-sizing-fit {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}

.artwork-sizing-more {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
}

.artwork-sizing .btn--teal {
  font-size: 14px;
  padding: 12px 20px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   13. THUMBNAIL STRIP (Discover) - Legacy, keep for backwards compatibility
   ───────────────────────────────────────────────────────────────────────────── */

.thumbnail-strip {
  margin-bottom: 64px;
}

.thumbnail-strip-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 12px;
}

.thumbnail-strip-scroll {
  display: flex;
  justify-content: flex-start;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  /* Fade right edge to signal more content */
  -webkit-mask-image: linear-gradient(to right, black 0%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, black 0%, black 90%, transparent 100%);
}

/* Subtle scrollbar */
.thumbnail-strip-scroll::-webkit-scrollbar {
  height: 4px;
}

.thumbnail-strip-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.thumbnail-strip-scroll::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 2px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   13b. ARTIST WORKS (Artist profile - uses art-card components)
   ───────────────────────────────────────────────────────────────────────────── */

.artist-works {
  margin-bottom: 64px;
}

.artist-works-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 16px;
}

.artist-works-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  /* Fade right edge to signal more content */
  -webkit-mask-image: linear-gradient(to right, black 0%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, black 0%, black 90%, transparent 100%);
}

.artist-works-scroll::-webkit-scrollbar {
  height: 4px;
}

.artist-works-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.artist-works-scroll::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 2px;
}

.artist-works-scroll .art-card {
  flex-shrink: 0;
}

.thumbnail-item {
  flex-shrink: 0;
  width: 160px;
  text-align: center;
}

.thumbnail-image-wrap {
  position: relative;
  margin-bottom: 10px;
  height: 160px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.thumbnail-image-wrap img {
  display: block;
  max-width: 100%;
  max-height: 160px;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(31, 27, 22, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail-image-wrap:hover img {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(31, 27, 22, 0.28);
}

/* Link covers the thumbnail image */
.thumbnail-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Thumbnail app link - hidden (use detail page CTA instead) */
.thumbnail-app-link {
  display: none;
}

.thumbnail-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.thumbnail-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}


/* ─────────────────────────────────────────────────────────────────────────────
   14. ARTIST HEADER (Discover) — for grid layout fallback
   ───────────────────────────────────────────────────────────────────────────── */

.artist-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  padding-top: 32px;
}

.artist-name {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 20px;
}

/* Inline dates within artist name */
.artist-name .artist-dates {
  font-family: var(--font-body);
  font-size: 0.45em;
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.25em;
}

.artist-intro {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0;
}


/* ─────────────────────────────────────────────────────────────────────────────
   15. DISCOVER INDEX PAGE
   ───────────────────────────────────────────────────────────────────────────── */

/* Intro section */
.discover-intro {
  text-align: center;
  padding-top: 60px;
  margin-bottom: 64px;
}

.discover-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 56px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}

.discover-tagline {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

/* Breadcrumb - used in discover-intro or standalone nav */
.discover-breadcrumb {
  font-size: 13px;
  margin: 0;
}

/* Standalone breadcrumb nav (on article pages) - right justified */
.discover-nav {
  display: flex;
  justify-content: flex-end;
  padding-top: 32px;
}

.discover-nav .discover-breadcrumb {
  font-size: 14px;
  font-weight: 500;
}

.discover-nav .discover-breadcrumb a {
  color: var(--teal);
  text-decoration: none;
}

.discover-nav .discover-breadcrumb a::before {
  content: '← ';
}

.discover-nav .discover-breadcrumb a:hover {
  opacity: 0.8;
}

/* Spacing between breadcrumb nav and content below */
.discover-nav + .featured-section {
  margin-top: 40px;
}

.discover-nav + .discover-intro {
  padding-top: 16px;
  margin-bottom: 40px;
}

.discover-breadcrumb a {
  color: var(--teal);
  text-decoration: none;
}

.discover-breadcrumb a:hover {
  text-decoration: underline;
}

/* Section structure */
.discover-section {
  margin-bottom: 64px;
}

.discover-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}

.discover-section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.discover-see-all {
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.discover-see-all:hover {
  opacity: 0.8;
}

.discover-section-intro {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 24px;
}

/* Shared grid layout */
.discover-grid {
  display: grid;
  gap: 28px;
}

.discover-grid--artists {
  grid-template-columns: repeat(3, 200px);
  justify-content: start;
}

.discover-grid--art {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Scroll wrapper - fade applies at all sizes for consistency */
.discover-grid-scroll {
  -webkit-mask-image: linear-gradient(to right, black 0%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, black 0%, black 90%, transparent 100%);
}

/* ─── Artist Card ─── */
.artist-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Constrain card width to match image width */
.artist-card--square {
  width: 200px;
}

.artist-card--square .artist-card-image {
  width: 200px;
  height: 200px;
}

.artist-card--portrait {
  width: 200px;
}

.artist-card--landscape {
  width: 220px;
}

.artist-card-image {
  position: relative;
  background: var(--paper);
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(31, 27, 22, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.artist-card:hover .artist-card-image {
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.artist-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* Standardized artist card sizes by aspect ratio */
.artist-card--square .artist-card-image {
  width: 200px;
  height: 200px;
}

.artist-card--portrait .artist-card-image {
  width: 200px;
  height: 250px;
}

.artist-card--landscape .artist-card-image {
  width: 220px;
  height: 165px;
}

.artist-card-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 2px;
  line-height: 1.3;
}

.artist-card-dates {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
}

/* ─── Art Card ─── */
.art-card {
  text-align: left;
}

.art-card-image {
  position: relative;
  background: var(--paper);
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(31, 27, 22, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.art-card-image:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.art-card-link {
  display: block;
  width: 100%;
  height: 100%;
}

.art-card-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* Standardized card sizes by aspect ratio */
.art-card--square .art-card-image {
  width: 180px;
  height: 180px;
}

.art-card--portrait .art-card-image {
  width: 160px;
  height: 200px;
}

.art-card--landscape .art-card-image {
  width: 200px;
  height: 150px;
}

.art-card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 2px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.art-card-artist {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* ─── Collection Card (text-only, external links) ─── */
.discover-grid--collections {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.collection-card {
  display: block;
  background: var(--paper);
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(31, 27, 22, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.collection-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.collection-card-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.3;
}

.collection-card-stat {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Light CTA */
.discover-cta {
  text-align: center;
  padding: 48px 0 64px;
  border-top: 1px solid var(--rule);
  margin-top: 24px;
}

.discover-cta-text {
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 16px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   16. FOOTER
   ───────────────────────────────────────────────────────────────────────────── */

.article-footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 24px var(--gutter);
  margin-top: auto;
}

.article-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
  /* Touch target: 44x44px minimum */
  display: inline-block;
  padding: 12px 16px;
  margin: -12px -8px;
}

.article-footer a:hover {
  color: var(--ink);
}

.article-footer .separator {
  margin: 0 8px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   16. RESPONSIVE
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .article-header {
    padding-top: 16px;
  }

  .artist-header {
    margin-bottom: 48px;
  }

  .featured-section {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 32px;
    margin-bottom: 56px;
  }

  .featured-artwork-wrap {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .featured-artwork img {
    max-height: 360px;
  }

  .featured-details {
    text-align: center;
    padding-top: 0;
  }

  .featured-artwork-callout {
    margin-top: 24px;
  }

  .featured-details .artist-intro {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .artwork-details {
    text-align: center;
    padding-top: 0;
  }

  .artwork-details .artwork-description {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .artwork-details .artwork-cta {
    margin-top: 24px;
  }

  .artwork-meta-list {
    display: inline-block;
    text-align: left;
  }

  .thumbnail-strip,
  .artist-works {
    margin-bottom: 48px;
  }

  .artwork-grid {
    gap: 32px;
  }

  .prose h2 {
    font-size: 22px;
    margin-top: 40px;
  }

  .prose h3 {
    font-size: 17px;
  }

  .bottom-cta {
    padding: 32px 24px;
  }

  .bottom-cta-title {
    font-size: 22px;
  }

  /* Discover index responsive */
  .discover-intro {
    padding-top: 40px;
    margin-bottom: 48px;
  }

  .discover-section {
    margin-bottom: 48px;
  }

  .discover-grid {
    gap: 24px;
  }

  .discover-cta {
    padding: 40px 0 56px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
  }

  .article-header-bar {
    padding: 16px 20px;
  }

  .article-title {
    font-size: 26px;
  }

  .artist-header {
    margin-bottom: 40px;
    padding-top: 16px;
  }

  .artist-name {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .artist-name .artist-dates {
    display: block;
    font-size: 14px;
    margin-left: 0;
    margin-top: 6px;
  }

  .artist-intro {
    font-size: 15px;
    line-height: 1.7;
  }

  .featured-section {
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 40px;
  }

  .featured-artwork-wrap {
    max-width: 320px;
  }

  .featured-artwork img {
    max-height: 300px;
  }

  .featured-artwork-callout {
    margin-top: 24px;
    padding-top: 20px;
    text-align: center;
  }

  .featured-details .artist-name {
    font-size: 26px;
  }

  .featured-details .artist-name .artist-dates {
    display: block;
    margin-left: 0;
    margin-top: 4px;
    font-size: 14px;
  }

  .featured-details .artist-intro {
    font-size: 15px;
  }

  .artwork-details .artwork-title {
    font-size: 24px;
  }

  .artwork-details .artwork-artist {
    font-size: 15px;
  }

  .artwork-details .artwork-description {
    font-size: 14px;
  }

  .artwork-meta-list {
    font-size: 13px;
  }

  .thumbnail-strip,
  .artist-works {
    margin-bottom: 40px;
  }

  .thumbnail-strip-scroll,
  .artist-works-scroll {
    gap: 16px;
  }

  .thumbnail-image-wrap {
    height: 140px;
  }

  .thumbnail-image-wrap img {
    max-height: 140px;
  }

  .artwork-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 48px;
  }

  .artwork-card-image {
    min-height: 240px;
    padding: 20px;
  }

  .artwork-card-image img {
    max-height: 300px;
  }

  .step {
    flex-direction: column;
    gap: 12px;
  }

  .step::before {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .table-wrap {
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
  }

  .bottom-cta {
    margin: 48px 0 32px;
    padding: 28px 20px;
    border-radius: 12px;
  }

  .bottom-cta--minimal {
    margin: 32px 0;
  }

  .bottom-cta--discover {
    padding: 40px 24px;
  }

  .bottom-cta--discover .bottom-cta-title {
    font-size: 24px;
  }

  .bottom-cta--discover .bottom-cta-text {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .bottom-cta-trust {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .callout {
    padding: 16px 20px;
  }

  /* Discover index responsive - small screens */
  .discover-intro {
    padding-top: 32px;
    margin-bottom: 40px;
  }

  .discover-tagline {
    font-size: 16px;
  }

  .discover-section {
    margin-bottom: 40px;
  }

  .discover-section-header {
    margin-bottom: 16px;
  }

  .discover-section-title {
    font-size: 18px;
  }

  .discover-grid-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin-bottom: 0;
    contain: layout;
  }

  .discover-grid-scroll .discover-grid {
    display: flex;
    gap: 16px;
    width: max-content;
  }

  .discover-grid-scroll::-webkit-scrollbar {
    height: 4px;
  }

  .discover-grid-scroll::-webkit-scrollbar-thumb {
    background: var(--muted);
    border-radius: 2px;
  }

  .discover-grid-scroll .artist-card {
    flex-shrink: 0;
  }

  .discover-grid-scroll .art-card {
    flex-shrink: 0;
  }

  /* Card widths match image widths - titles wrap within */
  .discover-grid-scroll .art-card--portrait { width: 120px; }
  .discover-grid-scroll .art-card--square { width: 140px; }
  .discover-grid-scroll .art-card--landscape { width: 160px; }

  .discover-grid-scroll .collection-card {
    flex-shrink: 0;
    width: 200px;
  }

  /* Mobile: constrain card width to match smaller image sizes */
  .artist-card--square {
    width: 160px;
  }

  .artist-card--square .artist-card-image {
    width: 160px;
    height: 160px;
  }

  .artist-card--portrait {
    width: 140px;
  }

  .artist-card--portrait .artist-card-image {
    width: 140px;
    height: 175px;
  }

  .artist-card--landscape {
    width: 180px;
  }

  .artist-card--landscape .artist-card-image {
    width: 180px;
    height: 135px;
  }

  .artist-card-name {
    font-size: 14px;
  }

  .artist-card-dates {
    font-size: 11px;
  }

  .art-card--square .art-card-image {
    width: 140px;
    height: 140px;
  }

  .art-card--portrait .art-card-image {
    width: 120px;
    height: 150px;
  }

  .art-card--landscape .art-card-image {
    width: 160px;
    height: 120px;
  }

  .art-card-title {
    font-size: 13px;
  }

  .art-card-artist {
    font-size: 11px;
  }

  .discover-cta {
    padding: 32px 0 48px;
  }
}


/* ─────────────────────────────────────────────────────────────────────────────
   17. ACCESSIBILITY
   ───────────────────────────────────────────────────────────────────────────── */

/* Visually hidden (for screen readers) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus states */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.wordmark:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

/* ─── Brochure Mode (incapable devices) ─── */
.brochure-message {
  display: none;
  font-size: 15px;
  color: var(--muted);
  margin-top: 8px;
}

/* Hide discover CTA entirely on index/listing pages */
.brochure-mode .discover-cta {
  display: none;
}

/* Hide sizing block and featured callout - not useful without app access */
.brochure-mode .artwork-sizing,
.brochure-mode .featured-artwork-callout {
  display: none;
}

/* Bottom CTA on profile pages - keep content, hide button, show brochure message */
.brochure-mode .bottom-cta .btn {
  display: none;
}

.brochure-mode .bottom-cta .brochure-message {
  display: block;
  margin-top: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .artwork-card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }

  .skip-link {
    transition: none;
  }
}
