@font-face {
  font-family: 'Alegreya Sans SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Alegreya Sans SC Regular'), local('AlegreyaSansSC-Regular'),
       url('/static/fonts/Alegreya.ttf') format('truetype');
}

/* Font sizes combine rem and vw: they follow the viewport width, but
   also grow with the browser's zoom level and font size setting, which
   pure vw values do not. */
:root {
  color-scheme: dark;
  --accent: rgb(236 255 189);
  --box: rgb(0 0 0 / .6);
  --size-text: clamp(1.125rem, .9rem + .9vw, 1.6rem);
  --size-title: clamp(2rem, 1rem + 3vw, 3.5rem);
  --size-subtitle: clamp(1.5rem, .75rem + 2.25vw, 2.5rem);
  --size-nav: clamp(1rem, .8rem + .5vw, 1.25rem);
  --size-menu: clamp(1rem, .5rem + 2vw, 2.25rem);
  /* height of the fixed navigation (its minimum height, matching its
     content: padding .25rem * 2, links .5rem * 2 + 1.5 * 1.25rem);
     anchor targets and focused elements are scrolled below it */
  --nav-height: 3.375rem;
}

/* Base */

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

html {
  scroll-padding-top: var(--nav-height);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: 'Alegreya Sans SC', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
  /* keeps the white text readable when images are not loaded */
  background-color: #000;
  text-align: center;
}

h1, h2, h3 {
  margin: 0 0 .5rem;
  font-weight: 500;
  line-height: 1.2;
}

p, address {
  margin: 0 0 1rem;
}
address {
  font-style: normal;
}

hr {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid rgb(255 255 255 / .35);
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .15em;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
main:focus {
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 20;
  padding: .5rem 1rem;
  color: #000;
  background-color: var(--accent);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* Navigation: semi-transparent at the top of the page, almost opaque
   once scrolled. Without support for scroll-driven animations it is
   always almost opaque. Both states keep the white links at a
   contrast ratio above 4.5:1. */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--nav-height);
  padding: .25rem 1rem;
  font-size: var(--size-nav);
  background-color: rgb(0 0 0 / .85);
  box-shadow: 0 .5rem 1rem rgb(0 0 0 / .15);
}
@supports (animation-timeline: scroll()) {
  .site-header {
    animation: site-header-solid linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100px;
  }
  @keyframes site-header-solid {
    from { background-color: rgb(0 0 0 / .4); }
    to   { background-color: rgb(0 0 0 / .85); }
  }
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: .5rem;
  color: #fff;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}
/* Language switch: link to the page in the other language, outlined so
   that it stands out from the section links. The outline is drawn with
   box-shadow, which does not change the height of the navigation. */
.site-nav .lang-switch {
  margin-left: .5rem;
}
.site-nav .lang-switch a {
  padding-inline: .75rem;
  color: var(--accent);
  border-radius: 1em;
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* Sections */

main > section {
  position: relative;
  isolation: isolate;
}

/* Contact and motto fill at least the area below the navigation, so a
   section reached through the navigation fills the screen; the content
   is centred vertically and can still make the section taller (large
   text settings, small screens). Start and reservation have their own
   full-height layout. The menu has no background photo and keeps the
   height of the board; at full height it would show black space above
   and below the board. */
#contact,
#motto,
#suppliers {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100svh - var(--nav-height));
}

/* Section photos: an <img> (with alt text, responsive variants and lazy
   loading) placed behind the section content. */
.backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.infobox {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 3rem);
  font-size: var(--size-text);
  background-color: var(--box);
}
.infobox > :last-child {
  margin-bottom: 0;
}

#start {
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-height) + 12vh) 2vw 3rem;
  /* the photo is darkened by blending it with grey (as before) */
  background-color: grey;
}
#start .backdrop {
  object-position: center top;
  mix-blend-mode: darken;
}
#start h1 {
  font-size: var(--size-title);
  color: var(--accent);
  text-shadow: 0 0 .5em #000;
}
#start .tagline {
  margin-bottom: 2rem;
  font-size: var(--size-subtitle);
  line-height: 1.2;
  text-shadow: 0 0 .5em #000;
}
.notes .spacer {
  margin: 0;
}

#contact {
  padding: 10vw 2vw;
}
#contact .backdrop {
  object-position: center top;
}
#contact h2,
#contact h3 {
  margin-bottom: 1rem;
  font-size: inherit;
  font-weight: bold;
  line-height: inherit;
}
.pair {
  display: grid;
  column-gap: 2rem;
}
@media (min-width: 62em) {
  .pair {
    grid-template-columns: 1fr 1fr;
  }
}

#motto {
  padding: 10vw 2vw;
}
#motto h2 {
  margin-bottom: 1.5rem;
  font-size: var(--size-subtitle);
}
#motto .infobox img {
  width: min(100%, 22rem);
}

/* Suppliers: category and link side by side, the columns as wide as
   their longest entry, centred as a whole. The photo is a portrait
   shot: on landscape screens a horizontal band of it is shown, placed
   to keep the lavender and the statue in view. */
#suppliers {
  padding: 10vw 2vw;
}
#suppliers .backdrop {
  object-position: center 45%;
}
#suppliers h2 {
  margin-bottom: 1.5rem;
  font-size: var(--size-subtitle);
}
.suppliers {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: center;
  gap: .25rem 1.5rem;
  margin: 0;
  text-align: left;
}
.suppliers dt {
  text-align: right;
}
.suppliers dd {
  margin: 0;
}
@media (max-width: 30em) {
  .suppliers {
    grid-template-columns: max-content;
    row-gap: 0;
  }
  .suppliers dt {
    text-align: center;
  }
  .suppliers dd {
    margin-bottom: .5rem;
    text-align: center;
  }
}

#reservation {
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-height) + 1rem) 2vw 2rem;
}
#reservation .box {
  display: block;
  width: min(100%, 70rem);
  height: clamp(28rem, 70vh, 40rem);
  margin: 0 auto 2rem;
  border: 1px solid #000;
  background-color: #000;
}

/* Menu board: header image, one board_row strip per category heading
   and per dish (or for the text shown when the menu is unavailable),
   footer image. The horizontal paddings keep the text
   clear of the lamps drawn on the left of each strip. */

#menu > img {
  display: block;
  width: 100%;
}
.board {
  font-size: var(--size-menu);
  text-align: left;
}
.board h3,
.board li,
.board p {
  margin: 0;
  padding-right: 4vw;
  line-height: 1.5;
  background: url('/static/img/board_row.jpg') center / 100% 100% no-repeat;
}
.board h3,
.board p {
  padding-left: 11vw;
}
.board h3 {
  font-size: inherit;
  font-weight: bold;
}
.board ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.board li {
  display: flex;
  gap: 1em;
  padding-left: 14vw;
}
.board .price {
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 37.5em) {
  :root {
    /* the navigation (section links and language switch) wraps to
       two lines up to about 575px (measured in both languages) */
    --nav-height: 5.5rem;
  }
}
@media (max-width: 22.5em) {
  /* narrower paddings keep the navigation at two lines on 320px wide
     screens (measured in both languages) */
  .site-header {
    padding-inline: .5rem;
  }
  .site-nav a {
    padding-inline: .3rem;
  }
  .site-nav .lang-switch {
    margin-left: .25rem;
  }
  .site-nav .lang-switch a {
    padding-inline: .5rem;
  }
}
