.house-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  vertical-align: middle;
}

:root {
  --window-paint: #244f69;
  --window-trim: #9ab1b8;
}

/* Square, painted rails at the scale of each photograph. */
.documentary-photo,
:where(#house-film, #gallery-image) {
  border: var(--photo-frame-rail, 6px) solid var(--window-paint);
  outline: 1px solid var(--window-trim);
  outline-offset: calc(0px - var(--photo-frame-inset, 4px));
}

.visit-landscape .documentary-photo {
  --photo-frame-rail: clamp(6px, .74vw, 11px);
  --photo-frame-inset: 4px;
}

.stay-film-thumbs .documentary-photo,
.postcard .documentary-photo,
.request-context .documentary-photo {
  --photo-frame-rail: 4px;
  --photo-frame-inset: 2px;
}

.window-picture-outside .documentary-photo,
.window-picture-room .documentary-photo,
.table-camera .documentary-photo {
  border: 0;
  outline: 0;
}

.window-picture-table::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 6px solid var(--window-paint);
  outline: 1px solid var(--window-trim);
  outline-offset: -4px;
  pointer-events: none;
  content: "";
}

.masthead .header-actions {
  display: flex;
  justify-self: end;
  gap: 6px;
  align-items: center;
}

.masthead .header-actions a {
  min-height: 44px;
  padding: 9px 13px;
  white-space: nowrap;
  line-height: 1.35;
}

.masthead .header-contact {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-size: 13px;
}

.masthead .header-contact:hover,
.masthead .header-contact[aria-current="page"] {
  background: #e8eeed;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.site-footer .footer-bottom {
  flex-wrap: wrap;
  column-gap: 20px;
}

.footer-social a {
  display: inline-flex;
  gap: 7px;
  min-height: 44px;
  align-items: center;
  color: var(--blue);
  font-size: 12px;
  text-decoration: none;
}

.footer-social a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-social .house-icon {
  width: 19px;
  height: 19px;
}

.window-journey {
  --window-wood: var(--window-paint);
  --window-edge: var(--window-trim);
}

.window-journey .window-picture-outside {
  padding: clamp(8px, 1.55vw, 22px);
  border: 2px solid #17394e;
  background: var(--window-wood);
  box-shadow: inset 0 0 0 4px var(--window-edge), inset 0 0 0 6px #315f76;
}

.window-journey .window-door {
  border: 1px solid #153b50;
  outline: 1px solid var(--window-edge);
  outline-offset: -5px;
  overflow: hidden;
}

.window-journey .window-door::after {
  position: absolute;
  inset: 0;
  border: 6px solid rgba(19, 52, 71, .26);
  content: "";
  pointer-events: none;
}

.window-journey .window-open-label {
  top: auto;
  right: 10px;
  bottom: 10px;
  left: auto;
  min-height: 46px;
  padding: 10px 14px;
  transform: none;
  border: 1px solid #b0bfc4;
  background: #244f69;
  color: #fffaf0;
  font-size: 13px;
  z-index: 1;
  white-space: nowrap;
}

.window-door .window-open-label .house-icon {
  width: 20px;
  height: 20px;
}

.window-journey .window-open-label:hover,
.window-journey .window-door:hover .window-open-label {
  background: #12354c;
  color: #fffaf0;
}

.window-journey .window-door:focus-visible {
  outline: 3px solid var(--visit-paper);
  outline-offset: -7px;
}

.window-journey .window-picture-room {
  border: 5px solid var(--window-wood);
  box-shadow: 0 0 0 1px var(--window-edge);
}

body[data-page="workshops"] .craft-entry {
  padding-block: 8px 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 76px);
}

.craft-stage-photo > img {
  height: auto;
  aspect-ratio: 1.45;
  object-position: 50% 51%;
}

.craft-picker .craft-quick-index > a {
  grid-template-columns: 25px minmax(0, 1fr) 22px;
  column-gap: 12px;
  padding-inline: 3px;
}

.craft-picker .craft-quick-index > a .house-icon {
  width: 20px;
  height: 20px;
}

.craft-picker .craft-quick-index > a .house-icon:first-child {
  color: #41677b;
}

.craft-picker-note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.6;
}

.craft-reading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 70px);
  padding-block: clamp(32px, 5vw, 68px);
  border-block: 1px solid var(--rule);
}

.craft-reading h2 {
  color: var(--blue);
  font-size: clamp(34px, 5vw, 62px);
}

.craft-reading p {
  max-width: 54ch;
  margin-bottom: 12px;
}

.craft-reading .text-link {
  margin: 4px 14px 0 0;
  min-height: 44px;
  padding-block: 10px;
}

@media (max-width: 900px) {
  .masthead .header-actions {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 700px) {
  .documentary-photo,
  :where(#house-film, #gallery-image) {
    --photo-frame-rail: 5px;
    --photo-frame-inset: 3px;
  }

  body[data-page="workshops"] .craft-entry {
    grid-template-columns: 1fr;
  }

  .craft-entry .craft-picker {
    grid-row: 1;
  }

  .craft-reading {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :is(.stay-film-thumbs, .cottage-small-photos) .documentary-photo {
    border-width: 1px;
    outline: 0;
  }
}

@media (max-width: 420px) {
  .masthead .header-actions a {
    font-size: 11px;
    padding-inline: 9px;
  }
}

@media (max-width: 350px) {
  .masthead .header-actions {
    gap: 4px;
  }

  .masthead .header-actions a {
    padding-inline: 6px;
  }
}
