/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */
html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

::selection {
  text-shadow: none;
  background: #b3d4fc;
}

hr {
  border: 0;
  border-top: 1px solid #ccc;
  height: 1px;
  margin: 1em 0;
  padding: 0;
  display: block;
}

audio, canvas, iframe, img, svg, video {
  vertical-align: middle;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

:root {
  --vinote-primary: #7c0000;
  --vinote-primary-light: #ffd4d4;
  --text-color: #111;
  --text-color-contrast: #fff;
  --footer-background-color: #222;
  --footer-text-color: #ddd;
  --background-color: #fff;
  --font-family-text: "Comfortaa", sans-serif;
  --font-family-heading: "Satisfy", cursive;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

body {
  color: var(--text-color);
  font-family: var(--font-family-text);
  font-optical-sizing: auto;
  margin: 0;
  font-style: normal;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--vinote-primary);
  font-family: var(--font-family-heading);
}

h1, h2 {
  margin: 1.5rem 0 1rem;
  font-size: 2.5rem;
}

h3 {
  color: var(--text-color);
  margin: 1.5rem 0 .75rem;
  font-size: 2rem;
}

h4, h5, h6 {
  margin: 1rem 0 .5rem;
  font-size: 1.5rem;
}

h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

a {
  color: var(--vinote-primary);
}

p {
  line-height: 1.5;
}

address {
  font-style: normal;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

section > :first-child {
  margin-top: 0;
}

.form-group {
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  display: flex;
}

.form-group input {
  background-color: var(--background-color);
  font-family: var(--font-family-text);
  border: none;
  border-radius: 3px;
  width: 100%;
  padding: 12px;
  font-size: 16px;
}

.form-group input[type="time"], .form-group input[type="date"] {
  border-radius: 3px;
  height: 44px;
}

.form-group textarea {
  font-family: var(--font-family-text);
  border: none;
  border-radius: 3px;
  width: 100%;
  height: 80px;
  padding: 12px;
  font-size: 16px;
}

.date-time-group {
  gap: 20px;
  display: flex;
}

.date-time-group .date {
  flex-basis: 60%;
}

.date-time-group .time {
  flex-basis: 40%;
}

.form-group .time {
  flex-shrink: 0;
  width: 30%;
}

.form-button {
  justify-content: flex-end;
  display: flex;
}

.button {
  font-family: var(--font-family-text);
  background-color: var(--vinote-primary);
  color: var(--text-color-contrast);
  cursor: pointer;
  border: none;
  padding: 16px 20px;
  font-weight: bold;
  line-height: 1;
  text-decoration: none;
  display: inline-block;
}

.button:disabled {
  color: #333 !important;
  background-color: #ccc !important;
  border: 1px solid #333 !important;
}

.header {
  position: relative;
}

.nav {
  z-index: 10;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 20px;
  display: flex;
  position: relative;
}

.nav .logo {
  width: 120px;
  height: auto;
}

.nav .button {
  align-self: flex-start;
  margin-top: 8px;
  padding: 12px 10px;
}

.header-image {
  object-fit: cover;
  width: 100%;
  height: 300px;
  margin-top: -76px;
}

.slogan {
  color: var(--text-color-contrast);
  text-shadow: 2px 2px 4px #00000080;
  text-align: center;
  width: 100%;
  font-size: 3rem;
  position: absolute;
  top: 130px;
  left: 0;
}

.download-buttons {
  flex-wrap: wrap;
  gap: 1rem;
  display: flex;
}

.flex {
  flex-direction: column;
  gap: 20px;
  display: flex;
}

.flex-start {
  align-items: flex-start;
}

.equal {
  flex: 1;
}

.accent {
  background-color: var(--vinote-primary-light);
}

.alternate {
  background-color: var(--vinote-primary);
  color: var(--text-color-contrast);
}

.alternate h1, .alternate h2, .alternate h3, .alternate h4, .alternate h5, .alternate h6 {
  color: var(--text-color-contrast);
}

.alternate .button {
  color: #fff;
  background-color: #000;
  border: 1px solid #fff;
}

.image {
  width: 100%;
  height: auto;
}

.intro {
  align-items: center;
}

.intro-image {
  flex-shrink: 0;
  flex-basis: 30%;
}

.calendar {
  max-width: 700px;
}

.calendar p {
  font-size: 1.2rem;
  line-height: 1.5;
}

.calendar h3:has( + h4) {
  margin-bottom: 0;
}

.calendar h4 {
  margin-top: 0;
}

.newsletter {
  text-align: center;
  max-width: 800px;
  display: none;
}

.newsletter .form-group {
  flex-direction: row;
  gap: 0;
}

.newsletter .form-group input {
  border: 1px solid #979797;
}

.footer {
  background-color: var(--footer-background-color);
  color: var(--footer-text-color);
}

.footer a {
  color: var(--text-color-contrast);
}

.footer-logo {
  width: 120px;
  height: auto;
}

.footer-content {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  display: flex;
}

.footer-content h3 {
  color: var(--text-color-contrast);
  margin: 0;
}

.footer-column {
  flex: 1 0;
}

.desktop-only, .hidden {
  display: none;
}

hr {
  border-top: 2px solid var(--vinote-primary);
  height: 0;
  margin: 2rem 0;
}

hr.immersive {
  border-top: 6px solid var(--vinote-primary);
  width: calc(100% - 200px);
  max-width: 1000px;
  height: 0;
  margin: 2rem auto;
}

dialog {
  border: none;
  max-width: 800px;
}

dialog::backdrop {
  background-color: #00000080;
}

dialog h2 {
  margin-top: 0;
  padding-right: 2rem;
}

dialog .closeButton {
  border: none;
  padding: 8px;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

@media only screen and (width >= 800px) {
  .desktop-only {
    display: block;
  }

  .flex {
    flex-direction: row;
    gap: 40px;
  }

  .nav {
    padding: 20px 40px;
  }

  .nav .logo {
    width: 145px;
  }

  .nav .button {
    margin-top: 4px;
    padding: 16px 20px;
  }

  .slogan {
    font-size: 5rem;
    top: 180px;
  }

  .calendar {
    text-align: center;
    text-wrap: balance;
  }

  .header-image {
    height: 450px;
    margin-top: -92px;
  }

  section.container {
    padding: 60px 40px;
  }

  .reservation.flex {
    gap: 80px;
  }

  .newsletter .form-group {
    max-width: 400px;
    margin: 24px auto 0;
  }

  .footer-content {
    text-align: left;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    max-width: 1000px;
    display: flex;
  }
}

@media print {
  *, :before, :after {
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    background: #fff !important;
  }

  a, a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }

  abbr[title]:after {
    content: " (" attr(title) ")";
  }

  a[href^="#"]:after, a[href^="javascript:"]:after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre, blockquote {
    page-break-inside: avoid;
    border: 1px solid #999;
  }

  tr, img {
    page-break-inside: avoid;
  }

  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }

  h2, h3 {
    page-break-after: avoid;
  }
}
