:root {
  --ink: #201627;
  --ink-soft: #615766;
  --ink-muted: #8a7f8f;
  --paper: #fffaf7;
  --card: rgba(255, 255, 255, 0.86);
  --line: rgba(76, 48, 83, 0.11);
  --coral: #ff686d;
  --coral-deep: #ee4c63;
  --peach: #ffb696;
  --violet: #8068e8;
  --teal: #5ac7b4;
  --teal-soft: #eaf9f5;
  --rose-soft: #fff0ef;
  --shadow: 0 28px 80px rgba(73, 38, 82, 0.11);
  --font-display: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  position: relative;
}

body::before {
  background-image:
    linear-gradient(rgba(61, 37, 67, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 37, 67, 0.026) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  pointer-events: none;
  position: fixed;
  z-index: -3;
}

body::after {
  background:
    radial-gradient(circle at 88% 7%, rgba(255, 149, 133, 0.27), transparent 27%),
    radial-gradient(circle at 7% 34%, rgba(128, 104, 232, 0.13), transparent 28%),
    radial-gradient(circle at 94% 78%, rgba(90, 199, 180, 0.11), transparent 25%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

a {
  color: var(--coral-deep);
  font-weight: 720;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #ce3e55;
}

a:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(128, 104, 232, 0.34);
  outline-offset: 4px;
}

.page {
  margin: 0 auto;
  max-width: 1060px;
  min-height: 100vh;
  padding: 18px clamp(15px, 4vw, 44px) 42px;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(22px) saturate(150%);
  background: rgba(255, 252, 249, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  box-shadow: 0 12px 42px rgba(70, 42, 78, 0.09);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 10px 12px 10px 16px;
  position: sticky;
  top: 12px;
  z-index: 20;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 780;
  gap: 9px;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  background: white;
  border: 1px solid rgba(255, 104, 109, 0.16);
  border-radius: 11px;
  box-shadow: 0 6px 18px rgba(238, 76, 99, 0.1);
  display: inline-flex;
  height: 36px;
  overflow: hidden;
  width: 36px;
}

.brand-mark img {
  border-radius: inherit;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 4px;
}

.nav-links a {
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 760;
  padding: 10px 11px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.nav-links a:hover {
  background: rgba(255, 104, 109, 0.07);
  color: var(--coral-deep);
}

.nav-links a[aria-current="page"] {
  background: var(--ink);
  box-shadow: 0 7px 18px rgba(32, 22, 39, 0.16);
  color: white;
}

.hero {
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 104, 109, 0.2), transparent 25%),
    radial-gradient(circle at 12% 88%, rgba(128, 104, 232, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  box-shadow: 0 18px 58px rgba(73, 38, 82, 0.08);
  margin-bottom: 18px;
  overflow: hidden;
  padding: clamp(34px, 6vw, 66px) clamp(25px, 6vw, 64px);
  position: relative;
}

.hero::after {
  border: 1px solid rgba(255, 104, 109, 0.1);
  border-radius: 50%;
  content: "";
  height: 240px;
  position: absolute;
  right: -120px;
  top: -150px;
  width: 240px;
}

.eyebrow {
  color: var(--coral-deep);
  font-size: 0.69rem;
  font-weight: 880;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

h1 {
  font-size: clamp(3rem, 7vw, 5.35rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.96;
  margin: 0 0 19px;
}

.summary {
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.8vw, 1.14rem);
  line-height: 1.68;
  margin-bottom: 0;
  max-width: 720px;
}

.document {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 6vw, 64px);
}

.document > h1 {
  max-width: 760px;
}

.document > .summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
  padding-bottom: 32px;
}

.document h2 {
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.25;
  margin: 40px 0 13px;
  padding-top: 31px;
}

.document h2:first-child,
.document > .summary + h2 {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.document h3 {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  margin: 23px 0 8px;
}

.document p,
.document li {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.78;
}

.document p {
  max-width: 78ch;
}

.document ul,
.document ol {
  margin: 14px 0 20px;
  max-width: 79ch;
  padding-left: 24px;
}

.document li {
  margin-bottom: 8px;
  padding-left: 5px;
}

.document li::marker {
  color: var(--coral);
}

.document strong {
  color: var(--ink);
}

.note {
  background:
    linear-gradient(135deg, rgba(255, 104, 109, 0.08), rgba(255, 182, 150, 0.1)),
    white;
  border: 1px solid rgba(238, 76, 99, 0.14);
  border-left: 4px solid var(--coral);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(238, 76, 99, 0.07);
  color: var(--ink) !important;
  padding: 17px 19px;
}

.site-footer {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  color: var(--ink-muted);
  display: flex;
  font-size: 0.74rem;
  gap: 18px;
  justify-content: space-between;
  margin-top: 18px;
  padding: 15px 17px;
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 720px) {
  .page {
    padding: 10px 10px 28px;
  }

  .site-header {
    align-items: flex-start;
    border-radius: 17px;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    position: relative;
    top: auto;
  }

  .brand {
    padding-inline: 2px;
  }

  .nav-links {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .nav-links a {
    align-items: center;
    display: flex;
    font-size: 0.67rem;
    justify-content: center;
    line-height: 1.25;
    min-width: 0;
    min-height: 44px;
    padding: 8px 4px;
    text-align: center;
  }

  .hero,
  .document {
    border-radius: 22px;
  }

  .hero {
    padding: 35px 24px;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 4.2rem);
  }

  .document {
    padding: 30px 23px;
  }

  .document h2 {
    margin-top: 34px;
    padding-top: 27px;
  }

  .document p,
  .document li {
    font-size: 0.93rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

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

@media print {
  :root {
    --ink: #000;
    --ink-soft: #222;
  }

  body::before,
  body::after,
  .site-header {
    display: none;
  }

  .page {
    max-width: none;
    padding: 0;
  }

  .hero,
  .document,
  .site-footer {
    background: white;
    border: 0;
    box-shadow: none;
  }

  .hero,
  .document {
    padding: 0;
  }

  .document h2 {
    break-after: avoid;
  }

  .document p,
  .document li {
    orphans: 3;
    widows: 3;
  }
}
