:root {
  --night: #1c1400;
  --ink: #323232;
  --brown: #2a2116;
  --gold: #e6c15a;
  --sheet: #afa082;
  --cream: #f6edd8;
  --black: #000;
  --panel: #4e440c;
  --on-panel: #fff;
  --panel-heading: #efe6c4;
  --link: #733200;
  --link-hover: #4c3222;
  --shadow: rgb(28 20 0 / 28%);
  --radius: 20px;
  --line: 3px;
  --fade-1: #666600;
  --fade-2: #5b590c;
  --fade-3: #48440c;
  --fade-4: #36300c;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--night);
  color: var(--ink);
  font: 18px/1.6 Arial, Helvetica, sans-serif;
}

::selection {
  background: var(--brown);
  color: var(--gold);
}

.page {
  background: linear-gradient(var(--fade-1), var(--fade-2) 173px, var(--fade-3) 347px, var(--fade-4) 521px, var(--night) 695px);
  min-height: 100vh;
}

.frame {
  width: 980px;
  margin: 0 auto;
  padding-left: 40px;
  box-sizing: border-box;
  background: var(--black);
}

.sheet {
  background: var(--sheet);
  padding-bottom: 28px;
}

.toolbar {
  height: 30px;
  background: var(--black);
}

.banner {
  position: relative;
  z-index: 6;
  height: 250px;
  margin: 10px;
  background: var(--cream);
  border-radius: var(--radius);
}

.logo {
  position: absolute;
  z-index: 6;
  top: 35px;
  left: -113px;
  width: 352px;
  height: 370px;
  background: url("../images/logo.png") 0 0 no-repeat;
  pointer-events: none;
}

.logo::after {
  content: "";
  position: absolute;
  left: 80px;
  top: 0;
  width: 200px;
  height: 210px;
  pointer-events: auto;
}

@font-face {
  font-family: Yellowtail;
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("yellowtail-regular.woff2") format("woff2");
}

.logo span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fade 20s infinite;
}

.slides img:nth-child(1) { animation-name: fade-first; }
.slides img:nth-child(2) { animation-delay: 5s; }
.slides img:nth-child(3) { animation-delay: 10s; }
.slides img:nth-child(4) {
  animation-name: fade-last;
  animation-delay: 15s;
}

@keyframes fade-first {
  0% { opacity: 1; }
  36% { opacity: 1; }
  37% { opacity: 0; }
  90% { opacity: 0; }
  95% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes fade {
  0% { opacity: 0; }
  10% { opacity: 1; }
  36% { opacity: 1; }
  37% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes fade-last {
  0% { opacity: 0; }
  10% { opacity: 1; }
  25% { opacity: 1; }
  35% { opacity: 0; }
  100% { opacity: 0; }
}

.ornament {
  position: absolute;
  z-index: 4;
  top: -20px;
  right: -132px;
  width: 122px;
  height: 303px;
  background: url("../images/header_illustration.png") 0 0 no-repeat;
  pointer-events: none;
}

.menu {
  position: relative;
  z-index: 5;
  display: flex;
  height: 100px;
  margin: 10px 0 0;
  padding: 0 0 0 250px;
  background: var(--black);
  list-style: none;
}

.menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 90px;
  padding: 0 12px;
  border-right: var(--line) solid var(--sheet);
  transition: padding 0.2s cubic-bezier(0.5, 1, 0.89, 1);
  color: var(--gold);
  font-family: Yellowtail, sans-serif;
  font-size: 38px;
  font-weight: 400;
  font-stretch: 100%;
  font-synthesis: none;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.menu a span {
  position: relative;
  top: -8px;
}

.menu:has(a:hover) a,
.menu:has(a:focus-visible) a {
  padding: 0 5px;
}

.menu:has(a:hover) a:hover,
.menu:has(a:focus-visible) a:focus-visible {
  padding: 0 40px;
}

.menu a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -6px;
}

.menu a[aria-current="page"] {
  box-shadow: inset 0 calc(var(--line) * -1) 0 var(--gold);
}

main {
  padding: 18px 22px 8px;
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
}

main::after {
  content: "";
  display: block;
  clear: both;
}

main h1,
main h2,
main h3 {
  margin: 0.4em 0 0.3em;
  color: var(--brown);
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  line-height: 1.15;
}

main h1 {
  width: fit-content;
  max-width: 100%;
  padding-bottom: 0.22em;
  border-bottom: var(--line) solid var(--gold);
  font-size: 34px;
  font-weight: normal;
}

main h2 {
  font-size: 26px;
}

main h3 {
  font-size: 22px;
}

main a {
  color: var(--link);
}

main a:hover {
  color: var(--link-hover);
}

main ul {
  margin: 0.6em 0 0.6em 1.2em;
  padding: 0;
}

.photo-right,
.photo-left,
.contact-photo {
  border-radius: var(--radius);
  box-shadow: 0 10px 18px var(--shadow);
}

.photo-right,
.photo-left {
  margin: 6px 0 12px 16px;
}

.photo-right {
  float: right;
}

.photo-left {
  float: left;
  margin: 6px 16px 12px 0;
}

.contact-photo {
  float: right;
  margin: 6px 0 12px 16px;
}

.line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0.35em 0;
}

.line img {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  flex: none;
}

.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 10px 0;
}

.panel {
  margin: 0;
  padding: 12px 16px 16px;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 10px 18px var(--shadow);
  color: var(--on-panel);
  font-size: 16px;
  line-height: 1.5;
}

.panel h2 {
  margin: 0 0 6px;
  color: var(--panel-heading);
  font: bold 16px/1.4 Arial, Helvetica, sans-serif;
}

.panel p {
  margin: 0.3em 0;
}

.panel a {
  color: var(--on-panel);
}

.area-map {
  clear: both;
  margin: 18px 0 0;
}

.area-map img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 18px var(--shadow);
}

.area-map > a {
  display: block;
  text-decoration: none;
}

.area-map figcaption {
  margin: 6px 2px 0;
  color: var(--brown);
  font: 13px/1.4 Arial, Helvetica, sans-serif;
}

.area-map a {
  color: var(--brown);
}

@media (prefers-reduced-motion: reduce) {
  .menu a {
    transition: none;
  }

  .slides img {
    animation: none;
    opacity: 0;
  }

  .slides img:first-child {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .frame {
    width: 100%;
    padding-left: 0;
  }

  .logo {
    top: 8px;
    left: 0;
    width: 170px;
    height: 179px;
    background-size: contain;
  }

  .logo::after {
    left: 16px;
    top: 8px;
    width: 130px;
    height: 120px;
  }

  .ornament {
    display: none;
  }

  .banner {
    height: 190px;
  }

  .menu {
    flex-wrap: wrap;
    height: auto;
    padding-left: 0;
    justify-content: center;
  }

  .menu a,
  .menu:has(a:hover) a,
  .menu:has(a:hover) a:hover,
  .menu:has(a:focus-visible) a,
  .menu:has(a:focus-visible) a:focus-visible {
    padding: 0 12px;
  }

  .photo-right,
  .photo-left,
  .contact-photo {
    float: none;
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 12px;
  }

  .panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .banner {
    height: 140px;
  }

  .logo {
    top: 6px;
    width: 112px;
    height: 118px;
  }

  .logo::after {
    left: 10px;
    top: 4px;
    width: 90px;
    height: 84px;
  }
}
