@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Manrope:wght@500;600;700&display=swap');

:root {
  --paper: #f6f1e9;
  --ink: #1b1924;
  --muted: #5f5b66;
  --orange: #d95f3d;
  --purple: #6858c9;
  --line: rgba(27, 25, 36, 0.16);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 7%, rgba(255,255,255,.74), transparent 33%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}
::selection { background: rgba(104,88,201,.2); }

main { overflow: hidden; }
.intro {
  width: min(960px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 84px 0 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.portraits {
  position: relative;
  width: min(520px, 90vw);
  height: 300px;
  margin-bottom: 34px;
}
.portrait {
  position: absolute;
  top: 0;
  width: 220px;
  height: 272px;
  margin: 0;
  padding: 4px;
  overflow: hidden;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 9px;
  box-shadow: 0 18px 48px rgba(43,35,31,.13);
}
.portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 5px;
}
.portrait--child {
  left: 27px;
  transform: rotate(-5deg);
}
.portrait--child img { object-position: center; }
.portrait--today {
  right: 27px;
  transform: rotate(5deg) translateY(2px);
}
.portrait--today img { object-position: 50% 18%; }
.label {
  margin: 0 0 22px;
  color: #4f4a56;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .19em;
}
h1 {
  max-width: 980px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6.4vw, 5.9rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .94;
  text-wrap: balance;
}
.headline-line { white-space: nowrap; }
h1 em,
h1 strong { font-style: normal; font-weight: 400; }
h1 em { color: var(--orange); }
h1 strong { color: var(--purple); }
.summary {
  max-width: 830px;
  margin: 34px auto 0;
  color: #34313d;
  font-size: clamp(1rem, 1.65vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -.018em;
  line-height: 1.62;
  text-wrap: balance;
}
.accent-orange { color: var(--orange); }
.accent-purple { color: var(--purple); }

.faq {
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0 120px;
}
h2 {
  margin: 0 0 40px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.45rem);
  font-weight: 400;
  letter-spacing: -.03em;
}
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary {
  position: relative;
  min-height: 78px;
  padding: 24px 45px 24px 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 700;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 500;
  transform: translateY(-50%);
  transition: transform .2s ease;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p {
  max-width: 650px;
  margin: 0;
  padding: 0 42px 28px 0;
  color: var(--muted);
  font-size: .96rem;
  font-weight: 500;
}
details a {
  color: var(--purple);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
summary:focus-visible {
  outline: 3px solid rgba(104,88,201,.45);
  outline-offset: 5px;
  border-radius: 3px;
}

@media (max-width: 560px) {
  .intro {
    min-height: auto;
    padding: 54px 0 72px;
  }
  .portraits {
    width: 360px;
    height: 236px;
    margin-bottom: 25px;
  }
  .portrait {
    width: 162px;
    height: 206px;
    padding: 3px;
  }
  .portrait--child { left: 10px; }
  .portrait--today { right: 10px; }
  .label { font-size: .58rem; }
  h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .headline-line { white-space: normal; }
  .summary { margin-top: 24px; font-size: .95rem; }
  .faq { padding: 70px 0 88px; }
  summary { min-height: 72px; font-size: .94rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
