@font-face {
  font-family: "PT Serif";
  src: url("pt-serif-regular.woff") format("woff");
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #142a38;
  --ink: #1c2a32;
  --paper: #faf7ee;
  --rule: #c6bda7;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--navy);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid #227dc0; outline-offset: 4px; }
.skip { position: fixed; top: -90px; left: 12px; z-index: 4; background: white; padding: 10px; }
.skip:focus { top: 12px; }

.site-head {
  position: relative;
  z-index: 1;
  background: var(--navy);
  border-bottom: 1px solid #c1a37670;
  color: #fff9ea;
}
.site-head__inner {
  width: min(1240px, calc(100% - clamp(36px, 9vw, 148px)));
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.site-brand { width: clamp(135px, 15vw, 205px); text-decoration: none; }
.site-head nav, .paper-foot { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.site-head nav a, .paper-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .91rem;
}
.site-head nav a { text-decoration: none; }
.site-head nav a:hover { text-decoration: underline; }

main {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: calc(100vh - 78px);
  min-height: calc(100svh - 78px);
}
.room-photo, main::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.room-photo { z-index: -2; object-fit: cover; object-position: 42% 50%; }
main::before {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #101b2320 5%, #132b37a8 84%), linear-gradient(0deg, #0f1e2e55, transparent 48%);
}
.directory-inner {
  width: min(1240px, calc(100% - clamp(36px, 9vw, 148px)));
  margin: auto;
  display: flex;
  justify-content: flex-end;
  padding-block: clamp(50px, 8vw, 110px);
}
.directory-paper {
  width: min(100%, 565px);
  padding: clamp(26px, 3.6vw, 57px);
  background: var(--paper);
  border: 1px solid #e4d8bf;
  box-shadow: 3px 4px 0 #d5c8ae, 5px 7px 0 #9f9177, 0 24px 60px #07172270;
}
h1 {
  margin: 0 0 clamp(18px, 2.8vw, 32px);
  padding: clamp(12px, 2vw, 23px) 0 clamp(16px, 2.2vw, 24px);
  border-top: 4px double var(--ink);
  border-bottom: 1px solid var(--ink);
  font: 400 clamp(38px, 4.5vw, 65px)/1.05 "PT Serif", Georgia, serif;
  letter-spacing: -.048em;
}
.service-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.service {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 12px 18px;
  color: var(--ink);
  background: #fffefa;
  border: 1px solid #c9c3b2;
  font-weight: 600;
  font-size: 1.04rem;
  text-decoration: none;
  box-shadow: 0 2px 0 #4840300d;
}
.service:hover, .service:focus-visible {
  color: #172f42;
  border-color: #637e8f;
  background: #fff;
  box-shadow: 0 3px 9px #283b4620;
}
.service:hover span, .service:focus-visible span { text-decoration: underline; }
.service img { width: 46px; height: 46px; flex: none; object-fit: contain; }
.directory--reviews .directory-paper { width: min(100%, 640px); }
.directory--reviews .service-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.directory--reviews li { grid-column: span 2; }
.directory--reviews li:nth-last-child(2):nth-child(3n + 1) { grid-column: 2 / span 2; }
.directory--reviews .service {
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 15px 5px;
  text-align: center;
  font-size: .94rem;
}
.paper-foot { margin-top: 24px; padding-top: 8px; justify-content: space-between; border-top: 1px solid var(--rule); }
.paper-foot a { color: #384c55; font-size: .85rem; }
.paper-foot a:hover { color: #92251f; }

@media (max-width: 700px) {
  .site-head__inner { min-height: 66px; }
  main { min-height: calc(100svh - 66px); align-items: start; }
  .room-photo { max-height: 370px; object-position: 50% 42%; }
  main::before { background: linear-gradient(0deg, var(--navy) 2%, transparent 100%) top / 100% 370px no-repeat; }
  .directory-inner { justify-content: center; padding-block: clamp(78px, 16vw, 110px) 38px; }
  .directory-paper { padding: clamp(19px, 5vw, 32px); }
}

@media (max-width: 470px) {
  .site-head__inner, .directory-inner { width: calc(100% - 32px); }
  .site-head nav { gap: 15px; }
  .site-head nav a { font-size: .81rem; }
  .directory--reviews .service-list { display: flex; flex-wrap: wrap; justify-content: center; }
  .directory--reviews li { flex: 0 0 calc(50% - 5px); }
  .directory--reviews .service { min-height: 88px; padding: 11px 4px; }
  .directory--reviews .service img { width: 39px; height: 39px; }
  .service { padding: 10px 12px; gap: 13px; font-size: 1rem; }
  .paper-foot { gap: 8px; margin-top: 18px; }
}
