@font-face {
  font-family: "Golos Text";
  src: url("/assets/fonts/golos-text.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f4f6;
  --ink: #252830;
  --muted: #535963;
  --link: #355a78;
  --line: #d7d7dd;
  font-family: "Golos Text", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.18; }
h1 { font-size: clamp(2rem, 5.7vw, 3.35rem); font-weight: 650; letter-spacing: -.045em; margin: 0 0 .45em; }
h2 { font-size: clamp(1.35rem, 3.3vw, 1.8rem); font-weight: 630; letter-spacing: -.025em; margin: 2.1em 0 .55em; }
h3 { margin: 1.65em 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: .45em; }

.site-header, main, footer { width: min(100% - 2.5rem, 44rem); margin-inline: auto; }
.site-header { padding-top: 1.1rem; }
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1.15rem;
  min-height: 2.75rem;
  font-size: .875rem;
}
.site-header a { padding-block: .25rem; text-decoration: none; }
.site-header a:hover, .site-header a[aria-current="page"] { text-decoration: underline; }
.site-header .brand {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  min-height: 2.75rem;
  margin-left: -.3rem;
  margin-right: auto;
}
.brand span {
  width: 2.45rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(35deg, #94ca8c, #bdde93 52%, #e2f29e);
}
main { padding-block: clamp(2rem, 6vw, 4.1rem) 3rem; }
.prose { font-size: 1.125rem; max-width: 63ch; }
.home-hero { margin-bottom: 2rem; }
.hero-portrait { width: clamp(15rem, 55vw, 17rem); aspect-ratio: 4 / 5; object-fit: cover; object-position: center 44%; margin-bottom: 1.65rem; }
.home-links li:first-child a { font-weight: 700; }
.lead { font-size: 1.22rem; color: var(--muted); margin-bottom: .95rem; }
.prose a { overflow-wrap: anywhere; }
.consultations p:last-child a { font-weight: 650; }
.index { border-top: 1px solid var(--line); padding: 0; list-style: none; margin: 0; }
.index li { margin: 0; border-bottom: 1px solid var(--line); }
.index a { display: flex; justify-content: space-between; gap: .8em; padding: .65em 0; text-decoration: none; }
.index a:hover span:first-child { text-decoration: underline; }
.arrow { flex: none; }
.travel-photos, .story-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.65rem, 2.5vw, 1.15rem);
  margin: 1.65rem 0 2rem;
}
.story-image { margin: 0; min-width: 0; }
.story-image img { width: 100%; }
.travel-photos { width: 88%; }
.story-single:has(img[src$="/childhood.jpg"]) { width: 50%; max-width: 14.5rem; }
.travel-photos figure:nth-child(-n+2) img { aspect-ratio: 9 / 14; object-fit: cover; }
.travel-photos figure:last-child { grid-column: 1 / -1; }
.story-image img[src$="/childhood.jpg"] { aspect-ratio: 15 / 17; object-fit: cover; object-position: top; }
@media (min-width: 36.01rem) {
  .story-gallery:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.story-gallery img { aspect-ratio: 4 / 5; object-fit: cover; }
.story-gallery img[src$="/at-event.jpg"] { object-fit: contain; }
.story-single { max-width: 29rem; margin: 1.65rem 0 2rem; }
figcaption { color: var(--muted); font-size: .875rem; margin-top: .55rem; }
.back { display: inline-block; margin-bottom: 1.1rem; font-size: .9rem; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.15rem; color: var(--muted); border-top: 1px solid var(--line); padding-block: .9rem 1.5rem; font-size: .875rem; }

footer nav { display: flex; gap: 1.15rem; }

@media (max-width: 36rem) {
  .site-header, main, footer { width: calc(100% - 2rem); }
  .site-header nav { gap: .15rem .9rem; }
  .prose { font-size: 1.0625rem; }
  .story-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .brand:hover span { animation: heartbeat .85s ease-in-out; }
}

@keyframes heartbeat {
  0%, 32%, 68%, 100% { transform: scale(1); }
  16% { transform: scale(1.13); }
  50% { transform: scale(1.08); }
}
