/* ─────────────────────────────────────────────────────────────────────────
   Ostler shared design system
   ───────────────────────────
   Tokens, resets, navigation, brand strap, buttons, section + section-head,
   footer, plus their mobile breakpoints. Page-specific styles (hero,
   product panels, scroll-jacked sections, pricing geometry, etc.) live
   inline in each page so this file stays load-bearing only for the bits
   shared across every page in the marketing site.
   ───────────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --chassis: #F8F8F4; --chassis-deep: #ECEBE5; --panel: #FFFFFF; --ink: #14120e;
  --accent: #7A1F1F; --accent-hover: #6E1717; --accent-warm: #A82A2A; --accent-warm-hover: #7A1F1F; --accent-2: #1E2C52; --accent-2-soft: rgba(30,44,82,0.10); --accent-3: #2C4A2C;
  --hairline: rgba(20,18,14,0.50); --hairline-soft: rgba(20,18,14,0.18); --hairline-faint: rgba(20,18,14,0.08);
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --max-width: 1240px;
  --shadow-card: 0 0 0 0.5px rgba(20,18,14,0.07), 0 1px 1px rgba(20,18,14,0.04), 0 2px 4px rgba(20,18,14,0.04), 0 8px 16px rgba(20,18,14,0.05), 0 24px 48px rgba(20,18,14,0.07), 0 56px 96px rgba(20,18,14,0.10);
  --shadow-card-soft: 0 0 0 0.5px rgba(20,18,14,0.05), 0 4px 12px rgba(20,18,14,0.04), 0 16px 32px rgba(20,18,14,0.06);
}
html { overflow-x: clip; }
body { font-family: var(--font-body); font-size: 17.6px; line-height: 1.5; background: var(--chassis); color: var(--ink); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
a { color: var(--accent); text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }

/* NAVIGATION  –  fixed bar, brand strap underneath, mobile burger + drawer */
.nav { position: fixed; top: 0; left: 0; right: 0; height: 64px; background: rgba(248,248,244,0.92); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hairline-faint); z-index: 1000; }
.brand-strap-row { margin-top: 64px; padding: 8px 0 36px; background: var(--chassis); }
.brand-strap-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.brand-strap { font-family: var(--font-display); font-size: 13.5px; font-weight: 500; color: var(--ink); letter-spacing: 0.20em; text-transform: uppercase; line-height: 1.3; display: inline-block; }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: inline-flex; align-items: center; text-decoration: none; }
.nav-logo-img { display: block; width: 160px; height: auto; }
.footer-logo-img { display: block; width: 160px; height: auto; }
.footer-logo-strap { font-family: var(--font-display); font-size: 12.5px; font-weight: 500; color: var(--ink); margin-top: 6px; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; padding-left: 0; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--ink); opacity: 0.75; display: inline-flex; align-items: center; gap: 4px; }
.nav-links a:hover { opacity: 1; }
.nav-ext { width: 11px; height: 11px; opacity: 0.6; }
.nav-links a.btn-pill { opacity: 1; font-weight: 600; font-size: 13.5px; letter-spacing: 0.005em; padding: 10px 22px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; gap: 0; }
.nav-links a.btn-pill:hover { background: var(--accent-hover); opacity: 1; }

/* Mobile burger + drawer  –  hidden above 900px. The drawer slides down
   from beneath the nav bar; backdrop dims the rest. Tap link or backdrop
   to close. */
.nav-burger { display: none; background: transparent; border: 0; padding: 12px; margin-right: -8px; cursor: pointer; -webkit-tap-highlight-color: transparent; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-burger-bar { display: block; width: 22px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform 220ms ease, opacity 180ms ease; transform-origin: center; }
.nav.is-open .nav-burger-bar:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav.is-open .nav-burger-bar:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.nav.is-open .nav-burger-bar:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
.nav-drawer { display: none; position: absolute; top: 64px; left: 0; right: 0; background: rgba(248,248,244,0.98); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hairline-faint); padding: 12px 20px 24px; flex-direction: column; gap: 0; }
.nav-drawer a { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; padding: 14px 4px; min-height: 48px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--hairline-faint); }
.nav-drawer a:last-of-type { border-bottom: none; margin-top: 16px; }
.nav-drawer a.btn-pill { background: var(--accent); color: #fff; border-radius: 999px; padding: 14px 22px; justify-content: center; font-weight: 600; }
.nav-drawer a.btn-pill:hover { background: var(--accent-hover); }
.nav-drawer .nav-ext { width: 12px; height: 12px; opacity: 0.6; }
.nav-backdrop { display: none; position: fixed; inset: 64px 0 0 0; background: rgba(20,18,14,0.32); z-index: 999; }
.nav.is-open .nav-drawer { display: flex; animation: navDrawerIn 220ms ease; }
.nav.is-open .nav-backdrop { display: block; animation: navFadeIn 180ms ease; }
@keyframes navDrawerIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes navFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* BUTTONS  –  pill CTA (filled + ghost) + chevron text-link */
.btn-cta { font-family: var(--font-display); font-weight: 500; font-size: 16px; padding: 14px 28px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; }
.btn-cta:hover { background: var(--accent-hover); }
.btn-cta-ghost { font-family: var(--font-display); font-weight: 500; font-size: 16px; padding: 13px 26px; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; background: transparent; }
.btn-cta-ghost:hover { background: var(--ink); color: var(--chassis); }
.tlink { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.tlink::after { content: "›"; font-size: 1.15em; line-height: 1; transform: translateY(-1px); }

/* SIGN-UP FORM  –  Buttondown embed-subscribe pattern. Two variants: the
   light one (.bd-form) sits in the footer under the brand logo, the dark
   one (.bd-form--dark) sits in the ink-coloured .cta band as the primary
   "Request early access" surface. Both forms work without JavaScript. */
.bd-form { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; max-width: 320px; width: 100%; }
.bd-form-label { font-family: var(--font-display); font-size: 10px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(20,18,14,0.5); margin-bottom: 4px; }
.bd-form input[type="email"], .bd-form input[type="text"] { font-family: var(--font-body); font-size: 14px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--hairline-soft); background: var(--panel); color: var(--ink); width: 100%; }
.bd-form input[type="email"]::placeholder, .bd-form input[type="text"]::placeholder { color: rgba(20,18,14,0.45); }
.bd-form input[type="email"]:focus, .bd-form input[type="text"]:focus { outline: none; border-color: var(--accent); }
.bd-form input[type="submit"] { font-family: var(--font-display); font-weight: 500; font-size: 14px; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: #fff; border: 0; cursor: pointer; margin-top: 4px; align-self: flex-start; }
.bd-form input[type="submit"]:hover { background: var(--accent-hover); }

.bd-form--dark { max-width: 420px; margin: 0 auto; align-items: stretch; }
.bd-form--dark .bd-form-label { color: rgba(255,255,255,0.6); }
.bd-form--dark input[type="email"], .bd-form--dark input[type="text"] { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.20); color: #fff; font-size: 16px; padding: 14px 18px; }
.bd-form--dark input[type="email"]::placeholder, .bd-form--dark input[type="text"]::placeholder { color: rgba(255,255,255,0.50); }
.bd-form--dark input[type="email"]:focus, .bd-form--dark input[type="text"]:focus { background: rgba(255,255,255,0.12); border-color: var(--accent-warm); }
.bd-form--dark input[type="submit"] { background: var(--accent-warm); font-size: 16px; padding: 14px 28px; align-self: center; min-width: 220px; }
.bd-form--dark input[type="submit"]:hover { background: var(--accent-warm-hover); }
.cta .bd-form--dark { margin-bottom: 24px; }

@media (max-width: 720px) {
  .bd-form input[type="email"], .bd-form input[type="text"], .bd-form input[type="submit"] { min-height: 44px; }
  .bd-form--dark { width: 100%; }
}

/* SECTION + SECTION HEAD  –  default page rhythm */
.section { padding: 120px 0; }
.section-head { max-width: 920px; margin: 0 auto; text-align: center; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.section-head h2 strong { color: var(--accent); font-weight: 700; }
.section-head p { font-family: var(--font-body); font-size: clamp(1.1rem, 1.5vw, 1.32rem); color: rgba(20,18,14,0.65); margin: 28px auto 0; max-width: 640px; line-height: 1.45; }

/* CTA BAND  –  ink-coloured strip used at the foot of every page above
   the footer. Page-specific overrides (button colours, mark, etc.) can
   layer on top inline. */
.cta { background: var(--ink); color: var(--chassis); padding: 220px 0; text-align: center; }
.cta h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.05; letter-spacing: -0.03em; color: var(--chassis); text-wrap: balance; max-width: 860px; margin: 0 auto; }
.cta h2 strong { font-weight: 700; color: var(--accent-warm); }
.cta p { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin: 32px 0 56px; }
.cta .tlink { color: #fff; }
.cta-actions { display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta-actions:has(.bd-form--dark) { flex-direction: column; }
.cta .btn-cta { background: var(--accent-warm); }
.cta .btn-cta:hover { background: var(--accent-warm-hover); }

/* FOOTER  –  4-column desktop, 2-col tablet, 1-col phone */
.footer { padding: 100px 0 48px; border-top: 1px solid var(--hairline-faint); background: var(--chassis); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; padding-bottom: 64px; }
.footer-brand { display: flex; flex-direction: column; max-width: 320px; }
.footer-brand .footer-logo-img { width: 140px; }
.footer-brand .footer-logo-strap { margin-top: 14px; }
.footer-tagline { font-family: var(--font-body); font-size: 13px; color: rgba(20,18,14,0.6); line-height: 1.5; margin-top: auto; }
.footer-tagline-strap { color: var(--ink); margin-top: 4px; }
.footer-col-h { font-family: var(--font-display); font-size: 10px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(20,18,14,0.5); padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--hairline-soft); }
.footer-col a { display: block; font-family: var(--font-body); font-size: 13.5px; color: rgba(20,18,14,0.72); padding: 5px 0; line-height: 1.4; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom p a { color: inherit; text-decoration: none; }
.footer-bottom p a:hover { color: var(--ink); }
.footer-bottom { padding-top: 28px; border-top: 1px solid var(--hairline-soft); display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-bottom-l { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom p.footer-built { font-family: var(--font-body); font-size: 13px; color: rgba(20,18,14,0.62); letter-spacing: 0; text-transform: none; line-height: 1.4; }
.footer-bottom p.footer-built a { color: var(--ink); text-decoration: none; }
.footer-bottom p.footer-built a:hover { color: var(--accent); }
.footer-bottom p { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(20,18,14,0.55); }
.footer-socials { display: flex; align-items: center; gap: 22px; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; color: rgba(20,18,14,0.6); transition: color 120ms; }
.footer-socials a:hover { color: var(--accent); }
.footer-socials svg { display: block; }

/* ─────────────────────────────────────────────────────────────────────────
   Tablet portrait + below  –  900px
   Burger swaps in for nav links, footer collapses to 2-col, big section
   paddings deflate to something humane.
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-inner { gap: 0; }
  .nav-links { display: flex; gap: 0; align-items: center; margin-left: auto; }
  .nav-links a:not(.btn-pill) { display: none; }
  .nav-burger { display: inline-flex; margin-left: 0; margin-right: -8px; padding: 12px 8px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .brand-strap { padding-left: 0; }
  .section { padding: 120px 0; }
  .cta { padding: 120px 0; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Phone  –  ≤720px
   Tighter container padding, smaller logo + pill, footer to 1-col with
   reduced side margins (per design call to keep "Built in HK" on one
   line at iPhone width), 44pt minimum touch targets on every tappable.
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .container { padding: 0 20px; }

  /* Nav + brand strap */
  .nav-inner { padding: 0 20px; }
  .nav-logo-img { width: 132px; }
  .nav-links a.btn-pill { padding: 9px 18px; font-size: 12.5px; }
  .brand-strap-row { padding: 8px 0 24px; }
  .brand-strap-inner { padding: 0 20px; }
  .brand-strap { font-size: 11.5px; letter-spacing: 0.18em; line-height: 1.45; }

  /* Section paddings  –  desktop's 200-240px is absurd on phone */
  .section { padding: 80px 0; }
  .cta { padding: 80px 20px; }
  .cta p { margin: 24px 0 32px; }

  /* Section heads sit close to top edges; give them breathing room */
  .section-head { padding: 0 20px; }

  /* Footer */
  .footer { padding: 64px 0 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; padding: 0 5px 40px; }
  .footer-bottom { padding: 24px 5px 0; flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-bottom p.footer-built { font-size: 12.5px; }
  .footer-socials { gap: 18px; }

  /* Touch targets  –  44pt minimum for tappable links */
  .tlink { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-col a { padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
  .footer-socials a { min-width: 44px; min-height: 44px; padding: 8px; }
  .nav-links a.btn-pill { min-height: 40px; display: inline-flex; align-items: center; }
  .btn-cta, .btn-cta-ghost { padding: 12px 22px; font-size: 14.5px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Reading-column centring  –  prose pages were left-aligned inside the
   1240px container; centring puts equal whitespace either side and fixes
   the "left-heavy" feel that Andy flagged across the long-form pages.
   ───────────────────────────────────────────────────────────────────── */
.prose, .w-content, .s-content { margin-left: auto; margin-right: auto; }

/* ─────────────────────────────────────────────────────────────────────────
   Icon tile  –  pairs an inline SVG with an oxblood / forest / navy
   tinted square so feature cards have visual weight without needing
   bespoke artwork per page.
   ───────────────────────────────────────────────────────────────────── */
.icon-tile { width: 48px; height: 48px; border-radius: 10px; background: rgba(122,31,31,0.06); border: 1px solid rgba(122,31,31,0.18); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-tile svg { display: block; width: 24px; height: 24px; }
.icon-tile--green { background: rgba(44,74,44,0.06); border-color: rgba(44,74,44,0.20); color: var(--accent-3); }
.icon-tile--blue { background: rgba(30,44,82,0.06); border-color: rgba(30,44,82,0.20); color: var(--accent-2); }
.icon-tile--lg { width: 56px; height: 56px; border-radius: 12px; }
.icon-tile--lg svg { width: 28px; height: 28px; }

/* ─────────────────────────────────────────────────────────────────────────
   Article + blog index  –  long-form post body and blog landing page.
   Article body has a "lead" first paragraph (larger + darker), oxblood
   blockquotes, an inline-cited link style, and a bottom CTA card. The
   blog index uses post cards with topic lozenges and high-contrast
   meta lines (the old design lost the author/date in low-contrast grey).
   ───────────────────────────────────────────────────────────────────── */
.article { max-width: 720px; margin: 0 auto; }
.article-hero { padding: 96px 0 32px; }
.article-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; letter-spacing: -0.025em; color: var(--ink); margin: 16px 0 18px; max-width: 760px; text-wrap: balance; }
.article-meta { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; color: rgba(20,18,14,0.65); margin: 0 0 8px; }
.article-meta strong { color: var(--ink); font-weight: 500; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.article-tag { font-family: var(--font-display); font-size: 10px; font-weight: 500; letter-spacing: 0.20em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: var(--accent); border: 1px solid rgba(122,31,31,0.30); background: rgba(122,31,31,0.04); }
.article-tag--green { color: var(--accent-3); border-color: rgba(44,74,44,0.30); background: rgba(44,74,44,0.06); }
.article-tag--blue { color: var(--accent-2); border-color: rgba(30,44,82,0.30); background: rgba(30,44,82,0.06); }

.article-body { font-family: var(--font-body); font-size: 16.5px; line-height: 1.75; color: rgba(20,18,14,0.82); }
.article-body > p:first-of-type, .article-body .lead { font-size: 1.18rem; line-height: 1.65; color: var(--ink); font-weight: 400; }
.article-body h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); margin: 56px 0 18px; text-wrap: balance; }
.article-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--ink); margin: 32px 0 10px; }
.article-body p { margin-bottom: 18px; }
.article-body p strong, .article-body li strong { color: var(--ink); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(122,31,31,0.30); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--accent); }
.article-body ul, .article-body ol { margin: 14px 0 22px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote { border-left: 3px solid var(--accent); padding: 6px 0 6px 22px; margin: 28px 0; font-family: var(--font-body); font-style: italic; font-size: 1.18rem; color: var(--ink); line-height: 1.5; }
.article-body code { font-family: var(--font-mono); font-size: 0.86em; background: rgba(20,18,14,0.05); padding: 2px 6px; border-radius: 3px; color: var(--ink); }
.article-cta { background: var(--panel); border: 1px solid var(--hairline-faint); border-radius: 12px; padding: 32px; margin: 56px 0 32px; text-align: center; box-shadow: var(--shadow-card-soft); }
.article-cta h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--ink); margin-bottom: 8px; }
.article-cta p { font-family: var(--font-body); font-size: 14.5px; color: rgba(20,18,14,0.7); margin-bottom: 20px; }

.post-list { display: flex; flex-direction: column; gap: 8px; max-width: 760px; margin: 0 auto; }
.post-card { display: block; padding: 32px 0; border-bottom: 1px solid var(--hairline-faint); text-decoration: none; color: inherit; transition: transform 160ms ease; }
.post-card:first-child { padding-top: 0; }
.post-card:last-child { border-bottom: none; }
.post-card:hover { transform: translateX(4px); }
.post-card:hover h2 { color: var(--accent); }
.post-card h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 12px; transition: color 160ms ease; text-wrap: balance; }
.post-meta { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; color: rgba(20,18,14,0.65); margin-bottom: 14px; }
.post-meta strong { color: var(--ink); font-weight: 500; }
.post-excerpt { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: rgba(20,18,14,0.78); margin-bottom: 14px; max-width: 680px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tag { font-family: var(--font-display); font-size: 10px; font-weight: 500; letter-spacing: 0.20em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: var(--accent); background: rgba(122,31,31,0.06); border: 1px solid rgba(122,31,31,0.20); }
.post-tag--green { color: var(--accent-3); background: rgba(44,74,44,0.06); border-color: rgba(44,74,44,0.22); }
.post-tag--blue  { color: var(--accent-2); background: rgba(30,44,82,0.06); border-color: rgba(30,44,82,0.22); }

.tech-table { width: 100%; border-collapse: collapse; margin: 32px 0; font-family: var(--font-body); font-size: 16px; line-height: 1.5; background: var(--panel); border: 1px solid var(--hairline-soft); border-radius: 8px; overflow: hidden; }
.tech-table thead { background: var(--chassis-deep); }
.tech-table th { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-align: left; padding: 14px 18px; color: var(--ink); border-bottom: 1px solid var(--hairline-soft); }
.tech-table td { padding: 14px 18px; vertical-align: top; border-top: 1px solid var(--hairline-faint); color: var(--ink); }
.tech-table tbody tr:first-child td { border-top: none; }
.tech-table td:first-child { font-weight: 500; width: 38%; }
.tech-table code { font-size: 0.9em; padding: 2px 6px; background: rgba(122,31,31,0.06); border-radius: 4px; color: var(--accent); font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace); }

@media (max-width: 720px) {
  .article-hero { padding: 64px 0 24px; }
  .article-cta { padding: 28px 24px; margin: 40px 0 24px; }
  .post-card { padding: 24px 0; }
  .post-card h2 { font-size: 1.25rem; }
  .tech-table { font-size: 15px; }
  .tech-table th, .tech-table td { padding: 12px 14px; }
  .tech-table td:first-child { width: 40%; }
}

/* Language switcher */
.lang-switch { position: relative; display: inline-flex; }
.lang-switch-btn { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--ink); opacity: 0.75; background: none; border: 0; cursor: pointer; padding: 4px 2px; line-height: 1; }
.lang-switch-btn:hover { opacity: 1; }
.lang-globe { display: block; }
.lang-switch-cur { letter-spacing: 0.04em; }
.lang-switch-menu { position: absolute; top: calc(100% + 10px); right: 0; margin: 0; padding: 6px; list-style: none; min-width: 152px; background: var(--panel); border: 1px solid var(--hairline-faint); border-radius: 12px; box-shadow: var(--shadow-card-soft); z-index: 1100; }
.lang-switch-menu[hidden] { display: none; }
.lang-switch-menu li { margin: 0; }
.lang-switch-menu a { display: block; font-family: var(--font-display); font-size: 14.5px; font-weight: 500; color: var(--ink); opacity: 0.8; text-decoration: none; padding: 9px 12px; border-radius: 8px; }
.lang-switch-menu a:hover { opacity: 1; background: var(--chassis-deep); }
.lang-switch-menu a[aria-current="true"] { opacity: 1; color: var(--accent); }
.nav-drawer .lang-switch { display: block; width: 100%; }
.nav-drawer .lang-switch-btn { width: 100%; justify-content: flex-start; font-size: 18px; padding: 14px 4px; min-height: 48px; border-bottom: 1px solid var(--hairline-faint); opacity: 1; }
.nav-drawer .lang-switch-menu { position: static; box-shadow: none; border: 0; padding: 4px 0 0; min-width: 0; }
.nav-drawer .lang-switch-menu a { font-size: 16px; padding: 10px 16px; }
