:root {
  --bg: #f7f8f3;
  --surface: #ffffff;
  --surface-soft: #edf3ec;
  --ink: #17332a;
  --muted: #64746d;
  --line: #d5ded7;
  --accent: #246b4b;
  --accent-strong: #164d35;
  --focus: #0e7a58;
  --shadow: 0 16px 48px rgba(18, 44, 35, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(247, 248, 243, 0.94)),
    repeating-linear-gradient(
      90deg,
      rgba(36, 107, 75, 0.07) 0,
      rgba(36, 107, 75, 0.07) 1px,
      transparent 1px,
      transparent 44px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(36, 107, 75, 0.055) 0,
      rgba(36, 107, 75, 0.055) 1px,
      transparent 1px,
      transparent 44px
    ),
    var(--bg);
}

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

code {
  border-radius: 4px;
  padding: 2px 5px;
  background: rgba(36, 107, 75, 0.09);
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

a:focus-visible,
.module-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(36, 107, 75, 0.18);
  background: rgba(247, 248, 243, 0.88);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--surface);
  background: var(--accent);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.15;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topnav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.topnav a:hover {
  border-color: rgba(36, 107, 75, 0.54);
  background: var(--surface);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 0 40px;
}

.intro {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 8vw, 76px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
}

.lede {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.module-card {
  position: relative;
  display: flex;
  min-height: 286px;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 rgba(18, 44, 35, 0.05);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.module-card.active:hover,
.module-card.planned:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 107, 75, 0.62);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  border-radius: 8px 8px 0 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 180ms ease;
}

.module-card.active::before,
.module-card.planned::before {
  opacity: 1;
}

.module-card.disabled {
  color: rgba(23, 51, 42, 0.72);
  background: rgba(255, 255, 255, 0.54);
}

.card-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-top: 6px;
  border: 1px solid rgba(36, 107, 75, 0.3);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.card-title {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.1;
}

.card-copy {
  display: block;
  flex: 1;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.card-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-bottom: 1px solid currentColor;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-action::after {
  content: ">";
  margin-left: 8px;
}

.card-action.muted {
  border-color: transparent;
  color: var(--muted);
}

.card-action.muted::after {
  content: "";
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.status-strip div {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.78);
}

.status-strip span,
.status-strip strong {
  display: block;
}

.status-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-strip strong {
  margin-top: 6px;
  font-size: 14px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    justify-content: flex-start;
  }

  .module-grid,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .module-card {
    min-height: auto;
  }
}
