/* hardz — paper-and-ink editorial aesthetic
   Palette: oatmeal paper, deep ink, one restrained magazine red */

:root {
  --paper: #EFEBDD;
  --paper-2: #E7E2CE;
  --paper-3: #DBD4B6;
  --ink: #0F0F0E;
  --ink-soft: #1E1E1B;
  --rule: #C4BFA6;
  --rule-soft: #DAD4B9;
  --muted: #66625A;
  --dim: #8F8B76;

  --accent: #D93A1F;         /* magazine red — LICENCE flag + one CTA */
  --accent-soft: #F3D9D0;
  --accent-hover: #B22E17;

  --wide: min(1440px, 94vw);
  --content: min(1120px, 92vw);

  --serif: 'Instrument Serif', 'Iowan Old Style', 'Georgia', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 120ms ease, color 120ms ease;
}
a:hover { border-bottom-color: var(--ink); }

/* ---------- Watermark overlay (retained from previous)
   Tuned for the paper palette. */
.watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='140' viewBox='0 0 260 140'><g transform='rotate(-22 130 70)'><text x='130' y='58' text-anchor='middle' font-family='Georgia, serif' font-weight='400' font-size='24' fill='rgba(255,255,255,0.42)' stroke='rgba(0,0,0,0.35)' stroke-width='0.6' letter-spacing='4'>HARDZ</text><text x='130' y='84' text-anchor='middle' font-family='Georgia, serif' font-weight='400' font-size='10' fill='rgba(255,255,255,0.42)' stroke='rgba(0,0,0,0.35)' stroke-width='0.3' letter-spacing='4'>hardz.com</text></g></svg>");
  background-repeat: repeat;
  background-size: 260px 140px;
}
.watermark.big { background-size: 340px 180px; }
.watermark.small { background-size: 200px 108px; }

/* ---------- Nav / masthead ---------- */
.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
}
.masthead-inner {
  width: var(--wide);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  padding: 20px 0 18px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 0;
  line-height: 1;
}
.wordmark:hover { border-bottom: 0; color: var(--ink); }

.mast-nav {
  display: flex;
  gap: 22px;
  font-size: 13px;
  flex: 1;
  margin-left: 40px;
}
.mast-nav a {
  color: var(--ink);
  padding: 0;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  font-weight: 400;
}
.mast-nav a:hover { border-bottom-color: var(--ink); color: var(--ink); }
.mast-nav a.here {
  font-style: italic;
  font-family: var(--serif);
  font-size: 15px;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--ink);
}

.mast-actions {
  display: flex;
  gap: 20px;
  align-items: baseline;
  font-size: 13px;
}
.mast-actions a { color: var(--ink); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.mast-actions a:hover { border-bottom-color: var(--ink); }
.mast-actions .cta {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
}
.mast-actions .cta:hover { border-bottom-color: var(--ink); }

@media (max-width: 900px) { .mast-nav { display: none; } }

/* ---------- Hero (editorial, centered, no photo background) ---------- */
.hero {
  padding: 96px 20px 64px;
  text-align: center;
  position: relative;
}
.hero-inner { width: min(880px, 92vw); margin: 0 auto; }
.hero-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
}
.hero .kicker {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 48px;
  line-height: 1.55;
}
.hero .kicker strong { color: var(--ink); font-weight: 600; }

/* Search — a single underlined line, arrow submit */
.search-form {
  display: flex;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
}
.search-scope {
  position: relative;
  border-right: 1px solid var(--rule);
  padding-right: 12px;
  margin-right: 12px;
}
.search-scope select {
  border: 0;
  background: transparent;
  padding: 0 22px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  appearance: none;
  cursor: pointer;
}
.search-scope::after {
  content: '';
  position: absolute;
  right: 12px; top: 50%;
  width: 6px; height: 6px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.search-input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 14px 4px;
  font-family: var(--sans);
  font-size: 18px;
  color: var(--ink);
  outline: none;
}
.search-input::placeholder { color: var(--dim); font-style: italic; }
.search-submit {
  border: 0;
  background: transparent;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
  padding: 8px 0 8px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-submit:hover { color: var(--accent); }

.hero-tags {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}
.hero-tags a {
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  margin: 0 4px;
  padding-bottom: 1px;
  font-style: italic;
  font-family: var(--serif);
  font-size: 15px;
}
.hero-tags a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Hero CTA — visible sign-up/sign-in buttons for signed-out visitors */
.hero-cta {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-cta .hc-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
}
.hero-cta .btn { padding: 12px 32px; font-size: 15px; }
.hero-cta .hc-or {
  font-family: var(--serif);
  font-style: italic;
  color: var(--dim);
  font-size: 15px;
}
@media (max-width: 500px) {
  .hero-cta { flex-direction: column; gap: 12px; }
  .hero-cta .btn { width: 100%; max-width: 260px; }
}

/* ---------- Fresh strip (below hero) ---------- */
.fresh {
  width: var(--wide);
  margin: 0 auto;
  padding: 20px 0 60px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-head h2 em { font-style: italic; }
.section-head .see-all {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.section-head .see-all:hover { border-bottom-color: var(--ink); }

.fresh-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.pick {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--paper-2);
  border-bottom: 0;
  display: block;
}
.pick:hover { border-bottom: 0; }
.pick img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; display: block; }
.pick:hover img { transform: scale(1.04); }
.pick .pick-flag {
  position: absolute; top: 0; left: 0;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  letter-spacing: 0.08em;
  z-index: 4;
}
.pick .pick-video {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(15,15,14,0.85);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 4px;
}
@media (max-width: 1000px) { .fresh-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px)  { .fresh-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Editorial three-column feature (browse the archive) ---------- */
.editorial {
  width: var(--wide);
  margin: 0 auto;
  padding: 64px 0 40px;
  border-top: 1px solid var(--rule);
}
.editorial-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 32px;
}
.ec {
  display: block;
  color: var(--ink);
  border-bottom: 0;
}
.ec:hover { border-bottom: 0; color: var(--ink); }
.ec-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--paper-2);
  margin-bottom: 16px;
}
.ec-image img { width: 100%; height: 100%; object-fit: cover; transition: opacity 200ms ease; }
.ec:hover .ec-image img { opacity: 0.9; }
.ec-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 6px;
}
.ec-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.ec-desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 360px;
  margin: 0 0 12px;
  line-height: 1.55;
}
.ec-more {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}

@media (max-width: 900px) { .editorial-columns { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Contribute panel ---------- */
.contribute {
  width: var(--wide);
  margin: 40px auto 0;
  padding: 64px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
.contribute .contribute-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 12px;
}
.contribute h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  color: var(--ink);
}
.contribute h2 em { font-style: italic; }
.contribute p { color: var(--muted); font-size: 15px; max-width: 480px; margin: 0 0 24px; }
.contribute p strong { color: var(--ink); font-weight: 600; }
.contribute .facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  margin-bottom: 32px;
  font-size: 14px;
}
.contribute .fact-num {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}
.contribute .fact-lbl { color: var(--muted); font-size: 13px; }
.contribute .cta-col { padding-top: 8px; }

@media (max-width: 900px) {
  .contribute { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border-radius: 0;
  transition: background 120ms ease, color 120ms ease;
}
.btn:hover { background: var(--ink-soft); color: var(--paper); border-bottom-color: var(--ink-soft); }
.btn.big { padding: 14px 32px; font-size: 15px; }
.btn.outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn.outline:hover { background: var(--ink); color: var(--paper); }
.btn.accent {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.btn.accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--paper); }
.btn.wide { width: 100%; }

/* ---------- Search results (on home) ---------- */
.results {
  width: var(--wide);
  margin: 0 auto;
  padding: 40px 0 60px;
}
.results-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.results-bar h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.results-bar h2 em { font-style: italic; }
.results-bar .rb-meta { color: var(--muted); font-size: 14px; }

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.section-heading em { font-style: italic; color: var(--muted); font-weight: 400; font-size: 14px; font-family: var(--sans); }
.section-heading .flag-lbl {
  display: inline-block;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  margin-left: 6px;
}

/* Result cards */
.results-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px 16px;
}
.rcard {
  display: block;
  color: var(--ink);
  border-bottom: 0;
}
.rcard:hover { border-bottom: 0; color: var(--ink); }
.rcard-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--paper-2);
  margin-bottom: 12px;
}
.rcard-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 200ms ease; }
.rcard:hover .rcard-image img { opacity: 0.9; }
.rc-flag {
  position: absolute; top: 0; left: 0;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  letter-spacing: 0.08em;
  z-index: 4;
}
.rc-video {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(15,15,14,0.85);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  z-index: 4;
  display: flex; align-items: center; gap: 4px;
}
.rcard-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}
.rcard-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.rcard-meta .ref { letter-spacing: 0.04em; }
.rcard-meta .price { color: var(--ink); font-weight: 500; }

@media (max-width: 1100px) { .results-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 800px)  { .results-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px)  { .results-grid { grid-template-columns: repeat(2, 1fr); } }

/* Pagination */
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 40px;
  align-items: center;
}
.pagination a, .pagination span {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.pagination a:hover { border-bottom-color: var(--ink); }
.pagination .current { font-family: var(--serif); font-style: italic; font-size: 18px; border-bottom-color: var(--ink); }
.pagination .ellipsis { color: var(--dim); cursor: default; }
.pagination .nav {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
}
.pagination .nav.disabled { color: var(--dim); pointer-events: none; }

/* ---------- Archive toolbar ---------- */
.archive-toolbar {
  border-bottom: 1px solid var(--rule);
  padding: 24px 0 20px;
}
.archive-toolbar-inner {
  width: var(--wide);
  margin: 0 auto;
  display: flex;
  gap: 32px;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 13px;
}
.archive-toolbar h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.archive-toolbar h1 em { font-style: italic; }
.archive-toolbar h1 .h-meta { color: var(--muted); font-size: 14px; margin-left: 12px; font-family: var(--sans); }

.filter-group { display: flex; gap: 4px; align-items: baseline; font-size: 13px; color: var(--muted); }
.filter-group .lbl {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  margin-right: 8px;
}
.chip-link {
  padding: 4px 12px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  border-bottom: 1px solid var(--rule);
}
.chip-link:hover { border-bottom-color: var(--ink); }
.chip-link.on {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-bottom-color: var(--ink);
}
.chip-link.on:hover { color: var(--paper); }

.sort-dd { margin-left: auto; color: var(--muted); display: flex; align-items: baseline; gap: 6px; font-size: 13px; }
.sort-dd label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
}
.sort-dd select {
  padding: 4px 24px 4px 4px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(-45deg, transparent 50%, var(--ink) 50%);
  background-position: calc(100% - 12px) 50%, calc(100% - 8px) 50%;
  background-size: 4px 4px;
  background-repeat: no-repeat;
}

/* Justified image grid */
.justified-grid {
  width: var(--wide);
  margin: 32px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.jtile {
  display: block;
  position: relative;
  overflow: hidden;
  flex-grow: 1;
  background: var(--paper-2);
  color: var(--ink);
  border-bottom: 0;
  max-width: 400px;
  min-width: 180px;
}
.jtile:hover { border-bottom: 0; }
.jtile img { display: block; width: 100%; height: 220px; object-fit: cover; transition: opacity 200ms ease; }
.jtile:hover img { opacity: 0.9; }
.jtile .jt-caption {
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 6px 10px;
  font-family: var(--sans);
  font-size: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 150ms ease, transform 150ms ease;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.jtile .jt-caption .ref { letter-spacing: 0.04em; }
.jtile .jt-caption .p { color: var(--ink); font-weight: 500; }
.jtile:hover .jt-caption { opacity: 1; transform: translateY(0); }
.jtile .jt-flag {
  position: absolute; top: 0; left: 0;
  background: var(--accent); color: var(--paper); font-family: var(--sans); font-size: 10px; font-weight: 600;
  padding: 3px 8px; letter-spacing: 0.08em; z-index: 4;
}
.jtile .jt-video {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(15,15,14,0.85); color: var(--paper); font-family: var(--sans); font-size: 10px; font-weight: 500;
  padding: 2px 6px; z-index: 4;
  display: flex; align-items: center; gap: 4px;
}

/* ---------- Asset detail ---------- */
.asset-page {
  width: var(--wide);
  margin: 0 auto;
  padding: 24px 0 80px;
}
.crumb {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0 24px;
}
.crumb a { color: var(--muted); border-bottom-color: var(--rule); }
.crumb a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.asset-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  align-items: start;
}
.asset-image {
  background: var(--paper-2);
  padding: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-soft);
}
.asset-image .media-holder {
  position: relative;
  display: inline-block;
  max-width: 100%;
  box-shadow: 0 12px 40px rgba(15,15,14,0.15);
}
.asset-image img, .asset-image video {
  max-width: 100%;
  max-height: 74vh;
  height: auto;
  display: block;
}
.asset-side { position: sticky; top: 92px; }
.asset-side .label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 6px;
}
.asset-side .ref-line {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.asset-side h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--ink);
}
.asset-side .contrib {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.asset-side .contrib strong { color: var(--ink); font-weight: 600; }

.buy-block { margin-bottom: 20px; }
.buy-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.buy-block-head h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  margin: 0;
  color: var(--ink);
}
.buy-block-head .flag-lbl {
  background: var(--accent);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  letter-spacing: 0.08em;
}
.buy-block-price {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}
.buy-block-price small {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
}
.buy-block-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.55;
}
.buy-block-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  font-style: italic;
  font-family: var(--serif);
  font-size: 14px;
}
.buy-block-note strong { color: var(--ink); font-weight: 600; font-style: normal; font-family: var(--sans); }

.meta-block {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}
.meta-block dl { margin: 0; display: grid; grid-template-columns: 100px 1fr; gap: 8px 16px; }
.meta-block dt { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 14px; }
.meta-block dd { margin: 0; color: var(--ink); }

.tag-strip { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); }
.tag-strip .tag-lbl {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.tag-strip a {
  display: inline-block;
  color: var(--ink);
  padding: 2px 0;
  margin: 0 12px 4px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  border-bottom: 1px solid var(--rule);
}
.tag-strip a:hover { border-bottom-color: var(--ink); }

@media (max-width: 900px) {
  .asset-layout { grid-template-columns: 1fr; gap: 32px; }
  .asset-side { position: static; }
}

/* ---------- Upload page ---------- */
.upload-hero {
  text-align: center;
  padding: 80px 20px 40px;
  border-bottom: 1px solid var(--rule);
}
.upload-hero .label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 20px;
}
.upload-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--ink);
}
.upload-hero h1 em { font-style: italic; }
.upload-hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
}
.upload-hero p strong { color: var(--ink); font-weight: 600; }
.upload-hero .facts {
  display: flex;
  gap: 56px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.upload-hero .fact { text-align: center; }
.upload-hero .fact-num {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--ink);
  line-height: 1;
}
.upload-hero .fact-lbl {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

.upload-form-wrap {
  width: min(720px, 92vw);
  margin: 0 auto;
  padding: 48px 0 96px;
}
.form-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}
.form-section:last-of-type { border-bottom: 0; }
.form-section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.form-section h2 em { font-style: italic; color: var(--muted); font-size: 18px; margin-left: 4px; }
.form-section .fs-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 24px;
}

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input[type=text], .field textarea, .field select {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; font-style: italic; font-family: var(--serif); font-size: 13px; }

.dropzone {
  border: 1px dashed var(--dim);
  padding: 40px;
  text-align: center;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}
.dropzone:hover { border-color: var(--ink); background: var(--paper-2); }
.dropzone .big {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 6px;
}
.dropzone .small { font-size: 13px; color: var(--muted); }

.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.radio-card {
  border: 1px solid var(--rule);
  padding: 20px;
  cursor: pointer;
  background: var(--paper);
  position: relative;
}
.radio-card:hover { border-color: var(--dim); }
.radio-card.on { border-color: var(--ink); background: var(--paper-2); }
.radio-card .rc-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  margin-bottom: 4px;
  color: var(--ink);
}
.radio-card .rc-sub { font-size: 12px; color: var(--muted); line-height: 1.5; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }

/* Watermark notice */
.watermark-notice {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: 13px;
  align-items: flex-start;
  margin-top: 12px;
}
.watermark-notice .icon { font-size: 20px; color: var(--accent); flex-shrink: 0; }
.watermark-notice strong { color: var(--ink); }
.watermark-notice em { color: var(--accent); font-style: normal; font-weight: 600; }

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
  line-height: 1.55;
}
.check-line:last-child { border-bottom: 0; }
.check-line input[type=checkbox] {
  margin-top: 2px;
  accent-color: var(--ink);
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.check-line .ct em { color: var(--accent); font-style: normal; font-weight: 600; }

.submit-row {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.submit-row .btn { font-size: 15px; padding: 14px 32px; }
.submit-row .terms { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--muted); }

@media (max-width: 640px) { .radio-group { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 56px 0 24px;
  margin-top: 40px;
}
.footer-inner {
  width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .wm {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1;
}
.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  max-width: 340px;
  margin: 0 0 8px;
  line-height: 1.55;
}
.footer h4 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.footer a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.footer-btm {
  width: var(--wide);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-inner { grid-template-columns: 1fr; } }

/* Empty state */
.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.empty h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  color: var(--ink);
  margin: 0 0 12px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  font-size: 14px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  max-width: 90vw;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
}
.toast.show { opacity: 1; }

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

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

/* ---------- Doc pages ---------- */
.doc-page {
  width: var(--wide);
  margin: 0 auto;
  padding: 56px 0 96px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: 92px;
  font-size: 13px;
}
.doc-toc-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 14px;
}
.doc-toc ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule); }
.doc-toc li { margin: 0; }
.doc-toc a {
  display: block;
  padding: 6px 14px;
  color: var(--muted);
  border-bottom: 0;
  border-left: 2px solid transparent;
  margin-left: -1px;
  line-height: 1.4;
  font-size: 13px;
}
.doc-toc a:hover { color: var(--ink); border-bottom: 0; }
.doc-toc a.on {
  color: var(--ink);
  border-left-color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
}

.doc-body { max-width: 720px; line-height: 1.7; }
.doc-body h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--ink);
}
.doc-body h1 em { font-style: italic; }
.doc-body .doc-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--muted);
  margin: 0 0 40px;
  line-height: 1.45;
}
.doc-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 44px 0 14px;
  color: var(--ink);
  scroll-margin-top: 100px;
  letter-spacing: -0.01em;
}
.doc-body h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  margin: 28px 0 8px;
  color: var(--ink);
}
.doc-body p, .doc-body ul, .doc-body ol {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 15px;
}
.doc-body ul, .doc-body ol { padding-left: 22px; }
.doc-body li { margin-bottom: 6px; }
.doc-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.doc-body a:hover { border-bottom-color: var(--ink); }
.doc-body strong { color: var(--ink); font-weight: 600; }

.doc-body .callout {
  background: var(--paper-2);
  border-left: 3px solid var(--ink);
  padding: 14px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
}
.doc-body .callout.warn { border-left-color: var(--accent); background: var(--accent-soft); }
.doc-body .callout p { margin: 0; }
.doc-body .callout p + p { margin-top: 8px; }
.doc-body .callout strong { font-style: normal; }

.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.doc-body th, .doc-body td {
  text-align: left;
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.doc-body th {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
}

.doc-body dl {
  margin: 16px 0;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px 24px;
}
.doc-body dt {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
}
.doc-body dd { margin: 0; color: var(--ink); }

.doc-body .contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.doc-body .contact-card {
  padding: 24px;
  background: var(--paper-2);
  border-left: 2px solid var(--ink);
}
.doc-body .contact-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0 0 8px;
  font-size: 20px;
  font-style: normal;
}
.doc-body .contact-card a {
  font-size: 16px;
  word-break: break-all;
  color: var(--ink);
}
.doc-body .contact-card .lbl {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .doc-page { grid-template-columns: 1fr; gap: 24px; padding: 32px 0 60px; }
  .doc-toc { position: static; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
  .doc-body dl { grid-template-columns: 1fr; gap: 4px 0; }
  .doc-body dl dt { margin-top: 10px; }
}

/* ---------- Auth pages ---------- */
.auth-page {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.auth-card {
  width: min(440px, 100%);
}
.auth-card .label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 12px;
}
.auth-card h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 12px;
  color: var(--ink);
}
.auth-card h1 em { font-style: italic; }
.auth-card .auth-sub {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 32px;
  line-height: 1.5;
}
.auth-form .field { margin-bottom: 20px; }
.auth-form label {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
}
.auth-form input {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
}
.auth-form input:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.auth-form .btn { margin-top: 8px; width: 100%; padding: 14px; font-size: 15px; }

.auth-alt {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.auth-alt a { color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.auth-alt a:hover { border-bottom-color: var(--ink); }

.auth-error {
  padding: 12px 16px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
}

.auth-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
  font-family: var(--serif);
  font-size: 13px;
}

/* ---------- Dashboard ---------- */
.dash-page {
  width: var(--wide);
  margin: 0 auto;
  padding: 48px 0 96px;
}
.dash-header {
  padding-bottom: 32px;
  margin-bottom: 0;
}
.dash-header .label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 8px;
}
.dash-header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 8px;
  color: var(--ink);
}
.dash-header h1 em { font-style: italic; }
.dash-header .meta { color: var(--muted); font-size: 14px; }
.dash-header .meta strong { color: var(--ink); font-weight: 500; }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 12px 0 56px;
}
.dash-stat {
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
}
.dash-stat:last-child { border-right: 0; }
.dash-stat .stat-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 12px;
}
.dash-stat .stat-num {
  font-family: var(--serif);
  font-size: 42px;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.dash-stat .stat-num.accent { color: var(--accent); }
.dash-stat .stat-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}

@media (max-width: 900px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-stat { border-right: 0; border-bottom: 1px solid var(--rule); }
  .dash-stat:nth-child(odd) { border-right: 1px solid var(--rule); }
  .dash-stat:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 500px) {
  .dash-stats { grid-template-columns: 1fr; }
  .dash-stat, .dash-stat:nth-child(odd) { border-right: 0; }
}

.dash-section { margin-bottom: 64px; }
.dash-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
  gap: 20px;
}
.dash-section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.dash-section-head h2 em { font-style: italic; }
.dash-section-head .see-all {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.dash-section-head .see-all:hover { border-bottom-color: var(--ink); }

/* Uploads grid on dashboard + my-uploads */
.dash-uploads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}
.dash-uploads.wide {
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
}
.dash-upload {
  display: block;
  color: var(--ink);
  border-bottom: 0;
}
.dash-upload:hover { border-bottom: 0; color: var(--ink); }
.dash-upload .du-img {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--paper-2);
  margin-bottom: 14px;
  overflow: hidden;
}
.dash-upload .du-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 200ms ease; }
.dash-upload:hover .du-img img { opacity: 0.9; }
.dash-upload .du-flag {
  position: absolute; top: 0; left: 0;
  background: rgba(15,15,14,0.85);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  letter-spacing: 0.06em;
  z-index: 4;
}
.dash-upload .du-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}
.dash-upload .du-ref {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.dash-upload .du-stats {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.dash-upload .du-stats .earned {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
}

@media (max-width: 900px) {
  .dash-uploads, .dash-uploads.wide { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .dash-uploads, .dash-uploads.wide { grid-template-columns: repeat(2, 1fr); }
}

/* Sales / earnings table */
.dash-sales {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.dash-sales th {
  text-align: left;
  padding: 12px 16px 12px 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
  font-size: 15px;
}
.dash-sales td {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  vertical-align: middle;
}
.dash-sales tr:last-child td { border-bottom: 0; }
.dash-sales .asset-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
}
.dash-sales .asset-cell .thumb {
  width: 64px;
  height: 48px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--paper-2);
  position: relative;
}
.dash-sales .asset-cell .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dash-sales .asset-cell .info { min-width: 0; }
.dash-sales .asset-cell .a-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 320px;
}
.dash-sales .asset-cell .a-title a { border-bottom: 0; color: var(--ink); }
.dash-sales .asset-cell .a-title a:hover { border-bottom: 1px solid var(--ink); }
.dash-sales .asset-cell .a-ref {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.dash-sales .kind {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
}
.dash-sales .kind.licence { color: var(--accent); }
.dash-sales .buyer { color: var(--muted); font-size: 13px; }
.dash-sales .earned {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  text-align: right;
}
.dash-sales .date { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* Monthly breakdown */
.month-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}
.month-cell {
  padding: 16px 20px;
  border-right: 1px solid var(--rule);
}
.month-cell:last-child { border-right: 0; }
.month-cell .m-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}
.month-cell .m-amt {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  line-height: 1;
}
.month-cell .m-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-family: var(--sans);
}

/* Dashboard call to action strip */
.dash-cta {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px 0;
  margin: 48px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.dash-cta .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  max-width: 620px;
}

/* Signed-in nav variations */
.mast-actions .user-handle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.mast-actions .user-handle:hover { border-bottom-color: var(--ink); }

/* "Yours" badge on asset detail */
.yours-badge {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--paper);
  background: var(--ink);
  padding: 3px 10px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Filter row for my-uploads */
.uploads-toolbar {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.uploads-toolbar h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.uploads-toolbar h1 em { font-style: italic; }
.uploads-toolbar .meta { color: var(--muted); font-size: 14px; }
.uploads-toolbar .actions { margin-left: auto; }

/* ---------- Account sub-navigation ---------- */
.account-nav {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.account-nav-inner {
  width: var(--wide);
  margin: 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.account-nav a {
  padding: 18px 0;
  margin-right: 32px;
  color: var(--muted);
  border-bottom: 0;
  font-family: var(--sans);
  font-size: 14px;
  white-space: nowrap;
  position: relative;
}
.account-nav a .n {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 13px;
  margin-left: 3px;
}
.account-nav a:hover { color: var(--ink); border-bottom: 0; }
.account-nav a.on {
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
}
.account-nav a.on::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
}
.account-nav a.on .n {
  font-family: var(--sans);
  font-style: normal;
  color: var(--ink);
  font-size: 13px;
}

/* ---------- Profile page ---------- */
.profile-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
.profile-section:last-of-type { border-bottom: 0; }
.profile-section-head {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.profile-section-head em { font-style: italic; color: var(--muted); }
.profile-section-body {
  font-size: 14px;
  line-height: 1.6;
}

.profile-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.profile-row:last-child { border-bottom: 0; }
.profile-row dt {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
}
.profile-row dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}
.profile-row dd .change {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  margin-left: 12px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.profile-row dd .change:hover { color: var(--ink); border-bottom-color: var(--ink); }

.profile-danger {
  padding: 20px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  margin-top: 12px;
}
.profile-danger p { margin: 0 0 12px; font-size: 14px; color: var(--ink); }
.profile-danger .btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.profile-danger .btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

@media (max-width: 800px) {
  .profile-section { grid-template-columns: 1fr; gap: 12px; }
  .profile-row { grid-template-columns: 1fr; gap: 2px; padding: 8px 0; }
  .profile-row dt { font-size: 13px; }
}

/* ---------- Payouts page ---------- */
.payout-summary {
  background: var(--paper-2);
  padding: 32px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.payout-summary .label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 8px;
}
.payout-summary .amount {
  font-family: var(--serif);
  font-size: 52px;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.payout-summary .amount.accent { color: var(--accent); }
.payout-summary .detail {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 420px;
}
.payout-summary .detail strong { color: var(--ink); font-weight: 500; }
.payout-summary .status-box {
  text-align: right;
}
.payout-summary .status-pill {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  padding: 6px 14px;
  background: var(--ink);
  color: var(--paper);
}
.payout-summary .status-pill.accent {
  background: var(--accent);
}
.payout-summary .status-date {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  margin-top: 12px;
}

@media (max-width: 700px) {
  .payout-summary { grid-template-columns: 1fr; }
  .payout-summary .status-box { text-align: left; }
}

.payout-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.payout-table th {
  text-align: left;
  padding: 12px 16px 12px 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
  font-size: 15px;
}
.payout-table th.right { text-align: right; }
.payout-table td {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  vertical-align: middle;
}
.payout-table td.right { text-align: right; }
.payout-table tr:last-child td { border-bottom: 0; }
.payout-table .period {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}
.payout-table .period .sub {
  display: block;
  color: var(--muted);
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  margin-top: 2px;
}
.payout-table .payout-date {
  color: var(--muted);
  font-size: 13px;
}
.payout-table .amount {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}
.payout-table .status {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
}
.payout-table .status.paid { color: var(--ink); }
.payout-table .status.rolled { color: var(--muted); }
.payout-table .status .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.payout-table .status.paid .dot { background: var(--ink); }
.payout-table .status.rolled .dot { background: var(--dim); }

.payout-info {
  padding: 24px;
  border: 1px solid var(--rule);
  margin: 40px 0;
}
.payout-info h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--ink);
}
.payout-info dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 24px;
  margin: 0;
  font-size: 14px;
}
.payout-info dt {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
}
.payout-info dd { margin: 0; color: var(--ink); }

@media (max-width: 700px) {
  .payout-info dl { grid-template-columns: 1fr; gap: 2px; }
  .payout-info dt { margin-top: 8px; }
}
