:root {
  --charcoal: #111111;
  --paper: #f6ede2;
  --paper-soft: #fbf6ee;
  --sand: #efe0c8;
  --sunflower: #f2c94c;
  --orange: #ff5a1f;
  --rose: #f78da7;
  --lavender: #c9acd9;
  --green: #4fb27a;
  --deep-green: #006b5a;
  --blue: #9fcce4;
  --border: rgba(17, 17, 17, 0.2);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--charcoal);
  background: var(--paper-soft);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
}

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

button,
input {
  font: inherit;
}

.page-frame {
  width: min(1460px, calc(100% - 56px));
  margin: 28px auto;
  background: var(--paper-soft);
  border: 0;
  box-shadow: none;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(300px, 0.42fr) 1fr;
  align-items: center;
  min-height: 174px;
  border-bottom: 0;
}

.header-note {
  margin-top: -10px;
  padding: 2px 34px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 950;
  text-align: left;
  text-transform: uppercase;
}

.brand,
.footer-brand {
  font-family: var(--display);
  letter-spacing: 0;
  line-height: 0.82;
  text-transform: uppercase;
}

.brand {
  display: block;
  padding: 26px 34px 20px;
  font-size: clamp(5.2rem, 8vw, 8.5rem);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.7vw, 42px);
  padding: 0 38px;
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
}

.primary-nav > a,
.nav-item > a,
.icon-button {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.nav-item {
  position: relative;
}

.menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  z-index: 20;
  min-width: 180px;
  background: var(--paper-soft);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-item:hover .menu-panel,
.nav-item:focus-within .menu-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.menu-panel a {
  display: block;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  text-transform: none;
}

.menu-panel a:last-child {
  border-bottom: 0;
}

.icon-button {
  width: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button span {
  position: relative;
  width: 24px;
  height: 24px;
  border: 3px solid var(--charcoal);
  border-radius: 50%;
}

.icon-button span::after {
  content: "";
  position: absolute;
  right: -9px;
  bottom: -5px;
  width: 12px;
  height: 3px;
  background: var(--charcoal);
  transform: rotate(45deg);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 434px;
  height: 434px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero > * {
  min-width: 0;
}

.hero-copy {
  position: absolute;
  left: clamp(28px, 7vw, 108px);
  top: 50%;
  z-index: 8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(640px, calc(100% - 112px));
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  transform: translateY(-50%);
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 3.35vw, 4rem);
  line-height: 0.97;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 420px;
  margin-bottom: 24px;
  font-size: clamp(1.1rem, 1.35vw, 1.45rem);
  line-height: 1.25;
  font-weight: 500;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--charcoal);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.button.primary {
  background: var(--charcoal);
  color: var(--paper-soft);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
}

.slider {
  position: relative;
  width: 100%;
  min-height: 434px;
  height: 434px;
  overflow: hidden;
}

.slide-track {
  display: flex;
  min-height: 100%;
  height: 100%;
  transition: transform 700ms ease;
  will-change: transform;
}

.slide {
  position: relative;
  display: block;
  flex: 0 0 100%;
  min-height: 100%;
  height: 100%;
  padding: 0;
}

.slide.is-active {
  display: block;
}

.image-slot {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 2px dashed rgba(17, 17, 17, 0.42);
  background:
    linear-gradient(45deg, rgba(17, 17, 17, 0.05) 25%, transparent 25% 50%, rgba(17, 17, 17, 0.05) 50% 75%, transparent 75%) 0 0 / 24px 24px,
    rgba(246, 237, 226, 0.78);
  color: rgba(17, 17, 17, 0.78);
  text-align: center;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.15;
}

.image-slot strong,
.image-slot span,
.image-slot em {
  display: block;
  max-width: 100%;
  font-style: normal;
}

.image-slot img {
  display: none;
}

.image-slot.has-asset {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.image-slot.has-asset img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-slot.has-asset strong,
.image-slot.has-asset span,
.image-slot.has-asset em {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 434px;
  border-right: 0;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--paper-soft);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.slider-arrow.prev {
  left: 22px;
}

.slider-arrow.next {
  right: 22px;
}

.slider-dots {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 42px;
  display: flex;
  gap: 14px;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 1px solid var(--charcoal);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.slider-dots .is-active {
  background: var(--charcoal);
}

.theme-ribbon {
  display: grid;
  grid-template-columns: 184px repeat(6, 1fr) 148px;
  min-height: 118px;
  border-bottom: 1px solid var(--border);
}

.theme-ribbon a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  font-weight: 950;
  text-align: center;
}

.theme-ribbon a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../assets/texture.jpg") center / cover;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.theme-ribbon a:not(.ribbon-label):not(.more-link)::after {
  opacity: 0.25;
}

.theme-ribbon a {
  isolation: isolate;
}

.theme-ribbon a {
  color: var(--charcoal);
}

.theme-ribbon a > * {
  position: relative;
  z-index: 1;
}

.theme-ribbon a:last-child {
  border-right: 0;
}

.ribbon-label {
  background: var(--sand);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.more-link {
  background: var(--paper);
}

.sunflower { background: var(--sunflower); }
.green { background: var(--green); }
.rose { background: var(--rose); }
.orange { background: var(--orange); }
.lavender { background: var(--lavender); }
.blue { background: var(--blue); }

.popular-lists {
  padding: 42px 34px 44px;
  border-bottom: 1px solid var(--border);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.section-heading a {
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.list-card-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) 54px;
  gap: 26px;
  align-items: stretch;
}

.list-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto auto 10px;
  aspect-ratio: 2 / 3;
  min-height: 0;
  padding: 22px;
  border: 0;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  font-size: clamp(1.1rem, 1.45vw, 1.62rem);
  font-weight: 950;
  line-height: 1.03;
}

.card-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px 14px 0 0;
  background-color: rgba(246, 237, 226, 0.42);
}

.list-card > span:not(.card-art):not(.card-rule) {
  position: relative;
  z-index: 1;
  grid-row: 2;
  align-self: end;
  max-width: 10ch;
  color: var(--paper-soft);
  text-shadow: none;
  transform: translateY(-25px);
}

.card-rule {
  position: relative;
  z-index: 1;
  grid-row: 4;
  width: 100%;
  height: 10px;
  margin-top: 10px;
  background: var(--charcoal);
  transform: translateY(-25px);
}

.list-card small {
  position: relative;
  z-index: 1;
  grid-row: 3;
  align-self: end;
  padding-top: 6px;
  color: var(--charcoal);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.03;
  text-shadow: none;
  transform: translateY(-25px);
}

.list-next {
  display: grid;
  place-items: center;
  align-self: center;
  min-height: 66px;
  background: var(--paper);
  border: 1px solid var(--border);
  font-size: 2.25rem;
}

.promise-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}

.promise-strip div {
  display: grid;
  grid-template-columns: 80px 1fr;
  column-gap: 22px;
  min-height: 150px;
  padding: 36px 34px;
  border-right: 1px solid var(--border);
}

.promise-strip div:last-child {
  border-right: 0;
}

.promise-strip strong,
.promise-strip p {
  grid-column: 2;
  margin: 0;
}

.promise-strip strong {
  font-size: 0.95rem;
}

.promise-strip p {
  max-width: 330px;
  font-size: 0.92rem;
  font-weight: 650;
}

.line-icon {
  position: relative;
  grid-row: 1 / 3;
  display: block;
  width: 54px;
  height: 54px;
}

.image-icon {
  object-fit: contain;
}

.hands-icon {
  border-bottom: 3px solid var(--charcoal);
}

.hands-icon::before,
.hands-icon::after {
  content: "";
  position: absolute;
  bottom: 7px;
  width: 29px;
  height: 20px;
  border: 3px solid var(--charcoal);
  border-top: 0;
  border-radius: 0 0 22px 22px;
}

.hands-icon::before {
  left: 0;
  box-shadow: 12px -15px 0 -9px var(--paper-soft), 12px -15px 0 -6px var(--charcoal);
  transform: rotate(28deg);
}

.hands-icon::after {
  right: 0;
  box-shadow: -12px -15px 0 -9px var(--paper-soft), -12px -15px 0 -6px var(--charcoal);
  transform: rotate(-28deg);
}

.heart-icon {
  transform: translateY(4px);
}

.heart-icon::before,
.heart-icon::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 42px;
  border: 3px solid var(--charcoal);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
}

.heart-icon::before,
.heart-icon::after {
  top: 1px;
}

.heart-icon::before {
  left: 8px;
  transform: rotate(-45deg);
}

.heart-icon::after {
  right: 8px;
  transform: rotate(45deg);
}

.spectacles-icon {
  background:
    linear-gradient(var(--charcoal), var(--charcoal)) 24px 25px / 8px 3px no-repeat,
    linear-gradient(32deg, transparent 0 41%, var(--charcoal) 42% 47%, transparent 48%) 0 0 / 100% 100% no-repeat;
  transform: rotate(-8deg);
}

.spectacles-icon::before,
.spectacles-icon::after {
  content: "";
  position: absolute;
  top: 15px;
  width: 22px;
  height: 18px;
  border: 3px solid var(--charcoal);
  border-radius: 50%;
  box-sizing: border-box;
  transform: skewY(-12deg) rotate(-5deg);
}

.spectacles-icon::before {
  left: 1px;
  box-shadow: -7px -12px 0 -9px var(--paper-soft), -7px -12px 0 -6px var(--charcoal);
}

.spectacles-icon::after {
  right: 1px;
  box-shadow: 7px -12px 0 -9px var(--paper-soft), 7px -12px 0 -6px var(--charcoal);
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(300px, 0.45fr) 1fr;
  gap: 36px;
  align-items: center;
  padding: 36px 72px;
  border-bottom: 1px solid var(--border);
}

.newsletter h2 {
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.newsletter p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 650;
}

.newsletter-love {
  margin-top: 6px;
  font-weight: 950;
  text-transform: uppercase;
}

.newsletter form {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 18px;
}

.newsletter input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--border);
  background: var(--paper-soft);
  padding: 0 20px;
}

.newsletter button {
  min-height: 56px;
  border: 0;
  background: var(--charcoal);
  color: var(--paper-soft);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(150px, 0.16fr) 1fr;
  gap: 34px;
  padding: 32px 38px 44px;
}

.footer-brand {
  font-size: clamp(1.3rem, 1.75vw, 2rem);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 24px;
}

.footer-links div {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-links strong {
  margin-bottom: 2px;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.footer-links a {
  font-size: 0.82rem;
}

.matter-project {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.matter-project hr {
  flex: 1;
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

.matter-project span {
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.matter-project img {
  display: block;
  width: 14px;
  height: auto;
}

.matter-project a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

@media (max-width: 1100px) {
  .page-frame {
    width: min(100% - 28px, 1460px);
    margin: 14px auto;
  }

  .site-header,
  .newsletter,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .brand {
    text-align: center;
  }

  .primary-nav {
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 24px 24px;
  }

  .hero-copy {
    left: 34px;
    width: min(620px, calc(100% - 68px));
    padding: 0;
  }

  .slider {
    min-height: 378px;
    height: 378px;
  }

  .hero-image {
    min-height: 378px;
    height: 378px;
  }

  .theme-ribbon {
    grid-template-columns: repeat(4, 1fr);
  }

  .list-card-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .list-next {
    display: none;
  }

  .promise-strip {
    grid-template-columns: 1fr;
  }

  .promise-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .promise-strip div:last-child {
    border-bottom: 0;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .matter-project {
    align-items: flex-start;
    flex-direction: column;
  }

  .matter-project hr {
    width: 100%;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 14px;
  }

  .page-frame {
    width: 100%;
    margin: 0;
    border-left: 0;
    border-right: 0;
  }

  .site-header {
    min-height: 0;
  }

  .brand {
    padding: 18px 18px 8px;
    font-size: 4.2rem;
  }

  .primary-nav {
    gap: 6px 18px;
    padding: 8px 14px 18px;
    font-size: 0.76rem;
  }

  .menu-panel {
    display: none;
  }

  .hero {
    min-height: 392px;
    height: 392px;
  }

  .hero-copy {
    left: 20px;
    width: calc(100% - 40px);
    padding: 0;
    background: transparent;
  }

  h1 {
    margin-bottom: 14px;
    font-size: 1.95rem;
  }

  .hero-copy p {
    margin-bottom: 18px;
    font-size: 0.98rem;
  }

  .button {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.68rem;
  }

  .slider {
    min-height: 392px;
    height: 392px;
  }

  .hero-image {
    min-height: 392px;
    height: 392px;
  }

  .slider-arrow {
    width: 30px;
    height: 30px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .slider-dots {
    bottom: 20px;
  }

  .theme-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }

  .theme-ribbon a {
    min-height: 70px;
  }

  .popular-lists {
    padding: 30px 20px 34px;
  }

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

  .list-card-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .list-card {
    min-height: 320px;
  }

  .promise-strip div {
    grid-template-columns: 58px 1fr;
    padding: 26px 22px;
  }

  .line-icon {
    width: 42px;
    height: 42px;
  }

  .newsletter {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .newsletter form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 32px 22px 44px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}
