/* The blog (design/blog, Parte 1). Its numbers are the design's; one
   breakpoint, 760px, below which everything is the phone's. */
@font-face { font-family: "Baloo 2"; font-weight: 700; font-display: swap; src: url(fonts/baloo2-700.woff2) format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap; src: url(fonts/baloo2-800.woff2) format("woff2"); }
@font-face { font-family: Geist; font-weight: 400; font-display: swap; src: url(fonts/geist-400.woff2) format("woff2"); }
@font-face { font-family: Geist; font-weight: 500; font-display: swap; src: url(fonts/geist-500.woff2) format("woff2"); }
@font-face { font-family: Geist; font-weight: 600; font-display: swap; src: url(fonts/geist-600.woff2) format("woff2"); }

:root {
  --bg: #F1F2F4; --card: #FFFFFF; --bd-card: #ECEEF1; --bd: #E2E3E7; --rule: #D4D5DA;
  --fg: #18181B; --fg2: #3F3F46; --body: #27272A; --lead: #52525B;
  /* The designs' #71717A, a shade darker: on the page's grey it read at
     4.3:1, under the 4.5 small text needs (Lighthouse, 2026-10-06). The
     language switch's track is greyer still, so its letters darker again. */
  --muted: #6B6B74; --muted-track: #63636B;
  --graphite: #353535; --yellow: #FFC42D; --track: #E3E4E9;
  --guides: #5B7A99; --news: #E0A800; --cases: #4F9A68; --trends: #C13584;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 Geist, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--fg2); }
img { display: block; max-width: 100%; }
.bh-space { flex: 1; }

/* The bar on top */
.bh { position: sticky; top: 0; z-index: 20; background: rgba(241, 242, 244, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bh-in { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 12px; }
.bh-brand { display: flex; align-items: center; gap: 8px; }
.bh-brand img { width: 34px; height: 34px; margin: -3px 0; flex: none; }
.bh-brand span { font: 800 23px/.8 "Baloo 2", sans-serif; letter-spacing: -.01em; padding-top: .12em; color: var(--graphite); }
.bh-rule { width: 1px; height: 20px; background: var(--rule); }
.bh-section { font: 700 21px/.8 "Baloo 2", sans-serif; padding-top: .12em; color: var(--muted); }
.bh-ghost { height: 36px; padding: 0 14px; display: inline-flex; align-items: center; font-size: 14px; color: var(--fg2); border-radius: 999px; }
.bh-cta { height: 36px; padding: 0 16px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; background: var(--graphite); color: #FAFAFA; border-radius: 999px; white-space: nowrap; }
.bh-cta:hover { color: #FAFAFA; opacity: .92; }
.bh-cta .narrow { display: none; }
/* The language, as a small menu (`languageSwitch` in tool/site/html.dart). */
.bh-langs { position: relative; flex: none; }
.bh-langs summary {
  list-style: none; cursor: pointer; user-select: none;
  height: 34px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--track);
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--fg);
}
.bh-langs summary::-webkit-details-marker { display: none; }
.bh-langs summary svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .6; transition: transform .15s ease; }
.bh-langs[open] summary svg { transform: rotate(180deg); }
.bh-langs nav {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 168px;
  display: flex; flex-direction: column; gap: 2px; padding: 6px;
  background: var(--card); border: 1px solid var(--bd); border-radius: 14px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .25);
}
.bh-langs nav a {
  height: 38px; padding: 0 10px; border-radius: 9px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 14px; color: var(--fg);
}
@media (hover: hover) { .bh-langs nav a:hover { background: var(--track); } .bh-langs summary:hover { color: var(--fg); background: var(--track); } }
.bh-langs .ck { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.bh-langs a.on { font-weight: 600; }
.bh-langs a.on .ck { visibility: visible; }
.bh-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--track); }
.bh-progress div { height: 100%; width: 0; background: var(--yellow); border-radius: 0 2px 2px 0; }

.bm { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Front page, section, author */
.hero { padding: 64px 0 32px; display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.hero h1, .art h1 { margin: 0; font: 800 68px/.98 "Baloo 2", sans-serif; letter-spacing: -.01em; color: var(--graphite); text-wrap: balance; }
.hero-sm { max-width: 760px; }
.hero-author { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.hero-author > div { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 8px; }
.eyebrow { font-size: 13px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 8px; }
.lede { margin: 0; font-size: 17px; color: var(--lead); text-wrap: pretty; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot-yellow { width: 8px; height: 8px; background: var(--yellow); }
.dot-all { background: var(--fg); }
.cat-guides { --c: var(--guides); } .cat-news { --c: var(--news); } .cat-cases { --c: var(--cases); } .cat-trends { --c: var(--trends); }
.dot.cat-guides, .dot.cat-news, .dot.cat-cases, .dot.cat-trends { background: var(--c); }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 24px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--bd); background: var(--card); color: var(--fg); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.chip.on { background: var(--fg); border-color: var(--fg); color: #FAFAFA; }
.chip.on .dot-all { background: #FAFAFA; }

.cv { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(24, 24, 27, .05) 8px 9px), color-mix(in srgb, var(--c, var(--guides)) 18%, #FFFFFF); object-fit: cover; width: 100%; }

.feat a { background: var(--card); border: 1px solid var(--bd-card); border-radius: 22px; padding: 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 10px 36px; align-items: center; transition: box-shadow .2s; color: var(--fg); }
.feat a:hover { box-shadow: 0 24px 50px -28px rgba(24, 24, 27, .3); color: var(--fg); }
.feat-cv { aspect-ratio: 4 / 3; border-radius: 14px; }
.feat-tx { padding: 24px 28px 24px 0; display: flex; flex-direction: column; gap: 14px; }
.feat h2 { margin: 0; font: 800 42px/1.02 "Baloo 2", sans-serif; letter-spacing: -.01em; color: var(--graphite); text-wrap: balance; }
.feat .ex { margin: 0; font-size: 16.5px; color: var(--lead); text-wrap: pretty; }
.meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.meta .cat { color: var(--fg2); font-weight: 500; margin-left: -2px; }
.badge { height: 24px; padding: 0 10px; border-radius: 999px; background: var(--yellow); color: var(--graphite); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }
.by { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); padding-top: 4px; }
.by .nm { color: var(--fg); font-weight: 500; }
.av { border-radius: 50%; flex: none; display: inline-grid; place-items: center; color: #fff; font-weight: 600; object-fit: cover; }

.section { margin: 0; padding: 56px 0 18px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card a { height: 100%; background: var(--card); border: 1px solid var(--bd-card); border-radius: 18px; padding: 8px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .2s; color: var(--fg); }
.card a:hover { box-shadow: 0 18px 40px -22px rgba(24, 24, 27, .3); color: var(--fg); }
.card-cv { aspect-ratio: 16 / 10; border-radius: 12px; }
.card-tx { padding: 0 10px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .meta { font-size: 12.5px; }
.card h3 { margin: 0; font-size: 19px; line-height: 1.28; font-weight: 600; letter-spacing: -.01em; text-wrap: pretty; }
.card .ex { margin: 0; font-size: 14.5px; color: var(--lead); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .by { margin-top: auto; padding-top: 8px; font-size: 13px; gap: 8px; }
.card .by .nm { color: var(--fg2); font-weight: 400; }
.empty { color: var(--muted); font-size: 16px; padding: 24px 0; }

/* An article */
.art { padding: 40px 0 0; display: flex; flex-direction: column; align-items: center; }
.col { width: 100%; max-width: 700px; }
.art > .col:first-child { display: flex; flex-direction: column; gap: 18px; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.crumb a { color: var(--muted); }
.crumb .cat { display: inline-flex; align-items: center; gap: 6px; color: var(--fg2); font-weight: 500; }
.art h1 { font-size: 56px; line-height: 1; }
.lead { margin: 0; font-size: 20px; line-height: 1.5; color: var(--lead); text-wrap: pretty; }
.art-meta { display: flex; align-items: center; gap: 12px; padding: 6px 0 4px; flex-wrap: wrap; }
.who { display: flex; align-items: center; gap: 10px; }
.who > span:not(.av) { display: flex; flex-direction: column; line-height: 1.3; }
.who .nm { font-size: 14.5px; font-weight: 500; color: var(--fg); }
.who .when { font-size: 13px; color: var(--muted); }
.round { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--bd); background: var(--card); color: var(--fg2); display: grid; place-items: center; cursor: pointer; padding: 0; }
.round svg, .share svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-at { position: relative; }
.share-menu { position: absolute; right: 0; top: 46px; z-index: 30; min-width: 160px; padding: 6px; background: var(--card); border: 1px solid var(--bd); border-radius: 14px; box-shadow: 0 18px 40px -22px rgba(24, 24, 27, .3); display: flex; flex-direction: column; }
.share-menu[hidden] { display: none; }
.share-menu a { padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--fg2); }
.share-menu a:hover { background: var(--bg); color: var(--fg); }
.art-cv { max-width: 1000px; aspect-ratio: 16 / 9; border-radius: 22px; margin: 28px 0 8px; }

.prose { font-size: 18.5px; line-height: 1.7; color: var(--body); }
.prose h2 { margin: 44px 0 10px; font-size: 27px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; color: var(--fg); text-wrap: balance; }
.prose h3 { margin: 32px 0 8px; font-size: 21px; line-height: 1.3; font-weight: 600; color: var(--fg); }
.prose p { margin: 0 0 18px; text-wrap: pretty; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose li { padding-left: 4px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 40px 0; display: flex; flex-direction: column; gap: 12px; }
.prose blockquote p { margin: 0; font: 700 34px/1.15 "Baloo 2", sans-serif; color: var(--graphite); text-wrap: balance; }
.prose blockquote p:first-child::before { content: "\201C"; }
.prose blockquote p:last-of-type::after { content: "\201D"; }
.prose blockquote cite { font-style: normal; font-size: 14px; color: var(--muted); }
.prose figure { margin: 32px 0; display: flex; flex-direction: column; gap: 10px; }
.prose figure img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-radius: 16px; }
.prose figcaption { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.end { display: flex; flex-direction: column; gap: 28px; padding-top: 28px; }
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--bd); border-bottom: 1px solid var(--bd); }
.share span { font-size: 14px; font-weight: 500; margin-right: 6px; }
.share a, .share button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--bd); background: var(--card); font: inherit; font-size: 13.5px; display: inline-flex; align-items: center; color: var(--fg2); cursor: pointer; }
.author { background: var(--card); border: 1px solid var(--bd-card); border-radius: 20px; padding: 22px; display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.author > div { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.author .eyebrow { font-size: 12.5px; }
.author .nm { font-size: 18px; font-weight: 600; }
.author .nm span { font-weight: 400; color: var(--muted); font-size: 15px; }
.author p { margin: 0; font-size: 15px; color: var(--lead); text-wrap: pretty; }
.author a { font-size: 14px; font-weight: 500; margin-top: 4px; }
.back { font-size: 14px; color: var(--muted); }

/* The site's footer (tool/site/chrome.dart, 2026-10-09), the same rules in
   blog.css and landing.css: the logo with what Tucan is, three columns of
   links, and a line with the year and the languages. */
.sf { --sf-line: var(--bd); margin-top: 72px; border-top: 1px solid var(--sf-line); color: var(--muted); font-size: 14px; }
.sf-in { max-width: 1200px; margin: 0 auto; padding: 56px 20px 44px; display: grid; grid-template-columns: minmax(220px, 1.2fr) 3fr; gap: 48px; }
.sf-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.sf-logo { display: flex; align-items: center; gap: 6px; }
.sf-logo img { width: 28px; height: 28px; flex: none; }
.sf-logo span { font: 800 19px/.8 "Baloo 2", sans-serif; letter-spacing: -.01em; padding-top: .12em; color: var(--graphite); }
.sf-brand p { margin: 0; max-width: 24ch; line-height: 1.5; }
.sf .sf-cta { height: 36px; padding: 0 16px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; background: var(--graphite); color: #FAFAFA; border-radius: 999px; white-space: nowrap; }
.sf-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.sf-cols h2 { margin: 0 0 14px; font-size: 12px; font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: .06em; color: var(--graphite); }
.sf-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sf a { color: var(--muted); text-decoration: none; }
.sf-base { max-width: 1200px; margin: 0 auto; padding: 18px 20px 28px; border-top: 1px solid var(--sf-line); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; }
/* Clear of the chat's round button, fixed in that corner on every page. */
.sf-base nav { margin-left: auto; margin-right: 72px; display: flex; gap: 16px; flex-wrap: wrap; }
.sf-base a[aria-current] { color: var(--graphite); }
@media (hover: hover) { .sf a:hover { color: var(--graphite); } .sf .sf-cta:hover { color: #FAFAFA; opacity: .88; } }
@media (max-width: 759px) {
  .sf-in { grid-template-columns: 1fr; gap: 36px; padding: 44px 16px 36px; }
  .sf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  /* Stacked, and the chat's button sits below the last line rather than on it. */
  .sf-base { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 16px 92px; }
  .sf-base nav { margin: 0; }
}

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--fg); color: #FAFAFA; font-size: 14px; display: inline-flex; align-items: center; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); transition: opacity .2s, transform .2s; z-index: 50; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 759px) {
  .bh-in { gap: 10px; }
  .bh-ghost { display: none; }
  /* The symbol alone, so the languages and the button still fit a phone. */
  .bh-brand span { display: none; }
  .bh-cta { padding: 0 13px; }
  .bh-cta .wide { display: none; }
  .bh-cta .narrow { display: inline; }
  .hero { padding: 28px 0 22px; }
  .hero h1 { font-size: 40px; }
  .feat-tx { padding: 14px 10px 16px; }
  .feat h2 { font-size: 30px; }
  .art { padding-top: 24px; }
  .art h1 { font-size: 36px; }
  .lead { font-size: 17.5px; }
  .art-cv { border-radius: 14px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 23px; }
  .prose blockquote p { font-size: 26px; }
}

/* The narrowest phones (360px): the bar keeps the logo, the section, the
   languages and the button on one line by giving up a little air. */
@media (max-width: 380px) {
  .bh-in { gap: 8px; }
  .bh-rule { display: none; }
  .bh .bh-cta { padding: 0 12px; }
}
