/* Zalozi.guru. Brand colours come from :root in the page head
   (--accent, --accent-ink, --navy, --tint). */
:root {
  --ink: #16202b;
  --ink-2: #44505e;
  --ink-3: #6a7582;
  --line: #e1e5e9;
  --paper: #fafbfa;
  --card: #ffffff;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --wrap: 1120px;
  --narrow: 740px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 2.2rem 0 .8rem; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: calc(var(--narrow) + 40px); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 72px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; }
.brand-name { font-weight: 800; font-size: 1.25rem; color: var(--navy); letter-spacing: -0.01em; }
.brand-name span { color: var(--accent); }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.nav a:hover { background: var(--tint); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--accent-ink); background: var(--tint); font-weight: 600; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--tint), var(--paper)); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--accent-ink); margin: 0 0 .7rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
.hero-lede { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; margin: 0 0 1.6rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.hero-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 30px 60px -34px rgba(15,42,68,.45); }

.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; border: 2px solid var(--accent); }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Sections */
.principles, .topics, .latest { padding-top: 56px; }
.principle { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 22px 24px; }
.principle h3 { margin-top: 0; }
.principle p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin-top: 0; }
.topic-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.topic-list li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: .95rem; color: var(--ink-2); }
.about-teaser { margin-top: 72px; padding: 56px 0; background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-teaser h2 { margin-top: 0; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -20px rgba(15,42,68,.3); }
.card-media img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 24px; }
.card-meta { margin: 0 0 .4rem; font-size: .82rem; color: var(--ink-3); }
.card-title { margin: 0 0 .5rem; font-size: 1.15rem; }
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a:hover { color: var(--accent-ink); text-decoration: underline; }
.card-text { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* Pages */
.page { padding-top: 40px; padding-bottom: 72px; }
.crumbs { font-size: .85rem; color: var(--ink-3); margin-bottom: 1.4rem; }
.crumbs a { color: var(--ink-3); }
.lede { font-size: 1.15rem; color: var(--ink-2); margin: 0 0 2rem; }
.contact-email { font-size: 1.3rem; font-weight: 600; }
.profile-head { display: flex; align-items: center; gap: 20px; margin-bottom: 2rem; flex-wrap: wrap; }
.profile-logo { width: 96px; height: 96px; }
.profile-head h1 { margin: 0; }
.profile-role { margin: .3rem 0 0; color: var(--accent-ink); font-weight: 600; }

/* Articles */
.article-head { padding-top: 40px; }
.article-head .lede { margin-bottom: 1.4rem; }
.byline { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: .92rem; line-height: 1.5; margin: 0 0 2rem; }
.byline a { font-weight: 600; }
.byline-logo { width: 40px; height: 40px; flex: none; }
.article-hero { margin: 0 auto 2.4rem; max-width: 1000px; }
.article-hero img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.prose { font-size: 1.06rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose img { border-radius: 10px; margin: 1.6rem 0; }
.prose blockquote { margin: 1.6rem 0; padding: 14px 20px; border-left: 4px solid var(--accent); background: var(--tint); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--tint); font-weight: 600; color: var(--navy); }
.prose code { background: var(--tint); padding: 1px 6px; border-radius: 4px; font-size: .92em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }

.rg-note { margin: 2.4rem 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .93rem; color: var(--ink-2); }
.rg-note strong, .age { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 6px; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 700; }

.team-box { display: flex; gap: 20px; align-items: flex-start; margin: 1.6rem 0 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.team-logo { width: 64px; height: 64px; flex: none; }
.team-box p { margin: 0 0 .5rem; color: var(--ink-2); font-size: .97rem; }
.team-box-label { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem !important; color: var(--ink-3) !important; }
.team-box-name { font-size: 1.15rem !important; }
.team-box-name a { color: var(--navy); text-decoration: none; font-weight: 700; }
.team-box-links { font-size: .9rem !important; }
.more { padding-top: 56px; padding-bottom: 24px; }

/* Footer */
.site-footer { margin-top: 72px; background: var(--navy); color: #c8d3de; font-size: .95rem; }
.site-footer a { color: #eef3f7; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 32px; }
.footer-name { font-weight: 800; font-size: 1.25rem; color: #fff; margin: 0 0 .5rem; }
.footer-about p { margin-top: 0; max-width: 34em; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; justify-items: start; }
.footer-notice { padding-bottom: 20px; font-size: .86rem; color: #b5c2cf; }
.footer-notice p { margin: 0; max-width: 62em; padding: 14px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; }
.footer-notice .age { background: var(--accent); }
.footer-base { border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; padding-bottom: 28px; font-size: .85rem; color: #9fb0c0; }
.footer-base p { margin: 0; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; padding-bottom: 44px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .header-inner { min-height: 0; }
  .nav a { padding: 6px 9px; font-size: .9rem; }
  .team-box { flex-direction: column; }
  .prose { font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}
