:root {
  --midnight: #111924;
  --midnight-raised: #1b2533;
  --paper: #f7f3eb;
  --surface: #fffcf5;
  --ink: #222731;
  --muted: #605b56;
  --wine: #733445;
  --brass: #ad8756;
  --brass-light: #e1bd84;
  --rule: #d9cdbb;
  --gutter: clamp(.875rem, 3.5vw, 3rem);
  --display: Georgia, "Times New Roman", serif;
  --edge: .5rem;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

main {
  flex: 1;
  width: min(75rem, calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

header,
footer {
  width: 100%;
  margin-inline: 0;
  padding-inline: max(var(--gutter), calc((100% - 75rem) / 2));
  background: var(--midnight);
  color: var(--paper);
}

header {
  min-height: 4.25rem;
  margin-bottom: clamp(1rem, 2vw, 1.65rem);
  padding-block: .65rem;
  border-bottom-color: #3b342e;
}

header nav { gap: clamp(.45rem, 2vw, 1.65rem); }

header nav a,
footer a {
  color: var(--paper);
}

header nav a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: 0 .2rem;
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
}

header nav a:is(:hover, [aria-current="page"]),
footer a:hover {
  color: var(--brass-light);
  text-decoration: underline;
  text-underline-offset: .35em;
}

.brand {
  flex: none;
  color: var(--paper);
  font: 400 1.5rem/1 var(--display);
  letter-spacing: .06em;
}

.brand b {
  width: 2rem;
  height: 2rem;
  border: 1px solid #987344;
  border-radius: .3rem;
  background: var(--midnight-raised);
  color: var(--brass-light);
}

.brand :is(img, svg) {
  display: block;
  width: auto;
  max-width: min(10rem, 49vw);
  height: 2rem;
  object-fit: contain;
}

.nav-icon,
.section-icon,
.region-icon,
.editorial-icon {
  display: inline-block;
  flex: none;
  vertical-align: -.12em;
}

.nav-icon { width: 1.125rem; height: 1.125rem; color: var(--brass-light); }
:is(.section-icon, .editorial-icon) { width: 1.5rem; height: 1.5rem; margin-inline-end: .3em; color: #815c31; }
.region-icon { width: 1.4rem; height: 1.4rem; color: #815c31; }

footer {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-block: clamp(1.2rem, 2.8vw, 2rem);
  border-top: 1px solid #3b342e;
  gap: .75rem 1.4rem;
}

footer > div { color: #baaa93; }
footer > small { color: #dcc6a4; }

main a { color: var(--wine); }
main a:hover { color: #532333; }

:is(a, summary, input, button):focus-visible {
  outline: 2px solid #78522a;
  outline-offset: 3px;
}

:is(header, footer, .cover, .photo-story) :is(a, summary, input, button):focus-visible {
  outline-color: var(--brass-light);
}

h1, h2, h3 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
}

h1 {
  margin: 0 0 .5em;
  font-size: clamp(2.25rem, 5.2vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(1.65rem, 3.3vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -.029em;
}

h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
figcaption { color: var(--muted); }

.cover {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid #534130;
  border-radius: var(--edge);
  background: var(--midnight);
  color: var(--paper);
}

.cover-text {
  z-index: 1;
  padding: clamp(1.4rem, 4vw, 3.25rem);
}

.cover h1 {
  margin: .38em 0 .32em;
  color: #fff7e7;
  font-size: clamp(2.4rem, 5.3vw, 4.5rem);
  line-height: .99;
  text-wrap: initial;
}

.cover-text small { color: var(--brass-light); font-weight: 600; }
.cover-text p { margin: 0 0 1.3rem; color: #e6dccb; }

.cover figure {
  display: flex;
  min-width: 0;
  min-height: 100%;
  background: var(--midnight);
}

.cover figure picture { display: flex; width: 100%; }

.cover figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 28rem;
  object-fit: cover;
  object-position: center;
}

.cover figure::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--midnight), transparent 18%);
  content: "";
  pointer-events: none;
}

.cover figcaption {
  z-index: 1;
  background: #111924eb;
  color: var(--paper);
}

.cover figcaption a, .cover figcaption a:hover { color: inherit; }

.ctas { gap: .5rem; }
.cta,
.intent-link,
.region-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: .55rem .85rem;
  border-radius: .35rem;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.35;
}

.cover .cta {
  border-color: var(--brass-light);
  background: var(--brass-light);
  color: var(--midnight);
}

.cover .cta:hover { background: #f1d4a4; color: var(--midnight); }
.cover .cta.light { border-color: #b99b74; background: transparent; color: #f2dcbb; }
.cover .cta.light:hover { border-color: var(--brass-light); background: #26313d; color: #fff7e7; }

.chapter { padding-block: clamp(1.9rem, 4vw, 3.6rem); }
.chapter > h2 { margin-bottom: 1.2rem; }
.chapter > h1 { margin-bottom: .5rem; }
.chapter > .lead { margin-top: 0; }
.chapter.last { margin-bottom: 0; }
main > .crumb + .chapter { padding-top: 0; }

.map-layout {
  grid-template-columns: minmax(0, 1.85fr) minmax(15rem, 1fr);
  gap: clamp(1rem, 3vw, 2.4rem);
}

.geo {
  margin: 0;
  background: #ece8df;
  border-radius: var(--edge);
}

.geo > rect:first-child { fill: #e8e4dc; }
.geo > polygon { fill: #fbf5e8; stroke: #c8bba5; }

.map-key a {
  position: relative;
  padding: .68rem .25rem;
  line-height: 1.45;
}

.map-key a:has(.region-icon) { padding-inline-start: 2.1rem; }
.map-key a .region-icon { position: absolute; inset: .73rem auto auto .12rem; }
.map-key a:hover b { text-decoration: underline; text-underline-offset: .22em; }
.map-key span { color: var(--muted); }

.intents { margin-block: .25rem .85rem; }
.intent-link, .region-list a { border-color: #ac9383; background: var(--surface); }
.intent-link[aria-current="true"], .intent-link:hover, .region-list a:hover { color: #fff; }
.intent { padding: 1rem clamp(1rem, 3vw, 1.6rem); background: #efe7d8; }
.intent:target { background: #f1e4e4; }
.intent h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

.zone-compare,
.stay-grid {
  gap: clamp(.7rem, 1.65vw, 1.2rem);
  margin-top: 1.2rem;
}

.zone-compare > div,
.stay-grid > div {
  min-width: 0;
  padding: .9rem clamp(.75rem, 1.4vw, 1.1rem) 1rem;
  border: 1px solid var(--rule);
  border-top: 2px solid #a48359;
  border-radius: .25rem;
  background: var(--surface);
}

.zone-compare strong { font-size: .96rem; }
.stay-grid h3 { margin-top: 0; }

.venue-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(.75rem, 1.7vw, 1.25rem);
}

article .venue-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.venue,
.venue:has(img) {
  display: flex;
  padding-left: 0;
  align-items: stretch;
  border-radius: var(--edge);
  background: var(--surface);
}

.venue-main,
.venue-main:has(img) {
  display: block;
  padding-left: 0;
  color: var(--ink);
}

.venue-main:hover h3 { color: var(--wine); text-decoration: underline; text-underline-offset: .16em; }
.venue-main:focus-visible { outline-offset: -3px; }

.venue :is(img, .venue-emblem) {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  background: var(--midnight-raised);
}

.venue img { object-fit: cover; }
.venue img[src$="/sochi.webp"] { object-position: center 56%; }
.venue img[src$="/baltic.webp"] { object-position: center 57%; }
.venue img[src$="/yantarnaya.webp"] { object-position: center 51%; }

.venue .venue-emblem {
  display: grid;
  place-items: center;
  padding: .75rem;
  background: radial-gradient(ellipse at 50% 40%, #2b3543 0, var(--midnight) 76%);
  color: var(--brass-light);
  border-bottom: 1px solid #5b4b3d;
}

.venue .venue-emblem :is(svg, img) {
  width: 70%;
  max-width: 9rem;
  height: 100%;
  max-height: 4.5rem;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}

.venue-main > div:not(.venue-emblem) { padding: .86rem .95rem .55rem; }
.venue small, .venue span { color: var(--wine); }
.venue p { color: var(--ink); font-size: .92rem; }
.venue .gallery-link { min-height: 2.65rem; padding: .35rem .95rem .55rem; }
.streetview { padding-inline: .95rem; }
.streetview summary { padding-block: .4rem; }
.venue-search { margin-block: 1.2rem .65rem; color: var(--ink); }
.venue-search input { min-width: 0; background: var(--surface); }
#match-count { color: var(--muted); font-size: .9rem; }

.spread { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.spread img {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 18rem;
  border-radius: var(--edge);
  object-fit: cover;
}

.dayplan li { margin-block: .72rem; border-left-color: var(--brass); }
.photo-story {
  border: 1px solid #4b4138;
  border-radius: var(--edge);
  background: var(--midnight);
  color: #f1e9dc;
}

.photo-story :is(h2, h3) { color: #fff7e7; }
.photo-story h2 { margin-top: .1em; }
.photo-story :is(a, a:hover, .section-icon) { color: #efcb93; }
.photo-story figcaption { color: #e6d8c5; }
.photo-story .report-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.8rem, 2vw, 1.3rem);
}

.photo-story .report-gallery figure { grid-column: auto; }
.report-gallery a { display: block; border-radius: .35rem; }

.photo-story .report-gallery figure img {
  display: block;
  height: auto;
  max-height: 22rem;
  aspect-ratio: 3 / 2;
  background: #202938;
  object-fit: contain;
}

.stay-title {
  min-height: clamp(7.75rem, 15vw, 10.5rem);
  padding: 1rem clamp(1rem, 3vw, 2rem);
  border: 1px solid #5b4b3d;
  border-radius: var(--edge);
  background-image: linear-gradient(90deg, #111924f5, #111924c4 47%, #11192439), url('/assets/portal/key.webp');
}

.stay-title :is(h2, .section-icon) { color: #fff7e7; }
.budget-lines, .price-box { border-radius: var(--edge); background: var(--surface); }

.qa {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: .1rem 1.35rem;
}

.qa summary { min-height: 2.75rem; padding: .45rem .15rem; }
.qa details { padding-block: .3rem; }
.qa details p { margin: .1rem 0 .65rem; }

.crumb {
  margin: 0 auto clamp(1.2rem, 3vw, 2.1rem);
  color: var(--muted);
  font-size: .875rem;
}

.crumb:has(+ article) { max-width: 49rem; }

article {
  max-width: 49rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  overflow-wrap: anywhere;
}

article > p,
article > section > p { max-inline-size: 71ch; }
article .lead, .chapter > .lead { max-width: 64ch; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.25rem); }
article h2 { margin: 1.45em 0 .5em; }
article h3 { margin: 1.2em 0 .45em; }
.local-nav { margin-block: 1.35rem 1.8rem; }
.local-nav a { display: inline-flex; align-items: center; min-height: 2rem; }

article :is(.zone-photo, .venue-photo) {
  margin: 1.25rem 0 1.65rem;
  background: transparent;
  text-align: left;
}

article :is(.zone-photo, .venue-photo) img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(24rem, 46vh);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 54%;
  background: #e8dfd1;
  border: 1px solid var(--rule);
  border-radius: var(--edge);
}

article :is(.zone-photo, .venue-photo) img[src$="/yantarnaya.webp"] {
  border-color: #3d3331;
  background: #211d22;
  object-fit: contain;
}

article :is(.zone-photo, .venue-photo) figcaption { font-size: .84rem; }
.note, aside { padding: 1rem clamp(1rem, 3vw, 1.45rem); border-left: 2px solid var(--brass); border-radius: .25rem; background: #efe7d8; }
th { background: #eee6d6; }
.hp-search { --hp-ink: var(--midnight); --hp-accent: var(--wine); --hp-line: #b7a58b; }
.hp-search [role="tablist"] { display: flex; }
.hp-search [role="tab"] { padding-inline: 1rem; }
.hp-search [role="tabpanel"] { background: #efe7d8; }

@media (max-width: 760px) {
  .cover, .map-layout, .spread { grid-template-columns: 1fr; }
  .cover figure { order: 0; }
  .cover figure img { height: clamp(9.5rem, 47vw, 20rem); }
  .cover figure::after { background: linear-gradient(var(--midnight), transparent 18%); }
  .cover h1 { max-width: 15ch; font-size: clamp(2.2rem, 8.7vw, 3.75rem); }
  .cover-text p { margin-bottom: .95rem; }
  .map-layout { gap: .6rem; }
  .spread img { max-height: 14rem; }
  .venue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qa { grid-template-columns: 1fr; }
  article :is(.zone-photo, .venue-photo) img { max-height: 15rem; aspect-ratio: 3 / 2; }
}

@media (max-width: 520px) {
  header { flex-wrap: wrap; gap: .12rem .65rem; padding-block: .55rem .25rem; }
  header nav { width: 100%; justify-content: space-between; gap: .25rem; }
  header nav a { font-size: .85rem; }
  footer { display: grid; grid-template-columns: 1fr auto; }
  footer > small { grid-column: 2; grid-row: 1; }
  footer > div { grid-column: 1 / -1; }
  .cover-text { padding: 1.15rem 1rem; }
  .zone-compare, .stay-grid { grid-template-columns: 1fr; }
  .photo-story .report-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .venue-grid, article .venue-grid { grid-template-columns: 1fr; }
  .venue :is(img, .venue-emblem) { aspect-ratio: 2 / 1; }
  .venue .venue-emblem svg { max-height: 4rem; }
  .venue h3 { font-size: 1.35rem; }
}
