.inside-first .site-header {
  border-color: #43594d;
  background: var(--forest);
  color: var(--paper);
}

.inside-first .header-layout { min-height: 4.1rem; }
.inside-first .site-header :focus-visible { outline-color: #ffe1b6; }
.inside-first .menu-toggle span { background: var(--paper); }

/* The selected artwork's hero occupies rows 69–547 of the 1024-pixel-wide mockup. */
.story-hero {
  position: relative;
  aspect-ratio: 1024 / 479;
  overflow: hidden;
  background: #e7e0cc;
}
.story-hero-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.story-hero-art {
  position: absolute;
  top: calc(-100% * 69 / 479);
  left: 0;
  width: 100%;
  height: auto;
}
.hero-model-link { position: absolute; bottom: 3.7%; }
.hero-model-link-low { top: 38%; left: 8%; width: 39.2%; }
.hero-model-link-pop { top: 20%; left: 55.5%; width: 37.5%; }
.hero-model-link:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: -4px;
  box-shadow: inset 0 0 0 6px var(--forest);
}

.interior-stories {
  margin-block: clamp(2.35rem, 4.5vw, 4.35rem) clamp(3.25rem, 6.5vw, 6.25rem);
  scroll-margin-top: 4.6rem;
  border-top: 1px solid var(--line);
}

.interior-story {
  display: grid;
  grid-template-columns: minmax(0, .77fr) minmax(0, 1.55fr);
  align-items: center;
  gap: clamp(1.35rem, 5.5vw, 6rem);
  padding-block: clamp(1.15rem, 2.8vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.story-reversed { grid-template-columns: minmax(0, 1.55fr) minmax(0, .77fr); }
.story-reversed figure { grid-column: 1; grid-row: 1; }
.story-reversed .story-copy { grid-column: 2; grid-row: 1; }
.story-copy h2 { font-size: clamp(2.35rem, 4.3vw, 4.5rem); }
.story-copy p { max-width: 27ch; margin-top: .73rem; color: var(--moss); }
.interior-story figcaption { margin-top: .55rem; color: var(--moss); font-size: .875rem; }
.story-image {
  display: block;
  position: relative;
  background: #d8d5c8;
}
.story-image img { height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.story-image::after {
  content: '';
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #eceddb;
  border-radius: .2rem;
  background: linear-gradient(#fcfaf4, #fcfaf4) center / .92rem 2px no-repeat,
    linear-gradient(#fcfaf4, #fcfaf4) center / 2px .92rem no-repeat, var(--deep);
}
.story-image:hover::after { background-color: #39574b; }

.story-models { background: var(--sage); }
.story-models h2 { margin-bottom: clamp(1.25rem, 2.7vw, 2.2rem); }
.compact-model-grid { gap: clamp(.85rem, 2vw, 1.7rem); }
.compact-model {
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr);
  gap: clamp(.9rem, 1.6vw, 1.55rem);
  align-items: center;
  padding: .95rem;
  background: var(--paper);
  scroll-margin-top: 5.25rem;
}
.compact-model:target { outline: 2px solid #7b8f80; outline-offset: 3px; }
.compact-model h3 { font-size: clamp(1.25rem, 1.95vw, 1.8rem); }
.compact-model p { margin-top: .35rem; color: var(--moss); }
.compact-model .model-actions { gap: 0 1rem; padding-top: .18rem; }
.story-specs { margin-top: 1.2rem; border-block: 1px solid #aab8aa; }
.story-specs summary { width: fit-content; padding-block: .65rem; font-weight: 700; cursor: pointer; }
.story-specs p { margin: 0 0 .85rem; color: var(--moss); }
.story-specs .compare-table { margin-bottom: 1.1rem; }

#gallery-dialog {
  width: min(calc(100% - 2rem), 70rem);
  max-height: min(90dvh, 58rem);
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--forest);
}
#gallery-dialog::backdrop { background: rgb(12 25 19 / 72%); }
.gallery-dialog-content { padding: clamp(1rem, 3.4vw, 2.65rem); }
.gallery-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1.25rem; }
.gallery-dialog-header h2 { font-size: clamp(1.55rem, 3vw, 2.65rem); }
#gallery-dialog .interior-main img { object-fit: contain; }

@media (max-width: 830px) {
  .inside-first #main-nav { background: var(--forest); }
  .inside-first #main-nav a { border-color: #64786a; }
}

@media (max-width: 700px) {
  .interior-story, .story-reversed { grid-template-columns: 1fr; gap: .85rem; }
  .story-reversed figure, .story-reversed .story-copy { grid-column: auto; grid-row: auto; }
  .story-copy p { max-width: 42ch; margin-top: .45rem; }
}

@media (max-width: 380px) {
  .compact-model { grid-template-columns: 1fr; }
}
