:root {
  --bg: #07131a;
  --bg-elevated: #0c1c26;
  --ink: #e7f0f4;
  --muted: #8aa0ad;
  --line: rgba(231, 240, 244, 0.12);
  --accent: #2f9e8a;
  --accent-soft: rgba(47, 158, 138, 0.16);
  --warn: #c9a227;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.is-home {
  background: #061018;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #4ec4ae;
}

code {
  font-size: 0.92em;
  word-break: break-all;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(7, 19, 26, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease);
}

body:not(.is-home) .site-header,
.is-home .site-header {
  border-bottom-color: var(--line);
}

.site-header__inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand__name em {
  font-style: normal;
  color: var(--accent);
}

.brand__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand__mark {
  display: none;
}

.nav {
  display: flex;
  gap: 1.4rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

/* ——— Hero (full-bleed) ——— */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 16, 24, 0.15) 0%, rgba(6, 16, 24, 0.55) 45%, rgba(6, 16, 24, 0.96) 100%),
    radial-gradient(ellipse 90% 70% at 70% 20%, rgba(24, 78, 92, 0.55), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(20, 90, 75, 0.35), transparent 55%),
    linear-gradient(160deg, #0a2430 0%, #07131a 48%, #050e14 100%);
}

.hero__wave {
  position: absolute;
  inset: auto 0 -20% 0;
  height: 55%;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(8, 30, 40, 0.85) 78%),
    repeating-linear-gradient(
      95deg,
      transparent 0 18px,
      rgba(47, 158, 138, 0.04) 18px 19px
    );
  animation: tide 14s var(--ease) infinite alternate;
  opacity: 0.9;
}

.hero__depth {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  right: -12vmax;
  top: -8vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 158, 138, 0.18), transparent 68%);
  animation: drift 18s var(--ease) infinite alternate;
}

.hero__content {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 3.5rem 0 4.75rem;
  animation: rise 0.9s var(--ease) both;
}

.hero__identity {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.35rem;
}

.hero__logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  flex-shrink: 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.hero__headline {
  margin: 0 0 1rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #c5d7df;
}

.hero__lead {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: #042019;
}

.btn--primary:hover {
  background: #3bb59e;
  color: #042019;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: rgba(231, 240, 244, 0.28);
  color: var(--ink);
}

/* ——— Sections ——— */
.section {
  padding: 4.5rem 0;
}

.section__inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section h2,
.page-head h1,
.article h1 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.section__lead {
  max-width: 38rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover {
  text-decoration: underline;
}

.method {
  background:
    linear-gradient(180deg, rgba(12, 28, 38, 0.9), rgba(7, 19, 26, 0.2));
  border-block: 1px solid var(--line);
}

.method__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .method__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.method__list h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.method__list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.page-head {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

.page-head__row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.page-head__logo {
  border-radius: 14px;
  flex-shrink: 0;
}

.page-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.site-footer__brand-row img {
  border-radius: 11px;
}

.feed {
  padding-top: 3rem;
}

.alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.alert-row {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.alert-row:hover {
  color: inherit;
  text-decoration: none;
  background: rgba(47, 158, 138, 0.05);
  padding-left: 0.5rem;
}

.alert-row__type {
  display: inline-block;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.alert-row__type.is-high {
  color: var(--warn);
}

.alert-row__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.alert-row__meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.empty {
  color: var(--muted);
  margin: 0;
  padding: 1.5rem 0;
}

.article {
  padding-top: 2.5rem;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.kv {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.55rem 1rem;
  margin: 1.5rem 0;
  padding: 1.1rem 0;
  border-block: 1px solid var(--line);
  font-size: 0.98rem;
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  margin: 0;
}

.prose {
  max-width: 42rem;
}

.prose p {
  color: #c4d3db;
}

.back {
  margin-top: 2rem;
}

/* ——— Footer ——— */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #050e14;
}

.site-footer__inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }
}

.site-footer__brand strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.55rem 0 0;
}

.disclaimer {
  max-width: 36rem;
}

.copy {
  opacity: 0.8;
}

/* ——— Motion ——— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tide {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-18px);
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-4%, 6%) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__content,
  .hero__wave,
  .hero__depth,
  .btn,
  .alert-row {
    animation: none !important;
    transition: none !important;
  }
}
