:root {
    --black: #000000;
    --ink: #0b0e0e;
    --panel: #111515;
    --white: #ffffff;
    --teal: #00a8a8;
    --teal-deep: #008080;
    --wine: #e63946;
    --line: rgba(255, 255, 255, 0.12);
    --muted: rgba(255, 255, 255, 0.72);
    --faint: rgba(255, 255, 255, 0.5);
    --radius: 18px;
    --header-h: 84px;
    --measure: 720px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
::selection { background: var(--teal); color: var(--black); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.mono {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
}

/* ---------- Header (same as winescanner.ai) ---------- */
header.site {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    background: var(--white);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 clamp(16px, 4vw, 40px);
    z-index: 20;
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
    color: var(--ink);
}
header.site .logo { height: 56px; width: 56px; }
header.site .brand {
    font-size: 21px;
    font-weight: 800;
    color: var(--teal-deep);
    margin: 0;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-decoration: none;
}
header.site .brand small {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #555;
    margin-top: 2px;
}
header.site .spacer { flex: 1; }
header.site nav.top { display: flex; gap: 22px; margin-right: 10px; }
header.site nav.top a {
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
header.site nav.top a:hover,
header.site nav.top a[aria-current] { color: var(--teal-deep); border-bottom-color: var(--teal); }
.store-badge img { height: 42px; width: auto; transition: transform 0.25s ease; }
.store-badge:hover img, .store-badge:focus-visible img { transform: translateY(-2px); }
@media (max-width: 900px) { header.site nav.top { display: none; } }
@media (max-width: 560px) {
    header.site .store-badge.google { display: none; }
    header.site .brand { font-size: 18px; }
}

/* ---------- Layout ---------- */
main { flex: 1; padding-top: var(--header-h); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* ---------- Journal hero ---------- */
.journal-hero {
    padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 48px);
    text-align: center;
}
.journal-hero h1 {
    font-size: clamp(34px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin: 14px 0 0;
}
.journal-hero h1 em { font-style: normal; color: var(--teal); }
.journal-hero p {
    max-width: 560px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: clamp(15px, 1.8vw, 18px);
}
.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.chips a {
    text-decoration: none;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    transition: border-color .2s, color .2s, background .2s;
}
.chips a:hover, .chips a[aria-current] { border-color: var(--teal); color: var(--teal); background: rgba(0,168,168,0.08); }

/* ---------- Cards ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: clamp(16px, 2.4vw, 28px);
    padding: 8px 0 72px;
}
.card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.55);
    transition: transform .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0,168,168,0.55); }
.card .pic { aspect-ratio: 16 / 10; background: #1a1f1f; overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .pic img { transform: scale(1.04); }
.card .pic.empty { display: grid; place-items: center; }
.card .pic.empty span { font-family: 'Roboto Mono', monospace; color: var(--teal); letter-spacing: .2em; font-size: 12px; }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { margin: 0; font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.card .go { margin-top: 6px; font-family: 'Roboto Mono', monospace; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.card.feature { grid-column: 1 / -1; }
@media (min-width: 760px) {
    .card.feature { flex-direction: row; min-height: 380px; }
    .card.feature .pic { flex: 0 0 58%; aspect-ratio: auto; }
    .card.feature .body { justify-content: center; padding: 36px 40px; }
    .card.feature h3 { font-size: clamp(26px, 3vw, 38px); }
    .card.feature p { font-size: 17px; flex: 0; }
}

/* ---------- Article ---------- */
.article-head { max-width: 860px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0 28px; text-align: center; }
.article-head h1 {
    font-size: clamp(30px, 4.6vw, 52px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin: 14px 0 0;
}
.article-head .meta { margin-top: 18px; color: var(--faint); font-size: 14px; }
.article-head .meta a { color: var(--muted); text-decoration: none; }
.article-head .meta a:hover { color: var(--teal); }
.hero-pic {
    max-width: 1000px;
    margin: 0 auto 8px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.hero-pic img { width: 100%; max-height: 560px; object-fit: cover; }
.prose { max-width: var(--measure); margin: 0 auto; padding: 36px 0 24px; font-size: 18px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.015em; margin-top: 2em; font-weight: 800; }
.prose h3 { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.2; margin-top: 1.8em; font-weight: 700; }
.prose h4 { font-size: 18px; margin-top: 1.6em; color: var(--teal); font-weight: 700; }
.prose p { margin: 1.1em 0 0; }
.prose a { color: var(--teal); text-decoration-color: rgba(0,168,168,0.45); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--teal); }
.prose strong { color: var(--white); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .5em 0; }
.prose li::marker { color: var(--teal); }
.prose blockquote {
    margin: 1.6em 0;
    padding: 18px 24px;
    border-left: 3px solid var(--teal);
    background: rgba(0,168,168,0.07);
    border-radius: 0 12px 12px 0;
    color: var(--muted);
}
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose img { border-radius: 12px; margin: 0 auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 14px; color: var(--faint); margin-top: 10px; text-align: center; }
.prose .wp-block-video video, .prose video { width: 100%; border-radius: 12px; background: #000; max-height: 70vh; }
.prose .wp-block-video div[style*="padding-bottom"] { border-radius: 12px; overflow: hidden; }
.prose .has-small-font-size { font-size: 15px; color: var(--muted); }
.prose .has-text-align-center { text-align: center; }
.prose .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-family: 'Roboto Mono', monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); background: rgba(255,255,255,0.03); }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(odd) td { background: rgba(255,255,255,0.02); }
.prose mark { background: transparent; font-weight: 700; }
.prose .wp-element-caption { font-size: 14px; color: var(--faint); }

.video-note {
    margin: 1.6em 0;
    padding: 18px 22px;
    border: 1px dashed rgba(0,168,168,0.5);
    border-radius: 12px;
    background: rgba(0,168,168,0.06);
}
.video-note p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.hero-pic img[src$=".svg"] { max-height: none; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- CTA band (same as main site) ---------- */
.cta-band {
    text-align: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(0, 128, 128, 0.08);
    padding: clamp(44px, 7vw, 80px) 20px;
    margin-top: 48px;
}
.cta-band h2 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 800; margin: 12px 0 10px; letter-spacing: -0.02em; }
.cta-band p { color: var(--muted); margin: 0 auto 26px; max-width: 520px; }
.badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.badges img { height: 48px; }

/* ---------- More ---------- */
.more { padding: 56px 0 24px; }
.more h2 { font-size: 24px; margin: 8px 0 22px; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- Footer (same as main site) ---------- */
footer.site { padding: 56px 20px 36px; text-align: center; background: var(--black); border-top: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.footer-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: color .2s, border-color .2s;
}
.footer-links a:hover { color: var(--teal); border-color: var(--teal); }
footer.site .legal { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
footer.site .legal a { color: var(--faint); font-size: 13px; text-decoration: none; }
footer.site .legal a:hover { color: var(--white); }
footer.site .copy { margin-top: 18px; color: var(--faint); font-size: 12px; font-family: 'Roboto Mono', monospace; letter-spacing: .08em; }

/* ---------- Pages ---------- */
.page-head { max-width: 860px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0 8px; text-align: center; }
.page-head h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 0; }
.notfound { text-align: center; padding: 120px 20px 80px; }
.notfound h1 { font-size: clamp(40px, 8vw, 96px); margin: 10px 0; font-weight: 800; letter-spacing: -0.03em; }
.notfound p { color: var(--muted); }
.notfound a.btn { display: inline-block; margin-top: 24px; padding: 12px 22px; border-radius: 999px; background: var(--teal); color: var(--black); font-weight: 700; text-decoration: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); animation: in .7s ease forwards; }
.grid .reveal:nth-child(2) { animation-delay: .08s }
.grid .reveal:nth-child(3) { animation-delay: .16s }
.grid .reveal:nth-child(4) { animation-delay: .24s }
.grid .reveal:nth-child(n+5) { animation-delay: .3s }
@keyframes in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .reveal { animation: none; opacity: 1; transform: none; }
    .card, .card .pic img { transition: none; }
}
