/* PLAZA — see DESIGN.md for the reasoning behind these choices. */
:root {
  --paper: #eeeae3;
  --paper-2: #e3ded5;
  --surface: #f6f3ee;
  --ink: #0e0e0d;
  --ink-2: #5e5a53;
  --line: #cfc9bf;
  --signal: #2a3cff;
  --signal-ink: #ffffff;
  --signal-text: #2a3cff; /* small blue text */
  --up: #147a3e;
  --down: #c2321f;
  --warn: #915600;
  --warn-bg: #f6e7c9;
  /* Magazine pages are "printed", so they keep paper colours in dark mode too. */
  --mag-paper: #eeeae3;
  --mag-paper-2: #e2dcd2;
  --mag-ink: #0e0e0d;
  --wide: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --header: 60px;
  /* Plaza is always paper: it does not switch to a dark palette when the system is in dark mode.
     (The dark values are kept in Plaza Design System V1 in case a switch is added later.) */
  color-scheme: light;
}

/* Older names still used by the watchlist chart and the bookmarklet popup. */
:root { --bg: var(--paper); --text: var(--ink); --muted: var(--ink-2); --surface-2: var(--paper-2); --accent: var(--signal); --accent-ink: #fff; --good: var(--up); --good-bg: color-mix(in srgb, var(--up) 15%, var(--paper)); --bad: var(--down); --bad-bg: color-mix(in srgb, var(--down) 15%, var(--paper)); --radius: 0px; --shadow: none; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.forgot-link { align-self: flex-start; margin-top: -6px; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--wide); font-variation-settings: 'wdth' 100; background: var(--paper); color: var(--ink); }
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 9px 11px; min-width: 0; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
button, .btn { cursor: pointer; border: 1px solid var(--ink); background: transparent; border-radius: 999px; padding: 10px 18px; white-space: nowrap; font-weight: 600; font-size: 13px; letter-spacing: .02em; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, color .15s, transform .15s; }
button:hover, .btn:hover { background: var(--ink); color: var(--paper); }
button.primary, .btn.primary { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
button.primary:hover, .btn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
button.ghost, .btn.ghost { background: transparent; }
button.light, .btn.light { border-color: currentColor; }
button.tiny { padding: 4px 10px; font-size: 12px; }
button.danger { color: var(--down); border-color: var(--down); }
button.danger:hover { background: var(--down); color: var(--paper); }
button[disabled] { opacity: .45; cursor: default; }
button[disabled]:hover { background: transparent; color: inherit; }
button.linkish { all: unset; cursor: pointer; }
button.linkish:hover { text-decoration: underline; }
.muted { color: var(--ink-2); }
.small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.serif, .pull { font-family: var(--serif); }
.up { color: var(--up); }
.down { color: var(--down); }
.center { text-align: center; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.dek { font-size: 17px; max-width: 46ch; color: inherit; opacity: .85; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); vertical-align: middle; }
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wrap { max-width: 1320px; margin: 0 auto; padding: 32px 24px 64px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; height: var(--header); display: flex; gap: 24px; align-items: center; padding: 0 24px; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.wordmark { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: 22px; letter-spacing: -.01em; text-decoration: none; }
.mainnav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.mainnav a { text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.mainnav a:hover { background: var(--paper-2); }
.mainnav a.on { background: var(--ink); color: var(--paper); }

/* ---------- heroes ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: min(72vh, 680px); overflow: hidden; }
.hero h1 { font-variation-settings: 'wdth' 125; font-weight: 900; font-size: clamp(34px, 11cqi, 120px); overflow-wrap: anywhere; line-height: .88; letter-spacing: -.035em; text-transform: uppercase; margin: 0 0 20px; }
.hero-copy { container-type: inline-size; padding: clamp(32px, 6vw, 80px) clamp(20px, 5vw, 64px); display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; position: relative; z-index: 2; }
.hero-img { display: grid; place-items: center; padding: 32px; cursor: pointer; background: var(--paper-2); }
.hero-img img, .hero-img .art { max-height: 62vh; object-fit: contain; mix-blend-mode: multiply; }
.hero-dark { background: var(--mag-ink); color: var(--mag-paper); }
.hero-dark .hero-img { background: radial-gradient(ellipse at 50% 40%, #3b3934 0%, #141312 70%); }
.hero-dark .hero-img img { mix-blend-mode: normal; border-radius: 4px; box-shadow: 0 30px 60px rgba(0,0,0,.5); max-height: 52vh; }
.hero-dark button.ghost:hover, .hero-dark .btn.ghost:hover { background: var(--mag-paper); color: var(--mag-ink); }
.hero-paper { grid-template-columns: 1fr; min-height: 0; border-bottom: 1px solid var(--line); }
.hero-paper .hero-copy { padding-top: 72px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; margin: 4px 0 24px; }
.hero-stats b { display: block; font-size: clamp(22px, 2.6vw, 34px); font-variation-settings: 'wdth' 115; font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.hero-shop { min-height: 0; margin-bottom: 24px; border: 1px solid var(--line); background: var(--surface); }
.hero-shop h1 { font-size: clamp(30px, 8cqi, 68px); }
.hero-shop .hero-img { max-height: 380px; }
.hero-shop .hero-img img { max-height: 320px; }

/* ---------- the magazine ---------- */
.mag { --pagepad: clamp(20px, 4vw, 56px); }
.mag-stage { position: relative; height: calc(100svh - var(--header) - 60px); min-height: 560px; perspective: 2600px; background: var(--paper-2); overflow: hidden; }
.page { position: absolute; inset: 0; overflow: auto; background: var(--mag-paper); color: var(--mag-ink); transform-origin: left center; backface-visibility: hidden; transition: transform .9s cubic-bezier(.3,.1,.15,1), opacity .25s ease, box-shadow .9s; box-shadow: 0 0 0 rgba(0,0,0,0); }
.page.turned { transform: rotateY(-100deg); opacity: 0; box-shadow: 40px 0 80px rgba(0,0,0,.25); transition: transform .9s cubic-bezier(.3,.1,.15,1), opacity .35s ease .55s, box-shadow .9s; }
.page.instant { transition: none !important; }
.folio { position: absolute; right: var(--pagepad); bottom: 14px; opacity: .55; }
.mag-nav { height: 60px; display: flex; align-items: center; gap: 16px; padding: 0 24px; border-top: 1px solid var(--line); }
.mag-nav > button { font-size: 18px; padding: 6px 16px; }
.pager { flex: 1; display: flex; align-items: center; gap: 14px; min-width: 0; }
.pager .mono { white-space: nowrap; }
.pager .pname { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pager .dots { display: flex; gap: 6px; margin-left: auto; }
.pager .dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 1px solid var(--ink); }
.pager .dots button.on { background: var(--ink); }
.page .kicker { color: inherit; opacity: .75; }
.page button:hover, .page .btn:hover { background: var(--mag-ink); color: var(--mag-paper); }
.page button.primary:hover, .page .btn.primary:hover { background: var(--mag-ink); }

/* Art: product shots melt into paper with multiply; cards and placeholders are drawn. */
.art { display: block; max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ph { width: 100%; aspect-ratio: 1; display: grid; place-items: center; background: var(--mag-paper-2); color: var(--mag-ink); }
.ph span { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: 64px; letter-spacing: -.04em; opacity: .25; }
.cardmock { width: 220px; aspect-ratio: 5 / 8.4; border-radius: 10px; padding: 10px; background: linear-gradient(160deg, #fbfaf7, #d9d5cc); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 20px 40px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 8px; }
.slab-label { display: flex; justify-content: space-between; background: #b3212b; color: #fff; padding: 6px 8px; border-radius: 4px; font: 600 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.cardface { flex: 1; border-radius: 6px; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: conic-gradient(from 200deg at 60% 40%, #ff9a3c, #f4d03f, #59c3c3, #6c5ce7, #ff6b9a, #ff9a3c); position: relative; overflow: hidden; }
.cardface::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 45%, transparent 60%); animation: foil 4s ease-in-out infinite; }
.cardface b { font-weight: 800; font-size: 14px; line-height: 1.1; text-shadow: 0 1px 2px rgba(0,0,0,.4); position: relative; z-index: 1; }
.cardface i { font-style: normal; font-size: 10px; opacity: .9; position: relative; z-index: 1; }
@keyframes foil { 0%, 100% { transform: translateX(-60%); } 50% { transform: translateX(60%); } }

/* Cover */
.p-cover { display: flex; flex-direction: column; padding: 0 var(--pagepad) var(--pagepad); overflow: hidden; }
.masthead { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: calc(clamp(56px, 18.5vw, 330px) * var(--mast-scale, 1)); line-height: .78; letter-spacing: -.045em; text-align: center; margin: clamp(16px, 2.5vw, 28px) 0 0; position: relative; z-index: 1; white-space: nowrap; }
.issue-line { display: flex; justify-content: space-between; border-top: 2px solid currentColor; border-bottom: 1px solid currentColor; padding: 6px 0; margin-top: 10px; position: relative; z-index: 3; }
.cover-object { position: absolute; z-index: 2; left: 50%; top: clamp(70px, 9vw, 150px); bottom: 200px; transform: translateX(-50%); width: min(62%, 760px); display: grid; place-items: center; pointer-events: none; }
.cover-object .art, .cover-object .cardmock { max-height: 100%; width: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.18)); }
.cover-object .cardmock { width: auto; height: 100%; }
.cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.p-cover:has(.cover-photo) { color: #f6f3ee; }
.p-cover:has(.cover-photo)::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.75) 100%); }
.p-cover:has(.cover-photo) .btn.light, .p-cover:has(.cover-photo) button.light { color: #f6f3ee; }
.cover-lines { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; position: relative; z-index: 3; }
.cover-name { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: clamp(40px, 6.6vw, 104px); line-height: .86; letter-spacing: -.04em; text-transform: uppercase; margin: 0 0 12px; }
.cover-left .pull { font-size: clamp(18px, 1.8vw, 26px); font-style: italic; line-height: 1.2; max-width: 30ch; margin: 0 0 18px; }
.cover-right { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; text-align: right; }
.cover-right b { display: block; font-size: clamp(22px, 2.4vw, 36px); font-weight: 800; font-variation-settings: 'wdth' 115; letter-spacing: -.02em; line-height: 1; }
.cover-right span { font-family: var(--serif); font-style: italic; font-size: 16px; }

/* Contents */
.p-contents { padding: var(--pagepad); }
.contents { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-rows: auto 1fr; gap: 28px 56px; min-height: 100%; }
.contents-head { grid-column: 1 / -1; border-bottom: 2px solid currentColor; padding-bottom: 12px; }
.contents-head h2 { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: clamp(48px, 8vw, 128px); line-height: .85; letter-spacing: -.045em; text-transform: uppercase; margin: 0; }
.toc { list-style: none; margin: 0; padding: 0; grid-column: 2; grid-row: 2; align-self: start; }
.toc li { border-top: 1px solid currentColor; }
.toc li:last-child { border-bottom: 1px solid currentColor; }
.toc button { all: unset; cursor: pointer; display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 14px 0; width: 100%; font-size: clamp(16px, 1.6vw, 22px); font-weight: 600; }
.toc button:hover span:last-child { text-decoration: underline; }
.toc .mono { font-size: 13px; padding-top: 4px; }
.contents-left { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.letter .pull { font-size: clamp(24px, 2.6vw, 38px); font-style: italic; line-height: 1.15; margin: 0 0 12px; }
.ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid currentColor; }
.ledger div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ledger b { display: block; font-size: clamp(20px, 2vw, 30px); font-weight: 800; font-variation-settings: 'wdth' 115; letter-spacing: -.02em; }
.ledger span { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }

/* Centerfold */
.p-centerfold { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.cf-image { background: var(--mag-paper-2); display: grid; place-items: center; padding: clamp(24px, 5vw, 72px); cursor: zoom-in; position: relative; min-height: 0; }
.cf-image .art { max-height: calc(100svh - var(--header) - 220px); }
.cf-image::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 40px; background: linear-gradient(90deg, transparent, rgba(0,0,0,.07)); pointer-events: none; }
.cf-story { padding: var(--pagepad); display: flex; flex-direction: column; justify-content: center; gap: 4px; border-left: 1px solid rgba(0,0,0,.08); }
.cf-title { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: clamp(34px, 4.4vw, 72px); line-height: .9; letter-spacing: -.035em; text-transform: uppercase; margin: 0 0 8px; }
.cf-byline { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 12px; }
.cf-story .pull { font-size: clamp(20px, 2vw, 28px); font-style: italic; line-height: 1.2; margin: 6px 0 16px; }
.facts { margin: 8px 0 16px; border-top: 2px solid currentColor; }
.facts div { display: grid; grid-template-columns: 110px 1fr; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.15); }
.facts dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.facts dd { margin: 0; font-weight: 600; }
.sale { display: inline-flex; align-self: flex-start; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; margin: 0 0 14px; }
.sale.is-sale { background: var(--signal); color: var(--signal-ink); }
.sale.is-nfs { border: 1px solid currentColor; }
.sale.big { font-size: 12px; margin-top: 4px; }
.sale-dot { display: inline-block; width: 7px; height: 7px; background: var(--signal); border-radius: 50%; margin-right: 4px; }

/* Pedestal */
.p-pedestal { background: radial-gradient(ellipse 60% 55% at 50% 30%, #4a4741 0%, #1d1c1a 55%, #0f0f0e 100%); color: #f1ede6; display: flex; flex-direction: column; align-items: center; padding: var(--pagepad); }
.ped-kicker { align-self: flex-start; }
.p-pedestal .muted { color: #c9c3b9; }
.stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 0; cursor: zoom-in; width: 100%; }
.lift { animation: float 6s ease-in-out infinite; display: grid; place-items: center; max-height: calc(100% - 110px); position: relative; z-index: 2; margin-bottom: -10px; }
.lift .art { mix-blend-mode: normal; max-height: 46svh; border-radius: 6px; box-shadow: 0 40px 50px -20px rgba(0,0,0,.7); }
.lift .ph { width: 260px; background: #2a2926; color: #f1ede6; }
.lift .cardmock { width: auto; height: min(46svh, 420px); }
.plinth { position: relative; width: min(380px, 70%); height: 110px; background: linear-gradient(180deg, #cdc7bc 0%, #a8a297 60%, #8b867c 100%); box-shadow: 0 50px 80px rgba(0,0,0,.6); }
.plinth i { position: absolute; left: 0; right: 0; top: -20px; height: 40px; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #f6f2ea 0%, #d8d2c6 70%); }
.plinth::before { content: ''; position: absolute; left: 0; right: 0; top: -20px; bottom: 0; border-radius: 50% 50% 0 0 / 20px 20px 0 0; background: inherit; z-index: -1; }
.placard { text-align: center; max-width: 640px; margin-top: 28px; }
.placard h2 { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: clamp(24px, 3vw, 44px); line-height: .95; letter-spacing: -.03em; text-transform: uppercase; margin: 0 0 8px; }
.placard p { margin: 0 0 10px; display: flex; justify-content: center; gap: 12px; align-items: center; flex-wrap: wrap; }
.placard .sale { margin: 0; }
.placard .actions { justify-content: center; }
.p-pedestal button:hover, .p-pedestal .btn:hover { background: #f1ede6; color: #0f0f0e; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Archive */
.p-archive { padding: var(--pagepad); }
.arch-head { display: flex; justify-content: space-between; align-items: end; border-bottom: 2px solid currentColor; padding-bottom: 12px; margin-bottom: 20px; gap: 16px; }
.arch-head h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(28px, 3vw, 44px); margin: 0; }
.arch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.arch-item { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.arch-item .well { aspect-ratio: 4 / 5; background: var(--mag-paper-2); display: grid; place-items: center; padding: 16px; transition: transform .2s; }
.arch-item:hover .well { transform: translateY(-4px); }
.arch-item .well .cardmock { width: 70%; }
.arch-item .t { font-weight: 700; font-size: 14px; line-height: 1.2; }
.arch-item .m { font-family: var(--mono); font-size: 11px; text-transform: uppercase; }

/* Back cover & empty issue */
.p-back, .p-empty { background: var(--mag-ink); color: var(--mag-paper); display: grid; place-items: center; padding: var(--pagepad); text-align: center; }
.p-empty { background: var(--mag-paper); color: var(--mag-ink); }
.back-inner, .empty-issue { max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.back-inner h2, .empty-issue h2 { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: clamp(40px, 6vw, 92px); line-height: .88; letter-spacing: -.04em; text-transform: uppercase; margin: 0 0 6px; }
.p-back .actions { justify-content: center; margin-top: 10px; }
.p-back button:hover, .p-back .btn:hover { background: var(--mag-paper); color: var(--mag-ink); }
.colophon { margin-top: 40px; opacity: .6; }

/* ---------- collection ---------- */
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 36px 24px; }
.ctile { display: flex; flex-direction: column; }
.ctile .well { all: unset; cursor: pointer; aspect-ratio: 4 / 5; background: var(--paper-2); display: grid; place-items: center; padding: 20px; transition: transform .2s; }
.ctile .well:hover { transform: translateY(-4px); }
.ctile .well.on-ped { background: radial-gradient(ellipse at 50% 30%, #4a4741, #141312 75%); }
.ctile .well.on-ped .art { mix-blend-mode: normal; border-radius: 4px; }
.ctile .well .cardmock { width: 64%; }
.cbody { padding-top: 12px; }
.cbody .kicker { margin-bottom: 4px; color: var(--ink-2); }
.cbody h3 { margin: 0 0 2px; font-size: 16px; line-height: 1.2; }
.cval { margin: 8px 0; }
.sale-select { width: 100%; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 7px 12px; }
.sale-select.is-sale { border-color: var(--signal); color: var(--signal-text); }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.person { border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.pcover { aspect-ratio: 16 / 10; background: var(--paper-2); display: grid; place-items: center; padding: 20px; text-decoration: none; overflow: hidden; }
.pcover .art { width: 100%; height: 100%; object-fit: contain; }
.pcover .cardmock { height: 100%; width: auto; }
.pword { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: 54px; letter-spacing: -.04em; text-transform: uppercase; opacity: .2; }
.pbody { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.pbody p { margin: 0; }
.prow { display: flex; gap: 12px; align-items: center; }
.prow a { text-decoration: none; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; background: var(--ink); color: var(--paper); font-weight: 800; flex: none; font-variation-settings: 'wdth' 115; }
.proto { padding-top: 0; }

/* ---------- messages ---------- */
.messages { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 0; padding-top: 24px; min-height: calc(100svh - var(--header)); }
.threads { border-right: 1px solid var(--line); padding-right: 16px; display: flex; flex-direction: column; gap: 4px; }
.threads h2 { font-weight: 900; font-variation-settings: 'wdth' 125; text-transform: uppercase; letter-spacing: -.03em; font-size: 32px; margin: 0 0 12px; }
.thread { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px; text-decoration: none; border-radius: 10px; }
.thread:hover, .thread.on { background: var(--paper-2); }
.threads > .btn { margin-top: 12px; align-self: flex-start; }
.convo { display: flex; flex-direction: column; padding-left: 24px; min-height: 0; }
.convo-head { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.convo-head a { text-decoration: none; }
.bubbles { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 20px 0; max-height: calc(100svh - var(--header) - 260px); }
.bubble { max-width: min(70%, 520px); background: var(--surface); border: 1px solid var(--line); padding: 10px 14px; border-radius: 16px 16px 16px 4px; align-self: flex-start; }
.bubble.mine { align-self: flex-end; background: var(--signal); color: var(--signal-ink); border-color: var(--signal); border-radius: 16px 16px 4px 16px; }
.bubble.mine .muted { color: inherit; opacity: .75; }
.bubble p { margin: 0 0 4px; white-space: pre-wrap; }
.bitem { all: unset; cursor: pointer; display: flex; gap: 8px; align-items: center; background: rgba(255,255,255,.12); padding: 6px; margin-bottom: 6px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.bitem .art, .bitem .ph, .attach .art, .attach .ph { width: 40px; height: 40px; object-fit: contain; mix-blend-mode: normal; background: #fff; }
.bitem .cardmock, .attach .cardmock { width: 26px; padding: 2px; }
.bitem .ph, .attach .ph { aspect-ratio: auto; flex: none; }
.bitem .ph span, .attach .ph span { font-size: 14px; }
.bitem .cardmock *, .attach .cardmock * { display: none; }
.attach { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px dashed var(--line); margin-bottom: 8px; font-size: 13px; }
.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; resize: vertical; border-radius: 12px; }

/* ---------- dialogs & drawers ---------- */
.dialog { border: 0; padding: 0; width: min(620px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.dialog::backdrop { background: rgba(10,10,9,.55); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dialog-head h3 { margin: 0; font-variation-settings: 'wdth' 125; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.dialog form { padding: 18px; }
.tabs { display: flex; gap: 6px; }
.tabs button.on { background: var(--ink); color: var(--paper); }
.fields2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fields2 label, .fields label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.fields2 label.check, .fields label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }
.fields2 .wide { grid-column: 1 / -1; }
.fields2 > button.wide { justify-self: start; }
.close { font-size: 22px; line-height: 1; padding: 2px 12px; border-color: transparent; }

.drawer { position: fixed; inset: 0; z-index: 40; }
.scrim { position: absolute; inset: 0; background: rgba(10,10,9,.45); }
.panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(660px, 100%); background: var(--paper); overflow-y: auto; padding: 22px 26px 48px; box-shadow: -10px 0 40px rgba(0,0,0,.2); animation: slide .25s cubic-bezier(.2,.7,.2,1); }
@keyframes slide { from { transform: translateX(32px); opacity: 0; } }
.panel h2 { margin: 0; font-size: 22px; }
.panel section, .box { background: var(--surface); border: 1px solid var(--line); padding: 16px; margin: 16px 0; }
.panel h4 { margin: 0 0 12px; font-size: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ihead { display: flex; justify-content: space-between; align-items: start; }
.iart { width: 100%; aspect-ratio: 4 / 3; background: var(--paper-2); display: grid; place-items: center; padding: 20px; margin-bottom: 16px; }
.iart.on-ped { background: radial-gradient(ellipse at 50% 30%, #4a4741, #141312 75%); }
.iart.on-ped .art { mix-blend-mode: normal; }
.iart .art { max-height: 320px; }
.ihead .close { margin-left: 8px; }
.ititle { font-weight: 900 !important; font-variation-settings: 'wdth' 125; text-transform: uppercase; letter-spacing: -.03em; font-size: clamp(26px, 3vw, 38px) !important; line-height: .95; margin: 0 0 6px !important; }
.bigval { font-size: 26px; font-weight: 800; margin: 0 0 4px; }
.sources { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); }
.tag { display: inline-block; font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 3px 6px; border: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.sources li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.comments { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.comment p { margin: 2px 0 0; }
.comment a { text-decoration: none; }
.row-inline { display: flex; gap: 8px; }
.row-inline input { flex: 1; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; z-index: 60; max-width: min(560px, 90vw); font-weight: 600; font-size: 14px; }
.empty { text-align: center; padding: 72px 20px; border: 1px dashed var(--line); color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 8px; grid-column: 1 / -1; }
.empty h2 { color: var(--ink); margin: 0; font-variation-settings: 'wdth' 125; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }

/* ---------- saved & watchlist (restyled) ---------- */
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 24px; max-width: 1500px; margin: 0 auto; }
.side h3 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 28px 0 10px; display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
#filters { display: flex; flex-direction: column; gap: 2px; }
#filters button { text-align: left; border: 0; border-radius: 0; background: transparent; display: flex; justify-content: space-between; padding: 9px 10px; font-weight: 500; border-left: 2px solid transparent; }
#filters button:hover { background: var(--paper-2); color: var(--ink); }
#filters button.on { border-left-color: var(--signal); font-weight: 700; background: var(--surface); }
.cat { background: var(--surface); border: 1px solid var(--line); padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.cat.on { border-color: var(--signal); }
.cat .row { display: flex; justify-content: space-between; gap: 8px; }
.cat .name { font-weight: 700; }
.bar { height: 4px; background: var(--paper-2); margin: 8px 0 4px; overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; }
.bar .spent { background: var(--ink); }
.bar .committed { background: color-mix(in srgb, var(--signal) 55%, transparent); }
.bar.over .spent { background: var(--down); }
.bookmarklet { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--signal); color: var(--signal-ink); font-weight: 700; text-decoration: none; cursor: grab; font-size: 13px; }
.setting { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; color: var(--ink-2); font-size: 13px; }
.setting.check { flex-direction: row; align-items: center; gap: 8px; }
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); margin-bottom: 24px; }
.stat { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.stat b { display: block; font-size: 24px; font-weight: 800; font-variation-settings: 'wdth' 115; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-2); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 18px; }
.card { cursor: pointer; display: flex; flex-direction: column; }
.card .img { aspect-ratio: 4 / 5; background: var(--paper-2) center / 78% no-repeat; background-blend-mode: multiply; position: relative; transition: transform .2s; }
.card:hover .img { transform: translateY(-4px); }
.card .img .site { position: absolute; left: 8px; top: 8px; }
.card .body { padding: 10px 0 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .title { font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.card .price { display: flex; align-items: baseline; gap: 8px; }
.card .price b { font-size: 18px; font-variant-numeric: tabular-nums; }
.card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 8px; }
.card.bought { opacity: .6; }
.pill { display: inline-flex; align-items: center; gap: 4px; font: 600 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.pill.great { background: var(--signal); color: var(--signal-ink); }
.pill.over { background: var(--down); color: var(--paper); }
.pill.warn { background: var(--warn-bg); color: var(--warn); font-weight: 700; }
.pill.site { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.spark { width: 72px; height: 22px; }
.spark polyline { stroke: var(--signal); }

#grid.saved { display: block; }
.groupbar { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.groupbar button.on { background: var(--ink); color: var(--paper); }
.group { margin-bottom: 28px; }
.group h3 { margin: 0; padding: 10px 0; font-size: 20px; font-weight: 900; font-variation-settings: 'wdth' 125; text-transform: uppercase; letter-spacing: -.02em; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--ink); }
.row-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; cursor: pointer; border-bottom: 1px solid var(--line); }
.row-item:hover .rtitle { text-decoration: underline; }
.row-item.bought { opacity: .6; }
.rthumb { width: 56px; height: 56px; background: var(--paper-2) center / contain no-repeat; background-blend-mode: multiply; }
.rtitle { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rside { display: flex; align-items: center; gap: 12px; }
.rside b { font-size: 16px; min-width: 70px; text-align: right; }

/* item drawer (saved/watch) */
.panel .head { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: start; margin-bottom: 8px; }
.panel .thumb { width: 120px; height: 120px; background: var(--paper-2) center / contain no-repeat; background-blend-mode: multiply; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fields label.wide { grid-column: 1 / -1; }
.links { display: flex; flex-direction: column; gap: 8px; }
.link { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px; border: 1px solid var(--line); background: var(--paper); }
.link.best { border-color: var(--signal); }
.link .meta { font-size: 12px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.link .p { font-weight: 800; font-size: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.link .err { grid-column: 1 / -1; font-size: 12px; color: var(--warn); }
.link .manual { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.link .manual input { width: 120px; padding: 5px 8px; }
.chart { width: 100%; height: 160px; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 3px; margin-right: 4px; vertical-align: middle; }
.alts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.alt { text-decoration: none; display: flex; flex-direction: column; }
.alt .img { aspect-ratio: 1; background: var(--paper-2) center / contain no-repeat; background-blend-mode: multiply; }
.alt .b { padding: 8px 0; font-size: 12px; display: flex; flex-direction: column; gap: 3px; }
.alt .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.alt:hover .t { text-decoration: underline; }
.markets { display: flex; flex-wrap: wrap; gap: 6px; }
.markets a { text-decoration: none; font-size: 12px; font-weight: 600; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; }
.markets a:hover { border-color: var(--ink); }
.ai-list { display: flex; flex-direction: column; gap: 8px; }
.ai-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px; border: 1px solid var(--line); text-decoration: none; }
.ai-item:hover { border-color: var(--signal); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .top { gap: 12px; padding: 0 16px; }
  .wordmark { font-size: 18px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-img { order: -1; max-height: 46vh; }
  .layout { grid-template-columns: 1fr; padding: 16px; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields, .fields2 { grid-template-columns: 1fr 1fr; }
  .p-centerfold { grid-template-columns: 1fr; }
  .cf-image { min-height: 46svh; }
  .cf-image .art { max-height: 42svh; }
  .cf-story { border-left: 0; }
  .contents { grid-template-columns: 1fr; }
  .toc, .contents-left { grid-column: 1; grid-row: auto; }
  .arch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover-lines { grid-template-columns: 1fr; }
  .cover-right { flex-direction: row; flex-wrap: wrap; text-align: left; gap: 16px; }
  .cover-object { width: 80%; bottom: 300px; }
  .messages { grid-template-columns: 1fr; }
  .threads { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 16px; }
  .convo { padding: 16px 0 0; }
  .pager .dots { display: none; }
  .wrap { padding: 24px 16px 48px; }
}
@media (max-width: 560px) {
  #addBtn { padding: 8px 12px; }
  .rside .pill { display: none; }
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .issue-line span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- signed in vs signed out header ---------- */
body[data-auth="out"] .mainnav, body[data-auth="out"] #addBtn, body[data-auth="out"] .me-wrap,
body[data-auth="unknown"] .mainnav, body[data-auth="unknown"] #addBtn, body[data-auth="unknown"] .me-wrap { display: none; }
body[data-auth="in"] .authbar, body[data-auth="unknown"] .authbar { display: none; }
.authbar { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tourlink { font-size: 13px; font-weight: 600; text-decoration: none; padding: 8px 10px; }
.tourlink:hover { text-decoration: underline; }
.me-wrap { position: relative; }
.me-btn { padding: 0; border: 0; border-radius: 50%; }
.me-btn:hover { background: transparent; opacity: .85; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--paper); border: 1px solid var(--ink); min-width: 180px; display: flex; flex-direction: column; z-index: 50; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.menu a, .menu button { all: unset; cursor: pointer; padding: 11px 14px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line); }
.menu > :last-child { border-bottom: 0; }
.menu a:hover, .menu button:hover { background: var(--ink); color: var(--paper); }
.btn.big, button.big { padding: 14px 24px; font-size: 14px; }
.example-tag { position: absolute; top: 10px; right: 10px; font-size: 9px; padding: 3px 6px; border: 1px solid currentColor; opacity: .7; z-index: 3; }

/* ---------- landing ---------- */
.land-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100svh - var(--header)); border-bottom: 1px solid var(--line); overflow: hidden; }
.land-copy { container-type: inline-size; padding: clamp(32px, 6vw, 88px) clamp(20px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.land-copy h1 { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: clamp(36px, 10.5cqi, 132px); line-height: .86; letter-spacing: -.045em; text-transform: uppercase; margin: 0 0 18px; }
.land-copy .dek { font-size: clamp(17px, 1.4vw, 20px); margin: 0 0 24px; }
.land-copy .actions { margin-bottom: 14px; }
.land-art { position: relative; background: var(--mag-ink); overflow: hidden; display: grid; place-items: center; perspective: 1800px; }
.land-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 50% at 60% 45%, #4a4741 0%, #1a1917 60%, #0e0e0d 100%); }
.tilt { position: relative; transform: rotateY(-14deg) rotateX(4deg) rotateZ(-3deg) translateX(-12%); transform-style: preserve-3d; animation: tiltIn 1.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes tiltIn { from { transform: rotateY(-40deg) rotateX(8deg) rotateZ(-6deg) translateX(-30%); opacity: 0; } }
.mini-cover { position: relative; width: min(380px, 34vw); aspect-ratio: 3 / 4; background: var(--mag-paper); color: var(--mag-ink); padding: 14px 16px; box-shadow: 30px 40px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.06); overflow: hidden; display: flex; flex-direction: column; }
.mini-mast { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: calc(clamp(54px, 6.6vw, 96px) * var(--mast-scale, 1)); white-space: nowrap; overflow: hidden; line-height: .8; letter-spacing: -.05em; text-align: center; }
.mini-issue { display: flex; justify-content: space-between; border-top: 2px solid currentColor; border-bottom: 1px solid currentColor; padding: 3px 0; margin-top: 6px; font-size: 9px; position: relative; z-index: 2; }
.mini-obj { position: absolute; inset: 16% 10% 18%; display: grid; place-items: center; z-index: 1; }
.mini-obj .art { max-height: 100%; }
.mini-name { margin-top: auto; font-weight: 900; font-variation-settings: 'wdth' 125; font-size: clamp(26px, 3vw, 40px); line-height: .85; letter-spacing: -.04em; text-transform: uppercase; position: relative; z-index: 2; }
.mini-ped { position: absolute; right: 8%; bottom: 6%; display: flex; flex-direction: column; align-items: center; z-index: 2; animation: tiltIn 1.1s .15s cubic-bezier(.2,.7,.2,1) both; }
.mini-ped .lift { margin-bottom: -8px; }
.mini-ped .cardmock { width: min(150px, 13vw); }
.mini-ped .lift .art { max-height: 220px; }
.mini-ped .plinth { width: min(200px, 17vw); height: 70px; }
.mini-ped .plinth i { top: -14px; height: 28px; }
.mini-ped .plinth::before { top: -14px; }

.land-strip { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: 12px; }
.land-strip i { width: 5px; height: 5px; background: var(--signal); border-radius: 50%; }

.sec-head { border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 32px; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.sec-head h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(30px, 3.4vw, 50px); margin: 0; line-height: 1; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.how { display: flex; flex-direction: column; gap: 8px; }
.how-n { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: 64px; line-height: .8; letter-spacing: -.05em; color: var(--signal); }
.how h3 { font-variation-settings: 'wdth' 120; font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase; letter-spacing: -.02em; margin: 8px 0 0; }
.how p { margin: 0; color: var(--ink-2); }
.how-art { position: relative; margin-top: auto; padding-top: 16px; }
.how-art.spread { display: grid; grid-template-columns: 1fr 1fr; background: var(--mag-paper); color: var(--mag-ink); border: 1px solid var(--line); aspect-ratio: 16 / 10; padding: 0; margin-top: 16px; }
.sp-l { background: var(--mag-paper-2); display: grid; place-items: center; padding: 12px; min-height: 0; }
.sp-l .art { max-height: 100%; }
.sp-r { padding: 14px; display: flex; flex-direction: column; justify-content: center; gap: 6px; font-size: 12px; }
.sp-r b { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: 18px; line-height: .9; letter-spacing: -.03em; }
.sp-r i { font-family: var(--serif); font-size: 15px; }
.valuebox, .compare { background: var(--surface); border: 1px solid var(--line); padding: 16px; margin-top: 16px; }
.valuebox .mono, .compare .mono { margin: 0 0 6px; }
.vbig { font-weight: 800; font-variation-settings: 'wdth' 115; font-size: 30px; letter-spacing: -.02em; margin: 0 0 8px; }
.vbig span { font-size: 15px; }
.valuebox ul, .compare ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.valuebox li, .compare li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.compare li.best { color: var(--signal-text); font-weight: 700; }
.compare p { margin: 10px 0 0; }

.land-social { background: var(--mag-ink); color: var(--mag-paper); }
.social-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.social-inner h2, .land-tour h2, .land-final h2 { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: clamp(40px, 5.6vw, 88px); line-height: .88; letter-spacing: -.045em; text-transform: uppercase; margin: 0 0 18px; }
.social-inner .dek { margin-bottom: 24px; }
.chat-art { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 40px 24px 24px; border: 1px solid rgba(255,255,255,.18); }
.chat-art .bubble { background: #22211f; border-color: #34322e; color: var(--mag-paper); }
.chat-art .bubble.mine { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.chat-art .bubble b { font-size: 10px; opacity: .7; }
.land-tour { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-top: 88px; padding-bottom: 88px; border-bottom: 1px solid var(--line); }
.land-tour h2 { font-size: clamp(34px, 4.4vw, 68px); }
.land-final { text-align: center; padding: 104px 24px; background: var(--signal); color: var(--signal-ink); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.land-final .btn.primary, .scene.end .btn.primary { background: var(--signal-ink); color: var(--signal); border-color: var(--signal-ink); }
.land-final .btn.primary:hover, .scene.end .btn.primary:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.land-final .btn.ghost:hover, .scene.end .btn.ghost:hover { background: var(--signal-ink); color: var(--signal); }
.land-final p { margin-top: 32px; opacity: .8; }

/* ---------- sign in / join ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100svh - var(--header)); }
.auth-art { position: relative; background: radial-gradient(ellipse 60% 55% at 50% 40%, #4a4741 0%, #1a1917 60%, #0e0e0d 100%); color: var(--mag-paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; padding: 40px; overflow: hidden; perspective: 1800px; }
.auth-art .tilt { transform: rotateY(-12deg) rotateZ(-2deg); }
.auth-art .mini-ped { position: static; }
.auth-art .mini-ped .cardmock { width: 200px; }
.auth-art .mini-ped .plinth { width: 260px; height: 90px; }
.auth-quote { font-family: var(--serif); font-style: italic; font-size: 26px; margin: 0; text-align: center; }
.auth-form { padding: clamp(32px, 6vw, 80px) clamp(20px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; max-width: 620px; }
.auth-form h1 { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: clamp(36px, 4.6vw, 64px); line-height: .9; letter-spacing: -.04em; text-transform: uppercase; margin: 0 0 20px; }
.stack { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.stack label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.stack small { font-weight: 400; }
.stack input { padding: 12px 14px; font-size: 16px; }
.stack > button { align-self: flex-start; margin-top: 4px; }
.handle-in { display: flex; align-items: stretch; }
.handle-in span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: 0; background: var(--paper-2); font-weight: 700; }
.handle-in input { flex: 1; }
.pw { display: flex; gap: 6px; align-items: center; }
.pw input { flex: 1; }
.form-error { margin: 0; color: var(--down); font-weight: 600; font-size: 14px; }
.note { background: var(--surface); border-left: 3px solid var(--signal); padding: 10px 14px; font-size: 14px; margin: 0 0 16px; }

/* ---------- tour ---------- */
.tour-card { position: fixed; left: 24px; bottom: 84px; z-index: 45; width: min(400px, calc(100vw - 32px)); background: var(--mag-ink); color: var(--mag-paper); padding: 18px 20px 20px; box-shadow: 0 24px 60px rgba(0,0,0,.4); animation: slide .3s cubic-bezier(.2,.7,.2,1); }
.tour-card h3 { font-variation-settings: 'wdth' 120; font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; margin: 12px 0 8px; }
.tour-card p { margin: 0 0 16px; font-size: 15px; opacity: .9; }
.tc-top { display: flex; justify-content: space-between; align-items: center; }
.tc-skip { font-size: 12px; opacity: .75; }
.tc-bar { height: 2px; background: rgba(255,255,255,.18); margin-top: 10px; }
.tc-bar i { display: block; height: 100%; background: var(--signal); transition: width .3s; }
.tour-card .btn:hover { background: var(--mag-paper); color: var(--mag-ink); }
.tour-card .btn.primary:hover { background: var(--mag-paper); border-color: var(--mag-paper); }
body.touring #cdrawer .panel { padding-bottom: 260px; }
.scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100svh - var(--header)); }
.scene-art { background: radial-gradient(ellipse 60% 55% at 50% 40%, #4a4741 0%, #1a1917 60%, #0e0e0d 100%); display: grid; place-items: center; padding: 40px; }
.scene-art.light { background: var(--mag-paper-2); }
.scene-art .mini-ped { position: static; }
.scene-art .mini-ped .cardmock { width: 220px; }
.scene-art .mini-ped .plinth { width: 280px; height: 100px; }
.scene-obj { max-width: 70%; max-height: 70svh; display: grid; place-items: center; }
.scene-obj .art { max-height: 70svh; }
.scene-panel { align-self: center; margin: 40px clamp(20px, 5vw, 64px); position: relative; padding-top: 28px; }
.scene-panel.big .vbig { font-size: 44px; }
.scene-panel.big li { font-size: 15px; padding: 12px 0; }
.scene.end { grid-template-columns: 1fr; background: var(--signal); color: var(--signal-ink); text-align: center; place-items: center; }
.end-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px; }
.end-inner h2 { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: clamp(44px, 7vw, 110px); line-height: .86; letter-spacing: -.045em; text-transform: uppercase; margin: 0 0 16px; }

@media (max-width: 900px) {
  .land-hero, .auth, .scene, .social-inner { grid-template-columns: 1fr; }
  .land-art { min-height: 520px; order: -1; }
  .land-art .mini-ped { right: 5%; bottom: 4%; }
  .land-art .mini-ped .lift .cardmock { width: 104px; }
  .mini-cover { width: min(300px, 62vw); }
  .mini-ped .cardmock { width: 110px; }
  .mini-ped .plinth { width: 140px; height: 54px; }
  .auth-art { min-height: 320px; padding: 24px; gap: 20px; }
  .auth-art .mini-cover { width: 220px; }
  .auth-art .mini-ped .cardmock { width: 130px; }
  .auth-art .mini-ped .plinth { width: 170px; height: 60px; }
  .how-grid { grid-template-columns: 1fr; }
  .scene-art { min-height: 300px; }
  .tour-card { left: 16px; bottom: 76px; }
  .authbar .tourlink { display: none; }
}
@media (max-width: 560px) {
  .authbar .btn.ghost { display: none; }
}
/* example labels never cover content */
.valuebox, .compare { padding-top: 38px; }
.how-art.spread .example-tag { top: auto; bottom: 8px; }
.mini-ped .cardmock { width: clamp(124px, 12vw, 170px); }
.mini-ped .slab-label { font-size: 8px; padding: 4px 6px; }
.mini-ped .cardface { padding: 8px; }
.mini-ped .cardface b { font-size: 11px; }
.dek.lines span { display: block; }
.dek.lines span + span { margin-top: 6px; }

body.shot .tour-card, body.shot .toast { display: none !important; }

/* ---------- photos ---------- */
.thumbs { display: flex; gap: 8px; margin: -6px 0 14px; overflow-x: auto; }
.thumb { padding: 0; border: 1px solid var(--line); border-radius: 0; width: 64px; height: 64px; flex: none; background: var(--paper-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.on { border: 2px solid var(--ink); }
.thumb:hover { background: var(--paper-2); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 12px; }
.gallery figure { margin: 0; position: relative; display: flex; flex-direction: column; gap: 4px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--paper-2); border: 1px solid var(--line); }
.gallery figcaption { font-size: 10px; min-height: 22px; display: flex; align-items: center; }
.gallery .rm { position: absolute; top: 4px; right: 4px; background: var(--paper); padding: 0 7px; font-size: 14px; line-height: 20px; }

/* ---------- budgets editor ---------- */
.budget-dialog { width: min(760px, calc(100vw - 32px)); }
.bhead, .brow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 170px 72px; gap: 10px; align-items: center; }
.bhead { padding: 4px 0; font-family: var(--mono); text-transform: uppercase; font-size: 10px; letter-spacing: .06em; }
.brow { padding: 10px 0; border-top: 1px solid var(--line); }
.brow:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.brow[data-cid="new"] input[name=name] { border-style: dashed; }
.bmeta { grid-column: 1 / -1; margin: -2px 0 0; }
.money-in { display: flex; }
.money-in span { display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-right: 0; background: var(--paper-2); font-weight: 700; }
.money-in input { flex: 1; width: 100%; }
.switch { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.switch input { appearance: none; width: 34px; height: 20px; border-radius: 999px; background: var(--line); border: 0; padding: 0; position: relative; cursor: pointer; transition: background .15s; flex: none; }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--signal); }
.switch input:checked::after { transform: translateX(14px); }
#addCatBtn { font-size: 11px; }

/* ---------- sold ---------- */
.sold-list { padding-top: 0; }
.sold-row { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); width: 100%; }
.sold-row:hover b { text-decoration: underline; }
.sold-row .rthumb { opacity: .7; }

@media (max-width: 640px) {
  .bhead { display: none; }
  .brow { grid-template-columns: 1fr 1fr; }
  .brow .switch { grid-column: 1 / -1; }
}

/* ---------- profile customization ---------- */
.mag .page .muted { color: color-mix(in srgb, var(--mag-ink) 62%, var(--mag-paper)); }
.mag.is-dark .art { mix-blend-mode: normal; }
.mag.is-dark .facts div { border-color: color-mix(in srgb, var(--mag-ink) 22%, transparent); }
.mag.is-dark .cf-story { border-color: color-mix(in srgb, var(--mag-ink) 15%, transparent); }
.mag .page .btn.primary, .mag .page button.primary { background: var(--signal); border-color: var(--signal); color: var(--signal-ink, #fff); }
.mag .sale.is-sale, .mag .sale-dot { background: var(--signal); color: var(--signal-ink, #fff); }
.mag .page .btn.light, .mag .page button.light { color: inherit; }

.ext-links { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.ext-links a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.ext-links a:hover { opacity: .7; }
.ext-links.on-contents { flex-direction: column; gap: 8px; }
.ext-links.on-back { justify-content: center; margin-top: 16px; }

.p-highlights { padding: var(--pagepad); }
.hl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 12px; height: calc(100% - 110px); }
.hl-grid.n1 { grid-template-columns: 1fr; }
.hl-grid.n2 { grid-template-columns: 1.4fr 1fr; }
.hl-grid.n3 { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
.hl-grid.n3 .lead, .hl-grid.n2 .lead { grid-row: span 2; }
.hl-grid.n4 .lead, .hl-grid.n5 .lead, .hl-grid.n6 .lead { grid-column: span 2; grid-row: span 2; }
.hl { margin: 0; position: relative; overflow: hidden; background: var(--mag-paper-2); min-height: 0; }
.hl img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.hl:hover img { transform: scale(1.03); }
.hl figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 22px 12px 10px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); font-size: 11px; }

/* customize page */
.customize .sec-head { align-items: center; }
.cz-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: start; }
.cz-sec { border-top: 2px solid var(--ink); padding: 18px 0 26px; }
.cz-sec h3 { margin: 0 0 4px; font-variation-settings: 'wdth' 118; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; font-size: 18px; display: flex; gap: 8px; align-items: center; }
.cz-sec > .small { margin: 0 0 14px; }
.cz-row { display: flex; align-items: center; gap: 10px; }
.cz-row input { flex: 1; font-size: 22px; font-weight: 900; font-variation-settings: 'wdth' 125; text-transform: uppercase; letter-spacing: -.02em; padding: 12px 14px; }
.pro-tag { font: 600 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 6px; background: var(--ink); color: var(--paper); vertical-align: middle; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.swatch { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.swatch .sw { height: 64px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font: 900 22px/1 var(--wide); font-variation-settings: 'wdth' 125; }
.swatch .sw i { width: 14px; height: 14px; border-radius: 50%; }
.swatch .sw-custom { justify-content: center; background: conic-gradient(#f4e7b2, #f2dcd5, #2a3cff, #16291f, #f4e7b2); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.swatch .sw-name { font-size: 12px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.swatch.on .sw { outline: 3px solid var(--signal); outline-offset: 2px; }
.swatch:focus-visible .sw { outline: 2px solid var(--signal); outline-offset: 2px; }
.swatch[data-locked] .sw { opacity: .55; }
.custom-colors { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 14px; }
.custom-colors label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.custom-colors input[type=color] { width: 44px; height: 32px; padding: 2px; }
.custom-colors p { flex-basis: 100%; margin: 0; }
.link-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 8px; margin-bottom: 8px; }
.cz-hl { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 12px; }
.cz-hl figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cz-hl img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); }
.cz-hl input { font-size: 12px; padding: 6px 8px; }
.hl-tools { display: flex; justify-content: space-between; align-items: center; }
.upload-btn { cursor: pointer; }
.pro-card { background: var(--surface); padding: 18px; border: 1px solid var(--line); border-top: 2px solid var(--ink); }
.pro-card .small { margin: 0 0 10px; }
.cz-preview { position: sticky; top: calc(var(--header) + 20px); }
.cz-preview .mag { background: transparent; }
.mini-cover.big { width: 100%; max-width: 420px; aspect-ratio: 3 / 4; box-shadow: 0 30px 60px rgba(0,0,0,.18); }
.mini-cover.big .mini-mast { font-size: calc(96px * var(--mast-scale, 1)); }
.mini-foot { margin-top: auto; position: relative; z-index: 2; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mini-foot .mini-name { margin: 0; }
.mini-links { font-size: 9px; }
.mini-btn { font: 700 11px/1 var(--wide); padding: 7px 12px; border-radius: 999px; background: var(--signal); color: var(--signal-ink, #fff); }
.mag.is-dark .mini-obj .art { mix-blend-mode: normal; }
.mini-hl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.mini-hl img { width: 100%; aspect-ratio: 1; object-fit: cover; }

@media (max-width: 960px) {
  .cz-grid { grid-template-columns: 1fr; }
  .cz-preview { position: static; order: -1; }
  .mini-cover.big { max-width: 320px; }
  .mini-cover.big .mini-mast { font-size: calc(72px * var(--mast-scale, 1)); }
  .link-row { grid-template-columns: 1fr auto; }
  .link-row input[name=label] { grid-column: 1; }
}

.masthead, .mini-mast { text-transform: uppercase; }
/* The cover name crosses the cover photo: outline it in the page color so it reads on any image. */
.p-cover:not(:has(.cover-photo)) .cover-name { --o: var(--mag-paper); text-shadow: 3px 0 0 var(--o), -3px 0 0 var(--o), 0 3px 0 var(--o), 0 -3px 0 var(--o), 2px 2px 0 var(--o), -2px -2px 0 var(--o), 2px -2px 0 var(--o), -2px 2px 0 var(--o); }

/* Shorter screens: shrink the pedestal object so it never runs into its placard. */
@media (max-height: 900px) {
  .lift .art { max-height: 32svh; }
  .lift .cardmock { height: min(32svh, 420px); }
  .p-pedestal .plinth { height: 72px; }
  .p-pedestal .plinth i, .p-pedestal .plinth::before { top: -14px; height: 28px; }
  .placard { margin-top: 18px; }
}
.stile .sale { margin: 0 0 0 6px; padding: 4px 7px; vertical-align: 2px; }

/* ---------- search ---------- */
.hsearch { flex: 0 1 260px; min-width: 140px; }
.hsearch input { width: 100%; border-radius: 999px; padding: 7px 14px 7px 32px; font-size: 13px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23555' stroke-width='2'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath d='m9.5 9.5 3.5 3.5'/%3E%3C/svg%3E") no-repeat 12px 50%; }
body[data-auth="out"] .hsearch, body[data-auth="unknown"] .hsearch, body[data-route="search"] .hsearch { display: none; }
@media (max-width: 900px) { .hsearch { display: none; } }

.search-hero { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.search-hero .wrap { padding-top: 48px; padding-bottom: 28px; }
.sbig { display: flex; gap: 10px; border-bottom: 3px solid var(--ink); padding-bottom: 10px; }
.sbig input { flex: 1; background: transparent; border: 0; padding: 4px 0; font-weight: 900; font-variation-settings: 'wdth' 125; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(30px, 5vw, 64px); line-height: 1; }
.sbig input::placeholder { color: var(--ink-2); opacity: .45; }
.sbig input:focus-visible { outline: none; }
.sbig button { align-self: center; }
.search-sub { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 14px; }
.adv-toggle { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fchip { text-decoration: none; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.fchip span { opacity: .7; margin-left: 4px; }
.fchip:hover { background: var(--signal); color: var(--signal-ink); }
.adv { margin-top: 20px; padding: 20px; background: var(--surface); border: 1px solid var(--line); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adv[hidden] { display: none; }
@media (max-width: 900px) { .adv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.search-results { padding-top: 28px; }
.stabs { margin-bottom: 28px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.stabs .mono { font-size: 11px; opacity: .7; }
.stile .cbody a { color: inherit; }
.stile .sale { margin: 0 0 0 6px; padding: 4px 7px; vertical-align: 2px; }
.sale.is-offers { background: transparent; border: 1px solid currentColor; }
.search-start { max-width: 760px; }
.aes-cloud, .aes-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.aes-chip { text-decoration: none; border: 1px solid var(--ink); border-radius: 999px; padding: 8px 14px; font-size: 15px; font-family: var(--serif); font-style: italic; }
.aes-chip.sm { padding: 3px 10px; font-size: 13px; }
.aes-chip:hover { background: var(--ink); color: var(--paper); }
.aes-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.aes-card { text-decoration: none; display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.aes-card b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 28px; line-height: 1.05; }
.aes-card:hover { border-color: var(--ink); }
.pcover img { width: 100%; height: 100%; object-fit: cover; }

/* metadata inputs */
.meta-fields { border: 1px dashed var(--line); padding: 14px; margin: 0; }
.meta-fields legend { font-size: 12px; font-weight: 700; padding: 0 6px; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.flabel { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.color-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fields2 label.color-chip, .color-chip { position: relative; flex-direction: row; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink); padding: 5px 10px 5px 6px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--surface); }
.color-chip input { position: absolute; opacity: 0; pointer-events: none; }
.fields2 label.color-chip:has(input:checked), .color-chip:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.color-chip:has(input:focus-visible) { outline: 2px solid var(--signal); outline-offset: 2px; }
.cdot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); vertical-align: -2px; margin-right: 4px; }
.color-chip .cdot { margin: 0; }
.tagin-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px; border: 1px solid var(--line); background: var(--surface); }
.tagin-box:focus-within { outline: 2px solid var(--signal); outline-offset: 2px; }
.tagin-box input { flex: 1; min-width: 140px; border: 0; padding: 4px; background: transparent; }
.tagin-box input:focus-visible { outline: none; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 3px 4px 3px 11px; font-size: 12px; font-weight: 600; }
.tag-chip button { all: unset; cursor: pointer; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 14px; }
.tag-chip button:hover { background: var(--signal); }
.tag-sugg { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag-sugg button { padding: 3px 9px; font-size: 11px; border-color: var(--line); font-weight: 500; }

/* the quiet details list in the drawer */
.meta-list { margin: 0; display: grid; }
.meta-list > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.meta-list > div:last-child { border-bottom: 0; }
.meta-list dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding-top: 2px; }
.meta-list dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.meta-list a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--line); }
.meta-list a:hover { text-decoration-color: var(--ink); }
.meta-list .tag-link { font-family: var(--serif); font-style: italic; }

/* People page search */
.people-search { display: flex; gap: 10px; max-width: 560px; margin-top: 24px; }
.people-search input { flex: 1; border-radius: 999px; padding: 12px 18px 12px 40px; font-size: 15px; border-color: var(--ink); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23333' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 16px 50%; }
.person[hidden] { display: none; }
.people-none { grid-column: 1 / -1; margin: 0; color: var(--ink-2); }
.people-none a { color: var(--ink); font-weight: 600; }
@media (max-width: 600px) { .people-search button { display: none; } }

/* ======================================================================
   Mobile web — tablet (≤900px) stacks two-column layouts,
   phone (≤560px) trims secondary chrome. Nothing may scroll sideways.
   ====================================================================== */
html, body { overflow-x: clip; }
.search-ico { display: none; }
.side-more > summary { display: none; }
.convo-back { display: none; }
.back-inner, .empty-issue { min-width: 0; max-width: min(760px, 100%); }
.back-inner h2, .empty-issue h2, .cover-name, .cf-title, .placard h2, .contents-head h2, .auth-form h1, .land-copy h1, .end-inner h2, .social-inner h2, .land-tour h2, .land-final h2 { overflow-wrap: anywhere; }
.cz-grid > * { min-width: 0; }

@media (max-width: 900px) {
  /* Header: row one is wordmark + search + Add + you; row two is the nav, which scrolls sideways. */
  body[data-auth="in"] { --header: 104px; }
  .top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; grid-template-rows: 56px; column-gap: 6px; padding: 0 10px 0 16px; }
  body[data-auth="in"] .top { grid-template-rows: 56px 48px; }
  .wordmark { grid-row: 1; grid-column: 1; }
  .search-ico { grid-row: 1; grid-column: 3; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; }
  .search-ico:hover { background: var(--paper-2); }
  body[data-route="search"] .search-ico { background: var(--ink); color: var(--paper); }
  body:not([data-auth="in"]) .search-ico { display: none; }
  #addBtn { grid-row: 1; grid-column: 4; min-height: 44px; padding: 0 14px; }
  .me-wrap { grid-row: 1; grid-column: 5; }
  .me-btn { width: 44px; height: 44px; justify-content: center; }
  .authbar { grid-row: 1; grid-column: 2 / -1; justify-self: end; }
  .mainnav { grid-row: 2; grid-column: 1 / -1; margin: 0 -10px 0 -16px; padding: 0 16px 4px; align-items: center; gap: 4px; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .mainnav a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; }
  .mainnav::after { content: ''; flex: 0 0 16px; }
  .menu a, .menu button { padding: 14px 16px; }

  /* Magazine: the stage fills the screen below the header; the nav sits under it. */
  .mag-stage { min-height: 360px; touch-action: pan-y; }
  .page { overscroll-behavior: contain; }
  .mag-nav { height: 56px; padding: 0 12px; gap: 10px; }
  .mag-stage { height: calc(100svh - var(--header) - 56px); }
  .mag-nav > button { min-width: 48px; min-height: 44px; justify-content: center; }
  /* Centerfold stacks: the story keeps its height and the image takes what's left. */
  .p-centerfold { display: flex; flex-direction: column; }
  .cf-image { flex: 1 1 0; min-height: 160px; padding: 0; }
  .cf-image .art { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); max-height: none; object-fit: contain; }
  .cf-image .cardmock { position: absolute; top: 14px; bottom: 14px; left: 50%; transform: translateX(-50%); height: auto; width: auto; }
  .cf-story { flex: none; }

  /* Saved / Watchlist: filters become a row of pills; budgets & settings fold away. */
  .layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .layout > * { min-width: 0; }
  #filters { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  #filters button { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; min-height: 40px; gap: 8px; }
  #filters button.on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
  #filters button.on .muted { color: inherit; opacity: .7; }
  .side-more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 12px; }
  .side-more > summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; cursor: pointer; list-style: none; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
  .side-more > summary::-webkit-details-marker { display: none; }
  .side-more > summary::after { content: '+'; font-size: 18px; color: var(--ink); }
  .side-more[open] > summary::after { content: '−'; }
  .side-more[open] { padding-bottom: 16px; }
  .side-more h3:first-of-type { margin-top: 8px; }

  /* Messages: one pane at a time. */
  .messages { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
  .messages.has-convo .threads, .messages:not(.has-convo) .convo { display: none; }
  .messages .threads { border-bottom: 0; }
  .messages.has-convo { height: calc(100svh - var(--header)); min-height: 0; padding-bottom: 12px; grid-template-rows: minmax(0, 1fr); }
  .messages.has-convo .convo { padding: 0; min-height: 0; }
  .convo-back { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; font-size: 20px; text-decoration: none; flex: none; }
  .bubbles { max-height: none; min-height: 0; }
  .bubble { max-width: 85%; }
  .thread { min-height: 56px; }

  /* Customize */
  .cz-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }

  /* Tour card sits above the magazine nav, full width */
  .tour-card { left: 10px; right: 10px; width: auto; bottom: 66px; }
}

@media (max-width: 560px) {
  /* Inputs at 16px so phones don't zoom in when you tap them. */
  input:where(:not([type=checkbox], [type=radio], [type=color], [type=range], [type=file])), select, textarea,
  .hsearch input, .cz-hl input, .link .manual input, .people-search input, .tagin-box input, .composer textarea { font-size: 16px; }

  /* Tap targets */
  button, .btn { min-height: 44px; }
  button.tiny, .tag-sugg button { min-height: 36px; padding: 6px 12px; }
  .gallery .rm, .me-btn { min-height: 0; }
  .close { min-width: 44px; min-height: 44px; justify-content: center; padding: 0; }
  button.linkish.adv-toggle { min-height: 44px; display: inline-flex; align-items: center; }
  .fchip { padding: 9px 12px; }
  .wrap { padding: 20px 16px 40px; }

  /* Drawers and dialogs fill the screen. */
  .dialog, .budget-dialog { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; inset: 0; overflow-y: auto; box-shadow: none; }
  .dialog-head { position: sticky; top: 0; z-index: 2; background: var(--paper); padding: 6px 8px 6px 16px; min-height: 56px; }
  .dialog form { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tabs button { padding: 0 12px; font-size: 12px; }
  .fields2, .fields { grid-template-columns: minmax(0, 1fr); }
  .fields2 > button.wide { justify-self: stretch; justify-content: center; }
  .panel { width: 100%; padding: 12px 16px calc(40px + env(safe-area-inset-bottom)); box-shadow: none; }
  .ihead { position: sticky; top: -12px; z-index: 2; background: var(--paper); padding: 12px 0 8px; margin: -12px 0 0; }
  .panel .head { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; }
  .panel .thumb { width: 72px; height: 72px; }
  .meta-list > div { grid-template-columns: 84px minmax(0, 1fr); }

  /* Magazine pages: tighter, and each one fits the screen height. */
  .mag { --pagepad: 16px; }
  .masthead { margin-top: 12px; }
  .cover-object { position: relative; left: auto; top: auto; bottom: auto; transform: none; width: 100%; flex: 1 1 0; min-height: 0; margin: 10px 0 6px; }
  .cover-object .art { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; }
  .cover-object .cardmock { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); height: 100%; width: auto; }
  .cover-lines { margin-top: 0; gap: 12px; }
  .p-cover:has(.cover-photo) .cover-lines { margin-top: auto; }
  .cover-name { font-size: clamp(34px, 11vw, 56px); margin-bottom: 8px; }
  .cover-left .pull { font-size: 17px; margin-bottom: 12px; }
  .cover-right { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
  .cover-right b { font-size: 20px; }
  .cover-right span { font-size: 14px; }
  .contents { gap: 16px; }
  .contents-head h2 { font-size: clamp(40px, 13vw, 64px); }
  .toc button { padding: 10px 0; min-height: 44px; box-sizing: border-box; grid-template-columns: 40px 1fr; font-size: 16px; }
  .letter .pull { font-size: 21px; }
  .contents-left { gap: 16px; }
  .ledger b { font-size: 18px; }
  .ledger div { padding: 8px 0; }
  .cf-story { padding: 14px 16px 34px; }
  .cf-title { font-size: clamp(28px, 9vw, 40px); }
  .cf-story .pull { font-size: 18px; margin-bottom: 10px; }
  .facts div { grid-template-columns: 96px minmax(0, 1fr); padding: 7px 0; }
  .placard { margin-top: 14px; }
  .lift .art { max-height: 30svh; }
  .lift .cardmock { height: min(30svh, 300px); }
  .p-pedestal .plinth { width: min(260px, 70%); height: 60px; }
  .arch-grid { gap: 20px 12px; }
  .arch-head h2 { font-size: 26px; }
  .hl-grid:not(.n1) { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .hl-grid:not(.n1) .lead { grid-column: span 2; grid-row: span 1; }
  .back-inner h2, .empty-issue h2 { font-size: clamp(32px, 10vw, 48px); }
  .colophon { margin-top: 24px; }
  .mag-nav .pager { gap: 10px; }

  /* Lists and grids */
  .coll-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .ctile .well { padding: 12px; }
  .cbody h3 { font-size: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .people { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .summary { margin-bottom: 16px; }
  .stat b { font-size: 20px; }
  .row-item { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; }
  .rthumb { width: 48px; height: 48px; }
  .aes-list { grid-template-columns: minmax(0, 1fr); }
  .adv { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .search-hero .wrap { padding-top: 24px; }
  .sbig { flex-wrap: wrap; }
  .sbig input { font-size: clamp(26px, 8vw, 40px); min-width: 0; }
  .people-search input { padding-left: 40px; }
  .link-row { grid-template-columns: minmax(0, 1fr) auto; }
  .bhead, .brow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

  /* Messages composer stays reachable */
  .composer textarea { min-height: 48px; }
  .composer { padding-bottom: env(safe-area-inset-bottom); }

  /* Landing / sign in / tour */
  .land-art { min-height: 420px; }
  .land-strip { gap: 10px 14px; padding: 14px 16px; }
  .auth-art { display: none; }
  .scene-panel { margin: 24px 16px; }
  .scene-art { min-height: 260px; padding: 24px; }
  .tour-card { padding: 14px 16px 16px; bottom: 62px; }
  .tour-card h3 { font-size: 18px; margin: 8px 0 6px; }
  .tour-card p { font-size: 14px; margin-bottom: 12px; }
  .toast { bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* Mobile leftovers: nav row inside the header, 44px taps, Saved hero image, Contents fits. */
@media (max-width: 900px) {
  .top { row-gap: 0; }
}
@media (max-width: 560px) {
  button.tiny, .tag-sugg button { min-height: 44px; padding: 8px 14px; }
  .fields2 label.color-chip, .color-chip { min-height: 44px; padding: 8px 12px 8px 8px; }
  #filters button { min-height: 44px; }
  .hero-shop .hero-img { max-height: 200px; padding: 16px; }
  .hero-shop .hero-img img { max-height: 168px; }
  .ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
