:root {
  --deep-navy: #1b1b2e;
  --soft-violet: #7a6cff;
  --accessible-violet: #5f52e8;
  --lavender: #b9a8ff;
  --warm-peach: #ffb48d;
  --blush-cream: #fff1e6;
  --white: #fffdfa;
  --muted: #5f6074;
  --border: rgba(27, 27, 46, 0.1);
  --shadow: 0 18px 45px rgba(73, 59, 117, 0.1);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--deep-navy);
  background: var(--blush-cream);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(185, 168, 255, 0.24), transparent 26rem),
    radial-gradient(circle at 5% 86%, rgba(255, 180, 141, 0.18), transparent 22rem),
    linear-gradient(180deg, #fff8f0 0%, var(--blush-cream) 44%, var(--white) 100%);
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  color: white;
  background: var(--deep-navy);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

[aria-current="page"] {
  color: var(--accessible-violet);
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.25em;
}

#main-content:focus {
  outline: none;
}

[id] {
  scroll-margin-top: 1.5rem;
}

.shell {
  width: min(1060px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.75rem auto 0;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(27, 27, 46, 0.08);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.86);
  box-shadow: 0 10px 34px rgba(73, 59, 117, 0.08);
}

.theme-toggle {
  display: inline-flex;
  gap: 0.5rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(95, 82, 232, 0.24);
  border-radius: 999px;
  color: var(--accessible-violet);
  background: rgba(255, 253, 250, 0.78);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.theme-toggle-icon {
  display: grid;
  width: 1.1rem;
  height: 1.1rem;
  place-items: center;
}

.theme-toggle-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(95, 82, 232, 0.68);
  outline-offset: 0.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
}

.brand img {
  display: block;
  width: auto;
  height: clamp(1.75rem, 2.5vw, 2.18rem);
  object-fit: contain;
  object-position: center;
}

.brand .brand-symbol {
  width: 3rem;
  height: auto;
}

.brand-wordmark {
  color: var(--deep-navy);
  font-family: Poppins, Inter, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.25rem;
  align-items: center;
  color: var(--deep-navy);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a,
.footer-links a {
  display: inline-flex;
  min-height: 2.2rem;
  align-items: center;
  border-radius: 999px;
}

.nav-links a:hover,
.footer-links a:hover,
.text-link {
  color: var(--accessible-violet);
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 1rem;
  color: white;
  background: var(--accessible-violet);
  box-shadow: 0 12px 28px rgba(122, 108, 255, 0.24);
  font-weight: 800;
  line-height: 1;
}

.button.secondary {
  color: var(--accessible-violet);
  border: 1px solid rgba(95, 82, 232, 0.35);
  background: rgba(255, 253, 250, 0.78);
  box-shadow: none;
}

.button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(95, 82, 232, 0.68);
  outline-offset: 0.25rem;
}

main {
  padding: 4.5rem 0 5rem;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(18rem, 0.58fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3.2rem);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 253, 250, 0.9);
  box-shadow: var(--shadow);
}

.page-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.page-hero picture {
  display: block;
  width: 100%;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: Poppins, Inter, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 1rem;
  font-size: clamp(2.45rem, 7vw, 4.4rem);
  line-height: 1.04;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.15;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

p,
li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

p {
  margin: 0 0 1rem;
}

.lead {
  max-width: 44rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

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

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

.content-section {
  margin-top: 3.5rem;
}

.soft-card,
.note-panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 253, 250, 0.86);
  box-shadow: 0 10px 30px rgba(73, 59, 117, 0.08);
}

.soft-card {
  padding: 1.35rem;
}

.soft-card p {
  margin-bottom: 0;
}

.note-panel {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
  padding: 1.4rem;
  background:
    linear-gradient(135deg, rgba(185, 168, 255, 0.18), rgba(255, 180, 141, 0.16)),
    rgba(255, 253, 250, 0.88);
}

.check-list {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.2rem;
}

.site-footer {
  border-top: 1px solid rgba(27, 27, 46, 0.08);
  background: rgba(255, 253, 250, 0.76);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 0;
}

.site-footer small {
  color: var(--muted);
  line-height: 1.7;
}

:root[data-theme="dark"] {
  --deep-navy: #f4f0ff;
  --accessible-violet: #c4b8ff;
  --muted: #c0b9cf;
  --border: rgba(255, 253, 250, 0.12);
  --white: #181526;
  color-scheme: dark;
  background: #0f0d1a;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 88% 8%, rgba(122, 108, 255, 0.16), transparent 26rem),
    radial-gradient(circle at 5% 86%, rgba(255, 180, 141, 0.08), transparent 22rem),
    linear-gradient(180deg, #0f0d1a 0%, #151120 48%, #0f0d1a 100%);
}

:root[data-theme="dark"] .site-header,
:root[data-theme="dark"] .page-hero,
:root[data-theme="dark"] .soft-card,
:root[data-theme="dark"] .note-panel,
:root[data-theme="dark"] .site-footer {
  border-color: rgba(255, 253, 250, 0.1);
  background: rgba(24, 21, 38, 0.9);
  box-shadow: 0 18px 45px rgba(5, 4, 12, 0.3);
}

:root[data-theme="dark"] .note-panel {
  background:
    linear-gradient(135deg, rgba(122, 108, 255, 0.14), rgba(255, 180, 141, 0.08)),
    rgba(24, 21, 38, 0.9);
}

:root[data-theme="dark"] .button.secondary,
:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .nav-links a {
  border-color: rgba(196, 184, 255, 0.3);
  color: #f4f0ff;
  background: rgba(33, 28, 52, 0.88);
}

:root[data-theme="dark"] .page-hero img {
  filter: brightness(0.86) saturate(0.9);
}

@media (max-width: 820px) {
  .site-header,
  .footer-inner {
    align-items: flex-start;
    border-radius: 1.2rem;
    flex-direction: column;
  }

  .page-hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  main {
    padding: 3rem 0 3.8rem;
  }
}

@media (max-width: 560px) {
  .nav-links {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem 0.5rem;
  }

  .nav-links a {
    min-height: 2rem;
    padding: 0.35rem 0.45rem;
    border-radius: 0.75rem;
    background: rgba(255, 253, 250, 0.6);
    font-size: 0.85rem;
  }

  .button {
    width: 100%;
  }
}
