:root {
  --paper: #203461;
  --ink: #fff7f0;
  --muted: #faf1fc;
  --lilac: #d1b4e3;
  --peach: #f7a5ad;
  --butter: #fff1ad;
  --green: #06c755;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  --sans: "Hiragino Sans", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper) url("night-paper.jpg") repeat center top / 760px auto; color: var(--ink); font: 16px/1.95 var(--sans); }
header, .hero, .detail, footer { width: min(90%, 1080px); margin-inline: auto; }
header { display: flex; justify-content: space-between; align-items: center; min-height: 76px; }
a { color: inherit; }
.brand { font: 21px var(--serif); text-decoration: none; }
nav { display: flex; gap: 24px; font-size: 13px; }
nav a { text-underline-offset: 5px; text-decoration: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .83fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.portrait { margin: 0; }
.portrait img { display: block; width: 100%; height: clamp(430px, 70vh, 670px); object-fit: cover; object-position: 50% 45%; }
.words small { color: var(--muted); font-size: 13px; }
h1, h2, blockquote { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(32px, 3.55vw, 54px); line-height: 1.52; margin: 18px 0; }
h2 { font-size: clamp(24px, 2.5vw, 34px); line-height: 1.6; margin: 0 0 1em; }
.words p { margin: 0 0 28px; }
.cta { min-height: 52px; padding: 10px 26px; background: var(--green); color: #072912; border: 0; border-radius: 40px; font: 600 16px/1.5 var(--sans); cursor: pointer; }
.cta:hover { background: #24d46b; }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 4px; }
.intro { max-width: 600px; margin: clamp(64px, 9vw, 120px) auto; width: 86%; }
blockquote { margin: 24px 0; font-size: clamp(16px, 1.7vw, 21px); }
.sign { display: block; text-align: right; font: 20px var(--serif); }
.detail { padding: 64px 0; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 12%; }
.detail ul { margin: 0; padding-inline-start: 1.2em; list-style: circle; }
.detail li { padding: 3px 0; }
.detail li::marker { color: var(--muted); font-size: .75em; }
.flow { width: min(86%, 600px); margin: 72px auto; }
.flow p { margin: 0 0 24px; }
footer { padding: 24px 0; font: 15px var(--serif); }
dialog { width: min(88%, 360px); background: var(--paper); color: var(--ink); border: 0; padding: 24px; }
dialog button { padding: 8px 18px; font: inherit; cursor: pointer; }

.hero {
  grid-template-areas: "title photo" "words photo";
  gap: 0 6%;
  padding: 42px 0 64px;
}
.headline { grid-area: title; align-self: end; }
h1 { font-size: clamp(36px, 4vw, 62px); line-height: 1.45; margin: 0; }
h1 em { font-style: normal; background: linear-gradient(transparent 76%, #966e9e 76%); }
.words { grid-area: words; align-self: start; padding-top: 22px; }
.words small { display: block; margin-top: 10px; }
.portrait {
  grid-area: photo;
  position: relative;
  isolation: isolate;
  width: min(100%, 440px);
  padding-bottom: 22px;
}
.portrait::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 22px;
  border-radius: 50%;
  background: var(--peach);
  transform: translate(-5%, -2%);
}
.portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 46%; border-radius: 50%; }
.portrait figcaption {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) rotate(-2deg);
  display: flex; gap: .085em; color: var(--paper); font: 500 clamp(36px, 5vw, 68px)/1.15 var(--serif);
}
figcaption span { padding: .04em .13em .09em; background: var(--lilac); }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; position: relative; }
.cta img { flex: none; }
.intro { max-width: none; width: 100%; background: #f9dee3; color: var(--paper); padding: 64px 7%; margin: 0; }
.intro .inner { max-width: 640px; margin: auto; }
.flow { text-align: center; }
h2 { color: var(--butter); }
.intro h2 { color: var(--paper); }
footer { text-align: center; }
@media (max-width: 680px) {
  header { min-height: 44px; }
  .brand { font-size: 17px; }
  nav a:last-child { display: none; }
  .hero { display: flex; flex-direction: column; padding: 12px 0 30px; gap: 16px; text-align: center; }
  .headline, .words { width: 100%; }
  h1 { font-size: clamp(23px, 6.6vw, 39px); line-height: 1.36; }
  .portrait { width: clamp(156px, 27svh, 255px); padding-bottom: 14px; }
  .portrait::before { bottom: 14px; }
  .portrait figcaption { font-size: clamp(30px, 4.7svh, 43px); }
  .words { padding: 0; }
  .words p { font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
  .words small { margin-top: 6px; font-size: 12px; }
  .cta { width: min(100%, 340px); }
  .intro { padding: 40px 7%; }
  .detail { display: block; padding: 40px 0; }
  .flow { margin: 20px auto 40px; }
  .wide { display: none; }
}

.cta { padding-inline: clamp(8px, 2vw, 26px); gap: 8px; }
.cta span {
  font-size: clamp(16px, 4.9vw, 20px);
  font-weight: 700;
  color: white;
  -webkit-text-stroke: 1px #171717;
  paint-order: stroke fill;
}
@media (max-width: 360px) {
  .cta { padding-inline: 4px; gap: 3px; }
  .flow { width: 90%; }
}
@media (prefers-reduced-motion: no-preference) {
  .cta::before, .cta::after {
    content: "";
    position: absolute;
    inset: -2px;
    border: 2px solid #c4ffdc;
    border-radius: inherit;
    box-shadow: 0 0 5px #c4ffdc80;
    pointer-events: none;
    animation: ripple 3.6s ease-out infinite;
  }
  .cta::before { animation-delay: -1.8s; }
  @keyframes ripple {
    0% { transform: scale(1); opacity: .65; }
    60% { opacity: .31; }
    100% { transform: scale(1.09, 1.45); opacity: 0; }
  }
}
