:root {
  --bg-top: #eef2fa;
  --bg-mid: #f6f1ec;
  --bg-bottom: #edf2fb;
  --text: #171a21;
  --muted: #556070;
  --subtle: #707b8a;
  --card: rgba(255, 255, 255, 0.9);
  --card-border: rgba(20, 28, 40, 0.08);
  --shadow: 0 12px 40px rgba(22, 34, 56, 0.07), 0 2px 8px rgba(22, 34, 56, 0.04);
  --radius-lg: 28px;
  --radius-sm: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --active: #2268ff;
  --dev: #b06f00;
  --soon: #8b96a3;
  --accent: #1f8742;
  --accent-soft: rgba(31, 135, 66, 0.1);
  --link: #1f62ea;
}

.pillar-page--life {
  --accent: #1f8742;
  --accent-soft: rgba(31, 135, 66, 0.1);
}

.pillar-page--love {
  --accent: #1f62ea;
  --accent-soft: rgba(31, 104, 234, 0.1);
}

.pillar-page--me {
  --accent: #8d4eb0;
  --accent-soft: rgba(141, 78, 176, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.pillar-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 70% at 50% -15%, rgba(255, 255, 255, 0.95), transparent 55%),
    radial-gradient(ellipse 85% 45% at 100% 35%, rgba(34, 104, 255, 0.06), transparent 50%),
    radial-gradient(ellipse 80% 42% at 0% 70%, rgba(141, 78, 176, 0.05), transparent 48%),
    linear-gradient(165deg, var(--bg-top) 0%, var(--bg-mid) 48%, var(--bg-bottom) 100%);
  background-attachment: fixed;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: #fff;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
}

.site-header {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 1.75rem) clamp(1.25rem, 5vw, 2rem) 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--subtle);
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.04);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.site-nav__sep {
  color: rgba(0, 0, 0, 0.12);
  user-select: none;
  font-weight: 400;
}

.page-hero {
  text-align: center;
  padding: clamp(2rem, 6vw, 3.25rem) 0 clamp(0.5rem, 2vw, 1rem);
}

.page-hero__icon-wrap {
  display: flex;
  justify-content: center;
  margin: 0.85rem 0 0;
}

.page-hero__icon {
  width: 56px;
  height: 56px;
  color: var(--accent);
  opacity: 0.88;
}

.page-hero__eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--subtle);
}

.page-hero__title {
  margin: 0.85rem 0 0;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.page-hero__intro {
  margin: 1.15rem auto 0;
  max-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted);
}

.page-main {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 5vw, 2rem) clamp(3rem, 7vw, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 2.75rem);
}

.group-section__title {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}

.group-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.15rem, 3vw, 1.5rem);
  backdrop-filter: blur(12px);
}

.module-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.module-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  border: 1px solid rgba(20, 28, 40, 0.08);
  background: rgba(255, 255, 255, 0.75);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.module-item--active {
  border-color: rgba(34, 104, 255, 0.35);
  background: rgba(34, 104, 255, 0.07);
}

.module-item--active:hover {
  background: rgba(34, 104, 255, 0.11);
  border-color: rgba(34, 104, 255, 0.45);
}

.module-item--dev {
  border-color: rgba(176, 111, 0, 0.22);
  background: rgba(176, 111, 0, 0.06);
  opacity: 0.92;
}

.module-item--soon {
  border-color: rgba(100, 112, 128, 0.14);
  background: rgba(130, 142, 158, 0.06);
  opacity: 0.72;
}

.module-link {
  display: block;
  min-width: 0;
}

.module-link--static {
  cursor: default;
  color: inherit;
}

.module-name {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.module-desc {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.module-item--soon .module-name {
  color: #5c6570;
}

.module-item--dev .module-name {
  color: #4a4f55;
}

.module-item--active .module-link {
  color: inherit;
  text-decoration: none;
}

.module-item--rich {
  display: block;
  padding: 0;
}

.module-link--card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.5rem 0.85rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.module-link--card .module-name,
.module-link--card .module-desc {
  grid-column: 1;
}

.module-link--card .badge {
  grid-column: 2;
  grid-row: 1;
}

.module-link--card:hover {
  text-decoration: none;
}

.module-item--active .module-link:hover .module-name {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  white-space: nowrap;
}

.badge--active {
  color: #fff;
  background: var(--active);
}

.badge--dev {
  color: #fff;
  background: var(--dev);
}

.badge--soon {
  color: #fff;
  background: var(--soon);
}

.page-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2rem) clamp(2.5rem, 6vw, 3.5rem);
  text-align: center;
}

.page-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.page-footer a {
  color: var(--muted);
  font-weight: 600;
}

.page-footer a:hover {
  color: var(--accent);
}

.app-breadcrumb {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0.85rem;
  padding: 0 clamp(1.25rem, 5vw, 2rem);
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.app-breadcrumb a {
  color: var(--link);
  text-decoration: none;
}

.app-breadcrumb a:hover {
  text-decoration: underline;
}

.app-breadcrumb__sep {
  color: var(--subtle);
  font-weight: 500;
  user-select: none;
}

.app-breadcrumb__here {
  color: var(--text);
  font-weight: 700;
}

.asset-tab-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0.85rem 0 0;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(20, 28, 40, 0.08);
}

@media (max-width: 520px) {
  .module-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .badge {
    justify-self: start;
  }

  .module-link--card {
    grid-template-columns: 1fr;
  }

  .module-link--card .badge {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0.15rem;
    justify-self: start;
  }
}
