* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.86rem;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(248, 219, 169, 0.68), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(205, 236, 230, 0.72), transparent 26%),
    linear-gradient(160deg, var(--paper), var(--paper-deep));
}

a {
  color: inherit;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.18;
  z-index: -1;
}

.bg-orb-a {
  width: 195px;
  height: 195px;
  background: #d39f4a;
  top: -72px;
  right: 7vw;
}

.bg-orb-b {
  width: 210px;
  height: 210px;
  background: #2aa087;
  bottom: -95px;
  left: 6vw;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.62rem;
  padding: 0.66rem clamp(0.7rem, 2vw, 1.45rem);
}

.brand-wrap {
  display: grid;
  gap: 0.12rem;
}

.brand {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.site-nav a {
  padding: 0.22rem 0.44rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8rem;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(15, 123, 109, 0.12);
}

.page {
  width: min(980px, 94vw);
  margin: 0 auto 1.35rem;
  display: grid;
  gap: 0.66rem;
  flex: 1 0 auto;
}

.site-footer {
  padding: 0 0 0.9rem;
}

.footer-inner {
  width: min(980px, 94vw);
  margin: 0 auto;
  padding: 0.56rem 0.72rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.52rem;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

.copyleft-mark {
  line-height: 1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.footer-links a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.42rem;
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.76rem;
}

@media (max-width: 860px) {
  .site-header {
    flex-direction: column;
  }
}
