:root {
  --color-brand: #502378;
  --color-brand-dark: #2e0b45;
  --color-brand-soft: #f2edf7;
  --color-paper: #f8f6f2;
  --color-paper-dark: #efe9e1;
  --color-surface: rgba(255, 255, 255, 0.82);
  --color-border: #ddd4e5;
  --color-text: #241f2a;
  --color-muted: #5f5966;
  --color-slate: #475569;
  --shadow-soft: 0 24px 60px rgba(46, 11, 69, 0.08);
  --font-title: "Montserrat", sans-serif;
  --font-body: "Merriweather", serif;
  --shell-width: 1320px;
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.8;
  background:
    radial-gradient(circle at top left, rgba(80, 35, 120, 0.09), transparent 30%),
    linear-gradient(180deg, #fbf9fd 0%, var(--color-paper) 100%);
}

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

a:hover {
  color: var(--color-brand);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(80, 35, 120, 0.1);
}

.site-header__inner,
.hero,
.section,
.site-footer__inner {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-header__inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.brand__mark {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--color-brand);
  color: #ffffff;
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand__text strong,
.site-nav,
.button,
.eyebrow,
.field-card__code {
  font-family: var(--font-title);
}

.brand__text strong {
  display: block;
  font-size: 1rem;
  color: var(--color-brand-dark);
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.eyebrow--muted {
  color: var(--color-slate);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.site-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
}

.site-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(80, 35, 120, 0.2);
  font-family: var(--font-title);
  font-size: 0.84rem;
  font-weight: 600;
  transition: 0.25s ease;
}

.site-link {
  color: var(--color-brand);
  background: rgba(255, 255, 255, 0.86);
}

.site-link:hover,
.button--secondary:hover {
  background: var(--color-brand);
  color: #ffffff;
}

.hero {
  padding-top: 4rem;
  padding-bottom: 1.25rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.6rem;
  align-items: start;
}

.hero__art {
  position: relative;
  width: min(100%, 500px);
  margin: -0.15rem auto 0.45rem;
  aspect-ratio: 5 / 6;
  overflow: visible;
  background: transparent;
}

.hero__art-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  filter: saturate(0.96) contrast(1.01);
  -webkit-mask-image: radial-gradient(
    ellipse 68% 66% at 50% 50%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 36%,
    rgba(0, 0, 0, 0.97) 48%,
    rgba(0, 0, 0, 0.84) 62%,
    rgba(0, 0, 0, 0.46) 78%,
    rgba(0, 0, 0, 0.12) 90%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: radial-gradient(
    ellipse 68% 66% at 50% 50%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 36%,
    rgba(0, 0, 0, 0.97) 48%,
    rgba(0, 0, 0, 0.84) 62%,
    rgba(0, 0, 0, 0.46) 78%,
    rgba(0, 0, 0, 0.12) 90%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero__copy,
.hero__panel,
.field-card,
.explore-card,
.publication-band,
.mini-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.hero__copy,
.hero__panel {
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.hero__copy h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--color-brand-dark);
}

.hero__lead {
  max-width: 30em;
  margin: 1.2rem 0 0;
  font-size: 1.08rem;
  color: #443e4b;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.button--primary {
  background: var(--color-brand);
  color: #ffffff;
  border-color: var(--color-brand);
}

.button--primary:hover {
  background: var(--color-brand-dark);
  color: #ffffff;
}

.button--secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-brand);
}

.hero__panel h2,
.section__head h2,
.explore-card h3,
.publication-band h3,
.guidance-copy h2,
.mini-panel h3,
.site-footer h2 {
  margin: 0;
  font-family: var(--font-title);
  color: var(--color-brand-dark);
}

.hero__panel h2 {
  font-size: 1.4rem;
  line-height: 1.25;
}

.hero__panel p {
  margin: 0.9rem 0 0;
  color: var(--color-muted);
}

.palette {
  margin-top: 1.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(71, 85, 105, 0.14);
}

.palette__core {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
}

.palette__core div {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.7rem;
  align-items: center;
}

.palette__core strong,
.palette__core em {
  display: block;
  font-style: normal;
}

.palette__core em {
  font-size: 0.82rem;
  color: var(--color-muted);
}

.chip,
.field-swatch {
  display: inline-block;
  border-radius: 999px;
}

.chip {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.chip--brand { background: var(--color-brand); }
.chip--dark { background: var(--color-brand-dark); }
.chip--paper { background: var(--color-paper); }
.chip--slate { background: var(--color-slate); }

.palette__fields {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.4rem;
}

.field-swatch {
  height: 12px;
}

.field-I { background: #4338ca; }
.field-II { background: #475569; }
.field-III { background: #059669; }
.field-IV { background: #dc2626; }
.field-V { background: #7c3aed; }
.field-VI { background: #0891b2; }
.field-VII { background: #ea580c; }
.field-VIII { background: #be185d; }
.field-IX { background: #2563eb; }
.field-X { background: #d97706; }

.hero__notes {
  margin: 1.1rem 0 0;
  padding-left: 1.2rem;
  color: var(--color-muted);
}

.study-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(71, 85, 105, 0.14);
}

.study-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(80, 35, 120, 0.18);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-title);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

.study-chip:hover {
  color: #ffffff;
  background: var(--color-brand);
  border-color: var(--color-brand);
}

.hero__notes li + li {
  margin-top: 0.4rem;
}

.section {
  padding-top: 2.3rem;
  padding-bottom: 2.3rem;
}

.section__head {
  max-width: 900px;
  margin-bottom: 1.7rem;
}

.section__head--narrow {
  max-width: 860px;
}

.section__head h2,
.guidance-copy h2,
.site-footer h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1.15;
}

.section__head p,
.guidance-copy p,
.publication-band p,
.explore-card p,
.field-card p,
.site-footer p {
  color: var(--color-muted);
}

.section--fields {
  padding-top: 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(239, 233, 225, 0.45));
}

.fields-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.field-card {
  display: block;
  min-height: 220px;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.field-card:hover {
  transform: translateY(-4px);
  border-color: rgba(80, 35, 120, 0.28);
}

.field-card__code {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-title);
  font-size: 1.03rem;
  line-height: 1.3;
}

.field-card--I { background: linear-gradient(180deg, rgba(238, 242, 255, 0.9), rgba(255, 255, 255, 0.92)); }
.field-card--II { background: linear-gradient(180deg, rgba(241, 245, 249, 0.95), rgba(255, 255, 255, 0.92)); }
.field-card--III { background: linear-gradient(180deg, rgba(236, 253, 245, 0.9), rgba(255, 255, 255, 0.92)); }
.field-card--IV { background: linear-gradient(180deg, rgba(254, 242, 242, 0.9), rgba(255, 255, 255, 0.92)); }
.field-card--V { background: linear-gradient(180deg, rgba(245, 243, 255, 0.9), rgba(255, 255, 255, 0.92)); }
.field-card--VI { background: linear-gradient(180deg, rgba(236, 254, 255, 0.92), rgba(255, 255, 255, 0.92)); }
.field-card--VII { background: linear-gradient(180deg, rgba(255, 247, 237, 0.92), rgba(255, 255, 255, 0.92)); }
.field-card--VIII { background: linear-gradient(180deg, rgba(253, 242, 248, 0.92), rgba(255, 255, 255, 0.92)); }
.field-card--IX { background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.92)); }
.field-card--X { background: linear-gradient(180deg, rgba(255, 251, 235, 0.92), rgba(255, 255, 255, 0.92)); }

.section--explore {
  background: rgba(255, 255, 255, 0.36);
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.explore-card {
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.explore-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.explore-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--color-muted);
}

.explore-card li + li {
  margin-top: 0.45rem;
}

.publication-band {
  margin-top: 1rem;
  border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.publication-band h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.section--guidance {
  padding-bottom: 3.6rem;
}

.guidance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.2rem;
  align-items: start;
}

.guidance-copy {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.guidance-copy p {
  margin: 0;
}

.guidance-concepts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
  margin-top: 0.75rem;
}

.guidance-concept {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(71, 85, 105, 0.12);
}

.guidance-concept strong {
  display: block;
  margin-bottom: 0.12rem;
  font-family: var(--font-title);
  font-size: 0.92rem;
  color: var(--color-brand-dark);
}

.guidance-concept p {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.concept-dot {
  width: 16px;
  height: 16px;
  margin-top: 0.15rem;
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.concept-dot--matter { background: var(--color-brand); }
.concept-dot--emergence { background: var(--color-brand-dark); }
.concept-dot--inscription { background: #d8c8af; }
.concept-dot--crossing { background: var(--color-slate); }

.guidance-panels {
  display: grid;
  gap: 0.95rem;
}

.mini-panel {
  border-radius: var(--radius-md);
  padding: 1.2rem 1.25rem;
}

.mini-panel h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.mini-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-muted);
}

.mini-panel li + li {
  margin-top: 0.4rem;
}

.site-footer {
  border-top: 1px solid rgba(80, 35, 120, 0.1);
  background: rgba(255, 255, 255, 0.6);
}

.site-footer__inner {
  padding-top: 2rem;
  padding-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.site-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@media (max-width: 1180px) {
  .fields-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header__inner,
  .hero__grid,
  .guidance-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .fields-grid,
  .explore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guidance-concepts {
    grid-template-columns: 1fr;
  }

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

  .hero__art {
    width: min(100%, 430px);
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 640px) {
  .site-header__inner,
  .hero,
  .section,
  .site-footer__inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero {
    padding-top: 2.8rem;
  }

  .hero__copy,
  .hero__panel,
  .field-card,
  .explore-card,
  .publication-band,
  .mini-panel {
    border-radius: 18px;
  }

  .fields-grid,
  .explore-grid,
  .palette__core {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 0.7rem;
  }

  .button,
  .site-link {
    width: 100%;
  }

  .hero__actions,
  .site-footer__actions {
    flex-direction: column;
  }
}
