:root {
  --main-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

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

button {
  font-family: inherit;
}

/* ========================
    VISUALLY HIDDEN
    ======================== */
.visually-hidden {
  border: 0;
  clip-path: inset(100%);
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ========================
    MASTHEAD CONTAINER
    ======================== */
.masthead {
  position: relative;
  font-family: var(--main-font);
}

.masthead a:hover {
  text-decoration: underline;
}

.masthead__wrapper {
  background-color: #fff;
  left: 0;
  position: relative;
  top: 0;
  width: 100%;
  z-index: 3000;
}

/* ========================
    TOP NAV BAR (hidden on mobile)
    ======================== */
.masthead__nav {
  display: none;
}

.masthead__nav-list,
.masthead__nav-list-extra {
  column-gap: 1.25rem;
  display: flex;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
}

.masthead__nav-list-item {
  font-weight: 300;
}

.masthead__nav-list-item,
.masthead__nav-list-extra-item {
  color: #000;
  font-size: 1rem;
  line-height: 125%;
  text-transform: uppercase;
  white-space: nowrap;
}

.masthead__nav-list-extra-item {
  font-weight: 700;
}

.masthead__nav-list-extra-item .glamorama-icon {
  display: block;
  margin-top: 2px;
  width: 83px;
}

.masthead__nav-divider {
  background-color: #d4d4d4;
  height: 1.875rem;
  margin: 14px 0.875rem;
  width: 0.0625rem;
}

/* ========================
    MAIN HEADER
    ======================== */
.masthead__main {
  align-items: center;
  border-bottom: 1px solid #d4d4d4;
  display: grid;
  grid-template-columns: min-content 1fr min-content;
  height: 60px;
  padding-inline: 16px;
  position: relative;
}

.masthead__main-logo {
  display: flex;
  justify-self: center;
  margin-inline: auto;
}

.masthead__main-logo h1 {
  display: grid;
}

.masthead__main .logo-lc-icon {
  min-width: 220px;
  vertical-align: middle;
}

/* Hamburger / search button */
.masthead__main-search {
  background: none;
  border: none;
  cursor: pointer;
  height: 32px;
  width: fit-content;
}

.masthead__main .search-icon {
  border-right: 0.0625rem solid #d4d4d4;
  box-sizing: content-box;
  min-width: 24px;
  padding: 0.25rem 0.75rem 0.25rem 0;
}

.masthead__main .search-icon path {
  stroke: #737373;
}

/* ========================
    MODAL (side panel)
    ======================== */
.masthead__modal-checkbox {
  display: none;
}

.masthead__modal-container {
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  display: none;
  height: 100vh;
  left: 0;
  position: fixed;
  top: 0;
  width: 100vw;
}

.masthead__modal-checkbox:checked ~ .masthead__modal-container {
  display: flex;
  z-index: 1000;
}

.masthead__modal {
  backdrop-filter: blur(30px);
  background-color: hsla(0, 0%, 100%, 0.75);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.059),
              0 4px 6px -1px rgba(0, 0, 0, 0.102);
  height: 100%;
  max-width: 720px;
  overflow-y: scroll;
  padding-inline: 20px;
  position: relative;
  scrollbar-width: none;
  width: 100%;
  z-index: 1;
  -ms-overflow-style: none;
}

.masthead__modal::-webkit-scrollbar {
  display: none;
}

/* Close row */
.masthead__modal__close-row {
  background-color: #f5f5f5;
  border-bottom: 1px solid #d4d4d4;
  display: flex;
  height: 60px;
  justify-content: flex-end;
  left: 0;
  max-width: 720px;
  padding: 17px 20px;
  position: fixed;
  width: 100%;
  z-index: 1;
}

.masthead__modal__close-btn {
  align-items: center;
  background: transparent;
  border: none;
  display: flex;
  gap: 14px;
  cursor: pointer;
}

.masthead__modal__close-btn span {
  color: #404040;
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.4px;
  line-height: 0;
}

.masthead__modal__close-btn .close-icon {
  height: 12px;
  width: 12px;
}

/* Search input inside modal */
.masthead__modal__search {
  margin-top: 69px;
  position: relative;
}

.masthead__modal__search-input {
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 100%;
  padding: 13px 40px 13px 20px;
  width: 100%;
}

.masthead__modal__search-input::placeholder {
  color: #737373;
}

.masthead__modal__search button {
  background-color: transparent;
  border: none;
  position: absolute;
  right: 4px;
  top: 10px;
  cursor: pointer;
}

.masthead__modal__search button svg {
  padding-right: 16px;
  width: fit-content;
}

/* First group (sections) */
.masthead__modal .first-group {
  border-bottom: 1px solid #d4d4d4;
  display: grid;
  gap: 24px 8px;
  grid-template-columns: 1fr 1fr;
  margin-top: 22px;
  padding-bottom: 22px;
}

.masthead__modal .first-group__section {
  min-width: 0;
}

.masthead__modal .first-group__section:first-child {
  gap: 8px;
  grid-column: 1 / -1;
}

.masthead__modal .first-group__section:first-child .first-group__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.masthead__modal .first-group__section__title {
  color: #000;
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 100%;
  max-width: 100%;
}

.masthead__modal .first-group__section ul {
  margin-left: 0;
  margin-top: 8px;
}

.masthead__modal .first-group__section ul li {
  color: #000;
  list-style: none;
  margin-top: 8px;
}

.masthead__modal .first-group__section ul li a span {
  display: block;
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.4px;
  line-height: 100%;
  max-width: 100%;
}

/* Second group (topics / social) */
.masthead__modal .second-group {
  border-bottom: 1px solid #d4d4d4;
  padding-bottom: 34px;
}

.masthead__modal .second-group__section {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.masthead__modal .second-group__section__title {
  color: #000;
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 100%;
  text-transform: uppercase;
}

.masthead__modal .second-group__section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-left: 0;
  margin-top: 8px;
}

.masthead__modal .second-group__section ul li {
  color: #000;
  list-style: none;
}

.masthead__modal .second-group__section ul li a span {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.4px;
  line-height: 100%;
  white-space: nowrap;
}

.masthead__modal .second-group__section--auto-cl {
  display: grid;
  grid-column: span 2;
  height: 23px;
  margin-top: 0;
}

/* Third group (footer links) */
.masthead__modal .third-group-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-left: 0;
  margin-block: 20px 56px;
}

.masthead__modal .third-group-list li {
  list-style: none;
}

.masthead__modal .third-group-list li a span {
  color: #737373;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.4px;
  line-height: 100%;
  white-space: nowrap;
}

/* Modal overlay */
.masthead__modal-overlay {
  cursor: pointer;
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
}

/* ========================
    SCROLL STATE (fixed + shrink)
    ======================== */
.masthead.masthead__is-scrolled {
  height: var(--mastheadHeight);
}

.masthead.masthead__is-scrolled .masthead__wrapper {
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 3000;
}

.masthead.masthead__is-scrolled .masthead__main {
  background-color: #fff;
  height: 60px;
}

.masthead.masthead__is-scrolled .masthead__nav {
  display: none;
}

.masthead.masthead__is-scrolled .masthead__main .logo-lc-icon {
  margin-bottom: 0;
  min-width: 220px;
}

.masthead.masthead__is-scrolled .masthead__main .glamorama-icon {
  margin-bottom: 0;
  min-width: 160px;
}

/* ========================
    DESKTOP (min-width: 1024px)
    ======================== */
@media (min-width: 1024px) {
  .masthead__nav {
    align-items: center;
    background-color: rgba(12, 12, 13, 0.05);
    border-bottom: 1px solid #d4d4d4;
    border-top: 1px solid #d4d4d4;
    display: flex;
    height: 60px;
    overflow: hidden;
    padding-inline: 1.25rem;
  }

  .masthead__main {
    grid-template-columns: repeat(3, 1fr);
    height: 122px;
  }

  .masthead__main .logo-lc-icon {
    display: block;
    min-width: 347px;
  }

  .masthead__main .glamorama-icon {
    min-width: 332px;
  }

  .masthead.masthead__is-scrolled .masthead__main {
    height: 60px;
  }

  .masthead.masthead__is-scrolled .masthead__nav {
    display: none;
  }

  .masthead__modal,
  .masthead__modal__close-row {
    padding-inline: 64px;
  }

  .masthead__modal .second-group {
    display: grid;
    gap: 16px 24px;
    grid-template-areas: "section subsection";
    grid-template-columns: auto auto;
    margin-top: 24px;
  }

  .masthead__modal .second-group__section {
    display: contents;
  }

  .masthead__modal .second-group__section--auto-cl {
    display: grid;
    grid-column: span 2;
    height: 23px;
    margin-top: 0;
  }

  .masthead__modal .second-group__section ul {
    margin-top: 0;
  }
}
/* ========================
    FOOTER BASE
    ======================== */
.footer-base {
    color-scheme: light;
    background: white;
    font-family: var(--main-font);
  color: #000;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.25rem;
  margin-inline: auto;
  max-width: 1560px;
  padding-bottom: 36px;
  padding-inline: 20px;
}

.footer-base a:hover {
  text-decoration: underline;
}

.footer-base__logo {
  padding-block: 20px;
  width: 140px;
}

.footer-base__row {
  column-gap: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: space-between;
}

.footer-base__col {
  margin-bottom: 20px;
}

.footer-base__col--double .footer-base__list {
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 140px));
  justify-content: space-between;
}

.footer-base__title {
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-base__list {
  display: grid;
  list-style: none;
  margin: 0;
  row-gap: 10px;
}

.footer-info {
  border-top: 1px solid #d4d4d4;
  margin-top: 22px;
  padding-block: 20px;
}

.footer-base__list--info {
  color: #525252;
  column-gap: 16px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  font-size: 0.875rem;
  grid-column: 1 / -1;
  justify-content: center;
  line-height: 1.125rem;
  list-style: none;
  margin: 0;
  row-gap: 12px;
}

/* ========================
    TABLET (min-width: 768px)
    ======================== */
@media (min-width: 768px) {
  .footer-base__logo {
    padding-block: 32px;
  }

  .footer-base__row {
    column-gap: 12px;
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-base__col:nth-child(2n) {
    border-left: 1px solid #d4d4d4;
    padding-left: 12px;
  }

  .footer-base__col--double .footer-base__list {
    column-gap: 24px;
    grid-template-columns: repeat(2, auto);
  }
}

/* ========================
    DESKTOP (min-width: 1024px)
    ======================== */
@media (min-width: 1024px) {
  .footer-base__row {
    column-gap: 12px;
    grid-template-columns: repeat(6, 1fr);
  }

  .footer-base__col:nth-child(2n) {
    border-left: none;
    padding-left: 0;
  }

  .footer-base__col:not(:first-child) {
    border-left: 1px solid #d4d4d4;
    padding-left: 12px;
  }

  .footer-base__col--double {
    grid-column: span 2;
  }

  .footer-base__col--double .footer-base__list {
    justify-content: normal;
  }
}