@font-face {
  font-family: Cinzel;
  src: url("fonts/cinzel.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #1c0d20;
  --wine: #49152e;
  --gold: #ffd68d;
  --cream: #fff1d6;
  --muted: #edd2b2;
  --border: #a9755070;
  --divider: #a975504a;
  --title-font: Cinzel, Georgia, serif;
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.65;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  color: var(--cream);
  background: radial-gradient(ellipse at 20% 8%, var(--wine), var(--ink) 60%);
}

a {
  color: var(--gold);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

h1, h2, p {
  margin: 0;
}

h1, h2 {
  font-family: var(--title-font);
  font-weight: 650;
  line-height: 1.2;
  text-wrap: balance;
}

h2 {
  color: var(--gold);
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
}

p + p {
  margin-top: 0.75rem;
}

strong {
  color: var(--cream);
  font-weight: 700;
}

section[id] {
  scroll-margin-top: 1.5rem;
}

.container {
  width: min(70rem, calc(100% - 3rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 1;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.45rem 1rem;
  transform: translateY(-200%);
  border-radius: 0.4rem;
  color: var(--cream);
  background: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--ink);
}

.header-inner, .footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.header-inner {
  min-height: 4.5rem;
  padding-block: 0.65rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font: 700 1.05rem/1.2 var(--title-font);
  text-decoration: none;
}

.brand img {
  display: block;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}

.site-nav a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover, .site-nav [aria-current="page"] {
  border-color: var(--border);
  color: var(--gold);
  background: #3c1a32;
}

.hero {
  border-bottom: 1px solid var(--divider);
  background:
    linear-gradient(to top, var(--ink), transparent 66%),
    linear-gradient(90deg, #241025 4%, #291027ed 26%, #291027b3 45%, #29102726 72%),
    url("images/palace.webp") center 25% / cover no-repeat #33172f;
}

.hero-inner {
  display: flex;
  min-height: 19.5rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  padding-block: 2.75rem;
}

.hero h1 {
  font-size: clamp(2.45rem, 6vw, 4.125rem);
  letter-spacing: -0.025em;
  text-shadow: 0 2px 18px #200d20;
  text-wrap: wrap;
}

.hero p {
  max-width: 35ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.flourish {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.25rem;
  color: var(--gold);
}

.flourish::before, .flourish::after {
  width: 2rem;
  height: 1px;
  background: linear-gradient(to right, transparent, currentColor);
  content: "";
}

.flourish::after {
  transform: scaleX(-1);
}

.flourish span {
  width: 0.5rem;
  height: 0.5rem;
  transform: rotate(45deg);
  border: 1px solid currentColor;
  background: #854a48;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 17.5rem) minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
  padding-block: 2rem 3.5rem;
}

.panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: linear-gradient(150deg, #361930, #28142d 72%);
  box-shadow: inset 0 0 0 1px #fff1d609, 0 10px 32px #10061152;
}

.page-nav, .contact-panel {
  padding: 1.35rem;
}

.page-nav h2, .contact-panel h2 {
  font-size: 1.25rem;
}

.page-nav ul {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.page-nav li + li {
  border-top: 1px solid var(--divider);
}

.page-nav a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding-block: 0.3rem;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.page-nav a:hover {
  color: var(--cream);
  text-decoration: underline;
}

.contact-panel p, .content-panel p {
  color: var(--muted);
}

.contact-panel p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
}

.email-link {
  display: block;
  margin-top: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #fff2c6;
  border-radius: 0.5rem;
  color: #291027;
  background: linear-gradient(#ffe8ae, #ecae5b);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
}

.email-link:hover {
  color: #291027;
  background: #ffe8ae;
}

.content-panel {
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
}

.content-panel section + section {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--divider);
}

.content-panel h2 {
  margin-bottom: 0.75rem;
}

.content-panel section > p {
  max-width: 68ch;
}

.faq details + details {
  border-top: 1px solid var(--divider);
}

.faq summary {
  position: relative;
  display: block;
  padding: 0.8rem 1.75rem 0.8rem 0;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  position: absolute;
  top: 1.15rem;
  right: 0.4rem;
  width: 0.48rem;
  height: 0.48rem;
  transform: rotate(45deg);
  border: solid var(--gold);
  border-width: 0 2px 2px 0;
  content: "";
}

.faq details[open] summary::after {
  top: 1.35rem;
  transform: rotate(225deg);
}

.faq summary:hover, .faq details[open] summary {
  color: var(--gold);
}

.faq p {
  padding: 0 1.75rem 0.9rem 0;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--divider);
  color: var(--muted);
  background: var(--ink);
  font-size: 0.875rem;
}

.footer-inner {
  padding-block: 0.9rem;
}

.footer-inner span {
  font-family: var(--title-font);
  font-weight: 700;
}

.footer-inner a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
}

@media (max-width: 48rem) {
  .container {
    width: min(40rem, calc(100% - 2rem));
  }

  .hero {
    background-image:
      linear-gradient(to top, var(--ink), #28132b00 94%),
      linear-gradient(90deg, #241025f2, #24102591),
      url("images/palace.webp");
    background-position: center, center, 72% 30%;
  }

  .hero-inner {
    min-height: 15rem;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding-block: 1.35rem 2.5rem;
  }

  .page-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }

  .page-nav li + li {
    border-top: 0;
  }

  .page-nav li:nth-child(n + 3) {
    border-top: 1px solid var(--divider);
  }
}

@media (max-width: 34rem) {
  .header-inner {
    column-gap: 0.65rem;
  }

  .brand {
    gap: 0.5rem;
    font-size: 0.85rem;
  }

  .brand img {
    width: 2.25rem;
    height: 2.25rem;
  }

  .site-nav {
    gap: 0.2rem;
  }

  .site-nav a {
    padding-inline: 0.5rem;
    font-size: 0.85rem;
  }

  .hero p {
    font-size: 1rem;
  }
}
