:root {
  color-scheme: light;
  --paper: #f6f3eb;
  --ink: #302f28;
  --muted: #777468;
  --sage: #727a60;
  --bronze: #ad8056;
  --sand: #e8e1d3;
  --line: #ded8cb;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  width: min(100% - 40px, 1360px);
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.wordmark__symbol {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--bronze);
  border-radius: 50%;
  color: var(--sage);
  font-size: 23px;
  font-style: italic;
}

.wordmark__light {
  color: var(--sage);
  font-weight: 500;
}

.header-note {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.section-wrap {
  width: min(100% - 40px, 1400px);
  margin-inline: auto;
}

.intro {
  padding: 45px 0 20px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--sage);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.5;
  text-transform: uppercase;
}

.intro .eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.intro .eyebrow span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bronze);
}

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

.intro h1 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(54px, 9vw, 94px);
  font-weight: 500;
  letter-spacing: -2.8px;
  line-height: 0.98;
}

h1 em,
h2 em {
  color: var(--sage);
  font-weight: 500;
}

.intro__copy {
  max-width: 460px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.intro__ornament {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 26px;
}

.intro__ornament span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c3a17a;
}

.discover {
  margin-top: 5px;
  margin-bottom: 64px;
}

.search-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 9px 18px;
  border: 1px solid #e1dbcf;
  border-radius: 3px;
  background: #fcfaf5;
  box-shadow: 0 12px 32px rgb(52 47 37 / 4%);
}

.search-field,
.location-field {
  min-width: 0;
  height: 49px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sage);
}

.search-field svg,
.location-field svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.search-field input,
.location-field select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  opacity: 1;
  -webkit-text-fill-color: var(--ink);
}

.search-field input::placeholder {
  color: #77796f;
  opacity: 1;
  -webkit-text-fill-color: #77796f;
}

.search-field input:disabled,
.location-field select:disabled {
  cursor: not-allowed;
}

.location-field {
  border-top: 1px solid var(--line);
}

.location-field select {
  appearance: none;
}

.location-field .select-chevron {
  width: 16px;
  margin-left: auto;
}

.coming-soon {
  position: absolute;
  right: 12px;
  bottom: -21px;
  color: #858579;
  font-size: 10px;
}

.categories {
  padding-bottom: 14px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-top: 32px;
}

.section-heading h2,
.shops h2 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: clamp(33px, 4.4vw, 47px);
  font-weight: 500;
  letter-spacing: -0.9px;
  line-height: 1.05;
}

.section-heading__aside {
  max-width: 250px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.section-heading__aside + .section-heading__aside {
  margin-top: 6px;
}

.section-heading__copy {
  max-width: 270px;
}

.category-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: clamp(400px, 68svh, 580px);
  gap: 14px;
}

.category-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgb(255 255 255 / 54%);
  border-radius: 2px;
  background: #a9a58f;
  box-shadow: 0 8px 20px rgb(44 43 34 / 7%);
}

.category-card img,
.category-card__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-card img {
  z-index: -2;
  object-fit: cover;
  filter: saturate(0.86) contrast(0.98);
  transition: transform 650ms cubic-bezier(0.2, 0.65, 0.25, 1), filter 450ms ease;
}

.category-card:hover img {
  transform: scale(1.025);
  filter: saturate(0.96) contrast(1);
}

.category-card--markets img {
  object-position: center 54%;
}

.category-card--shops img {
  object-position: center 48%;
}

.category-card--farmers img {
  object-position: center 58%;
}

.category-card--crafts img {
  object-position: center 52%;
}

.category-card__shade {
  z-index: -1;
  background: linear-gradient(180deg, rgb(29 35 27 / 4%) 28%, rgb(26 32 25 / 70%) 100%);
}

.category-card__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(22px, 3vw, 38px);
  color: #fffdf6;
}

.category-card__number {
  margin-bottom: 7px;
  color: rgb(255 253 246 / 78%);
  font-size: 10px;
  letter-spacing: 1.8px;
}

.category-card h3 {
  max-width: calc(100% - 35px);
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.2px;
  line-height: 0.98;
}

.category-card__arrow {
  position: absolute;
  right: 20px;
  bottom: 21px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  font-size: 17px;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.category-card:hover .category-card__arrow {
  background: #fffdf6;
  color: var(--ink);
  border-color: #fffdf6;
  transform: translate(2px, -2px);
}

.shops {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 65px;
  padding: 34px clamp(23px, 6vw, 64px);
  border: 1px solid #ded5c4;
  border-radius: 2px;
  background:
    radial-gradient(ellipse at 92% 10%, rgb(173 128 86 / 11%), transparent 36%),
    #efede4;
}

.shops__copy {
  max-width: 580px;
}

.shops h2 {
  margin-bottom: 13px;
}

.shops__copy > p:last-child {
  max-width: 470px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.shops__note {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  color: var(--sage);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5;
}

.shops__sun {
  font-size: 39px;
}

.site-footer {
  width: min(100% - 40px, 1360px);
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.3px;
}

.site-footer > span:first-child {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
}

.site-footer > span:last-child span {
  color: var(--bronze);
}

@media (min-width: 600px) {
  .site-header {
    min-height: 92px;
  }

  .intro {
    padding-top: 50px;
    padding-bottom: 22px;
  }

  .search-panel {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.45fr);
    padding: 9px 18px;
  }

  .location-field {
    padding-left: 20px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .category-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: clamp(360px, 47vw, 500px);
    gap: 18px;
  }

  .category-card:nth-child(1),
  .category-card:nth-child(2),
  .category-card:nth-child(3),
  .category-card:nth-child(4) {
    grid-column: span 6;
  }

  .category-card__content {
    padding: clamp(22px, 3vw, 34px);
  }

  .category-card h3 {
    font-size: clamp(32px, 4vw, 46px);
  }

  .shops__note {
    display: flex;
  }
}

@media (min-width: 960px) {
  .site-header,
  .site-footer {
    width: min(100% - 80px, 1360px);
  }

  .section-wrap {
    width: min(100% - 96px, 1400px);
  }

  .intro {
    padding-top: 57px;
    padding-bottom: 25px;
  }

  .discover {
    max-width: 820px;
    margin-bottom: 76px;
  }

  .category-grid {
    grid-auto-rows: clamp(390px, 37vw, 520px);
    gap: 20px;
  }

  .category-card:nth-child(1),
  .category-card:nth-child(4) {
    grid-column: span 7;
  }

  .category-card:nth-child(2),
  .category-card:nth-child(3) {
    grid-column: span 5;
  }

  .category-card h3 {
    font-size: clamp(38px, 3.8vw, 58px);
  }

  .categories {
    padding-bottom: 17px;
  }

  .shops {
    min-height: 280px;
    margin-bottom: 76px;
  }
}

@media (min-width: 1400px) {
  .category-grid {
    gap: 20px;
  }
}

@media (max-width: 420px) {
  .site-header,
  .site-footer,
  .section-wrap {
    width: calc(100% - 32px);
  }

  .header-note {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .intro {
    padding-top: 32px;
    padding-bottom: 15px;
  }

  .intro h1 {
    font-size: clamp(47px, 13vw, 60px);
    letter-spacing: -2px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
  }

  .section-heading__aside {
    max-width: 280px;
  }

  .section-heading__copy {
    max-width: 300px;
  }

  .category-grid {
    grid-auto-rows: clamp(390px, 68svh, 560px);
  }

  .category-card__content {
    padding: 23px;
  }

  .category-card h3 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .shops {
    padding-inline: 20px;
  }

  .site-footer {
    font-size: 9px;
  }
}

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