:root {
  color-scheme: light;
  --ink: #161312;
  --paper: #faf8f8;
  --gold: #ac6900;
  --rule: #c6840a;
  --red: #a80000;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0 auto;
  max-width: 1320px;
  padding: 0 clamp(16px, 3vw, 42px);
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 107px;
  padding: 0 clamp(0px, 3vw, 42px);
  border-bottom: 2px solid var(--rule);
}
.brand { font-size: clamp(22px, 2.6vw, 32px); letter-spacing: .23em; text-decoration: none; }
nav { display: flex; gap: clamp(12px, 3vw, 44px); flex-wrap: wrap; }
nav a { position: relative; font-size: clamp(16px, 1.9vw, 23px); text-decoration: none; }
nav a:hover::after, nav a.active::after {
  position: absolute;
  inset: auto 0 -10px;
  height: 3px;
  background: var(--rule);
  content: '';
}
button { font: inherit; cursor: pointer; }
.hero { text-align: center; padding-top: 15px; }
.crest { margin: auto; width: clamp(144px, 19.6vw, 235px); }
.name { margin: auto; width: min(88%, 655px); }
h1 { margin: -2px 0 0; }
.title { color: var(--gold); font-size: clamp(18px, 2.75vw, 35px); letter-spacing: .13em; text-transform: uppercase; margin: 6px 0 14px; }
.place { display: flex; justify-content: center; align-items: center; gap: clamp(10px, 2.7vw, 34px); margin: 0; font-style: italic; font-size: clamp(17px, 2.5vw, 30px); }
.place::before, .place::after { content: ''; width: min(8vw, 92px); height: 2px; background: var(--rule); flex: none; }
figure { margin: 0 -7px; }
.panorama { width: 100%; }
.details { display: grid; grid-template-columns: 2fr 1fr; align-items: center; margin: 8px 0 46px; text-align: center; }
dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
dl > div { position: relative; padding: 0 5px; }
dl > div::after { content: ''; position: absolute; inset: 38px 0 0 auto; border-right: 1px solid var(--rule); }
dt { font-weight: bold; font-size: clamp(17px, 2vw, 25px); }
dt img { height: 49px; width: auto; margin: 0 auto 10px; }
dd { margin: 6px 0 0; font-size: clamp(14px, 1.7vw, 20px); font-style: italic; }
dd a { text-decoration: none; }
dd a:hover { text-decoration: underline; }
.seal { margin: auto; }
footer { position: relative; text-align: center; border-top: 2px solid var(--rule); padding: 32px 0 42px; }
footer::before { position: absolute; top: 0; left: 50%; transform: translate(-50%, -53%); content: '✦'; color: var(--rule); background: var(--paper); padding: 0 8px; font-size: 34px; }
footer p { margin: 20px 0 0; font-size: clamp(15px, 1.7vw, 20px); }
dialog { background: var(--paper); color: var(--ink); border: 1px solid var(--rule); padding: 24px; max-width: calc(100vw - 32px); }
dialog::backdrop { background: #27140780; }
dialog h2 { margin: 0; }
dialog button { color: white; background: var(--red); border: 0; border-radius: 20px; padding: 6px 16px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
@media (max-width: 800px) {
  .header { flex-wrap: wrap; gap: 16px; padding: 15px 0 18px; min-height: 0; }
  nav { order: 1; width: 100%; justify-content: center; row-gap: 16px; }
  nav a:hover::after, nav a.active::after { bottom: -5px; }
}
@media (max-width: 620px) {
  .details { grid-template-columns: 1fr; gap: 12px; margin-bottom: 25px; }
  dl > div:last-child::after { display: none; }
  .seal { width: 210px; }
  .place::before, .place::after { width: 6vw; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
