/* Vinoteka Vinolev — one stylesheet for both languages.
   Palette: black (night, the photos' sky) and browns (barrel oak, walnut,
   cork from the pine door). Green appears only where the shop itself is
   green: the vine leaf and the "open now" dot. */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-latin-ext-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --black: #000;
  --walnut: #1f130a;
  --walnut-line: #3b2718;
  --oak: #8a5a33;
  --cork: #d9b88f;
  --cork-bright: #efd6b2;
  --paper: #f3e9db;
  --muted: #b39d84;
  --leaf: #a7bd6e;

  --display: "Unbounded", "Arial", system-ui, sans-serif;
  --text: "Literata", Georgia, "Times New Roman", serif;

  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 4.25rem;
  --section-y: clamp(4.5rem, 10vw, 8.5rem);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

@media (min-width: 48em) {
  body { font-size: 1.125rem; }
}

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

a {
  color: var(--cork);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover { color: var(--cork-bright); }

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  max-width: 62ch;
  text-wrap: pretty;
}

figure { margin: 0; }

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--cork);
  color: var(--black);
  font-family: var(--display);
  font-size: 0.875rem;
}
.skip-link:focus { top: 0.75rem; color: var(--black); }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

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

.section__title {
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.6;
}

.note {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- Buttons ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75em 1.5em;
  border: 1px solid var(--cork);
  border-radius: 999px;
  background: transparent;
  color: var(--cork);
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn:hover {
  background: var(--cork);
  color: var(--black);
}
.btn--solid {
  background: var(--cork);
  color: var(--black);
}
.btn--solid:hover {
  background: var(--cork-bright);
  border-color: var(--cork-bright);
  color: var(--black);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--black);
  border-bottom: 1px solid var(--walnut-line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: block;
  flex: none;
  width: 6.25rem;
  aspect-ratio: 850 / 422;
  margin-right: auto;
  background: var(--cork);
  -webkit-mask: url("../img/logo-script.svg") center / contain no-repeat;
  mask: url("../img/logo-script.svg") center / contain no-repeat;
}
.brand:hover { background: var(--cork-bright); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.nav__link {
  color: var(--paper);
  font-family: var(--display);
  font-size: 0.8125rem;
  text-decoration: none;
}
.nav__link:hover { color: var(--cork); }

.nav__lang {
  padding: 0.35em 0.75em;
  border: 1px solid var(--walnut-line);
  border-radius: 999px;
  color: var(--muted);
}

.header-call {
  min-height: 2.5rem;
  padding: 0.5em 1.1em;
  font-size: 0.8125rem;
  white-space: nowrap;
}
.header-call__short { display: none; }

@media (max-width: 29.99em) {
  .header-call__long { display: none; }
  .header-call__short { display: inline; }
}

.menu-toggle { display: none; }

@media (max-width: 59.99em) {
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.5em 0.9em;
    border: 1px solid var(--walnut-line);
    border-radius: 999px;
    background: transparent;
    color: var(--paper);
    font-family: var(--display);
    font-size: 0.8125rem;
    cursor: pointer;
  }

  .nav {
    order: 3;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
  }

  /* Without JS the links stay visible under the bar; with JS they fold
     into the menu button. */
  .site-header__bar { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding-block: 0.75rem; }
  .js .site-header__bar { flex-wrap: nowrap; height: var(--header-h); padding-block: 0; }

  .js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--black);
    border-bottom: 1px solid var(--walnut-line);
  }
  .js .site-header.is-open .nav { display: flex; }

  .js .nav__link {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--walnut-line);
    font-size: 1rem;
  }
  .js .nav__lang {
    align-self: flex-start;
    margin-top: 1rem;
    padding: 0.45em 0.9em;
    border: 1px solid var(--walnut-line);
  }
}


/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--header-h));
}

.hero__media {
  position: relative;
  overflow: hidden;
  height: 56svh;
  min-height: 20rem;
  max-height: 34rem;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}
/* The photo's night sky is already black; these fades let it run into the
   page instead of sitting in a box. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--black) 0%, transparent 38%);
  pointer-events: none;
}

.hero__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: -4.5rem;
  padding: 0 var(--gutter) clamp(2.5rem, 7vh, 4.5rem);
}

.hero__title {
  font-size: clamp(2.25rem, 1rem + 4.6vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 11ch;
}

.hero__lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  color: var(--paper);
}

@media (min-width: 60em) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    min-height: min(calc(100svh - var(--header-h)), 58rem);
  }
  .hero__media {
    grid-column: 2;
    grid-row: 1;
    height: auto;
    max-height: none;
  }
  .hero__media img { object-position: 50% 45%; }
  .hero__media::after {
    background:
      linear-gradient(to right, var(--black) 0%, transparent 28%),
      linear-gradient(to top, var(--black) 0%, transparent 18%);
  }
  .hero__text {
    grid-column: 1;
    grid-row: 1;
    justify-content: center;
    margin-top: 0;
    padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
    padding-right: 2rem;
  }
}

/* One load sequence: the shop's lights come on, then the words. */
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: lights-on 1.6s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
  .hero__text > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__text > :nth-child(1) { animation-delay: 0.35s; }
  .hero__text > :nth-child(2) { animation-delay: 0.5s; }
  .hero__text > :nth-child(3) { animation-delay: 0.62s; }
  .hero__text > :nth-child(4) { animation-delay: 0.74s; }
}

@keyframes lights-on {
  from { filter: brightness(0.25) saturate(0.6); }
  to { filter: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: none; }
}

/* ---------- Open / closed status ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.75rem 0 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: 0.8125rem;
}
.status::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--oak);
}
.status.is-open::before {
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgb(167 189 110 / 0.18);
}
.status:empty { display: none; }

/* ---------- Wines: the route from home outward ---------- */
.wines__intro { max-width: 46rem; }

.wines__grid {
  display: grid;
  gap: 3rem;
  margin-top: 3.5rem;
}

.wines__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 40%;
}

@media (min-width: 60em) {
  .wines__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  .wines__photo {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
  .wines__photo img { aspect-ratio: 3 / 4; }
  .route { grid-column: 1; grid-row: 1; }
}

.route {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stop {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  column-gap: clamp(0.75rem, 2vw, 1.25rem);
  align-items: baseline;
  padding-bottom: 2.5rem;
}

.stop__node {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 2.75rem;
  aspect-ratio: 130 / 106;
  background: var(--cork);
  -webkit-mask: url("../img/cluster.svg") center / contain no-repeat;
  mask: url("../img/cluster.svg") center / contain no-repeat;
}

.stop__name {
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.375rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.stop__km {
  grid-column: 3;
  grid-row: 1;
  color: var(--cork);
  font-family: var(--display);
  font-size: clamp(0.75rem, 0.7rem + 0.3vw, 0.875rem);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stop__desc {
  grid-column: 2 / 4;
  margin: 0.4rem 0 0;
  color: var(--muted);
}

/* The vine that joins one stop to the next. preserveAspectRatio="none"
   lets each piece stretch to its row; the stroke keeps its width. */
.stop__vine {
  position: absolute;
  top: 2.6rem;
  left: 0;
  width: 2.75rem;
  height: calc(100% - 2.8rem);
  overflow: visible;
}
.stop__vine path {
  fill: none;
  stroke: var(--oak);
  stroke-width: 1.75;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.stop:last-child { padding-bottom: 0; }
.stop:last-child .stop__vine { display: none; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stop__vine path {
      stroke-dasharray: 1;
      animation: grow linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 55%;
    }
  }
}
@keyframes grow {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

.route__note {
  margin-top: 2.5rem;
  padding-left: calc(2.75rem + clamp(0.75rem, 2vw, 1.25rem));
}

/* Beyond wine */
.extras {
  display: grid;
  gap: 3rem;
  margin-top: clamp(4rem, 8vw, 6.5rem);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--walnut-line);
}

.extras__title {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.extras__list {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}
.extras__list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--walnut-line);
}

.chilled {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 1.5rem;
  align-items: end;
}
.chilled img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.chilled p { margin: 0; color: var(--muted); }

@media (min-width: 40em) {
  .extras__list { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}
@media (min-width: 60em) {
  .extras { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 6rem); }
}

/* ---------- Image band ---------- */
.band {
  height: clamp(15rem, 42vw, 34rem);
  overflow: hidden;
}
.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
}

/* ---------- Gifts ---------- */
.gifts__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.gifts__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 60em) {
  .gifts__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
  .gifts__photo img { aspect-ratio: 4 / 5; }
}

/* Occasions as the paper tags that hang from every bottle neck in the shop. */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 0.9rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
.tag {
  --tilt: 0deg;
  position: relative;
  padding: 0.55rem 1.15rem 0.55rem 2rem;
  background: var(--cork);
  color: var(--black);
  font-family: var(--display);
  font-size: 0.875rem;
  clip-path: polygon(0.95rem 0, 100% 0, 100% 100%, 0.95rem 100%, 0 50%);
  transform: rotate(var(--tilt));
}
.tag::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.8rem;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.225rem;
  border-radius: 50%;
  background: var(--walnut);
}
.tag:nth-child(1) { --tilt: -2deg; }
.tag:nth-child(2) { --tilt: 1.5deg; }
.tag:nth-child(3) { --tilt: -1deg; }
.tag:nth-child(4) { --tilt: 2deg; }

.gifts__slava {
  color: var(--cork);
  font-style: italic;
}

/* ---------- The place ---------- */
.place__intro { max-width: 46rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 0.75rem;
  margin-top: 3rem;
}
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.gallery figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-style: italic;
}

@media (min-width: 60em) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
  }
  .gallery figure:nth-child(even) { margin-top: 4rem; }
}

/* ---------- Reviews ---------- */
.reviews__grid {
  display: grid;
  gap: 3rem;
}
.reviews__photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.quotes {
  display: grid;
  gap: 2.25rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.quote { margin: 0; }
.quote p {
  margin: 0;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  font-style: italic;
  line-height: 1.45;
}
.quote footer {
  margin-top: 0.75rem;
  color: var(--cork);
  font-family: var(--display);
  font-size: 0.8125rem;
}

.reviews__rating {
  margin-top: 2.5rem;
  color: var(--muted);
}

@media (min-width: 60em) {
  .reviews__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  .reviews__photo {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
  .reviews__photo img { aspect-ratio: 4 / 5; }
}

/* ---------- Visit ---------- */
.visit__grid {
  display: grid;
  gap: 3rem;
}

/* The real sign glows green on the hedge; a faint echo of that here. */
.visit__sign img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgb(167 189 110 / 0.3), 0 0 4rem rgb(122 196 104 / 0.14);
}

.facts {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 0;
}
.facts dt {
  color: var(--muted);
  font-size: 0.9375rem;
}
.facts dd {
  margin: 0.15rem 0 0;
  font-size: 1.125rem;
}
.facts a { color: var(--paper); }
.facts a:hover { color: var(--cork); }

.hours {
  width: 100%;
  max-width: 28rem;
  margin-top: 2rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.hours caption {
  padding-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: left;
}
.hours th,
.hours td {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--walnut-line);
  font-weight: 400;
  text-align: left;
}
.hours td { text-align: right; }
.hours .is-today th,
.hours .is-today td { color: var(--cork); }

.today {
  margin-left: 0.6rem;
  padding: 0.15em 0.6em;
  border: 1px solid var(--oak);
  border-radius: 999px;
  color: var(--cork);
  font-family: var(--display);
  font-size: 0.6875rem;
  vertical-align: 0.15em;
}

@media (min-width: 60em) {
  .visit__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
  }
}

/* Map: nothing loads from Google until the visitor asks for it. */
.map {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.map__frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  max-height: 32rem;
  width: 100%;
  background: var(--walnut);
  border: 1px solid var(--walnut-line);
}
.map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map__prompt {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}
.map__prompt p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 48em) {
  .map__frame { aspect-ratio: 21 / 8; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
  background: var(--walnut);
  font-size: 0.9375rem;
}

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

.footer-logo {
  display: block;
  width: 12rem;
  aspect-ratio: 869 / 479;
  background: var(--cork);
  -webkit-mask: url("../img/logo.svg") center / contain no-repeat;
  mask: url("../img/logo.svg") center / contain no-repeat;
}

.footer__motto {
  margin-top: 1.25rem;
  color: var(--muted);
  font-style: italic;
}

.footer__col p { margin-bottom: 0.4em; }
.footer__col a { color: var(--paper); text-decoration: none; }
.footer__col a:hover { color: var(--cork); }

.footer__links {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__fine {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--walnut-line);
  color: var(--muted);
  font-size: 0.8125rem;
}
.footer__fine p { max-width: none; }
.footer__fine summary { cursor: pointer; }
.footer__fine summary:hover { color: var(--cork); }
.credits {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}
.credits li { margin-bottom: 0.35rem; }

@media (min-width: 48em) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- 404 ---------- */
.lost {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: var(--gutter);
  text-align: center;
}
.lost__mark {
  width: 4.5rem;
  aspect-ratio: 181 / 254;
  margin: 0 auto 2rem;
  background: var(--cork);
  -webkit-mask: url("../img/mark.svg") center / contain no-repeat;
  mask: url("../img/mark.svg") center / contain no-repeat;
}
.lost p { margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.lost__actions { justify-content: center; }
