@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Kaisei Decol";
  src: url("fonts/kaisei-decol.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Shippori Mincho";
  src: url("fonts/shippori-mincho.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf3e9;
  --ink: #536578;
  --blue: #526e8c;
  --deep-blue: #354f68;
  --line: #a3b2be;
  --rose: #f2d5c5;
  --gutter: clamp(1rem, 5vw, 4rem);
  --japanese-text: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-family: "EB Garamond", var(--japanese-text);
  color: var(--ink);
  background: var(--paper) url("art/paper.webp");
  line-height: 1.7;
  line-break: strict;
}

* { box-sizing: border-box; }
body { margin: 0; }
:is(.brand, h1, h2, h3, .hero p, summary) {
  font-family: "EB Garamond", "Kaisei Decol", var(--japanese-text);
  font-feature-settings: "palt";
}
button:enabled { cursor: pointer; }
a { color: var(--deep-blue); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #1d628f; outline-offset: 3px; }
img { display: block; }
section[id] { scroll-margin-top: 1rem; }
.skip { position: absolute; z-index: 2; left: .5rem; top: .5rem; padding: .5rem 1rem; background: #fff; }
.skip:not(:focus) { clip-path: inset(100%); }

header { border-bottom: 3px double #b4c1c8; background: #fffbf48c; }
.topbar {
  max-width: 78rem; margin: auto; padding: .45rem var(--gutter);
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem);
}
.topbar a { display: inline-flex; align-items: center; min-height: 2.75rem; white-space: nowrap; text-decoration: none; }
.brand { gap: .35em; margin-right: auto; font-size: clamp(1.05rem, 2.1vw, 1.45rem); font-weight: 500; letter-spacing: .09em; }
.brand-mark { width: 1.35em; height: 1.35em; }
nav { display: flex; align-items: center; gap: clamp(.85rem, 2.5vw, 2.25rem); }
nav a { color: var(--ink); }
nav a:hover, .brand:hover { text-decoration: underline; }
.contact {
  gap: .45rem; padding: .3rem 1.1rem; border: 1px solid var(--deep-blue); border-radius: 2rem;
  color: #fff; background: var(--blue); font-size: .93rem; font-weight: 500;
}
.contact:hover { background: var(--deep-blue); }
.contact > [aria-hidden] { font-size: 1.35em; line-height: 1; }

.hero {
  position: relative; max-width: 90rem; margin: auto; padding: clamp(.6rem, 1.3vw, 1.2rem) 0 1.75rem;
  display: grid; place-items: center; min-height: clamp(23rem, 38vw, 31rem); text-align: center;
}
.scene { position: absolute; inset-block-start: 0; width: 31%; height: calc(100% + 2.5rem); object-fit: contain; pointer-events: none; mix-blend-mode: multiply; }
.cafe { left: 0; object-position: left top; mask-image: linear-gradient(to right, black 88%, transparent); }
.riverside { right: 0; object-position: right top; mask-image: linear-gradient(to left, black 88%, transparent); }
.hero-copy { position: relative; }
.stork { width: clamp(14rem, 32vw, 24rem); height: auto; margin: 0 auto .3rem; }
h1 { margin: 0; color: var(--deep-blue); font-size: clamp(2.3rem, 4.8vw, 3.85rem); font-weight: 500; letter-spacing: .13em; line-height: 1.35; }
.flourish { display: flex; justify-content: center; align-items: center; gap: .45em; color: var(--blue); font-size: 1.25rem; line-height: 1; }
.flourish::before, .flourish::after { content: ""; width: 2.8em; height: 1px; background: currentColor; opacity: .55; }
.hero .flourish { margin: .28rem 0 .65rem; }
.hero p { max-width: 12em; margin: auto; word-break: keep-all; font-size: clamp(1.12rem, 2.25vw, 1.65rem); font-weight: 500; letter-spacing: .07em; line-height: 1.55; }

.wrap { max-width: 74rem; padding-inline: var(--gutter); margin-inline: auto; }
h2 { display: flex; align-items: center; justify-content: center; gap: clamp(.5rem, 2vw, 2rem); margin: 0 0 1.25rem; text-align: center; font-size: clamp(1.4rem, 2.6vw, 1.95rem); font-weight: 500; letter-spacing: .1em; line-height: 1.4; }
h2::before, h2::after { content: ""; flex: 0 1 8rem; min-width: .75rem; height: 1px; background: var(--line); }
h2 span { flex: none; }
h2, .card h3, .hero p { color: var(--deep-blue); }
.features { position: relative; }
.features h2 { margin-bottom: 1.35rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 1.8vw, 1.5rem); }
.card {
  padding: .75rem clamp(.8rem, 2vw, 1.65rem) 1.2rem; border: 1px solid var(--line);
  border-radius: 1rem .45rem; background: #fffaf32e; text-align: center;
}
.card h3 { margin: 0; font-size: clamp(1.02rem, 1.7vw, 1.25rem); font-weight: 500; letter-spacing: .06em; }
.card h3 span, .flow h2 span, .faq h2 span {
  display: inline-block; padding: .18em 1.25em .25em;
  background: linear-gradient(100deg, #dfb6a7, var(--rose) 18% 82%, #dfb6a7);
  clip-path: polygon(0 14%, 12% 14%, 12% 0, 88% 0, 88% 14%, 100% 14%, 96% 55%, 100% 96%, 86% 86%, 14% 86%, 0 96%, 4% 55%);
}
.card p { margin: .65rem 0 .55rem; }
.card img { height: clamp(3.5rem, 6.6vw, 4.8rem); max-width: 100%; width: auto; object-fit: contain; margin: auto; }
.card ul { display: inline-block; vertical-align: top; padding: 0; margin: 0; list-style: none; text-align: start; }
.card strong { color: var(--deep-blue); font-size: 1.6em; line-height: 1.3; }
.card:has(li strong) ul { text-align: center; }

.flow, .faq { margin-top: clamp(2rem, 4.5vw, 3.75rem); }
.flow h2 span, .faq h2 span { padding-inline: 1.45em; background: linear-gradient(100deg, #afc3d4, #dfebf2 20% 80%, #afc3d4); color: var(--deep-blue); }
.flow-film {
  display: block; width: 100%; height: auto; border: 1px solid #bdafa2; border-radius: .85rem .45rem; background: var(--paper);
}
.flow-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem);
  margin: clamp(1.15rem, 2.5vw, 1.8rem) 0 0; padding: 0; list-style: none;
}
.flow-steps li { border-top: 1px solid var(--line); padding-top: .7rem; }
.flow-steps h3 {
  display: flex; align-items: baseline; gap: .6rem; margin: 0;
  color: var(--deep-blue); font-weight: 500; font-size: clamp(1.08rem, 1.8vw, 1.32rem);
}
.step-number {
  flex: none; padding-right: .6rem; border-right: 1px solid var(--line);
  color: var(--blue); font-size: 1.35em; font-variant-numeric: lining-nums tabular-nums; line-height: 1;
}
.flow-steps p { margin: .4rem 0 0; }

.faq { position: relative; padding: 0 var(--gutter) 1rem; }
.faq::before, .faq::after { content: ""; position: absolute; top: 5rem; width: min(14vw, 11rem); height: 12rem; background: left bottom / contain no-repeat url("art/books.webp"); mix-blend-mode: multiply; pointer-events: none; }
.faq::before { left: 0; }
.faq::after { right: 0; background-image: url("art/flowers.webp"); background-position: right bottom; }
.questions { position: relative; max-width: min(49rem, 71vw); margin: auto; }
.faq-actions { text-align: end; }
.quiet-action { min-height: 2.75rem; padding: .2rem .75rem; border: 0; background: transparent; color: var(--deep-blue); font: inherit; font-size: .92rem; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
details { margin: .35rem 0; border: 1px solid var(--line); border-radius: .85rem; background: #fffaf45c; }
summary {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: .75rem;
  padding: .55rem 1.05rem; min-height: 2.8rem; color: var(--deep-blue); font-weight: 500; cursor: pointer;
  list-style: none; border-radius: inherit;
}
summary::-webkit-details-marker { display: none; }
summary > span:first-child { font-size: 1.125em; }
summary:hover, details[open] summary { background-color: #dae6eb66; }
.answer { padding: .1rem 1.25rem .35rem; overflow-wrap: anywhere; }
.answer p, .answer ul { margin: .7rem 0; }
.answer ul { padding-inline-start: 1.5rem; }
footer { text-align: center; padding: .8rem 1rem 2rem; }
footer .flourish { color: #896b49; margin-bottom: .65rem; }
.mail-address { display: inline-block; max-width: 100%; overflow-wrap: anywhere; user-select: all; font-size: 1.05rem; }

@media (any-hover: hover) and (any-pointer: fine) and (forced-colors: none) {
  :root { --brand-cursor: url("art/fleur-de-lis.svg") 16 2; cursor: var(--brand-cursor), auto; }
  a[href], summary, button:enabled { cursor: var(--brand-cursor), pointer; }
}

@media (prefers-reduced-motion: no-preference) {
  :root { scroll-behavior: smooth; }
  @supports (interpolate-size: allow-keywords) {
    details::details-content { interpolate-size: allow-keywords; block-size: 0; overflow: clip; transition: block-size .45s ease, content-visibility .45s allow-discrete; }
    details[open]::details-content { block-size: auto; }
  }
}

@media (max-width: 52rem) {
  .topbar { display: grid; grid-template-columns: 1fr auto; gap: 0 .4rem; padding: .4rem 1rem 0; }
  .brand { font-size: clamp(.98rem, 4vw, 1.3rem); letter-spacing: .03em; }
  .contact { grid-area: 1 / 2; padding-inline: .7rem; font-size: .85rem; }
  nav { grid-column: 1 / -1; justify-content: center; gap: 2rem; font-size: .95rem; }
}

@media (max-width: 48rem) {
  .hero { min-height: auto; padding: 1rem .5rem 1.6rem; }
  .stork { width: clamp(10.8rem, 45vw, 15rem); }
  h1 { font-size: clamp(1.55rem, 8vw, 2.7rem); letter-spacing: .06em; }
  .scene { width: 23%; height: 100%; object-fit: cover; opacity: .57; }
  .cafe { object-position: left bottom; mask-image: linear-gradient(to right, black 10%, transparent 95%); }
  .riverside { object-position: 40% bottom; mask-image: linear-gradient(to left, black 10%, transparent 95%); }
  .hero p { font-size: 1.12rem; }
  .cards { max-width: 33rem; margin-inline: auto; grid-template-columns: 1fr; gap: .8rem; }
  .card { display: grid; grid-template-columns: clamp(3.25rem, 16vw, 5.75rem) 1fr; place-items: center; gap: .6rem 1rem; padding: .7rem 1.05rem 1.05rem; }
  .card h3 { grid-column: 1 / -1; }
  .card p { margin: 0; }
  .card img { width: 100%; height: auto; max-height: 4rem; }
  .card ul, .card:has(li strong) ul { justify-self: start; text-align: start; }
  .flow { padding-inline: .5rem; }
  .flow-steps { grid-template-columns: minmax(0, 1fr); max-width: 36rem; margin-inline: auto; padding-inline: .65rem; }
  .faq::before, .faq::after { display: none; }
  h2::before, h2::after { min-width: 0; }
  .flow h2 span, .faq h2 span { padding-inline: .9em; }
  .questions { max-width: 37rem; }
  summary { gap: .55rem; padding-inline: .75rem; }
  .answer { padding-inline: .9rem; }
}

@media (max-width: 26rem) {
  .mail-prefix { position: absolute; clip-path: inset(100%); }
}
@media (max-width: 22rem) {
  .brand .brand-mark { display: none; }
  .topbar { padding-inline: .6rem; }
}
