/* Vinta blog — builds on /style.css (palette, type, buttons, header, footer, steps, faq). */

.post { padding-bottom: 32px; }
.post section + section { border-top: 0; }

.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { margin: 0 8px; color: var(--line); }

/* Hero: copy + the lead before/after */
.post .post-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(36px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.post-hero .wrap { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.post-hero h1 { font-size: clamp(30px, 4.6vw, 52px); }
.post-hero h1 span { color: var(--amber-ink); }
.post-hero .lead { font-size: 19px; color: var(--muted); margin-top: 20px; }
.meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.meta b { color: var(--amber-ink); font-weight: 700; }
.post-hero .cta-row { margin-top: 26px; }
.post-hero .ba { max-width: 460px; width: 100%; justify-self: center; margin: 0; }
@media (min-width: 900px) { .post-hero .wrap { grid-template-columns: 1.15fr .85fr; } }

/* Article body */
.prose { max-width: 70ch; margin-inline: auto; padding-top: clamp(40px, 6vw, 72px); }
.prose > p, .prose li { color: var(--ink-2); }
.prose p { max-width: none; }
.prose h2 { font-size: clamp(21px, 2.6vw, 28px); margin: clamp(48px, 7vw, 80px) 0 18px; }
.prose h2 + p { margin-top: 0; }
.prose h3 { color: var(--amber-ink); margin: 34px 0 10px; }
.prose ul { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--cream); font-weight: 600; }
.prose .kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }

/* Wide figures break out of the 70ch column */
.wide { width: min(1040px, 100vw - 2 * var(--gutter)); margin: 34px 0 40px; position: relative; left: 50%; transform: translateX(-50%); }

/* Before / after slider */
.ba { margin: 0; }
.ba-frame { --pos: 50%; position: relative; overflow: hidden; border-radius: 12px; background: #000; border: 1px solid var(--line); user-select: none; -webkit-user-select: none; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fbf8f1; box-shadow: 0 0 10px rgba(0,0,0,.45); pointer-events: none; }
.ba-line::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%;
  background: #fbf8f1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23151410'%3E%3Cpath d='M9 6 3 12l6 6zM15 6l6 6-6 6z'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.ba-tag { position: absolute; top: 12px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; pointer-events: none; }
.ba-tag-l { left: 12px; background: rgba(21,20,16,.78); color: #fbf8f1; }
.ba-tag-r { right: 12px; background: var(--amber); color: #1a1408; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible + .ba-focus { position: absolute; inset: 0; border: 2px solid var(--amber); border-radius: 12px; pointer-events: none; }
.ba figcaption, .sbs figcaption, .grid-figs figcaption { font-size: 15px; color: var(--muted); margin-top: 12px; line-height: 1.55; }
.ba figcaption b, .sbs figcaption b, .grid-figs figcaption b { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-ink); font-weight: 700; margin-right: 4px; }

/* Two sliders side by side on wide screens */
.pair-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .pair-grid { grid-template-columns: 1fr 1fr; } }
.solo { max-width: 520px; margin: 34px auto 40px; }

/* Side by side for framed outputs (prints, slides, strips) that can't overlay */
.sbs { margin: 0; }
.sbs .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
.sbs .cell { position: relative; }
.sbs .cell img { width: 100%; border-radius: 10px; }
.sbs .cell .ba-tag { top: 10px; }
.sbs .cell:first-child .ba-tag { left: 10px; }
.sbs .cell:last-child .ba-tag { right: 10px; }
.sbs .print { background: #e9e4da; border-radius: 10px; padding: 0; }

/* Contact-sheet grid */
.grid-figs { display: grid; gap: 26px 18px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .grid-figs { grid-template-columns: repeat(3, 1fr); } }
.grid-figs figure { margin: 0; }
.grid-figs .ph { position: relative; aspect-ratio: 4 / 5; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.grid-figs .ph img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }

/* Camera index (matches the homepage "film index") */
.cams { list-style: none; margin: 18px 0 8px; padding: 0; border-top: 1px solid var(--line); }
.cams li { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.cams h3 { margin: 0; padding-top: 3px; color: var(--amber-ink); }
.cams p { margin: 0; color: var(--ink-2); }
.cams p em { display: block; font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 560px) { .cams li { grid-template-columns: 1fr; gap: 6px; } }

/* Camera picker for the comparison page */
.swap { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.swap button {
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; cursor: pointer;
}
.swap button:hover { border-color: var(--muted); }
.swap button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #1a1408; }
.picker { display: grid; gap: 26px; align-items: start; }
.picker .ba { max-width: 520px; width: 100%; margin-inline: auto; }
.picker-note h3 { margin: 4px 0 8px; color: var(--amber-ink); }
.picker-note p { color: var(--ink-2); }
@media (min-width: 860px) { .picker { grid-template-columns: 1fr 1fr; align-items: center; } }

/* Callouts */
.callout { border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 10px; background: var(--base-2); padding: 18px 22px; margin: 28px 0; }
.callout p { margin: 0; color: var(--ink-2); }
.callout p + p { margin-top: 10px; }

/* Tables */
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.prose th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.prose td:first-child { font-family: var(--mono); font-weight: 700; color: var(--amber-ink); white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* Steps inside an article */
.prose .steps { margin: 22px 0 26px; }
@media (min-width: 700px) { .prose .steps { grid-template-columns: repeat(3, 1fr); } }

/* App CTA */
.app-cta { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; border: 1px solid var(--amber); border-radius: var(--radius); padding: 24px; margin: 56px 0 8px; background: var(--base-2); }
.app-cta img { width: 72px; height: 72px; border-radius: 16px; }
.app-cta h2 { margin: 0 0 6px; font-size: 20px; }
.app-cta p { margin: 0 0 14px; color: var(--muted); }
@media (max-width: 520px) { .app-cta { grid-template-columns: 1fr; } }

.fineprint { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 48px; }
.fineprint p { color: var(--muted); }

/* Related / index cards */
.post .related { padding: clamp(56px, 8vw, 96px) 0 24px; border-top: 1px solid var(--line); margin-top: 56px; }
.related .cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.related h2 { margin-bottom: 26px; }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); list-style: none; margin: 0; padding: 0; }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--base-2); overflow: hidden; display: flex; flex-direction: column; }
.card .thumb { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #000; }
.card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.card .thumb .before { opacity: 0; }
.card:hover .thumb .before, .card:focus-within .thumb .before { opacity: 1; }
.card .thumb .ba-tag-r { top: 12px; right: 12px; }
.card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 16px; letter-spacing: 0.06em; line-height: 1.25; }
.card h3 a { color: var(--cream); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .tagline { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-ink); }
@media (prefers-reduced-motion: reduce) { .card .thumb img { transition: none; } }

/* Blog index hero */
.blog-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.blog-hero h1 span { display: block; color: var(--amber-ink); }
.blog-hero .lead { font-size: 19px; color: var(--muted); margin-top: 20px; max-width: 60ch; }
.blog-list { padding: 0 0 clamp(56px, 8vw, 96px); }
.cards.feature { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-hero .sbs { max-width: 560px; width: 100%; justify-self: center; }
.prose ol:not(.steps) { padding-left: 24px; margin: 0 0 1.2em; }
.prose ol:not(.steps) li::marker { color: var(--amber-ink); font-family: var(--mono); font-weight: 700; }

/* Photo-lab theme tweaks (27 Oct 2026) */
.post-hero h1 span, .blog-hero h1 span { color: var(--amber-display); }
.post .post-hero { border-bottom-color: var(--line); }
.card { box-shadow: 0 1px 2px rgba(60,40,10,.06); }
.app-cta { border-width: 1.5px; }
