/* Entorii blog. One stylesheet for the home and for the articles written
   from 2026-09-29 on. System fonts, the app's navy, no framework.
   The older pages still use style.css until they are migrated. */

:root {
  --navy-900: #0B2C4E;
  --navy-700: #134982;
  --navy-300: #89A4C1;
  --ink: #16202E;
  --body: #2D3749;
  --muted: #57617B;
  --line: #E3E8EE;
  --soft: #F1F4F8;
  --green: #46C38E;
  --radius: 14px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy-900); font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--navy-900); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand .sub { font-weight: 500; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav a { color: var(--body); white-space: nowrap; }
.nav a.cta { background: var(--navy-700); color: #fff; font-weight: 600; padding: 9px 18px; border-radius: 999px; }
.nav a.cta:hover { background: var(--navy-900); text-decoration: none; }

/* ---------- shared pieces ---------- */
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-700); }
.meta { font-size: 14px; color: var(--muted); }
.btn { display: inline-block; font: 600 16px var(--font); background: var(--navy-700); color: #fff; padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--navy-900); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--navy-900); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--navy-300); background: #fff; }

/* ---------- home ---------- */
.hero { padding: 56px 0 0; }
.hero h1 { font-size: 42px; line-height: 1.1; letter-spacing: -.022em; margin: 10px 0 12px; max-width: 760px; }
.hero p { font-size: 19px; color: var(--muted); margin: 0; max-width: 640px; }

.featured { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 44px; align-items: center; margin: 44px 0 0; }
.featured img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius); }
.featured h2 { font-size: 30px; line-height: 1.2; letter-spacing: -.015em; margin: 10px 0 12px; }
.featured h2 a, .card h3 a { color: inherit; }
.featured p { margin: 0 0 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 56px 0 28px; }
.chip { font: 600 14px var(--font); color: var(--body); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.chip:hover { border-color: var(--navy-300); }
.chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.card { display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 12px; }
.card .kicker { margin-top: 16px; }
.card h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; margin: 8px 0 6px; }
.more { display: flex; justify-content: center; margin: 40px 0 0; }

.tool { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--soft); border-radius: var(--radius); padding: 28px 32px; margin: 72px 0 0; }
.tool h2 { font-size: 22px; margin: 0 0 4px; letter-spacing: -.01em; }
.tool p { margin: 0; color: var(--muted); }

.section { margin: 72px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section h2 { font-size: 27px; letter-spacing: -.015em; margin: 0; }
.section .lead { color: var(--muted); margin: 6px 0 0; max-width: 640px; }
.group { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pills a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--body); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.pills a:hover { border-color: var(--navy-300); text-decoration: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.dot.out { background: var(--navy-300); }

/* ---------- article ---------- */
.article { max-width: 780px; margin: 0 auto; padding: 36px 24px 0; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.crumbs a { color: var(--muted); }
.article h1 { font-size: 42px; line-height: 1.12; letter-spacing: -.022em; margin: 10px 0 14px; }
.article .cover { width: 100%; aspect-ratio: 1200 / 630; border-radius: var(--radius); margin: 28px 0 32px; }

.prose { font-size: 18px; line-height: 1.72; }
.prose .lede p:first-child { font-size: 20px; line-height: 1.6; color: var(--ink); }
.prose h2 { font-size: 28px; line-height: 1.25; letter-spacing: -.015em; margin: 52px 0 14px; scroll-margin-top: 88px; }
.prose h3 { font-size: 21px; line-height: 1.35; margin: 32px 0 8px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose .table { overflow-x: auto; margin: 22px 0 30px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); color: var(--navy-900); font-weight: 600; }

.toc { background: var(--soft); border-radius: var(--radius); padding: 22px 26px; margin: 30px 0 8px; }
.toc p { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { font-size: 16px; line-height: 1.45; margin: 0 0 8px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.app-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--navy-900); color: #fff; border-radius: var(--radius); padding: 30px 34px; margin: 52px 0 0; }
.app-card h2 { color: #fff; font-size: 23px; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 6px; }
.app-card p { margin: 0; color: #C2D1D9; font-size: 16px; line-height: 1.55; }
.badges { display: flex; align-items: center; gap: 10px; flex: none; }
.badges img { height: 42px; width: auto; }

.related { border-top: 1px solid var(--line); margin: 52px 0 0; padding: 26px 0 0; }
.related p { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { margin: 0 0 8px; }

.app-card a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.prose h4 { font-size: 18px; margin: 26px 0 6px; }
.prose ul.plain, .prose ol.plain { list-style: none; padding-left: 0; }
.prose .callout { background: var(--soft); border-radius: 12px; padding: 20px 24px; margin: 24px 0; }
.prose .callout > :first-child { margin-top: 0; }
.prose .callout > :last-child { margin-bottom: 0; }
.prose pre, .prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }
.prose pre { background: var(--soft); border-radius: 12px; padding: 16px 20px; overflow-x: auto; }
.hero .crumbs { margin: 0 0 18px; }
.tool-page .meta { margin: 0 0 4px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin: 88px 0 0; padding: 40px 0 56px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; }
.site-footer strong { color: var(--navy-900); }
.site-footer p { margin: 0 0 6px; max-width: 420px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--body); }
.site-footer .badges { margin-top: 14px; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured { grid-template-columns: 1fr; gap: 22px; }
  .hero h1, .article h1 { font-size: 35px; }
  .nav { gap: 18px; font-size: 14px; }
  .nav a[href^="https://entorii.com"] { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav a.extra { display: none; }
  .nav a.cta { padding: 8px 16px; font-size: 14px; }
  .site-header .wrap { height: 58px; }
  .hero { padding-top: 36px; }
  .hero h1, .article h1 { font-size: 30px; }
  .hero p { font-size: 17px; }
  .featured h2 { font-size: 25px; }
  .grid { grid-template-columns: 1fr; gap: 34px; }
  .filters { margin: 44px 0 24px; }
  .tool, .app-card { flex-direction: column; align-items: flex-start; padding: 26px 24px; }
  .article { padding: 28px 20px 0; }
  .prose { font-size: 17px; }
  .prose .lede p:first-child { font-size: 18px; }
  .prose h2 { font-size: 24px; margin-top: 44px; }
  .prose table { font-size: 15px; }
  .prose th, .prose td { padding: 9px 10px; }
}
