:root {
  --page-bg: #f5f1e8;
  --text: #2d261d;
  --muted: #675d52;
  --accent: #7600c8;
  --accent-soft: #a63eff;
  --sidebar-bg-top: #221a27;
  --sidebar-bg-bottom: #120f15;
  --card-bg: rgba(255, 250, 244, 0.78);
  --card-bg-strong: rgba(255, 250, 244, 0.92);
  --line: rgba(45, 38, 29, 0.08);
}

/* Legal pages and the shared links at the bottom of every page. */
.legal-footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid currentColor;
  color: var(--muted);
  font-size: 0.8rem;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.legal-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 0.2em;
}

.legal-page .page-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.legal-page .page-header {
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
  line-height: 1.25;
}

@font-face {
  font-family: "Encode Sans";
  src: url("../fonts/EncodeSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
}

html {
  font-family: "Encode Sans", sans-serif;
}

body {
  font-family: "Encode Sans", sans-serif;
  font-weight: 360;
  font-stretch: 100%;
  background: var(--page-bg);
  color: var(--text);
}

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

a:hover,
a:focus {
  color: var(--accent-soft);
}

h2,
h3 {
  color: var(--text);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  line-height: 1.12;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.08rem;
  margin-bottom: 0.55rem;
}

p,
li {
  line-height: 1.65;
}

.sidebar {
  color: rgba(255, 249, 242, 0.7);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(180deg, var(--sidebar-bg-top) 0%, var(--sidebar-bg-bottom) 100%);
}

.sidebar a {
  color: #fff;
}

.sidebar-about {
  width: 100%;
  margin-top: 50px;
  padding-top: 0;
}

.sidebar-logo-link {
  display: block;
  width: min(13.5rem, 100%);
}

.sidebar-logo {
  width: 100%;
  height: auto;
  margin-bottom: 0;
  transform: translateX(-10px) rotate(2.5deg);
  transform-origin: top center;
}

.sidebar-tagline,
.sidebar-contact {
  margin-bottom: 0;
  max-width: 13rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(255, 249, 242, 0.7);
}

.sidebar-tagline {
  margin-top: 1rem;
}

.sidebar-contact {
  margin-top: 1.5rem;
}

.sidebar-about a,
.sidebar-contact a {
  color: #fff;
  text-decoration: none;
}

.section-label,
.service-kicker,
.sidebar-nav-item {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 640;
}

.content {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.section {
  margin-bottom: 4.5rem;
}

.section > :last-child,
.panel > :last-child,
.service-card > :last-child,
.placeholder-card > :last-child {
  margin-bottom: 0;
}

.section-label,
.service-kicker {
  margin-bottom: 0.9rem;
  color: rgba(45, 38, 29, 0.72);
}

.hero-title {
  max-width: 12ch;
  font-size: 4.4rem;
  line-height: 0.9;
  margin-bottom: 0.75rem;
  font-weight: 800;
  font-stretch: 122%;
  letter-spacing: -0.05em;
}

.hero-subtitle,
.page-intro {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
}

.hero-subtitle {
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: 430;
  font-stretch: 92%;
  max-width: 26rem;
}

.page-intro {
  font-size: 1.22rem;
  line-height: 1.55;
}

.service-grid,
.split-grid,
.detail-grid,
.process-grid,
.placeholder-grid {
  display: grid;
  gap: 1rem;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.service-card,
.panel,
.placeholder-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-bg);
}

.service-card.is-primary,
.price-panel {
  background: var(--card-bg-strong);
}

.service-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.service-card-link:hover,
.service-card-link:focus {
  transform: translateY(-2px);
  border-color: rgba(118, 0, 200, 0.25);
  text-decoration: none;
}

.service-card-link h2,
.service-card-link p {
  color: inherit;
}

.service-more,
.short-lines {
  font-weight: 620;
}

.service-more {
  margin-top: 1rem;
}

.price {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1;
  font-weight: 760;
  letter-spacing: -0.05em;
}

.checklist {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.checklist li {
  margin-bottom: 0.7rem;
}

.page-header {
  margin-bottom: 3.5rem;
}

.page-title {
  font-size: clamp(2.6rem, 7vw, 4rem);
  line-height: 0.96;
  margin-bottom: 1rem;
  font-weight: 780;
  letter-spacing: -0.05em;
}

.muted-copy {
  color: var(--muted);
}

.placeholder-card {
  border-style: dashed;
  background: rgba(255, 250, 244, 0.42);
}

.sidebar-nav {
  margin-bottom: 0;
  margin-top: min(500px, 32vh);
}

.sidebar-sticky {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
}

.sidebar-nav-item {
  color: rgba(255, 249, 242, 0.72);
}

.sidebar-nav-item.active,
.sidebar-nav-item:hover,
.sidebar-nav-item:focus {
  color: var(--accent-soft);
  text-decoration: none;
}

.sidebar-nav-item + .sidebar-nav-item {
  margin-top: 1rem;
}

::-webkit-scrollbar {
  height: 0.55rem;
}

::-webkit-scrollbar-thumb {
  background: rgba(118, 0, 200, 0.28);
}

@media (min-width: 48em) {
  .home-page .content {
    max-width: 62rem;
  }

  .sidebar-sticky {
    top: 1rem;
  }

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

@media (max-width: 47.999em) {
  .sidebar-sticky {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .sidebar-about {
    margin-bottom: 2rem;
    text-align: center;
  }

  .sidebar-logo-link {
    width: min(11rem, 100%);
    margin: 0 auto;
  }

  .sidebar-nav {
    text-align: center;
    width: 100%;
    margin-top: 1.5rem;
  }

  .sidebar-tagline,
  .sidebar-contact {
    max-width: none;
    text-align: center;
  }

  .sidebar-contact {
    margin-top: 0;
    padding-top: 1rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    max-width: 18rem;
  }
}
