/* Global styles only. Component <style> blocks are not used (see README). */

:root {
  /* Colours (Figma) */
  --color-bg: #f3efea;
  --color-text: #212121;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-mauve: #584446;
  --color-mauve-light: #655355;
  --color-pink: #f1b3a7;
  --color-gray-7: #ced4da;
  --color-white-70: rgba(255, 255, 255, 0.7);
  --color-divider: rgba(136, 144, 164, 0.43);
  --color-required: #fc2626;
  --color-dark: #111928;

  /* Type. Bodoni 72 and Helvetica Neue are Apple system fonts; the stacks fall back elsewhere. */
  --font-display: 'Bodoni 72', 'Bodoni MT', Didot, 'Bodoni Moda', Georgia, serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --tracking-title: 0.05em;
  --tracking-nav: 0.07em;
  --tracking-body: 0.1em;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.7857; /* 25px at 14px */
  letter-spacing: var(--tracking-body);
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

main {
  /* Some images bleed off the page edge by design. (On <body> this would
     pass to the window as "hidden", which can still be scrolled.) */
  overflow-x: clip;
}

main:focus {
  outline: none;
}

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

.nowrap {
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-mauve);
  color: var(--color-white);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Underlined text button with arrow ("Subscribe", "Learn more" …) */
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 24px;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
}

.text-button img {
  width: 24px;
  height: 24px;
  transform: rotate(90deg);
}

/* ---------- Stage ----------
   Page sections that follow the 1512px Figma frame. --u is one design pixel,
   so layouts written in calc(N * var(--u)) scale evenly with the stage. */

.stage {
  container-type: inline-size;
  width: min(100%, 1512px);
  margin-inline: auto;
  --u: calc(100cqw / 1512);
}

/* ---------- Spotlight (pink featured-shop band) ---------- */

.spotlight__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--tracking-title);
}

.spotlight .text-button {
  color: var(--color-black);
}


.spotlight {
  background: var(--color-pink);
}

.spotlight__title {
  color: var(--color-mauve);
}

.spotlight__text {
  margin: 0;
  color: var(--color-black);
}

.spotlight__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.spotlight .text-button {
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .spotlight__inner {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: calc(58 * var(--u));
    padding: calc(90 * var(--u)) calc(87 * var(--u)) calc(90 * var(--u)) calc(181 * var(--u));
  }

  .spotlight__media {
    flex: none;
    width: calc(622 * var(--u));
    height: calc(833 * var(--u));
  }

  .spotlight__body {
    gap: 25px;
    width: calc(564 * var(--u));
  }

  .spotlight__title {
    font-size: max(2.375rem, calc(64 * var(--u)));
    line-height: 1.156;
  }

  .spotlight__text {
    max-width: calc(508 * var(--u));
    font-size: max(1rem, calc(20 * var(--u)));
    line-height: 2;
  }
}

@media (max-width: 899px) {
  /* The mobile design uses a slightly different pink and a black heading. */
  .spotlight {
    background: #f7bcab;
  }

  .spotlight__inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 76px 26px;
  }

  .spotlight__media {
    aspect-ratio: 337 / 452;
  }

  .spotlight__body {
    gap: 16px;
  }

  .spotlight__title {
    color: var(--color-black);
    font-size: 2.375rem;
    line-height: 53px;
  }
}

/* ---------- Upcoming event with sign-up (Home and Events) ---------- */

.upcoming {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.upcoming__eyebrow {
  margin: 0;
  padding-bottom: 8px;
  color: var(--color-mauve);
  line-height: 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  /* 60px rule underneath */
  background: linear-gradient(var(--color-mauve), var(--color-mauve)) left bottom / 60px 1px no-repeat;
}

.upcoming__headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 36px;
  letter-spacing: var(--tracking-title);
  color: var(--color-black);
}

.upcoming__text {
  margin: 0;
  color: var(--color-black);
}

.upcoming__form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  padding-top: 5px;
}

.upcoming__form .field {
  flex: none;
  width: 100%;
}

.upcoming .text-button {
  color: var(--color-black);
}

@media (min-width: 900px) {
  .upcoming__headline {
    font-size: max(1.75rem, calc(36 * var(--u, 1px)));
    line-height: 1.72;
  }
}

/* ---------- Header bar (shared by the page header and the menu) ---------- */

/* Above the home hero, whose top band tucks under it. */
.site-header {
  position: relative;
  z-index: 1;
}

.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 55px 82px 0;
}

.bar__links,
.bar__menu-toggle {
  margin-top: 13px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 24px;
  letter-spacing: var(--tracking-nav);
  color: var(--color-black);
}

.bar__links {
  display: flex;
  gap: 33px;
}

.bar__links a {
  text-decoration: none;
}

.bar__links a:hover,
.bar__menu-toggle:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bar__logo img {
  width: 269px;
}

.bar__menu-toggle {
  justify-self: end;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

@media (max-width: 899px) {
  .bar {
    grid-template-columns: 1fr auto;
    padding: 18px 20px 0;
  }

  .bar__links {
    display: none;
  }

  .bar__logo {
    margin-top: 6px;
  }

  .bar__logo img {
    width: 172px;
  }

  /* Centred on the logo's "THE SHOPS AT" line. The padding gives a 44px
     touch target; the negative margin keeps the text where it is. */
  .bar__menu-toggle {
    margin: -10px -10px 0 0;
    padding: 10px;
  }
}

/* ---------- Full-screen menu ---------- */

.menu {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0 0 57px;
  border: 0;
  background: var(--color-pink);
  color: var(--color-mauve);
  overflow-y: auto;
}

.menu[open] {
  display: flex;
  flex-direction: column;
  animation: menu-in 0.25s ease-out;
}

.menu::backdrop {
  background: var(--color-pink);
}

html:has(.menu[open]) {
  overflow: hidden;
}

@keyframes menu-in {
  from {
    opacity: 0;
  }
}

.menu .bar {
  position: relative;
}

.menu__close {
  position: absolute;
  top: 39px;
  right: 53px;
  width: 115px;
  height: 115px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-mauve);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 24px;
  letter-spacing: var(--tracking-nav);
  cursor: pointer;
}

.menu__close:focus-visible {
  outline-color: var(--color-mauve);
}

.menu__nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.menu__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.9vw, 6.5rem);
  line-height: 1.12;
  letter-spacing: var(--tracking-title);
  white-space: nowrap;
}

.menu__nav a {
  text-decoration: none;
}

.menu__nav a:hover,
.menu__nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
}

/* Staggered indents from the design */
.menu__nav li:nth-child(1) { padding-left: 0.15em; }
.menu__nav li:nth-child(2) { padding-left: 1.1em; }
.menu__nav li:nth-child(4) { padding-left: 0.57em; }

.menu__address {
  align-self: flex-end;
  margin-right: 87px;
  color: var(--color-text);
  font-style: normal;
  font-size: 1rem;
  line-height: 26px;
  text-align: right;
}

.menu__address a {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
}

.menu__address a:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.menu__address img {
  width: 35px;
  margin-bottom: 10px;
}

/* Large screens: address pinned bottom-right beside the links, as designed.
   Smaller screens keep it in the flow below the links so nothing overlaps. */
@media (min-width: 900px) and (min-height: 820px) {
  .menu {
    padding-bottom: 0;
  }

  .menu__address {
    position: absolute;
    right: 87px;
    bottom: 57px;
    margin: 0;
  }
}

@media (max-width: 899px) {
  .menu {
    padding-bottom: 40px;
  }

  /* Sits over where "Menu" was */
  .menu__close {
    top: 6px;
    right: 12px;
    width: 64px;
    height: 64px;
    font-size: 1rem;
  }

  .menu__nav ul {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .menu__address {
    margin-right: 33px;
    font-size: 0.875rem;
    line-height: 25px;
  }

  .menu__address img {
    width: 28px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-mauve);
  color: var(--color-white-70);
}

.site-footer__inner {
  width: min(1170px, 100% - 70px);
  margin-inline: auto;
  padding: 68px 0 32px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 43px;
  letter-spacing: var(--tracking-title);
  color: var(--color-white);
}

.newsletter {
  display: flex;
  align-items: center;
  gap: 46px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--color-divider);
}

.site-footer .newsletter__title {
  flex: 0 1 553px;
}

.newsletter__form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 23px;
  color: var(--color-white);
}

.field {
  position: relative;
  flex: 0 1 445px;
}

.field__input {
  width: 100%;
  height: 47px;
  /* Room above the text for the floated label */
  padding: 19px 16px 4px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--color-mauve-light);
  color: var(--color-white);
  font: inherit;
  letter-spacing: var(--tracking-body);
}

.field__input:focus-visible {
  outline-color: var(--color-white);
  outline-offset: 2px;
}

/* Floating label: sits in the middle of the empty field, then shrinks to
   the top edge on focus or once there is a value. It stays visible (and in
   the accessibility tree) throughout. The input needs placeholder=" " so
   :placeholder-shown can tell when it is empty. */
.field__label {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: var(--color-white);
  line-height: 20px;
  pointer-events: none;
  transition: top 0.15s ease, transform 0.15s ease, font-size 0.15s ease;
}

.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  top: 4px;
  transform: none;
  font-size: 0.6875rem;
  line-height: 14px;
}

.field__required {
  display: none;
  color: var(--color-required);
}

/* Light field on the page background (Events sign-up) */
.field--light .field__input {
  height: 57px;
  padding: 24px 16px 6px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  background: var(--color-white);
  color: var(--color-dark);
  font-size: 0.9375rem;
}

.field--light .field__input:focus-visible {
  outline-color: var(--color-dark);
}

.field--light .field__label {
  left: 21px;
  color: var(--color-dark);
  font-size: 0.9375rem;
}

.field--light .field__input:focus + .field__label,
.field--light .field__input:not(:placeholder-shown) + .field__label {
  top: 8px;
  font-size: 0.75rem;
}

/* Multi-line field: the label starts at the top, not the middle */
.field--textarea .field__input {
  display: block;
  height: 162px;
  padding-top: 30px;
  resize: vertical;
}

.field--textarea .field__label {
  top: 18px;
  transform: none;
}

/* Rounded light field (Contact form) */
.field--rounded .field__input {
  border-radius: 6px;
}

/* Checkbox with its label beside it */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox input {
  flex: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  border: 1px solid #9d8d8e;
  border-radius: 4px;
  background: var(--color-white) center / 10px 7px no-repeat;
  cursor: pointer;
}

.checkbox input:checked {
  background-color: #9d8d8e;
  background-image: url('/images/icons/check.svg');
}

.checkbox input:focus-visible {
  outline: 2px solid var(--color-dark);
  outline-offset: 2px;
}

.checkbox label {
  color: #919191;
  font-size: 0.9375rem;
  line-height: 27px;
  cursor: pointer;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1fr 134px auto;
  align-items: start;
  padding-top: 58px;
}

.site-footer__brand img {
  width: 196px;
}

.site-footer__brand p {
  max-width: 270px;
  margin: 24px 0 28px;
}

.site-footer__social {
  display: flex;
  gap: 24px;
}

.site-footer__social a {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.site-footer__col h2 {
  margin-bottom: 35px;
}

.site-footer__links {
  display: grid;
  gap: 14px;
}

.site-footer address {
  font-style: normal;
}

.site-footer address p {
  margin: 0 0 14px;
}

.site-footer address span {
  display: block;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 69px;
  color: var(--color-gray-7);
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 24px;
}

.site-footer__credit-mobile {
  display: none;
}

@media (max-width: 899px) {
  .site-footer__inner {
    padding: 36px 0 30px;
  }

  .site-footer .newsletter__title {
    flex: none;
    font-size: 1.4375rem;
    line-height: 35px;
  }

  .newsletter {
    flex-direction: column;
    align-items: stretch;
    gap: 23px;
    padding-bottom: 52px;
  }

  .newsletter__form {
    flex-direction: column;
    align-items: flex-end;
  }

  .newsletter .field {
    flex: none;
    width: 100%;
  }

  .newsletter .field__input {
    height: 59px;
    padding-top: 24px;
    padding-bottom: 6px;
  }

  .newsletter .field__input:focus + .field__label,
  .newsletter .field__input:not(:placeholder-shown) + .field__label {
    top: 8px;
  }

  .newsletter .field__required {
    display: inline;
  }

  .site-footer__main {
    grid-template-columns: 134px 1fr;
    row-gap: 39px;
    padding-top: 34px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__brand p {
    max-width: 319px;
    margin: 16px 0;
  }

  .site-footer__col h2 {
    margin-bottom: 10px;
  }

  .site-footer__links {
    gap: 8px;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
  }

  .site-footer__credit {
    display: none;
  }

  .site-footer__legal {
    gap: 5px 19px;
  }

  .site-footer__credit-mobile {
    display: list-item;
  }
}

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