/* /blog/ (the magazine list) and /blog/<slug> (one article). Hand-written; base type, cards and the app
   band come from /cocktails/cocktails.css, the header and footer from /site.css. */
.sc { font: 600 11px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.sc.acc { color: var(--accent); }

/* photo frames: every frame has a fixed shape and the photo fills it without stretching.
   Cocktail photos are square with the drink in the middle; wide and tall photos keep their centre. */
.ph { margin: 0; overflow: hidden; border-radius: 22px; background: var(--paper-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.ph.contain img, .j-hero.contain img { object-fit: contain; padding: 4%; } /* plain-backdrop studio shots: show the whole object */

/* ---------- the list ---------- */
.j-head { text-align: center; padding-top: 30px; padding-bottom: 34px; }
.j-head .crumbs { justify-content: center; }
.j-head h1 { font-size: clamp(44px, 6.4vw, 86px); line-height: .98; max-width: 17ch; margin: 14px auto 18px; }
.j-head .lead { max-width: 60ch; margin: 0 auto; font: 300 22px/1.5 var(--serif); color: var(--ink-soft); }
.j-head .m { margin: 18px 0 0; font-size: 14px; color: var(--ink-soft); }
.j-feat { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; padding: 20px 0 54px; text-decoration: none; }
.j-feat .ph { aspect-ratio: 4 / 3; border-radius: 30px; }
.j-feat h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.04; margin: 10px 0 14px; }
.j-feat p { color: var(--ink-soft); font-size: 18px; margin: 0 0 14px; }
.j-feat:hover h2 { color: var(--accent); }
.j-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 2px solid var(--ink); padding-top: 20px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { all: unset; cursor: pointer; font: 600 14px var(--sans); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.j-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 26px; padding: 30px 0 80px; }
.b-card { text-decoration: none; display: block; }
.b-card[hidden] { display: none; }
.b-card .ph { aspect-ratio: 1; }
.b-card .ph img { transition: transform .5s cubic-bezier(.2,.8,.2,1); } .b-card:hover .ph img { transform: scale(1.03); }
.b-card .sc { margin-top: 16px; }
.b-card h3 { font: 400 25px/1.15 var(--serif); margin: 8px 0 6px; } .b-card:hover h3 { color: var(--accent); }
.b-card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.b-card:focus-visible, .j-feat:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 22px; }

/* ---------- one article ---------- */
.j-hero { margin: 0 auto; }
.j-hero img { width: 100%; object-fit: cover; object-position: center; border-radius: 32px; display: block; background: var(--paper-2); }
.j-hero.wide img { aspect-ratio: 16 / 10; max-height: 640px; }
.j-hero.square { max-width: 760px; } .j-hero.square img { aspect-ratio: 1; }
.j-hero.tall { max-width: 600px; } .j-hero.tall img { aspect-ratio: 4 / 5; }
.credit { font-size: 12.5px; color: var(--ink-soft); margin: 10px 0 0; text-align: center; } .credit a { color: inherit; }
.j-grid { display: grid; grid-template-columns: 220px minmax(0, 680px) 1fr; gap: 50px; padding-top: 54px; padding-bottom: 40px; }
.j-toc { position: sticky; top: 100px; align-self: start; }
.j-toc ol { list-style: none; padding: 0; margin: 10px 0 0; counter-reset: t; }
.j-toc li { counter-increment: t; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.j-toc li::before { content: counter(t, decimal-leading-zero) "  "; color: var(--accent); font: italic 14px var(--serif); }
.j-toc a { text-decoration: none; color: var(--ink-soft); } .j-toc a:hover { color: var(--ink); }
.prose { font: 300 20px/1.7 var(--serif); }
.prose > p:first-child::first-letter { float: left; font: 400 84px/.8 var(--serif); margin: 8px 12px 0 0; color: var(--accent); }
.prose h2 { font-size: 38px; line-height: 1.1; margin: 52px 0 12px; scroll-margin-top: 90px; }
.prose h3 { font: 500 24px/1.25 var(--serif); margin: 32px 0 8px; scroll-margin-top: 90px; }
.prose strong { font-weight: 500; } .prose li { margin: 6px 0; } .prose a { color: var(--accent); }
.prose code { font: 16px ui-monospace, Menlo, monospace; background: var(--paper-2); padding: 1px 6px; border-radius: 6px; }
.tbl { overflow-x: auto; margin: 20px 0; }
.prose table { width: 100%; border-collapse: collapse; font: 15.5px/1.5 var(--sans); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.app-cta { margin-top: 54px; padding: 28px; border-radius: 24px; background: var(--ink); color: var(--paper); }
.app-cta .sc { color: var(--amber); } .app-cta p { font: 400 23px/1.35 var(--serif); margin: 8px 0 16px; }
.app-cta .btn { background: var(--paper); color: var(--ink) !important; }
.j-more { padding-bottom: 40px; } .j-more .j-cards { padding: 0 0 40px; }

@media (max-width: 1100px) { .j-grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; gap: 30px; } .j-toc { position: static; } }
@media (max-width: 900px) { .j-feat { grid-template-columns: 1fr; gap: 24px; } .j-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .j-cards { grid-template-columns: 1fr; }
  .prose { font-size: 18.5px; } .prose h2 { font-size: 31px; }
  .j-hero img, .j-feat .ph { border-radius: 22px; }
}
