* {
  box-sizing: border-box;
}

:root {
  --bg: #090a0a;
  --white: #f7f7f7;
  --purple: #ff00ff;
  --purple-dark: #17001c;
  --accent: #ffad24;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(5, 6, 6, .90), rgba(5, 6, 6, .90)),
    url("assets/pattern.jpg") center top / 520px 520px repeat;
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
}

.page {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0 32px;
}

.brand-area {
  display: flex;
  justify-content: center;
  text-align: center;
}

.logo {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.logo-main {
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -3px;
  text-shadow: 0 4px 25px rgba(255, 255, 255, .05);
}

.logo-main span {
  color: var(--accent);
}

.logo-sub {
  margin-top: 7px;
  font-size: clamp(13px, 1.6vw, 21px);
  font-weight: 900;
  letter-spacing: -.6px;
}

.hashtag {
  margin-top: 9px;
  color: var(--purple);
  font-size: clamp(13px, 1.55vw, 20px);
  font-weight: 900;
}

.title-strip {
  margin: 28px auto 70px;
  max-width: 1040px;
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 10px 20px;
  background:
    linear-gradient(90deg,
      #0b0010 0%,
      #8a0097 24%,
      #ff00ff 50%,
      #8a0097 76%,
      #0b0010 100%);
  color: white;
  font-size: clamp(18px, 2.3vw, 30px);
  font-weight: 900;
  text-align: center;
  box-shadow: 0 0 28px rgba(255, 0, 255, .12);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 66px;
  max-width: 1160px;
  margin: 0 auto;
}

.theme-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  transition: transform .25s ease, filter .25s ease;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}

.theme-card:hover {
  transform: translateY(-5px) scale(1.008);
  filter: brightness(1.06);
}

.theme-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}

.theme-button {
  display: grid;
  place-items: center;
  text-decoration: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  background: rgba(0,0,0,.36);
  color: white;
  font: 900 17px "Montserrat", sans-serif;
  letter-spacing: .4px;
  cursor: pointer;
  transition: opacity .2s ease;
}

.theme-card:hover .theme-button,
.theme-card:focus-within .theme-button {
  display: grid;
  place-items: center;
  text-decoration: none;
  opacity: 1;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #777;
  font-size: 10px;
  padding: 45px 4px 0;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: .2s ease;
  z-index: 10;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  width: min(440px, 100%);
  padding: 32px;
  position: relative;
  background: #111;
  border: 1px solid #363636;
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
}

.modal-label {
  color: var(--purple);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .15em;
}

.modal h2 {
  margin: 10px 0;
  font-size: 42px;
}

.modal p {
  color: #999;
  font-size: 13px;
  line-height: 1.7;
}

.close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  color: #aaa;
  font-size: 30px;
  cursor: pointer;
}

.modal-action {
  width: 100%;
  border: 0;
  padding: 14px;
  background: linear-gradient(90deg, #bd00c9, #ff00ff);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 900px) {
  .page {
    width: min(100% - 28px, 720px);
    padding-top: 42px;
  }

  .title-strip {
    margin-bottom: 58px;
  }

  .theme-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 620px;
  }

  .theme-card {
    border-radius: 22px;
  }

  .theme-button {
  display: grid;
  place-items: center;
  text-decoration: none;
    opacity: 0;
  }
}

@media (max-width: 560px) {
  .page {
    width: calc(100% - 28px);
    padding-top: 38px;
  }

  .logo-main {
    font-size: 45px;
    letter-spacing: -2px;
  }

  .logo-sub {
    font-size: 14px;
  }

  .hashtag {
    font-size: 14px;
  }

  .title-strip {
    margin: 25px 0 62px;
    min-height: 48px;
    padding: 8px 12px;
    font-size: 18px;
  }

  .theme-grid {
    gap: 42px;
  }

  .theme-card {
    border-radius: 18px;
  }

  footer {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 390px) {
  .page {
    width: calc(100% - 22px);
  }

  .logo-main {
    font-size: 39px;
  }

  .title-strip {
    font-size: 16px;
  }

  .theme-grid {
    gap: 30px;
  }
}