:root {
  --p22-cream: #f2eee5;
  --p22-paper: #faf8f2;
  --p22-ink: #171717;
  --p22-muted: #6d6860;
  --p22-red: #a32639;
  --p22-line: #d7d0c3;
  --p22-white: #ffffff;
  --p22-max: 1370px;
}

body.project-22-active { background: var(--p22-paper); }
.p22 { background: var(--p22-paper); color: var(--p22-ink); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
.p22 *, .p22 *::before, .p22 *::after { box-sizing: border-box; }
.p22 a { color: inherit; }
.p22 img { max-width: 100%; height: auto; }
.p22-wrap { width: min(calc(100% - 56px), var(--p22-max)); margin: 0 auto; }
.p22-narrow { max-width: 780px; }
.p22-page { overflow: hidden; }

.p22-projectbar { position: sticky; top: var(--p22-sticky-offset, 0px); z-index: 40; background: rgba(250,248,242,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--p22-line); }
.p22-projectbar-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.p22-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.p22-brand-logo { width: 64px; height: 48px; object-fit: contain; }
.p22-brand-mark { display: inline-flex; align-items: baseline; gap: 4px; font-weight: 900; line-height: 1; }
.p22-brand-1983 { font-size: 19px; }
.p22-brand-22 { color: var(--p22-red); font-size: 24px; }
.p22-brand-name { font-size: 13px; }
.p22-nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.p22-nav-link { text-decoration: none; font-size: 13px; font-weight: 700; color: var(--p22-muted); padding: 26px 0 22px; border-bottom: 3px solid transparent; }
.p22-nav-link:hover, .p22-nav-link.is-active { color: var(--p22-ink); border-bottom-color: var(--p22-red); }

.p22-hero { background: var(--p22-cream); border-bottom: 1px solid var(--p22-line); padding: 72px 0 76px; }
.p22-hero-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr); align-items: center; gap: 76px; }
.p22-eyebrow, .p22-section-kicker { margin: 0 0 12px; color: var(--p22-red); text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.p22-hero h1, .p22-subhero h1 { margin: 0; font-family: ui-serif, Georgia, serif; font-weight: 700; letter-spacing: -.045em; line-height: .92; }
.p22-hero h1 { font-size: clamp(64px, 10vw, 132px); }
.p22-hero-quote { margin: 28px 0 18px; padding: 0; border: 0; font-family: ui-serif, Georgia, serif; font-size: clamp(24px, 3.2vw, 42px); line-height: 1.15; max-width: 760px; }
.p22-hero-subhead { max-width: 650px; font-size: 17px; color: var(--p22-muted); }
.p22-hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
.p22-button { display: inline-flex; align-items: center; justify-content: center; padding: 14px 20px; background: var(--p22-ink); color: var(--p22-white) !important; text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 2px; }
.p22-button:hover { background: var(--p22-red); }
.p22-text-link { display: inline-block; font-weight: 800; text-decoration: none; border-bottom: 1px solid currentColor; }
.p22-text-link:hover { color: var(--p22-red); }
.p22-statline { margin-top: 46px; display: flex; gap: 28px; flex-wrap: wrap; font-size: 13px; color: var(--p22-muted); }
.p22-statline strong { color: var(--p22-ink); font-size: 18px; margin-right: 4px; }
.p22-hero-card { max-width: 470px; justify-self: end; width: 100%; transform: rotate(1.2deg); }

.p22-card-visual-link { text-decoration: none; display: block; }
.p22-card-visual { position: relative; padding: 22px; background: #1f1f1f; border: 1px solid #111111; box-shadow: 0 24px 50px rgba(0,0,0,.22); }
.p22-card-visual > img, .p22-card-visual > .p22-card-placeholder { display: block; width: 100%; aspect-ratio: 9 / 13; object-fit: contain; background: transparent; border: 0; box-shadow: none; }
.p22-card-label { position: absolute; right: 20px; bottom: 20px; padding: 7px 9px; background: rgba(23,23,23,.92); color: white; font-size: 11px; letter-spacing: .08em; font-weight: 800; }
.p22-card-placeholder { padding: 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--p22-ink); background: linear-gradient(145deg,#f7f3ea,#ddd6c9); }
.p22-placeholder-year { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(48px, 7vw, 88px); line-height: .9; letter-spacing: -.05em; }
.p22-placeholder-number { color: var(--p22-red); font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(74px, 10vw, 120px); line-height: .9; }
.p22-placeholder-id { margin-top: 18px; border-top: 1px solid rgba(0,0,0,.22); padding-top: 12px; width: 100%; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

.p22-section { padding: 88px 0; border-bottom: 1px solid var(--p22-line); }
.p22-section h2, .p22-ending h2 { font-family: ui-serif, Georgia, serif; font-size: clamp(36px, 5vw, 62px); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 26px; }
.p22-prose { font-family: ui-serif, Georgia, serif; font-size: 20px; line-height: 1.75; color: #2c2a27; }
.p22-prose p { margin: 0 0 1.4em; }
.p22-section-story { background: var(--p22-paper); }
.p22-two-col { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 74px; align-items: center; }
.p22-two-col-text { align-items: start; }
.p22-cardintro-visual { max-width: 430px; }
.p22-cardintro-copy p { font-size: 18px; color: var(--p22-muted); max-width: 680px; }
.p22-card-lede { font-family: ui-serif, Georgia, serif; font-size: 24px !important; line-height: 1.5; color: var(--p22-ink) !important; }
.p22-card-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 28px; margin: 26px 0; padding: 22px 0; border-top: 1px solid var(--p22-line); border-bottom: 1px solid var(--p22-line); color: var(--p22-muted); font-size: 14px; }
.p22-card-facts strong { display: block; color: var(--p22-ink); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.p22-section-cardintro { background: #fff; }
.p22-section-heading { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 36px; }
.p22-section-heading h2 { margin-bottom: 0; }

.p22-card-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 18px; }
.p22-card-grid-preview { grid-template-columns: repeat(5,minmax(0,1fr)); }
.p22-card-grid-full { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 26px; }
.p22-archive-tile { text-decoration: none; display: block; min-width: 0; }
.p22-tile-image { aspect-ratio: 9 / 13; background: #1f1f1f; overflow: hidden; border: 1px solid #111111; padding: 16px; transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 14px 28px rgba(0,0,0,.10); }
.p22-tile-image img, .p22-tile-image .p22-card-placeholder { width: 100%; height: 100%; object-fit: contain; box-shadow: none; border: 0; background: transparent; }
.p22-archive-tile:hover .p22-tile-image { transform: translateY(-4px); box-shadow: 0 18px 30px rgba(0,0,0,.12); }
.p22-tile-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; align-items: flex-start; }
.p22-tile-meta strong { display: block; font-size: 13px; }
.p22-tile-meta span { display: block; color: var(--p22-muted); font-size: 11px; }
.p22-tile-badges { text-align: right; }
.p22-tile-badges span { display: inline-block; margin: 0 0 4px 4px; border: 1px solid var(--p22-line); padding: 3px 5px; color: var(--p22-ink); background: var(--p22-paper); }
.p22-tile-badges .is-confirmed { border-color: #b9cab9; background: #edf5ed; }

.p22-section-beginning { background: var(--p22-cream); }
.p22-section-timeline { background: var(--p22-ink); color: white; }
.p22-section-timeline .p22-section-kicker { color: #d95a6d; }
.p22-section-timeline .p22-text-link { color: white; }
.p22-timeline { border-top: 1px solid rgba(255,255,255,.18); }
.p22-timeline-item { display: grid; grid-template-columns: 150px 1fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.p22-timeline-item h3 { margin: 0 0 8px; font-size: 18px; }
.p22-timeline-item p { margin: 0; color: rgba(255,255,255,.72); max-width: 760px; }
.p22-timeline-date { color: #d95a6d; font-weight: 800; letter-spacing: .03em; }
.p22-timeline-long { border-top-color: var(--p22-line); }
.p22-timeline-long .p22-timeline-item { border-bottom-color: var(--p22-line); }
.p22-timeline-long .p22-timeline-item p { color: var(--p22-muted); }
.p22-timeline-long .p22-timeline-date { color: var(--p22-red); }

.p22-explore-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 36px; }
.p22-explore-card { position: relative; min-height: 210px; padding: 28px; border: 1px solid var(--p22-line); text-decoration: none; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.p22-explore-card:hover { border-color: var(--p22-red); }
.p22-explore-title { font-family: ui-serif, Georgia, serif; font-size: 28px; font-weight: 700; }
.p22-explore-card > span:nth-child(2) { color: var(--p22-muted); max-width: 280px; }
.p22-arrow { position: absolute; right: 24px; bottom: 20px; color: var(--p22-red); font-size: 24px; }
.p22-ending { padding: 74px 0; background: var(--p22-red); color: white; }
.p22-ending .p22-section-kicker { color: rgba(255,255,255,.72); }
.p22-ending h2 { margin-bottom: 10px; }
.p22-ending-inner { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.p22-latest { display: grid; text-align: right; gap: 2px; color: rgba(255,255,255,.82); }
.p22-latest strong { font-size: 24px; color: white; }

.p22-subhero { padding: 68px 0 54px; background: var(--p22-cream); border-bottom: 1px solid var(--p22-line); }
.p22-subhero h1 { font-size: clamp(58px,8vw,104px); }
.p22-subhero p:not(.p22-section-kicker) { font-size: 18px; color: var(--p22-muted); max-width: 720px; }
.p22-archive-summary { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 36px; padding-bottom: 22px; border-bottom: 1px solid var(--p22-line); color: var(--p22-muted); }
.p22-archive-summary strong { color: var(--p22-ink); font-size: 20px; margin-right: 4px; }


.p22-unresolved-section { background: var(--p22-cream); }
.p22-unresolved-intro { max-width: 780px; margin: -10px 0 34px; color: var(--p22-muted); font-size: 16px; }
.p22-physical-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 26px; }
.p22-physical-tile { margin: 0; min-width: 0; }
.p22-physical-image { aspect-ratio: 9 / 13; background: #1f1f1f; border: 1px solid #111111; padding: 16px; overflow: hidden; box-shadow: 0 14px 28px rgba(0,0,0,.10); }
.p22-physical-image img { width: 100%; height: 100%; object-fit: contain; display: block; background: transparent; }
.p22-physical-tile figcaption { display: grid; gap: 2px; margin-top: 10px; }
.p22-physical-tile figcaption strong { font-size: 13px; }
.p22-physical-tile figcaption span { font-size: 11px; color: var(--p22-muted); }

.p22-former-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.p22-former-card { border: 1px solid var(--p22-line); background: #fff; padding: 22px; display: grid; gap: 6px; }
.p22-former-card strong { font-family: ui-serif, Georgia, serif; font-size: 25px; }
.p22-former-card span { font-size: 12px; color: var(--p22-muted); }
.p22-former-id { font-weight: 800; color: var(--p22-red) !important; letter-spacing: .08em; }
.p22-former-status { margin-top: 8px; text-transform: uppercase; font-weight: 800; letter-spacing: .12em; }
.p22-note { border-left: 3px solid var(--p22-red); padding-left: 16px; color: var(--p22-muted); font-size: 14px; margin-top: 28px; }
.p22-editorial h2, .p22-research-list h2 { font-family: ui-serif, Georgia, serif; font-size: 38px; line-height: 1.15; margin: 1.5em 0 .5em; }

.p22-single-head .p22-back { display: inline-block; margin-bottom: 26px; text-decoration: none; font-weight: 800; font-size: 13px; }
.p22-single-grid { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr); gap: 72px; align-items: start; }
.p22-single-image { max-width: 480px; }
.p22-single-image .p22-card-visual { padding: 26px; background: #1a1a1a; border-color: #0f0f0f; }
.p22-metadata { margin: 0; border-top: 1px solid var(--p22-line); }
.p22-metadata > div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; border-bottom: 1px solid var(--p22-line); padding: 14px 0; }
.p22-metadata dt { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--p22-muted); font-weight: 800; }
.p22-metadata dd { margin: 0; font-weight: 650; }
.p22-single-notes { margin-top: 36px; }
.p22-single-notes h2 { font-family: ui-serif, Georgia, serif; font-size: 32px; margin-bottom: 10px; }

@media (max-width: 980px) {
  .p22-nav { gap: 14px; }
  .p22-hero-grid, .p22-two-col, .p22-single-grid { grid-template-columns: 1fr; }
  .p22-hero-card { justify-self: start; max-width: 320px; }
  .p22-card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .p22-card-grid-full, .p22-physical-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .p22-card-grid-preview { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .p22-explore-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .p22-former-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .p22-wrap { width: min(calc(100% - 28px), var(--p22-max)); }
  .p22-projectbar { position: relative; top: auto; }
  .p22-projectbar-inner { align-items: flex-start; flex-direction: column; gap: 4px; padding: 14px 0 0; }
  .p22-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; gap: 20px; }
  .p22-nav-link { white-space: nowrap; padding: 14px 0 12px; }
  .p22-hero { padding: 48px 0 56px; }
  .p22-hero-grid { gap: 44px; }
  .p22-hero h1 { font-size: clamp(62px,21vw,96px); }
  .p22-hero-actions, .p22-section-heading, .p22-ending-inner { align-items: flex-start; flex-direction: column; }
  .p22-section { padding: 64px 0; }
  .p22-card-grid, .p22-card-grid-full, .p22-card-grid-preview, .p22-physical-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .p22-explore-grid, .p22-former-grid { grid-template-columns: 1fr; }
  .p22-timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .p22-latest { text-align: left; }
  .p22-prose { font-size: 18px; }
  .p22-metadata > div { grid-template-columns: 1fr; gap: 3px; }
}


/* v0.3: collection-first presentation inside a card-first story */
.p22-section-collection { background: #fff; }
.p22-collection-heading { margin-bottom: 16px; }
.p22-collection-intro { max-width: 850px; margin: 0 0 44px; color: var(--p22-muted); font-size: 17px; }
.p22-collection-group { margin-top: 46px; }
.p22-collection-group:first-of-type { margin-top: 0; }
.p22-collection-group-graded { padding-top: 52px; border-top: 1px solid var(--p22-line); }
.p22-collection-subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.p22-collection-subhead h3 { margin: 0; font-family: ui-serif, Georgia, serif; font-size: 30px; letter-spacing: -.025em; }
.p22-collection-subhead span { color: var(--p22-muted); font-size: 13px; }
.p22-card-grid-raw { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 26px; }
.p22-graded-grid { display: grid; grid-template-columns: repeat(2,minmax(0,420px)); gap: 30px; align-items: start; }
.p22-graded-grid-single { grid-template-columns: minmax(0,420px); }
.p22-unmatched-tile { cursor: default; }
.p22-preservation-note { max-width: 900px; margin-top: 46px; }
.p22-second-year-home { background: var(--p22-cream); }
.p22-second-year-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
.p22-explore-grid-two { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 900px; }

@media (max-width: 980px) {
  .p22-card-grid-raw { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .p22-second-year-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .p22-wrap { width: min(calc(100% - 28px), var(--p22-max)); }
  .p22-card-grid-raw, .p22-second-year-grid, .p22-graded-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .p22-card-facts { grid-template-columns: 1fr; }
  .p22-collection-subhead { align-items: flex-start; }
  .p22-explore-grid-two { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .p22-graded-grid { grid-template-columns: 1fr; }
}
