/* Luna Azzurra — shared styles */

/* Fonts are self-hosted variable files (SIL Open Font License) */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/cormorant-garamond.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/cormorant-garamond-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/jost.woff2") format("woff2");
}

/* Cross-fade between pages (browsers without support simply navigate) */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

:root {
  --navy: #0e1a2b;
  --navy-soft: #142338;
  --ivory: #f5f1ea;
  --brass: #b89b6a;
  --brass-deep: #77602f; /* brass for small text on ivory (AA contrast) */

  --text: var(--ivory);
  --text-muted: rgba(245, 241, 234, 0.72);
  --rule: rgba(245, 241, 234, 0.16);
  --accent: var(--brass);

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --max: 82rem;
  --header-h: 4.75rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.75;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

a,
button,
select,
input,
textarea {
  touch-action: manipulation;
}

::selection {
  background: var(--brass);
  color: var(--navy);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ivory);
  color: var(--navy);
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Type ---------- */

.display,
.h1,
.h2,
.h3 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.display {
  font-size: clamp(3.5rem, 13vw, 9.5rem);
  line-height: 0.95;
}

.h1 {
  font-size: clamp(2.75rem, 8vw, 6rem);
}

.h2 {
  font-size: clamp(2.125rem, 5vw, 3.75rem);
}

.h3 {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  font-weight: 400;
  line-height: 1.2;
}

.display em,
.h1 em,
.h2 em {
  font-style: italic;
  font-weight: 300;
}

.label {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  font-weight: 300;
  line-height: 1.35;
}

.prose p + p {
  margin-top: 1.25em;
}

.prose {
  color: var(--text-muted);
  max-width: 34rem;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
}

.section--light {
  --text: var(--navy);
  --text-muted: rgba(14, 26, 43, 0.74);
  --rule: rgba(14, 26, 43, 0.16);
  --accent: var(--brass-deep);
  background: var(--ivory);
  color: var(--text);
}

.rule {
  width: 3rem;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--brass);
}

/* ---------- Links & buttons ---------- */

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-block: 0.75rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.5rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.link:hover::after,
.link:focus-visible::after,
.link[aria-current="page"]::after,
.link[aria-current="true"]::after {
  transform: scaleX(1);
}

.link--arrow::after {
  transform: scaleX(1);
  background: var(--accent);
}

.link--arrow:hover::after {
  transform-origin: right;
  transform: scaleX(0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 2rem;
  border: 1px solid var(--brass);
  background: transparent;
  color: inherit;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.btn[aria-current="page"] {
  background: var(--brass);
  color: var(--navy);
}

.btn:hover,
.btn:focus-visible {
  background: var(--brass);
  color: var(--navy);
}

.btn--solid {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn--small {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  letter-spacing: 0.2em;
}

@media (min-width: 56rem) {
  .btn--small {
    padding-inline: 1.25rem;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}

.site-header.is-scrolled,
.nav-open .site-header {
  background: var(--navy);
  border-bottom-color: var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 2.75rem;
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark__mark {
  flex: none;
  width: 1.6em;
  height: 1.6em;
}

.wordmark__mark circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.wordmark__mark path {
  fill: var(--brass);
}

.site-nav {
  display: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: -0.625rem; /* optically align the toggle's lines with the gutter */
}

.nav-toggle {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 0.625rem;
  right: 0.625rem;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.nav-toggle span:first-child {
  top: 1.125rem;
}

.nav-toggle span:last-child {
  top: 1.625rem;
}

.nav-open .nav-toggle span:first-child {
  top: 1.375rem;
  transform: rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  top: 1.375rem;
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 3rem) var(--gutter) 2.5rem;
  background: var(--navy);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}

.nav-open .mobile-nav {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.mobile-nav__links a {
  display: block;
  padding-block: 0.5rem;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 11vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
}

.mobile-nav__links a[aria-current="page"] {
  font-style: italic;
  color: var(--brass);
}

.mobile-nav__meta {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (max-width: 22.5rem) {
  .wordmark {
    gap: 0.5em;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
  }

  .site-header .wordmark__mark {
    width: 1.4em;
    height: 1.4em;
  }

  .site-header .btn--small {
    padding-inline: 0.625rem;
    letter-spacing: 0.14em;
  }
}

@media (min-width: 56rem) {
  .site-nav {
    display: flex;
    gap: 2.75rem;
  }

  .nav-toggle,
  .mobile-nav {
    display: none;
  }

  .wordmark {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
  }

  .site-header__actions {
    margin-right: 0;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + 2rem) clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}

.hero--short {
  min-height: 68vh;
  min-height: 68svh;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 24s var(--ease) both;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(14, 26, 43, 0.92) 0%,
    rgba(14, 26, 43, 0.5) 45%,
    rgba(14, 26, 43, 0.55) 100%
  );
}

@keyframes hero-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.hero__content {
  display: grid;
  gap: 1.5rem;
}

.hero__line {
  max-width: 30rem;
  font-size: 1.125rem;
  color: rgba(245, 241, 234, 0.86);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.25rem;
  margin-top: 1rem;
}

/* ---------- Home: story ---------- */

.story {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.story__media {
  aspect-ratio: 5 / 4;
  overflow: hidden;
}

.story__media img,
.dish__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}

.story__body {
  display: grid;
  gap: 1.75rem;
  justify-items: start;
}

.signature {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text);
}

.signature small {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (min-width: 56rem) {
  .story__media {
    aspect-ratio: 4 / 5;
  }

  .story {
    grid-template-columns: 5fr 6fr;
    gap: clamp(4rem, 9vw, 9rem);
  }
}

/* ---------- Home: dishes ---------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-head > div {
  display: grid;
  gap: 1.25rem;
}

.dishes {
  display: grid;
  gap: 2.5rem;
}

.dish__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy);
}

.dish:hover .dish__media img {
  transform: scale(1.04);
}

.dish__body {
  display: grid;
  gap: 0.5rem;
  padding-top: 1.5rem;
}

.dish__body p {
  color: var(--text-muted);
  font-size: 1rem;
}

@media (min-width: 48rem) {
  .dishes {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }

  .dish__media {
    aspect-ratio: 4 / 5;
  }

  .dish:nth-child(2) {
    margin-top: 3.5rem;
  }
}

/* ---------- Home: moon band ---------- */

.band {
  position: relative;
  display: grid;
  place-items: end center; /* keeps the quote clear of the moon on narrow screens */
  min-height: 62vh;
  min-height: 62svh;
  padding: var(--section) var(--gutter);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.band img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(14, 26, 43, 0.45);
}

.band blockquote {
  display: grid;
  gap: 2rem;
  justify-items: center;
  max-width: 46rem;
  margin: 0;
}

@media (min-width: 48rem) {
  .band {
    place-items: center;
  }
}

/* ---------- Visit / CTA ---------- */

.visit {
  display: grid;
  gap: 3.5rem;
}

.visit__lead {
  display: grid;
  gap: 2rem;
  justify-items: start;
  align-content: start;
}

.details {
  display: grid;
  gap: 2rem;
  align-content: start;
}

.details > div {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.details dt {
  margin-bottom: 0.625rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.details dd {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.45;
}

.details dd a {
  display: inline-block;
  padding-block: 0.375rem;
  text-decoration: underline transparent 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.3s var(--ease);
}

.details dd a:hover,
.details dd a:focus-visible {
  text-decoration-color: currentColor;
}

.details dd small {
  display: block;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

@media (min-width: 56rem) {
  .visit {
    grid-template-columns: 6fr 5fr;
    gap: clamp(4rem, 9vw, 9rem);
  }
}

/* ---------- Menu page ---------- */

.menu-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--rule);
}

.menu-nav ul {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-block: 0.5rem;
  scrollbar-width: none;
}

.menu-nav ul::-webkit-scrollbar {
  display: none;
}

.menu-nav .link {
  justify-content: center;
  min-width: 2.75rem;
  padding-block: 0.875rem;
  white-space: nowrap;
}

.menu-nav .link::after {
  bottom: 0.5rem;
}

@media (min-width: 48rem) {
  .menu-nav ul {
    justify-content: center;
    gap: 3.5rem;
  }
}

.menu-section {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-top: 1px solid var(--rule);
}

.menu-section:first-of-type {
  border-top: 0;
}

.menu-section__head {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.menu-section__head p {
  max-width: 18rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.menu-list {
  display: grid;
  gap: 2.25rem;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1.5rem;
  align-items: baseline;
}

.menu-item__name {
  font-family: var(--serif);
  font-size: clamp(1.4375rem, 2.4vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
}

.menu-item__price {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--accent);
}

.menu-item__desc {
  grid-column: 1 / -1;
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.menu-list--compact {
  gap: 1.5rem;
}

.menu-note {
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.tasting {
  display: grid;
  gap: 2rem;
  justify-items: center;
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.tasting p {
  color: var(--text-muted);
}

@media (min-width: 56rem) {
  .menu-section {
    grid-template-columns: 4fr 7fr;
    gap: 4rem;
  }

  .menu-section__head {
    position: sticky;
    top: calc(var(--header-h) + 5.5rem);
  }
}

/* ---------- Reservations page ---------- */

.booking {
  display: grid;
  gap: 4.5rem;
}

.booking__intro {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.booking__intro p {
  max-width: 30rem;
  color: var(--text-muted);
}

.form {
  display: grid;
  gap: 2rem 1.5rem;
}

.field {
  display: grid;
  gap: 0.375rem;
  min-width: 0;
}

.field label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.5rem 0;
  border: 0;
  border-bottom: 1px solid rgba(14, 26, 43, 0.4);
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.3s var(--ease);
}

.field select {
  padding-right: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230e1a2b' stroke-width='1.2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.125rem center;
  cursor: pointer;
}

.field label .optional {
  margin-left: 0.5em;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--text-muted);
}

.field textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(14, 26, 43, 0.64);
  font-style: italic;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--navy);
  box-shadow: 0 2px 0 0 var(--navy);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-bottom-color: #9a2f22;
}

.field__error {
  min-height: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #9a2f22;
}

.form__footer {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.form__footer small {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.form__footer small a,
.mobile-nav__meta a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.confirmation {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  padding-block: 2rem;
}

.confirmation p {
  max-width: 30rem;
  color: var(--text-muted);
}

.confirmation strong {
  font-weight: 400;
  color: var(--navy);
}

[hidden] {
  display: none !important;
}

@media (min-width: 40rem) {
  .form {
    grid-template-columns: repeat(6, 1fr);
  }

  .field {
    grid-column: span 3;
  }

  .field--third {
    grid-column: span 2;
  }

  .field--full,
  .form__footer {
    grid-column: 1 / -1;
  }
}

@media (min-width: 62rem) {
  .booking {
    grid-template-columns: 7fr 4fr;
    gap: clamp(4rem, 8vw, 8rem);
  }
}

.map {
  position: relative;
  height: clamp(20rem, 50vw, 30rem);
  background: var(--navy-soft);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) hue-rotate(180deg) contrast(0.85) brightness(0.95);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: clamp(4rem, 8vw, 6rem) 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}

.site-footer .wordmark {
  font-size: clamp(1.125rem, 5.6vw, 1.75rem);
}

.site-footer h2 {
  margin-bottom: 0.875rem;
}

.site-footer p,
.site-footer li {
  color: var(--text-muted);
}

.site-footer li a {
  display: inline-block;
  padding-block: 0.5625rem;
  text-decoration: underline transparent 1px;
  text-underline-offset: 0.3em;
  transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}

.site-footer li a:hover,
.site-footer li a:focus-visible {
  color: var(--ivory);
  text-decoration-color: var(--brass);
}

.site-footer li:first-child a {
  margin-top: -0.5625rem; /* keep the first link aligned with the neighbouring columns */
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.site-footer__grid > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 40rem) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }
}

@media (min-width: 64rem) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Motion ---------- */

/* Hidden start states. main.js animates them in with Motion, or falls back to
   the .is-visible transition below if the library is unavailable. */
.js .reveal,
.js .hero__content > * {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible,
.js .hero__content > .is-visible {
  opacity: 1;
  transform: none;
}

.has-motion .reveal,
.has-motion .hero__content > * {
  transition: none;
}

.has-motion .hero h1 .word {
  display: inline-block;
  opacity: 0;
  will-change: transform;
}

/* Parallax: the photographs are taller than their frames so they can travel */
.has-motion .hero__media {
  will-change: transform;
}

.has-motion .band img {
  inset: -10% 0;
  height: 120%;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal,
  .js .hero__content > * {
    opacity: 1;
    transform: none;
  }
}
