/* The supplied kitchen, unchanged in composition. Colour and the scrim are
   presentation layers; the survey stroke shares the photograph's crop. */
.opening {
  --chalk: #fff8eb; --brass: #e8c99b;
  background: #453b32; color: var(--chalk); padding: 0;
  align-items: start; align-content: start;
  /* Let the real following chapter peek into the first viewport. */
  --opening-peek: clamp(42px, 8svh, 88px);
  min-block-size: calc(100vh - var(--header) - 60px);
  min-block-size: calc(100svh - var(--header) - var(--opening-peek));
}
.opening::before {
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 63% 62% at 50% 20%, rgba(27,24,22,.71) 4%, rgba(32,28,25,.55) 42%, transparent 88%),
    linear-gradient(180deg, rgba(36,31,28,.30), rgba(32,28,25,.16) 33%, transparent 64%);
}
.opening__panorama { position: absolute; inset: 0; z-index: -2; overflow: hidden; container-type: size; }
.opening__panorama::after {
  content: ""; position: absolute; pointer-events: none; inset: auto 0 0;
  height: clamp(18px, 4svh, 40px);
  background: linear-gradient(0deg, rgba(54,45,35,.30), transparent);
  -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px);
  -webkit-mask-image: linear-gradient(0deg,#000,transparent);
  mask-image: linear-gradient(0deg,#000,transparent);
}
.opening .opening__image {
  position: absolute; z-index: auto; margin: 0; inset: auto; top: 50%; left: 50%;
  inline-size: 100%; block-size: 100%; translate: -50% -50%;
}
.opening__photograph, .opening__scribe {
  position: absolute; inset: 0; inline-size: 100%; block-size: 100%;
  display: block; object-fit: cover;
}
.opening__scribe { display: none; pointer-events: none; }
.opening__photograph { filter: saturate(.80) contrast(.97); }
@supports (width: 1cqh) {
  .opening .opening__image {
    --anchor: 50%; inline-size: max(100cqw, 177.684cqh); block-size: max(100cqh, 56.280cqw);
    left: var(--anchor); translate: calc(0% - var(--anchor)) -50%;
  }
  .opening__scribe { display: block; }
}
.opening__scribe use { vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.opening__scribe-edge { stroke: #ffdb9b; stroke-width: 1.25px; opacity: .31; }
.opening__scribe-shadow, .opening__scribe-tip { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .opening__scribe-edge { animation: opening-edge-line 3.7s .35s both; }
  .opening__scribe-shadow, .opening__scribe-tip { stroke-dasharray: .049 1.1; animation: opening-edge-tip 3.7s .35s both; }
  .opening__scribe-tip { stroke: #fff7d4; stroke-width: 1.8px; }
  .opening__scribe-shadow { stroke: #d8a346; stroke-width: 4px; filter: blur(1.9px); }
  @keyframes opening-edge-line {
    0% { stroke-dasharray: 1 2; stroke-dashoffset: 1; opacity: 0; }
    12% { opacity: .8; } 83% { stroke-dasharray: 1 2; stroke-dashoffset: 0; opacity: .8; }
    100% { stroke-dasharray: 1 2; stroke-dashoffset: 0; opacity: .31; }
  }
  @keyframes opening-edge-tip {
    0% { stroke-dashoffset: .049; opacity: 0; } 12% { opacity: 1; }
    83%,100% { stroke-dashoffset: -1; opacity: 0; }
  }
}
.opening .opening__content {
  inline-size: min(950px, calc(100% - 32px)); margin-inline: auto;
  padding-block: clamp(27px, 6.5svh, 93px) 30px;
  text-align: center; display: grid; justify-items: center;
}
.opening .opening__question {
  display: flex; align-items: center; gap: .8em;
  margin: 0 0 clamp(8px, 1.6svh, 18px); color: #ffebc9;
  font: 600 clamp(.98rem, 1.28vw, 1.19rem)/1.4 var(--font);
}
.opening__question::before, .opening__question::after {
  content: ""; width: 22px; height: 1px; background: var(--brass);
}
.opening h1 {
  max-inline-size: 100%; margin: 0; color: var(--chalk);
  font: 300 clamp(3.2rem, min(5.8vw, 8.6svh), 6.5rem)/1.02 var(--font);
  letter-spacing: -.032em; text-shadow: 0 2px 16px rgba(24,18,14,.16);
}
.opening h1 span, .opening h1 strong { display: block; }
.opening h1 span { font-size: .85em; font-weight: 280; line-height: 1.1; }
.opening h1 strong { font-weight: 750; }
/* Two weights of the same hand-drawn dimension line, with a full touch target. */
.entry-link {
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; gap: .65em; padding-inline: 3px;
  min-block-size: 44px; min-inline-size: 44px;
  color: var(--entry-ink); text-decoration: none; white-space: nowrap;
  font: 500 1rem/1.4 var(--font);
}
.entry-link--nav { --entry-ink: #433630; --entry-metal: #826844; }
.entry-link--stone {
  --entry-ink: #f9edde; --entry-metal: #d9ba8d;
  min-block-size: 50px; gap: 1em; font-size: 1.18rem;
  margin-block-start: clamp(14px, 2.4svh, 26px);
}
.entry-link::after {
  content: ""; position: absolute; inset-inline: 3px; inset-block-end: 6px;
  block-size: 1px; background: var(--entry-metal);
  transform-origin: right; transform: scaleX(1); opacity: .72;
}
.entry-link--nav::after { transform: scaleX(0); }
.entry-link__arrow {
  position: relative; flex: none; inline-size: 1.15em; block-size: 1px;
  color: var(--entry-metal); background: currentColor;
}
.entry-link__arrow::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: .34em; height: .34em; border-left: 1px solid; border-bottom: 1px solid;
  transform: translateY(-50%) rotate(45deg);
}
.entry-link:is(:hover,:active,:focus-visible)::after { transform: scaleX(1); opacity: 1; }
.entry-link:is(:hover,:focus-visible) .entry-link__arrow { transform: translateX(-2px); }
.entry-link:focus-visible { outline: 2px solid var(--entry-metal); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .entry-link::after, .entry-link__arrow { transition: transform .18s ease-out, opacity .18s ease-out; }
}
@media (max-width: 440px) {
  .entry-link--nav { gap: .38em; padding-inline: 1px; font-size: .94rem; }
  .entry-link--nav .entry-link__arrow { inline-size: .9em; }
}
@media (max-width: 360px) {
  .entry-link--nav { gap: 3px; padding-inline: 0; font-size: .875rem; }
  .entry-link--nav .entry-link__arrow { inline-size: 10px; }
}
/* Match the ink of the existing masthead and keep the approved login links. */
.masthead:has(+ .opening) { --mh-ink: #352c29; }
@media (max-width: 760px) {
  .opening { min-block-size: min(calc(100svh - var(--header) - 29px), max(448px, 137vw)); }
  .opening .opening__image { --anchor: 40%; }
  .opening .opening__content { padding-block-start: clamp(26px, 5.6svh, 58px); }
  .opening h1 { font-size: clamp(2.78rem, 11.6vw, 4.75rem); }
  .opening::before {
    background: radial-gradient(ellipse 98% 58% at 50% 24%, rgba(25,23,21,.70) 12%, rgba(31,27,25,.48) 50%, transparent 89%),
      linear-gradient(180deg, rgba(33,28,25,.30), rgba(33,28,25,.16) 38%, transparent 65%);
  }
}
@media (max-height: 520px) and (orientation: landscape) {
  .opening .opening__content { padding-block: 8px; }
  .opening .opening__question { margin-block-end: 3px; font-size: .94rem; }
  .opening h1 { font-size: clamp(1.75rem, 6.8svh, 2.4rem); }
  .opening h1 span, .opening h1 strong { display: inline; }
  .opening .entry-link--stone { min-block-size: 44px; margin-block-start: 2px; }
}
@media (max-width: 349px) and (orientation: portrait) {
  .opening h1 { font-size: clamp(2rem, 11.6vw, 2.48rem); }
}
