@font-face {
  font-family: Whistling;
  src: url("/fonts/whistling.otf") format("opentype");
}

@font-face {
  font-family: Bembo;
  src: url("/fonts/ETBookOT-Roman.otf") format("opentype");
}

:root {
  --peach: #ffbe86;
  --mustard: #ffe156;
  --champagne: #ffe9ce;
  --cherry-blossom: #ffb5c2;
  --pink: #ffaad7;
  --blue: #3777ff;
  --background: #fcf2ef;
  --white: #fff;
  --black: #000;
  --page-width: 80ch;
}

* {
  margin: 0;
  padding: 0;
  font-weight: normal;
  font-size: 1em;
  line-height: 1;
}

html {
  background-color: var(--background);
  font-family: Bembo, Georgia, serif;
  font-size: 16pt;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

main {
  margin: auto;
  max-width: var(--page-width);
}

a {
  color: inherit;
  /* text-decoration: none; */
  outline: none;
}

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

.title {
  font-family: Whistling, serif;
  position: absolute;
  top: 90dvh;
  left: 5dvw;
  color: var(--white);
  font-weight: 900;
  margin: 0;
  padding: 0;
  margin: 0;
}

h1 {
  font-family: Bembo, Georgia, serif;
  font-size: 2rem;
  margin: 1.8rem 0;
  scroll-margin-top: 3rem;
}

h2 {
  font-size: 1.4rem;
  margin: 1.4rem 0;
}

h3 {
  font-size: 1rem;
  font-weight: bold;
  margin: 1.1rem 0;
}


dialog {
  z-index: 9999;
  background: var(--background);
  border: none;
  width: calc(100% - 2rem);
  transform: translateY(-100%);
  box-shadow: 0 0 0 #0000;
  display: block;
  padding: 1rem;
  transition: all 0.5s ease-in-out allow-discrete;

  &::backdrop {
    transition: all 0.5s ease-in-out allow-discrete;
    backdrop-filter: blur(4px);
  }

  &:popover-open {
    box-shadow: 0 10px 25px #0001;
    transform: translateY(0%);
    display: block;
  }
}

@starting-style {
  dialog {
    &::backdrop {
      backdrop-filter: blur(0px);
    }

    &:popover-open {
      box-shadow: 0 0 0 #0000;
      transform: translateY(-100%);
    }
  }
}

.topo {
  background: url(/img/topo.svg);
  padding: 0.5rem 0 2rem 0;
  margin: 1rem -1rem;
}

address {
  text-align: center;
  margin: 2rem auto;
  padding: 2rem;
  border: 2px solid var(--pink);
  width: fit-content;
  border-radius: 7px;
  font-style: normal;
  background: var(--background);
}

address+.button {
  margin-top: -3rem;
  /* background: var(--background); */
}

footer {
  text-align: center;
  font-size: 0.8rem;
}

.up {
  display: inline-block;
  transform: translateY(-0.5em);
  margin: 0 -0.2em 0 -0.2em;
}

header {
  width: 100%;
  background: none;
  position: absolute;
}

/* .secondnav { */
/* padding: 1rem 0; */
/* margin: auto; */
/* position: sticky; */
/* top: 0; */
/* background: var(--background); */
/* box-shadow: 0 10px 25px #0001; */
/* } */

/* .secondnav>ul { */
/* max-width: var(--page-width); */
/* margin: auto; */
/* } */

p {
  margin-bottom: 1em;
  line-height: 1.4;
}

/* p+p { */
/* text-indent: 1em; */
/* } */

nav a {
  color: var(--black);
  text-decoration: none;
}

nav {
  margin: 2rem 0;
  font-family: 'Gill Sans', 'Gill Sans MT', sans-serif;
}


header button {
  background: none;
  border: none;
  color: inherit;
  padding: 1rem;
  display: none;
}

header,
header a {
  color: var(--white);
  text-decoration: none;
}

header a:hover {
  color: var(--white);
}

a:hover {
  text-decoration: underline;
}

nav ul {
  list-style-type: none;
  display: flex;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

nav ul li {
  flex-basis: 100%;
}

.button {
  color: var(--blue);
  text-decoration: none;
  display: block;
  border: 2px solid var(--blue);
  background: var(--background);
  text-align: center;
  font-family: 'Gill Sans', 'Gill Sans MT', sans-serif;
  padding: 0.4rem 1.7rem 0.4rem 1.7rem;
  margin: auto;
  width: fit-content;
  border-radius: 50px;
}

.button:hover {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
}

section+section {
  margin: 3rem 1rem;
}

p+h2 {
  margin-top: 3rem;
}

p+h3 {
  margin-top: 2rem;
}

.smallcaps {
  font-variant-caps: all-small-caps;
}

img {
  height: 100dvh;
  width: 100%;
  object-fit: cover;
  display: block;
}

@media (width <=800px) {
  nav ul {
    flex-direction: column;
  }

  header nav {
    display: none;
  }

  header button {
    display: block;
  }
}