:root {
  --navy: #2a2860;
  --navy-deep: #1d1b45;
  --orange: #e07c00;
  --paper: #ffffff;
  --line: #111111;
  --muted: #3d3a66;
  --space: clamp(0.75rem, 2.5vw, 1.25rem);
  --font: "Nunito", "Segoe UI", sans-serif;
  --script: "Caveat", cursive;
  --tag: "Yellowtail", cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 0.9rem;
  z-index: 5;
}

.skip:focus {
  transform: none;
}

.sheet {
  width: min(1080px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.25rem 0 6.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

.logo {
  width: 5.5rem;
  height: auto;
}

.brand-copy {
  min-width: 0;
}

.brand h1 {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(2.15rem, 9vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

.tagline {
  margin: 0.15rem 0 0.7rem;
  padding-left: 0.12em;
  color: var(--orange);
  font-family: var(--tag);
  font-size: clamp(1.28rem, 5.4vw, 2.45rem);
  line-height: 1.15;
}

address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-weight: 800;
  font-size: clamp(0.98rem, 4vw, 1.35rem);
  overflow-wrap: anywhere;
}

address a {
  text-decoration: none;
}

address a:hover,
address a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.intro {
  margin: 1.25rem auto 0.4rem;
  max-width: 38rem;
  text-align: center;
  color: var(--muted);
}

.gallery h2,
.contact h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

.gallery ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space);
}

.gallery li {
  margin: 0;
  min-width: 0;
  border: 2px solid var(--line);
  background: #f4f4f4;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery li:nth-child(5) img,
.gallery li:nth-child(6) img {
  object-position: center 12%;
}

.contact {
  text-align: center;
  padding-bottom: 0.5rem;
}

.contact p {
  margin: 0 auto 1rem;
  max-width: 32rem;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: stretch;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.1rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.button-solid {
  background: var(--navy);
  color: #fff;
}

.button:hover,
.button:focus-visible {
  background: var(--navy-deep);
  color: #fff;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0 1rem 5.5rem;
}

footer p {
  margin: 0;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.7rem 0.8rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e6e6ee;
}

.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.dock a:first-child {
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--navy);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

@media (min-width: 720px) {
  .sheet {
    padding-bottom: 2.5rem;
  }

  .brand {
    flex-direction: row;
    justify-content: center;
    text-align: left;
    gap: 1.75rem;
    align-items: center;
    margin: 0.5rem auto 0.25rem;
  }

  address {
    align-items: flex-start;
  }

  .gallery ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .actions {
    flex-direction: row;
    justify-content: center;
  }

  .button {
    min-width: 14rem;
  }

  .dock {
    display: none;
  }

  footer {
    padding-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
