/* ==========================================================================
   LoveGoBuy Spreadsheet — Evidence Patchwork / Editorial Assembly Mat theme
   Warm linen white background · black-cherry text · clear cobalt primary
   accents: apricot · sage · pale purple-gray
   Signatures: patch seam · alignment pin · material tab · missing cutout ·
   assembly line · margin caption
   ========================================================================== */

:root {
  /* paper + ink */
  --paper:      #F7F3EA;   /* warm linen white */
  --paper-2:    #F0EADD;
  --paper-3:    #E7DFCE;
  --card:       #FDFBF6;
  --ink:        #2A1A1E;   /* black cherry */
  --ink-soft:   #5A474B;
  --ink-faint:  #998A8E;

  /* accents */
  --cobalt:     #2452C0;   /* clear cobalt — primary */
  --cobalt-d:   #1B3F94;
  --cobalt-s:   #E4EAFB;
  --apricot:    #EA8A45;   /* apricot orange */
  --apricot-d:  #C06A2B;
  --apricot-s:  #FBE9DA;
  --sage:       #7F9C6D;   /* sage green */
  --sage-d:     #5E7A4E;
  --sage-s:     #EAF0E3;
  --plum:       #9B91B0;   /* pale purple-gray */
  --plum-d:     #6E6486;
  --plum-s:     #EDEAF4;

  --line:       #E6DECB;
  --line-soft:  #EEE7D6;

  /* typography */
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  /* geometry */
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1140px;
  --shadow-sm: 0 1px 2px rgba(42, 26, 30, 0.05), 0 2px 8px rgba(42, 26, 30, 0.06);
  --shadow-md: 0 4px 14px rgba(42, 26, 30, 0.10), 0 12px 30px rgba(42, 26, 30, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- accessibility ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--cobalt); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 var(--radius-sm) 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ---------- header (linen white) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247, 243, 234, 0.92); backdrop-filter: saturate(120%) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; display: block; border-radius: 7px; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.06rem; letter-spacing: 0.01em; }
.brand-name small { display: block; font-family: var(--sans); font-weight: 600; font-size: 0.64rem; color: var(--ink-faint); letter-spacing: 0.14em; text-transform: uppercase; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 12px; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; border-radius: var(--radius-sm); }
.main-nav a:hover { background: var(--paper-2); color: var(--ink); }
.main-nav a.active { color: #fff; background: var(--cobalt); }

.mobile-nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper-2); border-radius: var(--radius-sm); cursor: pointer; color: var(--ink); }
.mobile-nav-toggle svg { display: block; margin: 0 auto; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-nav-toggle { display: block; }
  .main-nav.open { display: block; position: absolute; left: 0; right: 0; top: 66px; background: var(--paper-2); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .main-nav.open ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; }
  .main-nav.open a { padding: 12px 14px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.98rem; line-height: 1.2; border: 1.5px solid transparent; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cobalt); color: #fff; box-shadow: 0 4px 14px rgba(36, 82, 192, 0.28); }
.btn-primary:hover { background: var(--cobalt-d); box-shadow: 0 6px 18px rgba(36, 82, 192, 0.36); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--ink-soft); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); background: var(--paper-2); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }

/* ---------- hero (linen white) ---------- */
.hero-section { padding: 52px 0 40px; position: relative; overflow: hidden; background:
  radial-gradient(circle at 88% 6%, var(--cobalt-s) 0, transparent 44%),
  radial-gradient(circle at 6% 94%, var(--sage-s) 0, transparent 40%),
  radial-gradient(circle at 98% 96%, var(--plum-s) 0, transparent 34%),
  var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 44px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 999px; background: var(--cobalt-s); color: var(--cobalt-d); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--cobalt); }
.hero-title { font-family: var(--serif); font-size: clamp(2.0rem, 4.4vw, 3.0rem); line-height: 1.12; color: var(--ink); margin: 18px 0 16px; font-weight: 700; }
.hero-title em { font-style: normal; color: var(--cobalt); }
.hero-description { font-size: 1.08rem; color: var(--ink-soft); max-width: 34em; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-piece-note { margin-top: 20px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--ink-faint); }
.hero-piece-note span { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 2px; vertical-align: -1px; }

/* ---------- hero assembly mat ---------- */
.hero-visual { position: relative; }
.hero-mat { position: relative; background:
  linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 22px,
  linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 22px 100%,
  var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 22px; box-shadow: var(--shadow-md); }
.hero-mat .mat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mat-piece { position: relative; padding: 16px 16px 14px; background: var(--card); box-shadow: var(--shadow-sm); }
.mat-piece .mp-tab { position: absolute; top: -1px; left: 12px; font-family: var(--mono); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border-radius: 0 0 5px 5px; }
.mat-piece .mp-body { font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; }
/* different shapes, interlocking seams */
.mat-piece.p-source     { clip-path: polygon(0 0, 82% 0, 82% 22%, 100% 22%, 100% 100%, 0 100%); border: 1px solid var(--cobalt); border-top: 0; }
.mat-piece.p-option     { clip-path: polygon(0 22%, 18% 22%, 18% 0, 100% 0, 100% 100%, 0 100%); border: 1px solid var(--apricot); border-top: 0; }
.mat-piece.p-condition  { clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); border: 1px solid var(--sage); border-top: 0; border-left: 0; border-right: 0; }
.mat-piece.p-missing    { border: 1.5px dashed var(--plum); background: var(--plum-s); clip-path: polygon(0 0, 100% 0, 100% 78%, 82% 78%, 82% 100%, 0 100%); }
.mat-piece.p-source .mp-tab     { background: var(--cobalt); color: #fff; }
.mat-piece.p-option .mp-tab     { background: var(--apricot); color: #fff; }
.mat-piece.p-condition .mp-tab  { background: var(--sage); color: #fff; }
.mat-piece.p-missing .mp-tab    { background: var(--plum); color: #fff; }
.hero-mat .assembly-line { display: block; height: 1px; margin: 14px 4px 0; background: repeating-linear-gradient(90deg, var(--ink-faint) 0 6px, transparent 6px 12px); opacity: 0.5; }
.pin { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--cobalt); }
.pin.pin-1 { top: 10px; left: -5px; }
.pin.pin-2 { bottom: 10px; right: -5px; }
.margin-caption { position: absolute; right: -12px; bottom: -22px; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; color: var(--ink-faint); transform: rotate(-90deg); transform-origin: right bottom; white-space: nowrap; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-section { padding-top: 34px; }
  .margin-caption { display: none; }
}

/* ---------- section scaffolding ---------- */
.section { padding: 46px 0; }
.section-alt { background: var(--paper-2); }
.section-header { max-width: 700px; margin: 0 auto 34px; text-align: center; }
.eyebrow { display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cobalt-d); }
.section-title { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.15rem); color: var(--ink); margin: 10px 0 12px; line-height: 1.2; }
.section-lead { color: var(--ink-soft); font-size: 1.02rem; margin: 0; }

/* ---------- category grid (material swatches) ---------- */
.categories-section { padding-top: 10px; }
.swatch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.swatch {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
  padding: 15px 15px 14px; text-decoration: none; color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
  box-shadow: var(--shadow-sm); transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.swatch:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sw-top { display: flex; align-items: center; gap: 9px; }
.sw-num { font-family: var(--mono); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; color: var(--ink-faint); }
.material-tab { flex: 1; height: 6px; border-radius: 3px; }
.material-tab.mt1 { background: var(--cobalt); }
.material-tab.mt2 { background: var(--apricot); }
.material-tab.mt3 { background: var(--sage); }
.material-tab.mt4 { background: var(--plum); }
.sw-icon { width: 28px; height: 28px; color: var(--ink); }
.sw-icon svg { width: 100%; height: 100%; }
.sw-name { font-weight: 700; color: var(--ink); font-size: 0.95rem; line-height: 1.3; }
.swatch .sw-arrow { margin-top: auto; font-size: 0.8rem; font-weight: 700; color: var(--cobalt-d); }

@media (max-width: 900px) {
  .swatch-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .swatch { padding: 13px 13px 12px; }
}

/* ---------- four evidence pieces ---------- */
.piece-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.piece-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.piece-card .piece-seam { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.piece-card.pc-source    .piece-seam { background: var(--cobalt); }
.piece-card.pc-option    .piece-seam { background: var(--apricot); }
.piece-card.pc-condition .piece-seam { background: var(--sage); }
.piece-card.pc-missing   .piece-seam { background: var(--plum); }
.piece-tag { display: inline-block; font-family: var(--mono); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; margin-bottom: 10px; }
.pc-source .piece-tag    { background: var(--cobalt-s);  color: var(--cobalt-d); }
.pc-option .piece-tag    { background: var(--apricot-s); color: var(--apricot-d); }
.pc-condition .piece-tag { background: var(--sage-s);   color: var(--sage-d); }
.pc-missing .piece-tag   { background: var(--plum-s);   color: var(--plum-d); }
.piece-card h3 { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); margin: 0 0 8px; line-height: 1.25; }
.piece-card p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }
@media (max-width: 900px) { .piece-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .piece-grid { grid-template-columns: 1fr; } }

/* ---------- patch by source (duo + boundary) ---------- */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.duo-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.duo-col h3 { margin: 0 0 10px; font-size: 1.02rem; display: flex; align-items: center; gap: 9px; color: var(--ink); }
.duo-col ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.94rem; }
.duo-col ul li { margin: 6px 0; }
.duo-col .mark { flex: none; width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; font-size: 0.78rem; color: #fff; font-family: var(--mono); }
.duo-col.is-a .mark { background: var(--sage); }
.duo-col.is-b .mark { background: var(--apricot); }

.margin-note { position: relative; max-width: 680px; margin: 0 auto; background: var(--card); border: 1px dashed var(--plum); border-radius: var(--radius); padding: 18px 20px 18px 34px; box-shadow: var(--shadow-sm); }
.margin-note::before { content: "✂"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; line-height: 1; color: var(--plum-d); }
.margin-note .mn-label { display: block; font-family: var(--mono); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--plum-d); margin-bottom: 4px; }
.margin-note p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
@media (max-width: 720px) { .duo-grid { grid-template-columns: 1fr; } }

/* ---------- option and condition strip ---------- */
.oc-strip { max-width: 720px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.oc-row { display: flex; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); }
.oc-row:last-child { border-bottom: 0; }
.oc-row .oc-label { flex: none; width: 110px; font-family: var(--mono); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); padding-top: 2px; }
.oc-row .oc-value { color: var(--ink-soft); font-size: 0.94rem; }
.oc-row.oc-option .oc-label { color: var(--apricot-d); }
.oc-row.oc-condition .oc-label { color: var(--sage-d); }

/* ---------- missing-piece frame ---------- */
.missing-frame { max-width: 720px; margin: 0 auto; padding: 22px 24px; border: 1.5px dashed var(--plum); border-radius: var(--radius); background: var(--plum-s); }
.missing-frame .mf-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.missing-frame .mf-head .missing-cutout { flex: none; width: 30px; height: 30px; border: 1.5px dashed var(--plum-d); clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 70%, 70% 100%, 0 100%); }
.missing-frame .mf-head h3 { margin: 0; font-family: var(--serif); font-size: 1.08rem; color: var(--ink); }
.missing-frame p { margin: 0 0 8px; color: var(--ink-soft); font-size: 0.94rem; }
.missing-frame p:last-child { margin-bottom: 0; }

/* ---------- guide entry cards ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform 0.14s ease, box-shadow 0.14s ease; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.guide-card .guide-num { font-family: var(--mono); font-size: 0.78rem; color: var(--cobalt-d); letter-spacing: 0.1em; }
.guide-card h3 { font-family: var(--serif); font-size: 1.24rem; color: var(--ink); margin: 8px 0 10px; }
.guide-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 16px; }
.guide-card .guide-cta { margin-top: auto; font-weight: 700; color: var(--cobalt-d); font-size: 0.9rem; }
@media (max-width: 900px) { .guide-grid { grid-template-columns: 1fr; } }

/* ---------- leave the gap visible (stop rules) ---------- */
.log-list { list-style: none; margin: 0; padding: 0; max-width: 760px; margin-inline: auto; }
.log-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin: 10px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.log-list .log-flag { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 0.8rem; font-family: var(--mono); background: var(--plum); }
.log-list p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.log-list strong { color: var(--ink); }

.open-note { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px dashed var(--apricot); border-radius: var(--radius-sm); background: var(--apricot-s); color: var(--apricot-d); font-weight: 600; font-size: 0.92rem; margin: 10px 0; }
.open-note .qmark { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--apricot); color: #fff; display: grid; place-items: center; font-weight: 800; }

.example-flag { display: inline-block; margin-top: 14px; font-size: 0.74rem; color: var(--ink-faint); font-style: italic; border-top: 1px dashed var(--line); padding-top: 8px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
details.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; box-shadow: var(--shadow-sm); overflow: hidden; }
details.faq-item summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--cobalt-d); line-height: 1; }
details.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--ink-soft); font-size: 0.96rem; }
.faq-item .faq-body p { margin: 0 0 10px; }

/* ---------- final CTA (black-cherry panel) ---------- */
.final-cta { background: var(--ink); color: #fff; border-radius: 18px; padding: 44px 40px; text-align: center; position: relative; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; inset: 0; opacity: 0.4; background:
  radial-gradient(circle at 12% 18%, var(--cobalt) 0, transparent 42%),
  radial-gradient(circle at 88% 82%, var(--apricot) 0, transparent 42%),
  radial-gradient(circle at 82% 10%, var(--sage) 0, transparent 30%); }
.final-cta h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0 0 12px; position: relative; }
.final-cta p { color: rgba(255,255,255,0.82); max-width: 32em; margin: 0 auto 24px; position: relative; }
.final-cta .btn-primary { position: relative; background: var(--cobalt); }

/* ---------- footer (black-cherry) ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.74); padding: 44px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-brand p { color: rgba(255,255,255,0.66); font-size: 0.92rem; max-width: 34em; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-name small { color: rgba(255,255,255,0.46); }
.footer-col h4 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.46); margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { color: rgba(255,255,255,0.74); text-decoration: none; font-size: 0.94rem; line-height: 2.1; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.82rem; color: rgba(255,255,255,0.46); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.footer-bottom .piece-swatch-row { display: inline-flex; gap: 6px; align-items: center; }
.footer-bottom .piece-swatch-row i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- article / guide pages ---------- */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 46px 0 38px; position: relative; overflow: hidden; }
.page-hero .container { position: relative; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 12px 0 12px; line-height: 1.15; color: var(--ink); }
.page-hero p { color: var(--ink-soft); max-width: 42em; font-size: 1.05rem; margin: 0; }

.article-paper { background: var(--paper); padding: 8px 0 20px; }
.article-body { max-width: 760px; margin: 0 auto; padding: 34px 22px 60px; }
.article-body h2 { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin: 38px 0 12px; }
.article-body h3 { font-size: 1.12rem; color: var(--ink); margin: 26px 0 8px; }
.article-body p { color: var(--ink-soft); margin: 0 0 16px; }
.article-body ul, .article-body ol { color: var(--ink-soft); margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin: 6px 0; }
.article-body blockquote { margin: 22px 0; padding: 16px 20px; background: var(--paper-2); border-left: 4px solid var(--cobalt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-soft); font-family: var(--serif); font-size: 1.06rem; }

/* piece list inside article pages */
.piece-list { list-style: none; margin: 0 0 20px; padding: 0; }
.piece-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 8px 0; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.piece-list li.pc-source    { border-left-color: var(--cobalt); }
.piece-list li.pc-option    { border-left-color: var(--apricot); }
.piece-list li.pc-condition { border-left-color: var(--sage); }
.piece-list li.pc-missing   { border-left-color: var(--plum); }
.piece-list li strong { color: var(--ink); }
.piece-list li p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--cobalt-d); font-weight: 700; text-decoration: none; font-size: 0.9rem; margin-bottom: 6px; }
.back-link:hover { text-decoration: underline; }

/* legal pages */
.legal-body { max-width: 720px; margin: 0 auto; padding: 40px 22px 60px; }
.legal-body h1 { font-family: var(--serif); color: var(--ink); font-size: 2rem; margin: 0 0 6px; }
.legal-body .legal-date { color: var(--ink-faint); font-size: 0.85rem; margin-bottom: 24px; }
.legal-body h2 { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); margin: 28px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.legal-body ul { padding-left: 22px; }

/* 404 */
.notfound { text-align: center; padding: 70px 22px 80px; }
.notfound .big { font-family: var(--serif); font-size: clamp(4rem, 14vw, 7rem); color: var(--ink); margin: 0; line-height: 1; }
.notfound h1 { font-family: var(--serif); color: var(--ink); margin: 8px 0 12px; }
.notfound p { color: var(--ink-soft); max-width: 30em; margin: 0 auto 24px; }
