@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #1c1726;
  --violet: #6514ff;
  --magenta: #bf00ff;
  --cream: #f7f3ff;
  --paper: #ffffff;
  --teal: #00e3b0;
  --sun: #ffe15a;
  --line: #ded5f4;
  --r: 28px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Raleway', 'PingFang SC', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--violet);
}

h1,
h2,
h3 {
  font-family: 'Lora', 'Noto Serif SC', Georgia, serif;
  line-height: 1.22;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
}

:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}

.brandbar {
  background: var(--ink);
  padding: 8px clamp(16px, 4vw, 32px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 4px 0;
  color: #fff;
  text-decoration: none;
  font-family: 'Lora', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--magenta);
}

.menu {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.menu nav {
  flex: 1 1 auto;
  min-width: 0;
}

.menu nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
}

.menu nav a {
  display: inline-block;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.menu nav a:hover,
.menu nav a:focus-visible {
  background: var(--violet);
  color: #fff;
  transform: translateY(-2px);
}

.search {
  display: flex;
  gap: 8px;
  flex: 0 1 250px;
  min-width: 0;
}

.search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.search button {
  min-height: 44px;
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search button:hover {
  background: var(--teal);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 32px) clamp(88px, 11vw, 130px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(24px, 5vw, 60px);
}

.hero::before {
  content: '';
  position: absolute;
  inset: -25%;
  z-index: -1;
  background:
    radial-gradient(560px 560px at 82% 18%, rgba(191, 0, 255, 0.20), transparent 70%),
    radial-gradient(520px 520px at 12% 78%, rgba(101, 20, 255, 0.20), transparent 70%),
    radial-gradient(340px 340px at 48% 46%, rgba(255, 225, 90, 0.30), transparent 72%),
    repeating-linear-gradient(135deg, rgba(28, 23, 38, 0.05) 0 2px, transparent 2px 18px);
  background-size: 180% 180%, 180% 180%, 180% 180%, auto;
  animation: drift 24s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    background-position: 0% 0%, 100% 100%, 50% 50%, 0 0;
  }
  to {
    background-position: 70% 60%, 20% 10%, 30% 80%, 90px 90px;
  }
}

.band {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -2px;
  z-index: -1;
  height: clamp(56px, 9vw, 110px);
  background: linear-gradient(90deg, var(--violet), var(--magenta));
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero-copy {
  text-align: center;
}

.hero-copy h1 {
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.06;
  margin: 0 0 20px;
}

.lead {
  font-size: 18px;
  max-width: 44ch;
  margin: 0 auto 26px;
  color: #3a3350;
}

.hero-cta {
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 30px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.22s ease, transform 0.22s ease;
}

.btn:hover {
  background: var(--magenta);
  transform: translateY(-3px);
}

.hero-fig {
  margin: 0;
}

.hero-img {
  width: 100%;
  height: clamp(280px, 52vh, 520px);
  object-fit: cover;
  border-radius: var(--r);
  border: 4px solid var(--ink);
  box-shadow: 14px 14px 0 var(--violet);
}

main {
  padding-bottom: 56px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.side {
  position: sticky;
  top: 152px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--r);
  padding: 20px 18px;
  box-shadow: 8px 8px 0 var(--sun);
}

.side ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.side li a {
  display: block;
  min-height: 44px;
  padding: 10px 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.side li a:hover {
  color: var(--violet);
  padding-left: 10px;
}

.side ul li {
  animation: rise 0.4s ease both;
}

.side ul li:nth-child(1) { animation-delay: 0.04s; }
.side ul li:nth-child(2) { animation-delay: 0.08s; }
.side ul li:nth-child(3) { animation-delay: 0.12s; }
.side ul li:nth-child(4) { animation-delay: 0.16s; }
.side ul li:nth-child(5) { animation-delay: 0.2s; }
.side ul li:nth-child(6) { animation-delay: 0.24s; }
.side ul li:nth-child(7) { animation-delay: 0.28s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
}

.top-link {
  display: block;
  min-height: 44px;
  padding: 10px 14px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--violet);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.top-link:hover {
  background: var(--magenta);
}

.tick {
  display: block;
  font-size: 17px;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
}

.tick > span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tick .bar {
  display: inline-block;
  width: 24px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--magenta));
}

.content {
  min-width: 0;
}

.body > div {
  position: relative;
  background: var(--paper);
  border-radius: var(--r);
  border-bottom: 8px solid var(--violet);
  padding: clamp(24px, 4.5vw, 52px);
  margin-bottom: clamp(36px, 5vw, 56px);
  scroll-margin-top: 150px;
}

.body > div:nth-child(3n + 2) {
  border-bottom-color: var(--magenta);
}

.body > div:nth-child(3n + 3) {
  border-bottom-color: var(--ink);
}

.body > div:nth-child(even) {
  background: #fdfbff;
  box-shadow: 10px 10px 0 rgba(101, 20, 255, 0.10);
}

.body > div:last-child {
  margin-bottom: 0;
}

.body h2 {
  font-size: clamp(24px, 3.2vw, 34px);
}

.body h3 {
  font-size: clamp(19px, 2.2vw, 23px);
  color: var(--violet);
}

.body p {
  margin: 0 0 1.05em;
}

.body ul,
.body ol {
  padding-left: 1.35em;
  margin: 0 0 1.1em;
}

.body li {
  margin-bottom: 0.45em;
}

.body img {
  border-radius: 20px;
  margin: 1.2em 0;
}

.body strong {
  color: var(--violet);
}

.body a {
  text-underline-offset: 3px;
}

.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.rv.in {
  opacity: 1;
  transform: none;
}

.foot {
  margin-top: clamp(48px, 7vw, 80px);
  background: var(--ink);
  color: #fff;
  padding: clamp(36px, 5vw, 60px) clamp(16px, 4vw, 32px) 24px;
}

.foot-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.foot .tick {
  color: #fff;
}

.foot address {
  font-style: normal;
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  color: #e7e1f7;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot li a {
  display: inline-block;
  min-height: 40px;
  padding: 9px 0;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.foot li a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.giant {
  max-width: var(--max);
  margin: clamp(36px, 6vw, 60px) auto 0;
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: clamp(44px, 13vw, 148px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.6);
  overflow-wrap: anywhere;
}

.copy {
  max-width: var(--max);
  margin: 22px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 16px;
  color: #cfc7e6;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-bottom: clamp(70px, 14vw, 110px);
  }

  .hero-fig {
    order: 2;
  }

  .hero-img {
    height: clamp(220px, 38vh, 340px);
    box-shadow: 10px 10px 0 var(--magenta);
  }

  .wrap {
    grid-template-columns: 1fr;
  }

  .side {
    position: static;
    order: 2;
    box-shadow: 6px 6px 0 var(--sun);
  }

  .content {
    order: 1;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .menu {
    gap: 8px;
  }

  .menu nav {
    flex: 1 1 100%;
  }

  .search {
    flex: 1 1 100%;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }

  .body > div {
    scroll-margin-top: 170px;
  }

  .side {
    top: auto;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .rv {
    opacity: 1;
    transform: none;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
