:root {
  --bg: #f4efe6;
  --paper: rgba(255, 252, 246, 0.92);
  --ink: #152238;
  --muted: #5d6778;
  --line: rgba(21, 34, 56, 0.12);
  --accent: #0f6a77;
  --accent-soft: rgba(15, 106, 119, 0.12);
  --shadow: 0 24px 70px rgba(21, 34, 56, 0.14);
  --radius: 22px;
  --content-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 106, 119, 0.14), transparent 36%),
    radial-gradient(circle at top right, rgba(196, 116, 84, 0.12), transparent 32%),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 100%);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

a {
  color: var(--accent);
}

a:hover {
  opacity: 0.86;
}

.page-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 28px 0 56px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f6a77 0%, #1f8f8f 100%);
  box-shadow: 0 0 0 8px rgba(15, 106, 119, 0.12);
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.top-links a {
  text-decoration: none;
  font-size: 0.95rem;
}

.hero,
.content-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero {
  padding: 34px;
  margin-bottom: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 {
  margin: 16px 0 10px;
  font: 700 clamp(2.2rem, 5vw, 4rem)/1.02 "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 760px;
  font-size: 1.06rem;
  color: var(--muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.meta-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  font-size: 0.93rem;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 22px;
}

.nav-card,
.content-card {
  padding: 26px;
}

.nav-card {
  position: sticky;
  top: 22px;
  align-self: start;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nav-card h2,
.content-card h2 {
  margin: 0 0 14px;
  font: 700 1.35rem/1.2 "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  letter-spacing: -0.02em;
}

.nav-card ul,
.content-card ul {
  margin: 0;
  padding-left: 18px;
}

.nav-card li,
.content-card li {
  margin: 8px 0;
}

.content-card + .content-card {
  margin-top: 18px;
}

.section-label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(21, 34, 56, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.content-card p {
  margin: 0 0 14px;
}

.content-card p:last-child,
.content-card ul:last-child {
  margin-bottom: 0;
}

.callout {
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  background: rgba(15, 106, 119, 0.08);
  color: var(--ink);
}

.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.invite-shell {
  --content-width: 760px;
}

.invite-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  backdrop-filter: blur(12px);
}

.invite-card h1 {
  max-width: 660px;
}

.invite-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.invite-details div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.invite-details span,
.invite-details strong {
  display: block;
}

.invite-details span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.invite-details strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.invite-install-note {
  margin-top: 20px;
}

.mini-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

.footer {
  margin-top: 26px;
  padding: 22px 6px 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 8px;
}

.footer-links a {
  text-decoration: none;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
}

.button-link.primary {
  color: #fff;
  background: linear-gradient(135deg, #0f6a77 0%, #1a7f8e 100%);
}

.button-link.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
}

@media (max-width: 860px) {
  .grid,
  .two-up,
  .invite-details {
    grid-template-columns: 1fr;
  }

  .nav-card {
    position: static;
  }

  .hero,
  .nav-card,
  .content-card,
  .invite-card {
    padding: 22px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
