:root { --soft-edge: 22px; }
main :is(.hero-description, .section-heading p, .olive-summary p, .service p, .approach-copy p, .contact p, .practice-copy p, .space-text p, .offerings-intro, .offering p, .writing-body) {
  text-align: justify;
  text-align-last: start;
}
:root[data-page="offerings"] .offerings-intro { text-align: justify; }
:is(.service, .space-photo, .hero-visual, .space-text, .writing-card, .writing-editor) { border-radius: var(--soft-edge); }
.practice-image img, .hero-portrait { border-radius: var(--soft-edge); }
[data-palette="olive"] .hero-portrait { border-radius: 50% 50% var(--soft-edge) var(--soft-edge) / 36% 36% var(--soft-edge) var(--soft-edge); }
:is(.about-image, .contact-image) img { border-radius: 50% 50% var(--soft-edge) var(--soft-edge) / 36% 36% var(--soft-edge) var(--soft-edge); }
.entrance-photo img { border-end-start-radius: 0; border-end-end-radius: 0; }
.entrance-photo figcaption { border-radius: 0 0 var(--soft-edge) var(--soft-edge); }

.hero {
  --orange-glow: #d0692f9e;
  --orange-mist: #bb542554;
  position: relative;
  isolation: isolate;
  overflow: clip;
}
[data-palette="plaster"] .hero {
  --orange-glow: #f0a264e8;
  --orange-mist: #ea8b4b73;
}
.hero-glow {
  position: absolute;
  inset: auto -8% 0;
  height: clamp(160px, 43%, 360px);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 71% 139% at 69% 100%, var(--orange-glow), transparent 74%),
    radial-gradient(ellipse 55% 112% at 24% 100%, var(--orange-mist), transparent 80%);
  mask-image: linear-gradient(transparent, #000 68%);
}
[data-palette="olive"] .hero-glow {
  --terracotta: #9f6e43;
  height: 100%;
  background:
    var(--hero-grain),
    linear-gradient(174deg,
      transparent 24%,
      color-mix(in srgb, var(--terracotta) 26%, transparent) 43%,
      color-mix(in srgb, var(--terracotta) 73%, transparent) 64%,
      var(--terracotta) 89%);
  mask-image: linear-gradient(transparent 19%, #000 55%);
}
html[dir="ltr"] .hero-glow { scale: -1 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-glow { opacity: 0.46; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.olive-summary-inner::before, .olive-summary-inner::after,
.offering-art::after, .about-image::after, .site-footer::before, .home-writings::before {
  background-image: url("assets/hero-grain.png");
}
.psychology-sign {
  display: inline-block;
  color: #a85b35;
  background: url("assets/hero-grain.png"), linear-gradient(155deg, #ac5931, #713b29);
  background-clip: text;
  font: 500 clamp(28px, 3.6vw, 50px)/1 "Cormorant Garamond", Georgia, serif;
}
@supports (background-clip: text) { .psychology-sign { color: transparent; } }
.hero-copy .psychology-sign { margin-bottom: clamp(6px, 1.3vw, 17px); }
:root:not([data-palette="olive"]):not([data-palette="plaster"]) .hero-copy .psychology-sign {
  background-image: url("assets/hero-grain.png"), linear-gradient(155deg, #f0b28a, #c27c58);
}
.home-writings {
  --curve-depth: clamp(16px, 3.3vw, 43px);
  position: relative;
  background: var(--card);
  color: var(--ink);
  padding-block: calc(var(--curve-depth) + 42px) clamp(47px, 7vw, 100px);
}
.home-writings::before, .site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--curve-depth);
  pointer-events: none;
  clip-path: ellipse(67% 98% at 50% 0);
}
.home-writings::before { background-color: var(--navy); }
[data-palette="plaster"] .home-writings::before { background-color: var(--light); }
[data-palette="olive"] .home-writings::before { background-color: var(--reference-olive); }
.home-writings h2, .writing-archive h2 { font-family: var(--reference-display, Georgia, serif); font-weight: 500; }
.home-writings .button { margin-block-start: 16px; }
:root:not([data-palette="olive"]) .home-writings .button { border-color: var(--line); color: var(--ink); }
.writing-archive { max-width: 810px; padding-block: clamp(40px, 7vw, 97px); }
.writing-card, .writing-editor {
  padding: clamp(18px, 4vw, 34px);
  background: var(--card);
  border: 1px solid var(--line);
}
.writing-editor { margin-block-end: 25px; }
.writing-editor summary { cursor: pointer; font-weight: 700; }
.writing-editor form { display: grid; gap: 16px; margin-block-start: 16px; }
.writing-editor label { display: grid; gap: 4px; }
.writing-editor :is(input, textarea) { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; font: inherit; }
.writing-editor textarea { resize: vertical; }
.writing-list { display: grid; gap: 14px; }
.writing-card time { font-size: 13px; color: var(--muted); }
.writing-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.writing-pagination { margin-block-start: 22px; color: var(--ink); }
.writing-pagination a { text-decoration: underline; text-underline-offset: 4px; }
.site-footer {
  --curve-depth: clamp(17px, 3.7vw, 45px);
  position: relative;
  padding-block-start: var(--curve-depth);
  background: var(--navy);
}
.site-footer::before { background-color: var(--card); }
[data-page] .site-footer::before { background-color: var(--page-surface, var(--card)); }
[data-page="about"] .site-footer::before { background-color: var(--reference-clay); }
.site-footer .footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding-block: 26px;
  min-height: 0;
}
.site-footer .footer-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
}
.site-footer .footer-mark { display: block; width: 67px; }
.site-footer .footer-name { display: grid; gap: 4px; }
.site-footer .footer-name strong { font-size: 15px; }
.site-footer .footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 18px; color: inherit; }
.site-footer .footer-contact { display: grid; justify-items: end; gap: 8px; }
.site-footer .footer-contact a { text-decoration: underline; text-underline-offset: 4px; }
.site-footer .footer-social a { min-height: 38px; }
@media (max-width: 760px) {
  .site-footer .footer-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 15px; }
  .site-footer .footer-identity { justify-content: center; }
  .site-footer .footer-contact { justify-items: center; }
  .site-footer .footer-name { text-align: center; }
}
.writing-featured { max-width: 46rem; margin-block: 13px 4px; }
.writing-featured time { font-size: 13px; color: var(--muted); }
.writing-featured h3 { font-size: clamp(19px, 2.5vw, 29px); }
.writing-featured .writing-body { margin-block-start: 5px; }
.about-space { position: relative; }
.about-space::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(13px, 2.3vw, 30px);
  clip-path: ellipse(70% 95% at 50% 0);
  background: var(--reference-cream) url("assets/hero-grain.png");
  pointer-events: none;
}

.writing-pagination { display: flex; flex-wrap: wrap; gap: 12px 22px; }
:root[data-palette="olive"][data-page="offerings"] .offerings-list {
  margin-block-start: clamp(34px, 4.1vw, 58px);
}
:root[data-palette="olive"][data-page="offerings"] .offering h2 {
  margin-block-start: clamp(17px, 2.5vw, 31px);
}
