:root {
  --bg: #f7faf8;
  --surface: #ffffff;
  --surface-soft: #f3f8f4;
  --surface-tint: #eef7f1;
  --text: #18251d;
  --muted: #5e6f63;
  --line: #dbe8df;
  --line-strong: #c8dbce;
  --accent: #2f855a;
  --accent-strong: #276749;
  --accent-soft: rgba(47, 133, 90, 0.1);
  --max: 1200px;
  --shadow: 0 18px 50px rgba(24, 37, 29, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 133, 90, 0.06), transparent 22%),
    linear-gradient(180deg, #fbfdfb 0%, #f7faf8 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(200, 219, 206, 0.8);
  background: rgba(247, 250, 248, 0.88);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 0 auto;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-chip,
.eyebrow,
.sidebar-label,
.column-title,
.note-title {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
}

.brand-chip {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.brand-mark {
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  gap: 1.3rem;
  color: var(--muted);
}

.site-nav a {
  padding: 0.3rem 0;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.header-link:hover,
.header-link:focus-visible {
  color: var(--accent-strong);
}

.header-link {
  color: var(--accent-strong);
  font-weight: 700;
}

.page-shell {
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2.5rem;
  padding: 2rem 0 5rem;
}

.page-sidebar {
  padding-top: 1rem;
}

.sidebar-card {
  position: sticky;
  top: 6.4rem;
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
}

.sidebar-label,
.eyebrow,
.note-title {
  color: var(--accent-strong);
}

.sidebar-card a {
  color: var(--muted);
  line-height: 1.4;
}

.sidebar-card a:hover,
.sidebar-card a:focus-visible {
  color: var(--text);
}

.page-content {
  display: grid;
  gap: 1.6rem;
}

.hero-docs,
.content-section {
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.hero-docs {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 2rem;
  padding: 2.3rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 248, 244, 0.9)),
    linear-gradient(135deg, rgba(47, 133, 90, 0.04), rgba(255, 255, 255, 0));
}

.hero-copy h1,
.content-section h2,
.info-block h3,
.expectation-row h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
}

.hero-copy h1 {
  max-width: 12ch;
  margin-top: 0.75rem;
  font-size: clamp(2.1rem, 3.2vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-text,
.section-heading p,
.hero-note p,
.info-block p,
.column-card li,
.expectation-row p,
.start-panel p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-text {
  max-width: 40rem;
  margin: 1rem 0 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.05rem;
  border-radius: 0.8rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
}

.hero-note {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(238, 247, 241, 0.9), rgba(255, 255, 255, 0.88));
}

.hero-note p {
  margin: 0.8rem 0 0;
}

.note-list,
.column-card ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.note-list li,
.column-card li {
  position: relative;
  padding-left: 1.1rem;
}

.note-list li + li,
.column-card li + li {
  margin-top: 0.65rem;
}

.note-list li::before,
.column-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
}

.content-section {
  padding: 2rem 2.3rem;
}

.section-heading {
  max-width: 48rem;
}

.content-section h2 {
  margin-top: 0.7rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.section-heading p:last-child {
  margin-top: 1rem;
}

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

.info-block {
  padding: 1.2rem 1rem 0 0;
  border-top: 1px solid var(--line);
}

.block-index {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.info-block h3,
.expectation-row h3 {
  font-size: 1.28rem;
  line-height: 1.15;
}

.section-split,
.section-band,
.section-start {
  display: grid;
  gap: 2rem;
}

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

.column-card {
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 244, 0.72));
}

.column-title {
  color: var(--text);
}

.expectation-list {
  display: grid;
}

.expectation-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.expectation-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.band-intro {
  max-width: 44rem;
}

.band-intro p:last-child {
  margin-top: 1rem;
}

.start-panel {
  max-width: 42rem;
}

.start-panel h2 {
  margin-top: 0.7rem;
}

.start-panel p {
  margin: 1rem 0 1.6rem;
}

.reveal,
.reveal-delay,
.reveal-delay-2 {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal-delay {
  transition-delay: 90ms;
}

.reveal-delay-2 {
  transition-delay: 180ms;
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .page-sidebar {
    display: none;
  }

  .hero-docs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    width: min(calc(100% - 1.4rem), var(--max));
    min-height: auto;
    padding: 0.95rem 0;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.9rem 1.1rem;
    font-size: 0.95rem;
  }

  .page-shell {
    width: min(calc(100% - 1.4rem), var(--max));
    padding-top: 1.2rem;
  }

  .hero-docs,
  .content-section {
    padding: 1.35rem;
  }

  .content-grid,
  .split-columns,
  .expectation-row {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(1.8rem, 7vw, 2.7rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal-delay,
  .reveal-delay-2 {
    opacity: 1;
    transform: none;
  }
}

.admin-body {
  background:
    radial-gradient(circle at top left, rgba(47, 133, 90, 0.08), transparent 24%),
    linear-gradient(180deg, #f5faf6 0%, #eef6f0 100%);
}

.button-reset {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.admin-shell {
  width: min(calc(100% - 2.5rem), 1100px);
  margin: 0 auto;
  padding: 2rem 0 5rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1.25rem;
  align-items: start;
}

.admin-panel {
  display: grid;
  gap: 1.5rem;
}

.preview-panel {
  position: sticky;
  top: 6rem;
}

.preview-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.preview-head h2 {
  margin: 0.35rem 0 0;
  font-family: "Manrope", sans-serif;
}

.preview-frame {
  width: 100%;
  height: 72vh;
  border: 0;
  background: #fff;
}

.admin-heading h1,
.editor-card h2 {
  margin: 0.5rem 0 0;
  font-family: "Manrope", sans-serif;
}

.admin-heading p:last-child {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.admin-form,
.blocks-editor {
  display: grid;
  gap: 1rem;
}

.editor-toolbar {
  display: flex;
  align-items: end;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.editor-card,
.editor-subcard {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.editor-card {
  padding: 1.2rem;
}

.editor-subcard {
  padding: 1rem;
}

.editor-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.editor-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.editor-actions button {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
  font: inherit;
}

.editor-grid,
.array-object-list {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span {
  font-weight: 700;
  color: var(--text);
}

.field-inline {
  min-width: 220px;
}

.field input,
.field textarea,
.field select,
.field-inline select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.8rem;
  background: #fff;
  font: inherit;
  color: var(--text);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.array-list {
  display: grid;
  gap: 0.55rem;
}

@media (max-width: 760px) {
  .admin-shell {
    width: min(calc(100% - 1.4rem), 1100px);
    padding-top: 1.2rem;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: static;
  }

  .editor-card-head {
    flex-direction: column;
  }
}
