:root {
  --bg: #f3f6f8;
  --paper: #ffffff;
  --ink: #0f172a;
  --muted: #5b6b7c;
  --line: #e2e8f0;
  --accent: #0f766e;
  --accent-ink: #115e59;
  --mark: #c2410c;
  --shadow: 0 16px 40px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(15, 118, 110, .12), transparent 60%),
    radial-gradient(700px 320px at -10% 0, rgba(194, 65, 12, .06), transparent 55%),
    var(--bg);
  font: 16.5px/1.7 "Segoe UI", "Helvetica Neue", sans-serif;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-ink); }
a:hover { color: var(--mark); }
:focus-visible { outline: 3px solid rgba(15, 118, 110, .45); outline-offset: 2px; }
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 30;
}
.skip:focus { top: 12px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(226, 232, 240, .9);
  backdrop-filter: blur(16px);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.brand {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.brand::before {
  content: "A";
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(160deg, #14b8a6, #0f766e);
  box-shadow: 0 8px 18px rgba(15, 118, 110, .28);
  font-family: Georgia, "Palatino Linotype", serif;
  font-size: 22px;
}
.brand strong, .brand span { grid-column: 2; }
.brand strong {
  font-family: Georgia, "Palatino Linotype", serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.brand span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  color: var(--ink);
}
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  text-decoration: none;
  color: #334155;
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover { background: #f1f5f9; color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent-ink); background: #ccfbf1; }
.hero { padding: 56px 0 8px; }
.kicker {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--accent-ink);
  background: #ccfbf1;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: Georgia, "Palatino Linotype", serif;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.15;
}
h1 { margin: 0; font-size: clamp(34px, 4.6vw, 56px); max-width: 22ch; }
.lede { max-width: 62ch; color: #334155; font-size: 18.5px; }
.grid { display: grid; grid-template-columns: 1.45fr .85fr; gap: 22px; padding: 28px 0 20px; }
.card, .side, .panel, .list {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.card { padding: 28px; position: relative; overflow: hidden; }
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(#14b8a6, #0f766e);
}
.card h2, .panel h2 { margin: 8px 0 10px; font-size: clamp(24px, 2.4vw, 32px); }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--accent-ink); }
.meta { color: var(--muted); font-size: 13px; }
.stack { display: grid; gap: 14px; }
.side { padding: 8px; }
.side a, .list a {
  display: block;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  border-radius: 14px;
  transition: background .15s ease, transform .15s ease;
}
.side a:last-child, .list a:last-child { border-bottom: 0; }
.side a:hover, .list a:hover { background: #f8fafc; color: inherit; }
.side strong, .list strong { display: block; font-size: 16.5px; line-height: 1.35; letter-spacing: -.01em; }
.list.card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  display: grid;
  gap: 12px;
  overflow: visible;
}
.list.card::before { display: none; }
.list.card a {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 18px;
}
.list.card a:hover { transform: translateY(-2px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
form.filters {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
form.filters label { grid-column: 1 / -1; }
.filters button, button, .btn {
  border: 1px solid #99f6e4;
  background: #fff;
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.filters button:hover, .btn:hover { background: #f0fdfa; }
.filters button.is-on, .btn-solid, .filters .btn-solid {
  background: linear-gradient(180deg, #0f766e, #115e59);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .25);
}
.btn-solid:hover, .filters .btn-solid:hover, .filters button.is-on:hover { color: #fff; background: #115e59; }
.crumbs { color: var(--muted); font-size: 14px; margin: 28px 0 8px; }
.crumbs a { text-decoration: none; font-weight: 600; }
main.wrap > .post, main.wrap > h1, main.wrap > .lede { max-width: 760px; }
article.post {
  max-width: 740px;
  margin: 8px 0 56px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 36px 40px 28px;
}
article.post h1 { max-width: none; font-size: clamp(32px, 4vw, 46px); }
article.post p { margin: 0 0 16px; color: #1e293b; }
article.post .meta { margin: 0 0 18px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 56px; }
.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.fact span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--mark);
  background: #ffedd5;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
form { display: grid; gap: 8px; margin-top: 8px; }
label { font-size: 13px; font-weight: 700; color: #334155; }
input, textarea, select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #f8fafc;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .15);
}
button.btn-solid { justify-self: start; margin-top: 8px; }
.note { color: var(--muted); font-size: 14px; }
.site-footer {
  margin-top: auto;
  background: #0f172a;
  color: #cbd5e1;
  padding: 28px 0;
  font-size: 14px;
}
.site-footer a { color: #fff; text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: #99f6e4; }
.foot { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 16px; }
.hidden { display: none; }
@media (max-width: 800px) {
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .grid, .facts { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 14px 16px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; }
  article.post { padding: 24px 18px 12px; border-radius: 18px; }
  .card { padding: 22px 20px 20px 22px; }
}
