/* TasteTwins blog — same tokens as the homepage (dark brand, single theme) */
:root {
  --bg: #0a0c0f;
  --bg2: #0f1318;
  --bg3: #151b22;
  --ink: #0b0e12;
  --teal: #1da0c3;
  --teal-bright: #25d4ff;
  --teal-dim: #0e5f78;
  --gold: #e8d44d;
  --gold-2: #c8a832;
  --text: #e8edf2;
  --soft: #a7b3c1;
  --muted: #6b7a8d;
  --line: #1c232c;
  --border: rgba(29, 160, 195, 0.2);
  --font-display: 'Syne', 'Arial Black', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, Menlo, monospace;
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: var(--bg); color: var(--text); font-family: var(--font-display); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-style: normal; color: var(--teal-bright); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.kicker { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-bright); }

/* Background grid + glow */
.gridbg { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(29,160,195,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(29,160,195,.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 20%, transparent 100%); }
.glow { position: absolute; left: 50%; top: 0; width: 1000px; height: 700px; transform: translate(-50%, -45%); background: radial-gradient(circle, rgba(37,212,255,.13), transparent 62%); pointer-events: none; }

/* Nav */
nav.site { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding-top: env(safe-area-inset-top, 0px);
  background: rgba(10,12,15,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; text-decoration: none; color: var(--text); }
.logo .tw { color: var(--teal-bright); font-weight: 600; }
.nav-links { display: flex; gap: 1.7rem; list-style: none; align-items: center; }
.nav-links a { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--teal-bright); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1rem; text-decoration: none; border-radius: 10px; padding: 1rem 1.5rem; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-bright); color: var(--bg); box-shadow: 0 0 36px rgba(37,212,255,.45); transform: translateY(-2px); }
.btn-ghost { color: var(--text); border: 1.5px solid #2a333e; }
.btn-ghost:hover { border-color: var(--teal-bright); color: var(--teal-bright); transform: translateY(-2px); }
.nav-links .btn { padding: .6rem 1.1rem; font-size: .88rem; border-radius: 8px; font-family: var(--font-display); letter-spacing: 0; text-transform: none; color: #fff; }
.nav-links .btn:hover { color: var(--bg); }

/* ── Blog index ── */
.blog-hero { position: relative; padding: 150px 0 60px; overflow: hidden; }
.blog-hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 800; letter-spacing: -.045em; line-height: .98; margin: 1rem 0 1.2rem; text-wrap: balance; }
.blog-hero p { color: var(--soft); font-size: 1.15rem; max-width: 560px; line-height: 1.65; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; padding-bottom: 110px; }
.post-grid .card:not(.featured) h2 { font-size: 1.3rem; }
.card { position: relative; display: flex; flex-direction: column; gap: .9rem; text-decoration: none; background: var(--bg2); border: 1.5px solid var(--line); border-radius: 18px; padding: 2rem; transition: border-color .25s, transform .25s, background .25s; min-width: 0; }
.card:hover { border-color: var(--border); background: #111820; transform: translateY(-3px); }
.card.featured { grid-column: 1 / -1; padding: 2.6rem; background: linear-gradient(160deg, rgba(37,212,255,.07), var(--bg2) 55%); border-color: rgba(37,212,255,.3); }
.card h2 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
.card.featured h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); max-width: 22ch; }
.card p { color: var(--soft); font-size: 1rem; line-height: 1.6; }
.card .meta { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); margin-top: auto; padding-top: .4rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.card .read { font-family: var(--font-mono); font-size: .78rem; color: var(--teal-bright); letter-spacing: .04em; }

/* ── Article ── */
.post-head { position: relative; padding: 140px 0 40px; overflow: hidden; }
.post-head .inner { max-width: 760px; margin: 0 auto; position: relative; }
.crumbs { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); letter-spacing: .04em; margin-bottom: 1.6rem; }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--teal-bright); }
.post-head h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; margin: .9rem 0 1.2rem; text-wrap: balance; }
.dek { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--soft); line-height: 1.6; max-width: 680px; }
.byline { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-family: var(--font-mono); font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
.byline b { color: var(--text); font-weight: 400; }

.article { max-width: 760px; margin: 0 auto; padding-bottom: 40px; }
.article > * + * { margin-top: 1.25rem; }
.article p, .article li { font-size: 1.1rem; line-height: 1.8; color: #c9d2dc; }
.article strong { color: var(--text); }
.article a { color: var(--teal-bright); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article a:hover { text-decoration-thickness: 2px; }
.article h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 3.2rem; text-wrap: balance; }
.article h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.015em; margin-top: 2.2rem; }
.article h2 + p, .article h3 + p { margin-top: .9rem; }
.article ul, .article ol { padding-left: 1.3rem; display: grid; gap: .5rem; }
.article ul li::marker { color: var(--teal-bright); }
.article code { font-family: var(--font-mono); font-size: .88em; background: var(--bg3); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; color: var(--text); word-break: break-word; }

.answer { border: 1.5px solid rgba(37,212,255,.35); background: linear-gradient(160deg, rgba(37,212,255,.08), rgba(37,212,255,.02)); border-radius: 16px; padding: 1.5rem 1.6rem; }
.answer-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-bright); margin-bottom: .6rem; }
.answer p { color: var(--text); font-size: 1.12rem; }

.toc { border: 1px solid var(--line); background: var(--bg2); border-radius: 16px; padding: 1.4rem 1.6rem; }
.toc-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.toc ol { padding-left: 1.2rem; gap: .3rem; }
.toc li { font-size: 1rem; line-height: 1.5; }
.toc li::marker { font-family: var(--font-mono); color: var(--muted); font-size: .85em; }
.toc a { color: var(--soft); text-decoration: none; }
.toc a:hover { color: var(--teal-bright); }

.note { border-left: 3px solid var(--gold); background: rgba(232,212,77,.06); border-radius: 0 12px 12px 0; padding: 1.1rem 1.3rem; font-size: 1.02rem; line-height: 1.7; color: #d7dde4; }
.note strong { color: var(--gold); }

.shot { margin-top: 2rem !important; margin-bottom: .5rem; }
.shot img { width: 112%; max-width: none; margin-left: -6%; }
.shot figcaption { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); text-align: center; margin-top: .2rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: .92rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--bg2); font-weight: 400; }
td { color: var(--soft); }
tr:last-child td { border-bottom: 0; }
tr.next td { color: var(--text); background: rgba(37,212,255,.07); }
tr.next td:last-child { color: var(--teal-bright); font-weight: 700; }

.faq { display: grid; gap: .7rem; }
.faq details { border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg2); }
.faq details[open] { border-color: var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); color: var(--teal-bright); font-size: 1.2rem; flex: none; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 1.3rem 1.2rem; font-size: 1.02rem; }

/* End-of-post TasteTwins card */
.tt-card { position: relative; overflow: hidden; max-width: 960px; margin: 3.5rem auto 0; border: 1.5px solid rgba(37,212,255,.35); border-radius: 22px; background: linear-gradient(160deg, rgba(37,212,255,.1), var(--bg2) 60%); display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center; padding: 2.4rem; }
.tt-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin: .7rem 0 .9rem; text-wrap: balance; }
.tt-card p { color: var(--soft); font-size: 1.02rem; line-height: 1.65; }
.tt-points { list-style: none; display: grid; gap: .45rem; margin: 1.1rem 0 1.5rem; }
.tt-points li { font-family: var(--font-mono); font-size: .82rem; color: var(--soft); display: flex; gap: .6rem; }
.tt-points li::before { content: '→'; color: var(--teal-bright); }
.tt-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.tt-video { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #000; aspect-ratio: 16 / 9; max-width: 100%; }
.tt-video video { width: 100%; height: 100%; object-fit: cover; }

.related { padding: 90px 0 110px; }
.related h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; margin: .6rem 0 2rem; }
.related .post-grid { grid-template-columns: repeat(3, 1fr); padding-bottom: 0; }
.related .card h2 { font-size: 1.25rem; }
.related .card { padding: 1.6rem; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2.2rem 0; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.6rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--teal-bright); }
.footer-copy { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }

a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card, .btn { transition: none; } }

@media (max-width: 960px) {
  .nav-links li.hide-md { display: none; }
  .tt-card { grid-template-columns: 1fr; }
  .post-grid, .related .post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav-links li:not(:last-child) { display: none; }
  .nav-links .btn { padding: .5rem .8rem; font-size: .8rem; }
  .logo { font-size: 1.15rem; }
  .post-grid, .related .post-grid { grid-template-columns: 1fr; }
  .card, .card.featured { padding: 1.6rem; }
  .blog-hero { padding-top: 120px; }
  .post-head { padding-top: 112px; }
  .article p, .article li { font-size: 1.04rem; }
  .tt-card { padding: 1.6rem; border-radius: 18px; }
  .shot img { width: 100%; margin-left: 0; }
  .foot { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
