:root {
  --main-bg: #39413d;
  --sidebar-bg: #1b1f1e;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: sans-serif;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;

  background: var(--main-bg);
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 100%;

  background: conic-gradient(
    from 45deg at left,
    var(--sidebar-bg) 90deg,
    transparent 0
  );
  background-size: 100% 20px;
  background-repeat: repeat-y;
}

body::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: calc(21px + clamp(72px, 14vw, 133px) + 37px);

  background: #ffffff12;
}

.background {
  z-index: 1;
  margin: 8px auto;
  padding: clamp(6px, 1.5vw, 8px);
  width: min(960px, 100% - 16px);
  min-height: calc(100% - 8px * 4);
  position: relative;

  display: flex;
  flex-direction: column;
}

.background::before {
  --edge-blur: 1px;

  content: "";
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;

  border-radius: var(--edge-blur);
  mask-image:
    linear-gradient(
      to right,
      transparent,
      black var(--edge-blur),
      black calc(100% - var(--edge-blur)),
      transparent
    ),
    linear-gradient(
    to bottom,
    transparent,
    black var(--edge-blur),
    black calc(100% - var(--edge-blur)),
    transparent
  );
  mask-composite: intersect;
  background: #ffffff1d;
}

header {
  height: auto;
  min-height: clamp(72px, 14vw, 133px);

  background-image:
    linear-gradient(
      to right,
      transparent calc(100% - 2px),
      #b4712c calc(100% - 1px)
    ),
    linear-gradient(
    135deg,
    #842101 0.0%,
    #7d2306 0.56%,
    #7b1e01 2.1%,
    #852d00 29.87%,
    #782600 38.99%,
    #aa5201 59.89%,
    #934201 68.44%,
    #984800 84.71%,
    #a65202 90.74%,
    #8a4108 98.6%,
    #8c4610 99.44%,
    #a36537 100.0%
  );
  background-repeat: repeat-x;
  background-size: 91.5% 100%;
  background-position: center;

  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0 clamp(8px, 1.7vw, 16px);
  gap: clamp(12px, 5.5vw, 50px);
  color: #e9f0db;
  text-transform: uppercase;
}

header > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

header > .logo {
  width: clamp(56px, 12vw, 100px);
  height: auto;
}

header .title {
  font-size: clamp(1.05rem, 2.6vw, 1.5em);
  font-weight: bold;
}

header .subtitle {
  font-size: clamp(0.8rem, 1.8vw, 1em);
}

nav {
  --border-thickness: 2px;
  --item-height: clamp(25px, 18px + 1.8vw, 33px);
  --row-height: calc(var(--item-height) + 5px);
  --nav-border-color: #2a2d27;

  height: auto;
  min-height: var(--row-height);

  background-image:
    linear-gradient(
      0deg,
      var(--nav-border-color) 0 var(--border-thickness),
      transparent var(--border-thickness)
    ),
    linear-gradient(
    0deg,
    #b44901 40%,
    #da5801 45%,
    #eb5e01 80%,
    #ce5301 100%
  );
  background-repeat: repeat-y;
  background-size: 100% var(--row-height);

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: start;
  padding: 0 4px 0 10px;
  gap: 0 5px;
}

nav a {
  box-sizing: border-box;
  height: var(--item-height);
  margin-top: calc(var(--row-height) - var(--item-height));
  display: inline-flex;
  align-items: center;

  color: black;
  text-decoration: none;
  font-style: normal;
  font-weight: bold;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 clamp(10px, 2.2vw, 20px);
  font-size: clamp(0.72rem, 1.6vw, 0.9em);
  border-top-right-radius: 3px;

  --border-color: none;
  --bottom-border-color: transparent;
  box-shadow:
    inset 0 calc(-1 * var(--border-thickness)) 0 0 var(--bottom-border-color),
    inset 0 2px 1px -1px var(--border-color),
    inset 2px 0 1px -1px var(--border-color),
    inset -2px 0 1px -1px var(--border-color);
}

nav a[aria-current="page"] {
  --border-color: #212624;
  color: #ffc59f;
  background: linear-gradient(0.0deg, #4a5650 0%, #070807 100%);
}

nav a:hover {
  --border-color: #8e3a01;
  --bottom-border-color: var(--nav-border-color);
  color: #2b312e;
  background: linear-gradient(0.0deg, #fda264 0%, #fd6a0a 60%, #da5801 100%);
}

main {
  display: grid;
  grid: auto-flow dense auto / 1fr 240px;
  gap: 15px;
  padding: 15px 5px;
}

section, aside {
  padding: 0.7em;
  border-radius: 10px;
  background: #e1e5e3;
  color: #404a45;
  font-size: 0.9em;
  line-height: 1.3em;
}

section {
  grid-area: span 3 / 1;
}

section:not(aside + section) {
  grid-area: span 1 / span 2;
}

aside {
  border-radius: 1px;
  grid-column: 2;
}

aside h3 {
  color: black;
  background-color: #fd4600;
  margin: -0.4em;
  margin-bottom: 0.5em;
}

aside h3::before {
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23c8cbd0' stroke='%2318181b' stroke-linejoin='round' stroke-width='6' d='M44.2 34a15.5 15.5 0 1 1 19.2 5.5 15.5 15.5 0 1 1 .7 20 15.5 15.5 0 1 1-18.8 6.8A15.5 15.5 0 1 1 33 50.6 15.5 15.5 0 1 1 44.2 34Z'/%3E%3Ccircle cx='50' cy='50' r='5.5' fill='%2318181b'/%3E%3C/svg%3E");
  width: 0.9em;
  height: 0.9em;
  margin: 2px 3px -2px 5px;
  display: inline-block;
}

h3 {
  background: #c3cbc7;
  padding: 6px 0 4px 2px;
  margin: 0;
}

h4 {
  margin-top: 2em;
  margin-bottom: 0.8em;
}

h3, h4 {
  color: #515d57;
  text-transform: uppercase;
}

ul {
  list-style-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24' width='13' height='24'%3E%3Cpath fill='none' stroke='%23943a05' stroke-linecap='round' stroke-linejoin='round' stroke-width='4.5' d='m4 16 8 8-8 8m10-16 8 8-8 8'/%3E%3C/svg%3E");
  padding-left: 30px;
}

img, video {
  max-width: 100%;
  height: auto;
}

video, section > img, section > picture > img, .flag-container img {
  border: 1px solid gray;
}

table {
  border-collapse: collapse;
  border: 1.5px solid #8c8c8c;
  font-family: sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

caption {
  font-weight: bold;
}

.price-caption {
  caption-side: bottom;
  padding: 10px;
  font-weight: bold;
}

thead,
tfoot {
  background-color: #e4f0f5;
}

th,
td {
  border: 1px solid silver;
  padding: 6px 15px;
  min-width: 80px;
  text-align: center;
}

th:first-of-type {
  text-align: left;
  min-width: 100px;
}

tbody > tr:nth-of-type(even) {
  background-color: #edeef2;
}

tfoot td {
  font-weight: bold;
}

main a, main a h4 {
  color: #9d3f01;
}

main a:visited, main a:visited h4 {
  color: #5f6d66;
}

.flag-container {
  display: flex;
  flex-direction: row;
  gap: 60px;
  width: 100%;
  padding: 0 35px;
  margin: 20px 0;
  box-sizing: border-box;
}

.flag-container > * {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flag-container img {
  width: 100%;
  height: auto;
}

.float-left {
  float: left;
  margin: 1ch;
  width: 30%;
}

.float-right {
  float: right;
  margin: 1ch;
  width: 50%;
}

.float-center {
  margin: 0.5ch;
  width: calc(100% - 0.5ch * 2);
  height: auto;
}

.warning-frame {
  border: 1.5px solid silver;
  background: white;
  padding: 20px;
}

.warning-frame img {
  width: 50px;
  height: 50px;
}

.warning-heading {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: brown;
}

.horizontal {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.horizontal > * {
  flex: 1;
}

.map {
  --margin: 20px;
  width: calc(100% - var(--margin) * 2);
  border: 1px solid silver;
  margin: var(--margin);
  aspect-ratio: 16 / 10;
  display: grid;
  box-sizing: border-box;
}

.map > * {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}

.map > iframe {
  border: none;
  opacity: 0.01;
}

.map img {
  display: block;
}

.message {
  --padding: 15px;
  border: none;
  border-radius: 5px;
  box-sizing: border-box;
  width: 100%;
  height: calc(1em + var(--padding) * 2);
}

#references li::first-letter {
  font-weight: bold;
}

footer {
  margin-top: auto;
  color: gray;
  font-size: 0.8em;
}

main.flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

#close-button {
  position: fixed;
  top: 10px;
  right: 55px;
  color: white;
  font-size: 1.5em;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 0 1px 2px black, 0 0 4px black;
}

#largeimage {
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

figcaption {
  color: white;
  padding: 1em 0;
  text-align: center;
  font-size: 0.9rem;
}

.gallery {
  display: flex;
  flex-direction: row;
  max-width: 50%;
  gap: 0.5em;
}

.gallery > * {
  flex: 1;
  min-width: 0;
}

.gallery img {
  width: 100%;
  height: auto;
}

.gallery-more {
  display: block;
  padding: 0.2em;
  text-align: center;
}

.photo-row p {
  margin: 0.5ch;
}

@media (max-width: 768px) {
  body::before, body::after {
    display: none;
  }

  main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
  }

  h4 {
    margin-top: 1em;
  }

  table {
    width: 100%;
    overflow-x: auto;
    font-size: 0.72rem;
  }

  th, td, th:first-of-type {
    padding: 4px 8px;
    min-width: 0;
  }

  .horizontal {
    flex-direction: column;
  }

  .flag-container {
    flex-wrap: wrap;
    gap: 16px;
    padding: 0;
  }

  .flag-container > * {
    flex: 1 1 40%;
  }

  .float-left, .float-right {
    float: none;
    width: 100%;
    margin: 0.5em 0;
  }

  .gallery {
    max-width: 75%;
    flex-wrap: wrap;
  }

  .gallery > * {
    flex: 1 1 calc(25% - 0.5em);
  }

  .map {
    --margin: 8px;
  }

  #close-button {
    right: 8px;
    font-size: 1.1em;
  }

  ul {
    padding-left: 22px;
  }

  aside.contact {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 0.6em;
    align-items: start;
  }

  aside.contact h3 {
    grid-column: 1 / -1;
  }

  .photo-row {
    display: flex;
    gap: 0.5em;
  }

  aside > img.float-center {
    width: 50%;
    margin: 0.5ch auto;
  }

  .warning-frame {
    margin-top: 0 !important;
  }
}
