:root {
  --bg: #ededed;
  --text: #333333;
  --accent-soft: #9bb5a1;
  --accent-cta: #eb5c57;
  --surface: rgba(255, 255, 255, 0.72);
  --heilerde: #d6c9b5;
  --card-shadow: 0 14px 36px -22px rgba(51, 51, 51, 0.42);
  --card-shadow-hover: 0 22px 50px -18px rgba(51, 51, 51, 0.55);
  --cards-gap: clamp(1rem, 2vw, 1.5rem);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "amifer", serif;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  display: block;
  background-image: url("../../assets/noise.webp");
  opacity: 0.3;
  background-repeat: repeat;
  background-size: 257px auto;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 99999998;
}

.page--home {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.landing {
  position: relative;
  isolation: isolate;
  padding: clamp(1.5rem, 3vw, 2.5rem) 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  overflow-y: visible;
}

.page--home .landing {
  flex: 1 1 auto;
  min-height: 0;
}

.content {
  position: relative;
  z-index: 0;
  width: min(1040px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.35rem);
}

.sunburst {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(88vw, 900px);
  transform: translate(-50%, -50%);
  opacity: 0.03;
  z-index: -2;
  pointer-events: none;
}

.intro {
  text-align: center;
  max-width: 720px;
  width: 100%;
}

.brand-logo {
  width: clamp(80px, 14vw, 120px);
  height: auto;
}

h1,
h2 {
  font-family: "arnika-variable", sans-serif;
  font-weight: 400;
  margin: 0;
}

h1 {
  margin-top: 0.4rem;
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  letter-spacing: 0.02em;
}

.intro p {
  margin: 0.85rem auto 0;
  max-width: 56ch;
  line-height: 1.5;
  font-size: clamp(1rem, 2.1vw, 1.25rem);
}

.cards {
  margin-top: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--cards-gap);
  align-items: stretch;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 999px) {
  .location-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - var(--cards-gap)) / 2);
    max-width: 100%;
  }
}

@media (min-width: 1000px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.location-card--store .brand-logo {
  width: 90px;
  max-width: 100%;
  height: auto;
}

.location-card {
  backdrop-filter: blur(8px);
  background: var(--surface);
  border: none;
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 1rem;
  min-height: 0;
  height: 100%;
  transition: background-color 520ms ease, box-shadow 320ms ease;
}

.location-card:hover,
.location-card:focus-within {
  background-color: var(--heilerde);
  box-shadow: var(--card-shadow-hover);
}

.location-logo {
  max-width: 180px;
  width: 100%;
  height: auto;
}

.location-details {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
}

.location-details p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
}

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

.store-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.store-brand__suffix {
  font-family: "arnika-variable", sans-serif;
  font-size: clamp(1.75rem, 4.4vw, 2.45rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--text);
  margin-top: 5px;
}

.card-button {
  align-self: center;
  margin-top: auto;
  text-decoration: none;
  color: var(--text);
  font-family: "arnika-variable", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid rgba(235, 92, 87, 0.46);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  background: linear-gradient(
    90deg,
    rgba(235, 92, 87, 0.22),
    rgba(235, 92, 87, 0.06)
  );
  transition: background-color 180ms ease, border-color 180ms ease;
}

.card-button:hover,
.card-button:focus-visible {
  border-color: rgba(235, 92, 87, 0.84);
  background: rgba(235, 92, 87, 0.24);
}

.card-button:focus-visible {
  outline: 2px solid rgba(140, 187, 226, 0.8);
  outline-offset: 2px;
}

button.card-button {
  cursor: pointer;
  font: inherit;
}

button.card-button--soon {
  cursor: not-allowed;
}

.card-button--soon:disabled {
  opacity: 1;
  color: var(--text);
}

.card-button--soon:hover,
.card-button--soon:focus-visible {
  border-color: rgba(235, 92, 87, 0.46);
  background: linear-gradient(
    90deg,
    rgba(235, 92, 87, 0.22),
    rgba(235, 92, 87, 0.06)
  );
}

@media (max-width: 760px) {
  .location-card--store .brand-logo {
    width: 60px;
  }

  .location-logo {
    max-width: 88px;
  }

  .location-card:hover,
  .location-card:focus-within {
    background: var(--surface);
    box-shadow: var(--card-shadow);
  }
}

.site-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 0.75rem 1rem 1.25rem;
  text-align: center;
}

.page--home .site-footer {
  padding: 0.45rem 1rem 0.7rem;
}

.site-footer__nav {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
  opacity: 0.78;
}

.site-footer__nav a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  opacity: 1;
}

@media (min-width: 761px) {
  .page--home .landing {
    padding: clamp(0.5rem, 1.2vh, 1rem) 1.2rem clamp(0.35rem, 1vh, 0.65rem);
  }

  .page--home .content {
    gap: clamp(0.35rem, 1vw, 0.7rem);
  }

  .page--home .intro p {
    margin-top: 0.35rem;
  }

  .page--home h1 {
    margin-top: 0.25rem;
    font-size: clamp(1.5rem, 2.8vw, 2.35rem);
  }

  .page--home .location-card {
    padding: 1rem 1rem;
    gap: 0.75rem;
  }

  .page--home .cards {
    gap: clamp(0.65rem, 1.2vw, 1rem);
  }
}
