/* The reference's 650 px composition scales as a single column. */
.hero {
  --u: min(1vw, 6.5px);
  --edge: 3.23%;
  width: min(100%, 650px);
  padding: 0 0 calc(12.5 * var(--u));
  background: #fcf6e9 url("assets/fv-reference-paper.webp") center top / 100% auto repeat-y;
  color: #2b1b11;
  font-family: var(--mincho);
}
.hero::before { display: none; }
.hero-masthead {
  display: block;
  min-height: 0;
  aspect-ratio: 650 / 587;
  background: transparent;
  margin: 0;
}
/* The full crest sits behind the portrait, independently of its mask. */
.hero-masthead::before {
  content: "";
  position: absolute;
  inset: 14% auto auto 42%;
  width: 28.5%;
  aspect-ratio: 297 / 340;
  background: url("assets/03-nanao-crest.webp") center / contain no-repeat;
  opacity: .18;
  pointer-events: none;
}
.hero-source-photo {
  position: absolute;
  right: -6.3%;
  bottom: 0;
  width: 60%;
  height: 91%;
  object-fit: cover;
  object-position: 50% 35%;
  mask-image:
    linear-gradient(to right, transparent 1%, #000 47%),
    linear-gradient(to bottom, transparent, #000 16%, #000 89%, transparent);
  mask-composite: intersect;
}
/* This narrow decorative crop contains only the reference's gold edge. */
.hero-masthead::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 8.46%;
  aspect-ratio: 55 / 290;
  background: url("assets/fv-gold-edge-v01.webp") center / contain no-repeat;
  mask-image:
    linear-gradient(to right, transparent, #000 75%),
    linear-gradient(to bottom, #000 72%, transparent);
  mask-composite: intersect;
  pointer-events: none;
}
.hero .site-header {
  position: absolute;
  top: 5%;
  left: 4.92%;
  right: 8.5%;
  min-height: 0;
}
.hero .site-header::after {
  position: absolute;
  left: 45.4%;
  right: 0;
  max-width: none;
  margin: 0;
  border-color: #bea46e;
}
.hero .brand {
  gap: calc(1.85 * var(--u));
  font-size: calc(4.85 * var(--u));
}
.hero .brand img { width: calc(8.31 * var(--u)); }
.hero-heading {
  position: absolute;
  top: 35.9%;
  left: 5.85%;
  width: auto;
  padding: 0;
}
.hero h1 {
  font-size: calc(7 * var(--u));
  line-height: 1.39;
  letter-spacing: -.055em;
}
.hero-intro {
  max-width: none;
  margin-top: calc(6.65 * var(--u));
  font-size: calc(3.8 * var(--u));
  line-height: 1.4;
  letter-spacing: .01em;
}
.hero-topics, .hero-examples, .hero-flow { margin-inline: var(--edge); }
.hero-topics {
  grid-template-columns: 1.27fr 1fr 1fr 1.1fr;
  margin-top: 0;
  padding-top: calc(3.1 * var(--u));
  color: inherit;
  font-size: calc(3.88 * var(--u));
  line-height: 1.2;
}
.hero-topics button {
  min-height: calc(9.85 * var(--u));
  padding: 0 0 calc(2.45 * var(--u));
}
.hero-topics button[aria-pressed="true"] {
  color: #922c13;
  background: #f9e7d8;
  box-shadow: inset 0 calc(-.77 * var(--u)) #992e12;
}
.hero-examples { margin-top: calc(8.3 * var(--u)); }
.hero-example {
  grid-template-columns: 43.5% minmax(0, 1fr);
  gap: calc(3.7 * var(--u));
  padding: 0;
  border: 0;
  background: transparent;
  font-size: calc(3.9 * var(--u));
}
.hero-example img {
  aspect-ratio: 265 / 110;
  border-radius: calc(4.25 * var(--u));
}
.hero-example p { margin: 0; line-height: 1.55; }
.hero-example:not(#hero-marriage) p { font-size: .86em; }
.hero-flow {
  display: flex;
  justify-content: space-around;
  gap: 0;
  margin-top: calc(8.25 * var(--u));
}
.hero-flow li {
  padding: 0;
  font-size: calc(3.49 * var(--u));
  white-space: nowrap;
}
.hero-flow li + li::before {
  position: static;
  margin-right: calc(2.55 * var(--u));
  color: inherit;
}
.hero .actions {
  display: grid;
  gap: calc(4.7 * var(--u));
  margin: calc(7.8 * var(--u)) 2.65% 0;
  text-align: center;
}
.hero .actions .button:first-child {
  min-height: calc(13.35 * var(--u));
  padding: 0;
  background: #962e12;
  border-color: #962e12;
  font: inherit;
  font-size: calc(4.8 * var(--u));
}
.hero .actions .secondary {
  justify-self: center;
  min-height: 0;
  padding: 0 0 calc(.5 * var(--u));
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: calc(4.35 * var(--u));
  font-weight: 700;
  text-decoration: none;
}
.hero-note {
  margin-top: calc(3.75 * var(--u));
  color: inherit;
  font-size: calc(3.5 * var(--u));
  text-align: center;
}
