/* Ground Glass — shared styles for Journal, Sell, and Listings pages */
:root {
  --bg: #0a0a0a; --bg-card: #111111; --bg-card-hover: #161616; --surface: #1a1a1a;
  --border: #222222; --border-light: #333333;
  --text: #e8e8e8; --text-dim: #888888; --text-muted: #555555;
  --accent: #ffffff;
  --mono: 'IBM Plex Mono', 'SF Mono', Menlo, 'JetBrains Mono', Consolas, monospace;
  --sans: 'IBM Plex Mono', 'SF Mono', Menlo, 'JetBrains Mono', Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border-light); transition: border-color .2s, color .2s; }
a:hover { border-color: var(--accent); color: var(--accent); }

/* Header */
header { padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; background: rgba(10,10,10,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.logo-mark { display: flex; align-items: center; gap: 10px; border: 0; }
.logo-icon { width: 32px; height: 32px; flex-shrink: 0; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { font-family: var(--mono); font-size: 16px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--text); }
.header-nav { display: flex; gap: 22px; }
.header-nav a { font-family: var(--mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--text-dim); border: 0; }
.header-nav a:hover, .header-nav a.active { color: var(--accent); }

/* Layout */
.page { max-width: 800px; margin: 0 auto; padding: 56px 24px 80px; }
.page-wide { max-width: 1100px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 14px; }
h1 { font-family: var(--mono); font-size: clamp(26px, 4vw, 40px); font-weight: 600; letter-spacing: .04em; line-height: 1.2; margin: 0 0 12px; }
.lede { font-size: 17px; line-height: 1.65; color: var(--text-dim); margin: 0 0 36px; }
.meta { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.meta span + span::before { content: "·"; margin: 0 10px; }
article h2 { font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin: 44px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
article p { margin: 0 0 20px; color: #d0d0d0; font-size: 14.5px; }
article blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--border-light); color: var(--text-dim); font-style: italic; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); margin: 28px 0 36px; }
.specs div { background: var(--bg-card); padding: 14px; }
.specs dt { font-family: var(--mono); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.specs dd { margin: 0; font-size: 14px; color: var(--text); }
.cta { margin-top: 56px; padding: 28px; background: var(--bg-card); border: 1px solid var(--border); }
.cta p { margin: 0 0 14px; color: var(--text-dim); font-size: 14px; }
.btn { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; padding: 12px 22px; border: 1px solid var(--border-light); background: transparent; color: var(--text); cursor: pointer; transition: all .2s; }
.btn:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { background: var(--accent); color: var(--bg); }

/* Viewfinder-framed hero */
.vf-frame { margin: 0 0 36px; }
.vf-img { position: relative; background: #000; border: 1px solid var(--border); overflow: hidden; }
.vf-img img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; filter: saturate(.92) contrast(1.04); }
.vf-img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.vf-corner { position: absolute; width: 22px; height: 22px; border: 1.5px solid rgba(255,255,255,.75); }
.vf-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.vf-corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.vf-corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.vf-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.vf-readout { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 18px; align-items: center; padding: 10px 46px; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: rgba(255,255,255,.85); background: linear-gradient(transparent, rgba(0,0,0,.75)); text-shadow: 0 1px 2px #000; }
.vf-readout span:first-child { color: #ff3b30; }
.vf-readout span:first-child::before { content: "●"; margin-right: 6px; animation: blink 1.6s steps(1) infinite; }
.vf-readout .vf-kind { margin-left: auto; color: rgba(255,255,255,.55); }
@keyframes blink { 50% { opacity: 0; } }
.vf-frame figcaption { margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; line-height: 1.6; color: var(--text-dim); }
.vf-frame .credit { color: var(--text-muted); }
.vf-frame .credit a { color: var(--text-muted); border-bottom-color: var(--border); }

/* Inline figures woven into the article */
.inline-fig { margin: 36px 0 40px; }
.inline-fig .vf-img img { max-height: 460px; }
.inline-fig .vf-corner { width: 16px; height: 16px; border-width: 1px; }
.inline-fig figcaption { margin-top: 9px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; line-height: 1.6; color: var(--text-dim); }
.inline-fig .credit { color: var(--text-muted); }
.inline-fig .credit a { color: var(--text-muted); border-bottom-color: var(--border); }

/* Data sheet */
.datasheet { margin: 0 0 44px; border: 1px solid var(--border-light); background: var(--bg-card); }
.ds-head { display: flex; justify-content: space-between; padding: 10px 16px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border-light); }
.ds-head span:last-child { color: var(--text-dim); }
.datasheet dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.datasheet .ds-row { background: var(--bg-card); padding: 12px 16px; }
.datasheet dt { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 5px; }
.datasheet dd { margin: 0; font-size: 14px; color: var(--text); line-height: 1.5; }
@media (max-width: 560px) { .datasheet dl { grid-template-columns: 1fr; } .vf-readout { padding: 8px 40px; gap: 10px; font-size: 9px; } }

/* Numbered sections */
.journal-body { counter-reset: sec; }
.journal-body h2 { counter-increment: sec; display: flex; align-items: baseline; gap: 14px; }
.journal-body h2::before { content: counter(sec, decimal-leading-zero); font-size: 11px; letter-spacing: .1em; padding: 2px 6px; border: 1px solid currentColor; border-radius: 2px; }
/* ColorChecker palette, same swatches as the footer strip */
.journal-body h2:nth-of-type(1)::before { color: #e87d1e; }
.journal-body h2:nth-of-type(2)::before { color: #43b89c; }
.journal-body h2:nth-of-type(3)::before { color: #4e6eb0; }
.journal-body h2:nth-of-type(4)::before { color: #d99e23; }
.journal-body h2:nth-of-type(5)::before { color: #c94060; }
.journal-body h2:nth-of-type(6)::before { color: #a4c938; }
.journal-body h2:nth-of-type(7)::before { color: #7e6ca8; }
.journal-body h2:nth-of-type(8)::before { color: #c29682; }
.journal-body p:first-of-type::first-letter { font-family: var(--mono); font-size: 2.6em; line-height: .9; float: left; padding: 6px 10px 0 0; color: var(--text); }

/* Post grid — cards like the dealer grid on the homepage */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; background: none; border: 0; }
.post-item { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); padding: 0; transition: border-color .2s, background .2s; }
.post-item:hover { background: var(--bg-card-hover); border-color: var(--border-light); }
.post-item .thumb { display: block; position: relative; aspect-ratio: 16/10; background: #000; overflow: hidden; border-bottom: 1px solid var(--border); }
.post-item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9); transition: transform .4s; }
.post-item:hover .thumb img { transform: scale(1.04); }
.post-item .thumb::before, .post-item .thumb::after { content: ""; position: absolute; width: 12px; height: 12px; border: 1px solid rgba(255,255,255,.7); }
.post-item .thumb::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.post-item .thumb::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.post-item > span:last-child { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; min-width: 0; }
.post-item .era { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
.post-item h2 { font-family: var(--mono); font-size: 14px; font-weight: 600; margin: 8px 0 8px; letter-spacing: .02em; line-height: 1.4; }
.post-item p { margin: 0; font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }
.post-item .read { display: inline-block; margin-top: auto; padding-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--text-muted); }
.post-item:hover .read { color: var(--accent); }
@media (max-width: 900px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .post-list { grid-template-columns: 1fr; } }

/* Forms */
form.gg-form { margin-top: 36px; display: grid; gap: 18px; }
.field label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-family: var(--sans); font-size: 15px; outline: none; transition: border-color .2s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--border-light); }
.field textarea { min-height: 140px; resize: vertical; }
.field small { display: block; margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.notice { font-size: 13px; color: var(--text-muted); line-height: 1.6; padding: 16px 18px; border: 1px solid var(--border); background: var(--bg-card); }
.hidden { display: none; }

/* Listings */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 36px; }
.listing { background: var(--bg-card); border: 1px solid var(--border); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s; }
.listing:hover { border-color: var(--border-light); }
.listing .cat { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
.listing h3 { margin: 0; font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.listing .price { font-family: var(--mono); font-size: 18px; font-weight: 600; color: var(--text); }
.listing p { margin: 0; font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }
.listing .foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.listing .foot a { border: 0; color: var(--text-dim); }
.listing .foot a:hover { color: var(--accent); }
.empty { margin-top: 36px; padding: 40px; text-align: center; border: 1px dashed var(--border-light); color: var(--text-muted); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; }

/* Ads */
.ad-zone { max-width: 760px; margin: 48px auto 0; padding: 0 24px; }
.ad-zone-inner { border: 1px dashed var(--border); padding: 28px; text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--text-muted); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 24px; margin-top: 60px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { font-family: var(--mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--text-muted); border: 0; }
.footer-links a:hover { color: var(--accent); }
.copyright { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--text-muted); }

@media (max-width: 640px) {
  .header-nav { gap: 14px; }
  .header-nav a { font-size: 10px; }
  .logo-text { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .page { padding: 40px 18px 60px; }
}
