/* Shared shell for Tailr's standalone pages (legal + marketing). Editorial
   "comeback" system: Bricolage Grotesque display + Instrument Sans body, warm paper
   background, monochrome surfaces with blue as the single accent. Fonts are
   injected by partials.js (the shared chrome), so they're available here. */

:root {
  --accent: #2a6ad6;
  --accent-d: #2256b0;
  --accent-soft: #e9f1fd;
  --ink: #1b1b1d;
  --muted: #63636b;
  --faint: #9b9ba1;
  --line: #e9e8e3;
  --surface: #ffffff;
  --bg: #f5f4f1;
  --serif: 'Bricolage Grotesque', system-ui, sans-serif;
  --disp: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans: 'Instrument Sans', 'Hanken Grotesk', system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(20,20,30,.04);
  --shadow-lg: 0 34px 64px -38px rgba(20,20,30,.42);
  --ease: cubic-bezier(.16,1,.3,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.6;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
main { flex: 1; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 26px; width: 100%; }
.narrow { max-width: 820px; }

/* page hero */
.page-hero { padding: clamp(56px, 7vw, 92px) 0 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 11px; font-family: var(--sans); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; color: var(--accent); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.page-hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.6rem); letter-spacing: -.022em; line-height: 1.03; margin: 20px 0 0; color: var(--ink); }
.page-hero .lead { font-family: var(--sans); font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); color: var(--muted); max-width: 62ch; margin: 18px 0 0; line-height: 1.62; }
.page-hero .updated { font-size: 13px; color: var(--faint); margin-top: 14px; }

/* legal / prose */
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 36px 42px; margin: 16px 0 30px; }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: 25px; letter-spacing: -.014em; margin: 30px 0 10px; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--sans); font-size: 15px; font-weight: 700; margin: 18px 0 6px; }
.prose p, .prose li { color: #4a4a52; font-size: 15px; }
.prose ul { padding-left: 20px; margin: 8px 0; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent); font-weight: 600; }
.prose strong { color: var(--ink); }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: rgba(42,106,214,.07); color: var(--ink); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.prose ol { padding-left: 20px; margin: 8px 0; }
.legal-note { margin: 4px 0 30px; background: #fbf7ee; border: 1px solid #ece0c8; color: #7c5e3b; border-radius: 12px; padding: 14px 16px; font-size: 13.5px; }

/* buttons */
.btn { appearance: none; -webkit-appearance: none; margin: 0; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 700; font-size: 15px; line-height: 1.5; border-radius: 999px; padding: 13px 24px; border: 1px solid transparent; cursor: pointer; transition: transform .16s var(--ease), background .2s var(--ease), border-color .2s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 16px 34px -16px var(--accent); }
.btn-primary:hover { background: var(--accent-d); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cfcfc8; }

/* marketing */
.section { padding: 8px 0 18px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 26px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #dcdbd4; }
.card .ic { width: 48px; height: 48px; border-radius: 13px; background: var(--accent-soft); border: 1px solid #d7e4fb; display: grid; place-items: center; margin-bottom: 16px; }
.card h3 { font-family: var(--serif); font-weight: 600; margin: 0 0 8px; font-size: 21px; letter-spacing: -.012em; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.cta-band { position: relative; overflow: hidden; background: #0c0c11; color: #e7e7ee; border-radius: 24px; padding: clamp(38px, 5vw, 56px); text-align: center; margin: 34px 0; box-shadow: 0 50px 90px -46px rgba(8,8,16,.7); }
.cta-band::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(47,123,232,.4), transparent); top: -160px; right: -90px; pointer-events: none; }
.cta-band h2 { font-family: var(--serif); font-weight: 600; margin: 0 0 10px; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.7rem); letter-spacing: -.022em; color: #fff; position: relative; }
.cta-band p { margin: 0 0 22px; color: rgba(255,255,255,.66); font-size: 15px; position: relative; }
.cta-band .btn-ghost { background: transparent; color: #e7e7ee; border-color: rgba(255,255,255,.2); }
.cta-band .btn-ghost:hover { border-color: rgba(255,255,255,.45); }

/* generic headings inside page content default to the display face */
main h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; }

@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .prose { padding: 28px 22px; }
}

/* error pages (404 / 500 / 503 / 403 / 429) — on-brand photo band + recovery */
.err { padding: clamp(40px,6vw,72px) 0 clamp(24px,4vw,40px); }
.err-band { position: relative; overflow: hidden; border-radius: 28px; text-align: center;
  padding: clamp(60px,9vw,120px) clamp(26px,5vw,72px);
  background: #0b0b0f url('/assets/hero-image.jpg') center 34%/cover no-repeat;
  background-image: image-set(url('/assets/hero-image.webp') type('image/webp'), url('/assets/hero-image.jpg') type('image/jpeg'));
  box-shadow: 0 50px 90px -46px rgba(8,8,16,.7); }
.err-band::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,11,20,.7), rgba(8,11,20,.5) 45%, rgba(8,11,20,.74)),
              radial-gradient(70% 60% at 50% 42%, rgba(6,9,16,.5), transparent 72%); }
.err-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.err-eyebrow { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.err-big { font-family: var(--serif); font-weight: 600; font-size: clamp(4.5rem, 3rem + 11vw, 10rem); line-height: .9; letter-spacing: -.04em; color: #fff; margin: 10px 0 0; text-shadow: 0 2px 44px rgba(6,9,16,.55); }
.err-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); letter-spacing: -.022em; color: #fff; margin: 8px 0 0; text-shadow: 0 1px 20px rgba(6,9,16,.5); }
.err-lead { font-family: var(--sans); color: rgba(255,255,255,.86); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.6; margin: 16px auto 0; max-width: 48ch; text-shadow: 0 1px 14px rgba(6,9,16,.5); }
.err-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.err-btn-w, .err-btn-g { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 700; font-size: 15px; text-decoration: none; padding: 14px 26px; border-radius: 999px; transition: background .18s ease, border-color .18s ease; }
.err-btn-w { background: #fff; color: #0b0b0f; }
.err-btn-w:hover { background: #eceaf0; }
.err-btn-g { color: #fff; font-weight: 600; padding: 14px 24px; border: 1px solid rgba(255,255,255,.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.err-btn-g:hover { border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.1); }
.err-more { text-align: center; padding: clamp(30px,4vw,44px) 0 clamp(48px,7vw,88px); }
.err-more-label { font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.err-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.err-links a { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; transition: border-color .18s ease, color .18s ease; }
.err-links a:hover { border-color: var(--accent); color: var(--accent); }

/* blog / guide article masthead — breadcrumb · byline · rating · table of contents */
.art-bc { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--faint); margin-bottom: 20px; }
.art-bc a { color: var(--muted); text-decoration: none; }
.art-bc a:hover { color: var(--accent); }
.art-bc .cur { color: var(--ink); }
.art-byline { display: flex; align-items: center; gap: 13px; margin-top: 26px; }
.art-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(180deg,#4a90f6,#2a6ad6); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 600; font-size: 19px; flex-shrink: 0; box-shadow: 0 8px 20px -10px rgba(42,106,214,.6); }
.art-name { font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--ink); }
.art-role { font-family: var(--sans); font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.art-toc-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 26px; }
.art-toc { flex: 1; min-width: 260px; max-width: 520px; }
.art-toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); }
.art-toc summary::-webkit-details-marker { display: none; }
.art-toc summary:hover { border-color: #d4d3cc; }
.art-chev { color: var(--muted); transition: transform .2s ease; flex-shrink: 0; }
.art-toc[open] .art-chev { transform: rotate(180deg); }
.art-toc-list { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); padding: 8px; }
.art-toc-list a { display: block; padding: 9px 12px; border-radius: 8px; font-family: var(--sans); font-size: 14.5px; color: var(--muted); text-decoration: none; }
.art-toc-list a:hover { background: rgba(42,106,214,.06); color: var(--accent); }
@media (max-width: 620px) { .art-toc, .art-toc-row .btn { width: 100%; max-width: none; } .art-toc-row .btn { justify-content: center; } }
