/* Shared site chrome: tokens, base, nav, footer, ghost buttons. Loaded on every page before the page stylesheet. */
:root {
  --space: #14192a;
  --space-soft: #202943;
  --greenhouse: #24483f;
  --greenhouse-bright: #77a890;
  --leaf: #b8d7a7;
  --paper: #fff7e8;
  --paper-deep: #f2dfbf;
  --lamp: #ffc66d;
  --coral: #ff8d78;
  --ink: #2f2a27;
  --muted: #66524a;
  --white: #fffdf7;
  --rose: #f8b6aa;
  --shadow: rgba(10, 13, 22, 0.32);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

h1, h2, h3, .brand {
  font-family: "Fraunces", Georgia, serif;
  color: inherit;
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 25, 42, 0.86);
  border-bottom: 1px solid rgba(255, 253, 247, 0.12);
  backdrop-filter: blur(12px);
}

.nav-links a.active { background: rgba(255, 253, 247, 0.12); color: var(--white); }

.shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 22px;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 253, 247, 0.7);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
  background: radial-gradient(circle at 36% 34%, var(--lamp) 0 18%, var(--coral) 19% 37%, transparent 38%);
  box-shadow: inset 0 0 0 6px rgba(20, 25, 42, 0.38);
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 8px;
  border: 1px solid rgba(255, 253, 247, 0.66);
  border-top: 0;
  border-radius: 0 0 50% 50%;
  left: 6px;
  bottom: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 253, 247, 0.84);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
}

.nav-links a:hover {
  background: rgba(255, 253, 247, 0.12);
  color: var(--white);
}

.button.ghost {
  color: var(--greenhouse);
  border-color: rgba(36, 72, 63, 0.24);
  background: rgba(36, 72, 63, 0.06);
}

footer {
  padding: 38px 0 52px;
  color: rgba(255, 253, 247, 0.72);
  background: var(--space);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

footer p {
  max-width: 560px;
  font-size: 13px;
}

footer a {
  color: var(--lamp);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 198, 109, 0.4);
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1120px); }
  .nav-inner {
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
  }
  .brand { font-size: 20px; }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    flex: 0 0 auto;
    padding: 8px 10px;
    font-size: 13px;
  }
  .footer-inner { display: block; }
  footer p { margin-top: 14px; }
}

/* Scheduled content: release.js reveals these at their release time. */
[data-release-show="after"] { display: none !important; }
