@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");

:root {
  --ink: #122118;
  --muted: #637068;
  --paper: #f7f8f3;
  --white: #ffffff;
  --line: #dce2d9;
  --acid: #d8ff5f;
  --soft-acid: #efffc1;
  --orange: #ff7a3d;
  --shadow: 0 18px 50px rgba(25, 46, 31, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1440px;
  padding: 1.15rem clamp(1.25rem, 4vw, 4.5rem);
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: var(--acid);
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.location {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  gap: 0.5rem;
  margin: 0;
}

.location span {
  color: #29a562;
  font-size: 0.6rem;
}

main {
  margin: 0 auto;
  max-width: 1440px;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem) 5rem;
}

.intro {
  background:
    radial-gradient(circle at 86% 35%, rgba(216, 255, 95, 0.86) 0 7rem, transparent 7.1rem),
    var(--ink);
  border-radius: 1.5rem;
  color: var(--white);
  margin: clamp(1.5rem, 4vw, 3.5rem) 0 3.5rem;
  overflow: hidden;
  padding: clamp(2.25rem, 7vw, 6rem) clamp(1.5rem, 6vw, 5rem);
  position: relative;
}

.intro::after {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
  height: 20rem;
  position: absolute;
  right: -6rem;
  top: -10rem;
  width: 20rem;
}

.eyebrow {
  color: var(--acid);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  letter-spacing: -0.065em;
  line-height: 0.95;
  margin-bottom: 1.35rem;
  max-width: 12ch;
}

.intro-copy {
  color: #d4ddd6;
  font-size: clamp(1rem, 2vw, 1.18rem);
  margin-bottom: 0;
  max-width: 42rem;
}

.catalog-heading {
  align-items: end;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
}

.catalog-heading h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.2rem;
}

.result-count {
  color: var(--muted);
  margin-bottom: 0;
}

.search {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  gap: 0.55rem;
  max-width: 22rem;
  padding: 0 1rem;
  width: 100%;
}

.search:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--soft-acid);
}

.search input {
  background: transparent;
  border: 0;
  color: var(--ink);
  min-width: 0;
  outline: 0;
  padding: 0.85rem 0;
  width: 100%;
}

.filters {
  display: flex;
  gap: 0.55rem;
  margin: 1.75rem 0 2rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.filter,
.empty-state button,
#copy-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  padding: 0.62rem 1rem;
  white-space: nowrap;
}

.filter:hover,
.filter:focus-visible,
.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.item-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.item-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.item-card:hover,
.item-card:focus-visible {
  box-shadow: var(--shadow);
  outline: 0;
  transform: translateY(-4px);
}

.item-image-wrap {
  aspect-ratio: 4 / 3;
  background: #e7ebe5;
  overflow: hidden;
  position: relative;
}

.item-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
  width: 100%;
}

.item-card:hover img {
  transform: scale(1.035);
}

.status {
  background: var(--acid);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.32rem 0.65rem;
}

.item-image-wrap .status {
  left: 0.8rem;
  position: absolute;
  top: 0.8rem;
}

.status[data-status="reserved"] {
  background: #ffe6d9;
  color: #9f3d10;
}

.item-content {
  padding: 1rem 1rem 1.15rem;
}

.item-category,
.dialog-category {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item-title-row {
  align-items: baseline;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 0.3rem;
}

.item-title-row h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
  margin: 0;
}

.item-title-row strong {
  font-size: 1.02rem;
  white-space: nowrap;
}

.empty-state {
  border: 1px dashed #aeb9b0;
  border-radius: 1.2rem;
  color: var(--muted);
  padding: 4rem 1rem;
  text-align: center;
}

.empty-state p {
  font-family: "Manrope", sans-serif;
  font-size: 1.25rem;
}

.empty-state button:hover,
#copy-item:hover {
  background: var(--soft-acid);
  border-color: var(--ink);
}

footer {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  padding: 2rem clamp(1.25rem, 4vw, 4.5rem);
}

footer p {
  margin: 0;
}

.footer-note {
  color: #aeb9b0;
  font-size: 0.88rem;
}

dialog {
  background: var(--white);
  border: 0;
  border-radius: 1.3rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  color: var(--ink);
  max-width: 48rem;
  overflow: hidden;
  padding: 0;
  width: calc(100% - 2rem);
}

dialog::backdrop {
  background: rgba(10, 19, 13, 0.68);
  backdrop-filter: blur(4px);
}

dialog img {
  aspect-ratio: 16 / 8;
  display: block;
  object-fit: cover;
  width: 100%;
}

.dialog-close {
  align-items: center;
  background: rgba(18, 33, 24, 0.88);
  border: 0;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  font-size: 1.6rem;
  height: 2.5rem;
  justify-content: center;
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2.5rem;
}

.dialog-content {
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

.dialog-topline,
.dialog-bottom {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.dialog-content h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  letter-spacing: -0.04em;
  margin: 0.7rem 0;
}

.dialog-content > p {
  color: var(--muted);
  max-width: 58ch;
}

.dialog-bottom {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1.2rem;
}

.dialog-bottom strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.4rem;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 880px) {
  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-block: 0.9rem;
  }

  .location {
    font-size: 0.78rem;
  }

  .intro {
    border-radius: 1.1rem;
    margin-bottom: 2.5rem;
  }

  .intro::after {
    display: none;
  }

  .catalog-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    max-width: none;
  }

  .item-grid {
    grid-template-columns: 1fr;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  dialog img {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
