@import url("./art/motion-discovery.css");
@import url("./art/motion-operations.css");

.service-page { --service-gap: clamp(2.25rem, 5vw, 6.5rem); }
.service-page :target { scroll-margin-top: 6rem; }
.service-opening, .directory-opening {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: var(--service-gap);
  padding-block: clamp(2.3rem, 4vw, 5.5rem);
}
.service-back { color: var(--rust); font-weight: 700; text-underline-offset: .25em; }
.service-lead h1, .directory-opening h1 {
  max-width: 17ch;
  font-size: clamp(3.15rem, 5.25vw, 6.4rem);
  line-height: .99;
  margin: .25em 0 .36em;
  text-wrap: balance;
}
.service-lead > p, .directory-opening > p {
  font-size: clamp(1.07rem, 1.42vw, 1.45rem);
  line-height: 1.5;
  max-width: 51ch;
}
.service-price-link, .all-link {
  display: inline-block;
  margin-top: 1.3rem;
  font-weight: 700;
}
.service-art {
  display: grid;
  align-content: center;
  min-height: 0;
  border: 0;
  overflow: visible;
  aspect-ratio: auto;
}
.service-illustration, .service-photo {
  display: block;
  width: 100%;
  border-bottom: 4px solid var(--rust);
  background: radial-gradient(ellipse at 57% 37%, #fffcf5, #f0eade 76%, #e8e2d4);
}
.service-illustration { display: grid; place-items: center; overflow: hidden; }
.service-illustration > svg { display: block; width: 100%; height: auto; max-height: 31rem; }
.service-art .service-photo {
  position: static;
  width: 100%;
  height: auto;
  max-height: 31rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: none;
}
.service-art figcaption {
  margin-top: .62rem;
  font-size: .88rem;
  line-height: 1.4;
  color: #50534b;
}
.service-section {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.08fr);
  gap: var(--service-gap);
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.6rem, 4.4vw, 5.3rem);
}
.service-section h2 {
  max-width: 17ch;
  font-size: clamp(2.25rem, 3.45vw, 4.3rem);
  line-height: 1.08;
  text-wrap: balance;
}
.service-section .reading, .service-section .price-note, .service-end p, .service-steps dd, .packages dd {
  font-size: clamp(1.045rem, 1.22vw, 1.28rem);
  max-width: 61ch;
  line-height: 1.58;
}
.reading p + p { margin-top: 1em; }
.service-steps, .packages, .directory-group ul, .service-end ul { margin: 0; padding: 0; }
.service-steps dt, .package dt {
  font-size: clamp(1.19rem, 1.55vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.service-steps dd, .package dd { margin: .35rem 0 0; }
.service-steps > div + div, .package + .package { border-top: 1px solid var(--rule); margin-top: 1.45rem; padding-top: 1.4rem; }
.price-section { background: #f0ede3; }
.price-context, .directory-group > div > p {
  margin-top: 1.1rem;
  max-width: 36ch;
  line-height: 1.55;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
}
.package dd > strong { color: var(--rust); font-size: 1.35em; line-height: 1.5; }
.package dd > p { margin-top: .4rem; }
.service-section .price-note { font-size: 1.01rem; margin-top: 1.65rem; }
.service-end > div > p { margin-top: 1rem; max-width: 42ch; }
.service-end aside h3 { font: 700 1rem/1.2 Satoshi, sans-serif; letter-spacing: 0; }
.service-end ul { list-style: none; margin-top: .8rem; }
.service-end li + li { margin-top: .48rem; }
.service-contact { margin-top: 1.1rem; display: flex; gap: .7rem 1.5rem; flex-wrap: wrap; }
.service-contact > a:first-child { font-weight: 700; }
.directory-opening { padding-block: clamp(3rem, 6.7vw, 8rem); }
.directory-group ul { list-style: none; }
.directory-group li + li { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.directory-group li > a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  font-weight: 700; font-size: clamp(1.25rem, 1.9vw, 2rem);
  letter-spacing: -.035em; text-decoration: none;
}
.directory-group li > a i { color: var(--rust); font-style: normal; }
.directory-group li > a:hover span { text-decoration: underline; }
.directory-group li > p { max-width: 49ch; margin: .3rem 0 0; font-size: 1.02rem; }
.directory-group:nth-child(odd) { background: #f1eee5; }
html[data-motion=off] .service-illustration .art-animated { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .service-illustration .art-animated { animation: none !important; }
}
@media (max-width: 760px) {
  .service-opening, .service-section, .directory-opening { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
  .service-opening { padding-block: 1.8rem 2.35rem; }
  .service-lead h1, .directory-opening h1 { font-size: clamp(2.85rem, 10vw, 4.5rem); }
  .service-section { padding-block: 2.25rem; }
  .service-section h2 { max-width: 20ch; }
  .service-art .service-photo { max-height: 25rem; aspect-ratio: 1.52; }
  .service-illustration > svg { max-height: 24rem; }
  .directory-opening { padding-block: 2rem 2.5rem; }
}
