:root {
  color-scheme: dark;
  --ink: #f5f7f7;
  --muted: #a5b1ae;
  --soft: #71807c;
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(18, 44, 39, 0.68);
  --glass-strong: rgba(24, 57, 50, 0.82);
  --mint: #72f6b5;
  --mint-deep: #2ddf98;
  --canvas: #071716;
  --max: 860px;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(68, 145, 128, 0.22), transparent 34rem),
    radial-gradient(circle at 96% 12%, rgba(68, 120, 143, 0.14), transparent 30rem),
    var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(114, 246, 181, 0.45);
  border-radius: 10px;
  color: var(--mint);
  background: rgba(114, 246, 181, 0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}

.brand-icon {
  display: block;
  padding: 0;
  object-fit: cover;
}

.nav { display: flex; gap: 20px; color: var(--muted); font-size: 14px; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a:focus-visible { color: var(--ink); }

.hero { max-width: 680px; margin-bottom: 34px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.14; }
h1 { margin: 0 0 18px; font-size: clamp(38px, 7vw, 66px); font-weight: 720; }
h2 { margin: 42px 0 14px; font-size: 28px; font-weight: 680; }
h3 { margin: 0 0 7px; font-size: 19px; font-weight: 650; }
.lede { margin: 0; color: var(--muted); font-size: 19px; line-height: 1.5; }

.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(26, 59, 52, .78), rgba(8, 25, 23, .86));
  box-shadow: 0 24px 90px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(24px);
}

.home-panel { padding: 30px; }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.link-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.link-card:hover, .link-card:focus-visible { transform: translateY(-2px); border-color: rgba(114,246,181,.42); background: rgba(114,246,181,.09); }
.link-card p { margin: 0; color: var(--muted); }
.link-arrow { color: var(--mint); font-size: 22px; }

.article { padding: 34px clamp(24px, 5vw, 58px); }
.article h1 { font-size: clamp(36px, 6vw, 54px); }
.article .updated { margin: -6px 0 28px; color: var(--soft); font-size: 14px; }
.article p, .article li { color: var(--muted); }
.article ul { padding-left: 22px; }
.article strong { color: var(--ink); font-weight: 620; }
.article a { color: var(--mint); text-underline-offset: 3px; }
.callout { margin: 28px 0; padding: 18px 20px; border-left: 3px solid var(--mint); border-radius: 0 16px 16px 0; background: rgba(114,246,181,.08); color: var(--muted); }
.contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 12px 17px;
  border-radius: 14px;
  color: #061c15 !important;
  background: var(--mint);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
}
.contact:hover, .contact:focus-visible { background: #a4ffd0; }

footer { margin-top: 34px; color: var(--soft); font-size: 13px; }
footer a { color: var(--muted); text-underline-offset: 3px; }

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 28px), var(--max)); padding-top: 24px; }
  .topbar { margin-bottom: 38px; }
  .nav { gap: 12px; font-size: 13px; }
  .home-panel { padding: 16px; border-radius: 23px; }
  .home-grid { grid-template-columns: 1fr; }
  .link-card { min-height: 132px; }
  .article { padding: 25px 20px; border-radius: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
