/* Fonts are self-hosted (no Google Fonts CDN call — RGPD). Paths are relative
   to this file so they survive the GitLab Pages pathPrefix. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f9fbef;
  --green: #04624c;
  --green-soft: rgba(4, 98, 76, 0.55);
  --line: rgba(4, 98, 76, 0.15);
  --orange: #d66f39;
  --beige: #f8eedf;
  --measure: 38rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--green);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--green);
  color: var(--bg);
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
}

/* ---------- header + tabs ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  max-width: var(--measure);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.brand-mark {
  flex: none;
  width: 2.5rem;
  height: auto;
}

.brand-word {
  display: block;
  width: min(10rem, 45vw);
  height: auto;
}

.lang {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.tabs ul {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0 auto;
  padding: 0 1rem;
  max-width: var(--measure);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs ul::-webkit-scrollbar {
  display: none;
}

.tabs a {
  display: block;
  padding: 0.7rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.tabs a[aria-current="page"] {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* Second row: jump links to the groups inside the current section. */
.subnav ul {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  margin: 0 auto;
  padding: 0.65rem 1rem 0.75rem;
  max-width: var(--measure);
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav ul::-webkit-scrollbar {
  display: none;
}

.subnav a {
  display: block;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  background: var(--beige);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.subnav a:hover {
  background: var(--orange);
  color: var(--bg);
}

/* ---------- page shell ---------- */

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

main > h1 {
  font-size: clamp(2rem, 8vw, 2.75rem);
  margin-bottom: 1rem;
}

.groups {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}

/* Clears the two sticky nav rows when a jump link lands here. */
.group {
  scroll-margin-top: 7rem;
}

.group > h2 {
  font-size: 1.5rem;
  color: var(--orange);
  padding: 0.15rem 0.4rem;
  margin-left: -0.4rem;
  border-radius: 4px;
}

/* Confirms where you landed, then fades out. */
.group:target > h2 {
  animation: mark 1.6s ease;
}

@keyframes mark {
  from {
    background-color: var(--beige);
  }
}

.group-note {
  font-size: 0.9rem;
  color: var(--green-soft);
  font-style: italic;
}

/* ---------- vegetarian filter ---------- */

.veg-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.veg-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  user-select: none;
}

.veg-switch {
  position: relative;
  flex: none;
  width: 2.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.25s ease;
}

.veg-switch::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--bg);
  transition: transform 0.25s ease;
}

.veg-toggle:checked + .veg-label {
  border-color: var(--green);
}
.veg-toggle:checked + .veg-label .veg-switch {
  background: var(--green);
}
.veg-toggle:checked + .veg-label .veg-switch::after {
  transform: translateX(1rem);
}
.veg-toggle:focus-visible + .veg-label {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* The filter itself: no JavaScript, just the checkbox state. Groups left with
   nothing to show collapse along with their heading. */
.veg-toggle:checked ~ .groups .dish:not(.is-veg) {
  display: none;
}
.veg-toggle:checked ~ .groups .group:not(:has(.is-veg)) {
  display: none;
}
.veg-toggle:checked ~ .groups .dish.is-veg {
  animation: rise 0.35s ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- dish cards ---------- */

.dishes {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 1.25rem;
}

.dish-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #fff;
  border-radius: 8px;
}

.dish-photo--empty {
  display: grid;
  place-items: center;
  background: var(--beige);
}

.dish-photo--empty img {
  width: 38%;
  height: auto;
  opacity: 0.28;
}

.dish-body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin-top: 0.85rem;
}

.dish-body > * {
  grid-column: 1 / -1;
}

.dish-body > h3 {
  grid-column: 1;
  grid-row: 1;
  font-size: 1.25rem;
}

.dish-body > .price {
  grid-column: 2;
  grid-row: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dish-id {
  display: inline-block;
  margin-right: 0.4rem;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--bg);
  background: var(--orange);
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
  vertical-align: 0.2em;
}

.dish-note {
  font-size: 0.85rem;
  color: var(--green-soft);
}

.veg-badge {
  justify-self: start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  margin-top: 0.15rem;
}

/* ---------- callout ---------- */

.callout {
  background: var(--beige);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-top: 0.5rem;
}

.callout h3,
.callout h4 {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.3rem;
}

.callout p {
  font-size: 0.9rem;
}

/* ---------- drinks ---------- */

.drinks {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.drinks li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.dot {
  flex: 1 1 1.5rem;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-0.25em);
}

.drinks .price {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.flavours {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: var(--green-soft);
}

/* ---------- fine print + footer ---------- */

.fineprint {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--green-soft);
}

.site-foot {
  background: var(--beige);
  display: grid;
  gap: 2rem;
  padding: 2.5rem 1rem;
}

.site-foot > div {
  max-width: var(--measure);
  width: 100%;
  margin: 0 auto;
}

.site-foot h2 {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.4rem;
}

.site-foot p {
  font-size: 0.9rem;
}

.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

/* ---------- home ---------- */

.hero {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem 0 0;
}

.hero h1 {
  font-size: clamp(2.5rem, 11vw, 3.75rem);
}

.tagline {
  font-size: 1.05rem;
  color: var(--orange);
}

.lead {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  max-width: 32rem;
}

.section-cards {
  display: grid;
  gap: 0.75rem;
  margin: 3.5rem 0;
}

.section-cards a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--beige);
  border-radius: 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.section-cards a::after {
  content: "→";
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: var(--orange);
  transition: transform 0.2s ease;
}

.section-cards a:hover {
  transform: translateX(3px);
}

.section-cards a:hover::after {
  transform: translateX(3px);
}

.practical {
  display: grid;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.practical h2,
.prose h2 {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.practical p + p {
  margin-top: 0.75rem;
}

.story {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 1.75rem;
  background: var(--beige);
  border-radius: 12px;
}

.story-photo {
  flex: none;
  width: 60%;
  max-width: 14rem;
  height: auto;
  border-radius: 50%;
}

.story-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.story-body h2 {
  font-size: 1.6rem;
}

.story-link {
  font-weight: 600;
}

.story-link a::after {
  content: " →";
  color: var(--orange);
}

@media (min-width: 34rem) {
  .story {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
  }

  .story-photo {
    width: 14rem;
  }
}

/* ---------- about + legal ---------- */

.prose {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 34rem;
  margin-top: 2rem;
}

.prose h2 {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.prose h2:first-child {
  margin-top: 0;
}

.signature {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--orange);
  margin-top: 0.5rem;
}

.portrait {
  margin: 2rem 0 0;
}

/* Keeps whatever shape the photo is — portrait, square or landscape. */
.portrait img.dish-photo {
  aspect-ratio: auto;
  object-fit: contain;
  height: auto;
  max-height: 32rem;
  width: auto;
  max-width: 100%;
}

.portrait figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--green-soft);
}

@media (min-width: 48rem) {
  .practical {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .site-foot {
    grid-template-columns: repeat(3, 1fr);
    max-width: calc(var(--measure) + 8rem);
    margin: 0 auto;
    width: 100%;
    border-radius: 12px 12px 0 0;
  }
  .site-foot > div {
    max-width: none;
  }
}

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

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