:root {
  --black: #0a0a0a;
  --lime: #c8ff00;
  --paper: #f4eed4;
  --text-gray: #b8b8b8;
  --page-pad: clamp(40px, 5vw, 84px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: #fff;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  letter-spacing: 0;
}

button,
a {
  font-family: inherit;
}

button {
  cursor: pointer;
}

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

.viewport-shell,
.page {
  width: 100vw;
  background: var(--black);
}

.page {
  overflow-x: clip;
}

.hero {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 57fr) minmax(520px, 43fr);
  background: var(--black);
  overflow: hidden;
}

.hero-intro {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035) 0%, rgba(255, 255, 255, 0) 35%),
    radial-gradient(circle at 72% 74%, rgba(200, 255, 0, .055) 0%, rgba(0, 0, 0, 0) 34%),
    linear-gradient(180deg, #111 0%, #111 42%, #050505 67%, #0a0a0a 100%);
}

.hero-copy {
  position: absolute;
  left: var(--page-pad);
  right: var(--page-pad);
  bottom: 7vh;
  max-width: 720px;
}

.eyebrow {
  margin: 0;
  color: var(--lime);
  font-size: 11.52px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 2.5344px;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 25px 0 0;
  color: #fff;
  font-size: clamp(62px, 4.6vw, 80px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
}

.intro-text {
  margin: 29px 0 0;
  max-width: 640px;
  color: var(--text-gray);
  font-size: 17.28px;
  font-weight: 400;
  line-height: 29.722px;
  letter-spacing: 0;
}

.article-board {
  position: relative;
  height: 100vh;
  padding: clamp(14px, 1.6vh, 18px) 30px clamp(16px, 2vh, 28px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.7vh, 28px) 24px;
  align-content: stretch;
  background: var(--lime);
  color: var(--black);
}

.menu-button {
  position: absolute;
  right: 30px;
  top: 32px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--black);
  font-size: 22.4px;
  font-weight: 900;
  line-height: 22.4px;
}

.flower-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0 0 18px;
}

.card-media {
  position: relative;
  width: 100%;
  height: clamp(160px, 21vh, 260px);
  overflow: hidden;
  background: #000;
}

.card-img {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  max-width: 82%;
  max-height: 88%;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.card-img-chrysanthemum {
  max-width: 52%;
  max-height: 62%;
}

.card-img-rose {
  max-width: 80%;
  max-height: 92%;
}

.card-img-tulip {
  max-width: 72%;
  max-height: 82%;
}

.card-img-pink {
  max-width: 72%;
  max-height: 82%;
}

.flower-card h2 {
  margin: 14px 0 0;
  color: var(--black);
  font-size: 18.72px;
  font-weight: 900;
  line-height: 23.962px;
  letter-spacing: 0;
}

.flower-card p {
  margin: 14px 0 0;
  color: #2b2b2b;
  font-size: 14.4px;
  font-weight: 400;
  line-height: 22.32px;
  letter-spacing: 0;
}

.case-button {
  width: min(232px, 100%);
  height: 42px;
  margin-top: 12px;
  padding: 12px 16px 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.12px;
  font-weight: 900;
  line-height: normal;
  transition: transform .25s ease, background .25s ease;
}

.case-button span:last-child {
  width: 42px;
  color: var(--lime);
  font-size: 19.2px;
  text-align: center;
}

.case-button:hover,
.case-button:focus-visible {
  transform: translateX(6px);
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.old-word {
  margin-top: auto !important;
  padding-top: 22px;
  font-size: 12px !important;
  line-height: 14px !important;
}

.section-nav {
  position: fixed;
  top: 24px;
  right: var(--page-pad);
  z-index: 30;
  width: max-content;
  margin: 0;
  display: flex;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .22s ease, transform .22s ease;
}

body.nav-visible .section-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.section-nav a,
.cycle-tabs button {
  min-width: 74px;
  height: 35px;
  border: 1px solid var(--lime);
  border-radius: 999px;
  background: rgba(10, 10, 10, .86);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  font-size: 12.48px;
  font-weight: 900;
  line-height: normal;
  letter-spacing: 0;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.section-nav a:hover,
.section-nav a.active,
.cycle-tabs button:hover,
.cycle-tabs button.active {
  background: var(--lime);
  color: var(--black);
}

.main-content {
  width: 100vw;
  background: var(--black);
}

.meaning-section {
  width: 100vw;
  height: 100vh;
  padding: clamp(56px, 7vh, 96px) var(--page-pad);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
  gap: 56px;
  align-items: center;
  background: var(--black);
  overflow: hidden;
}

.meaning-copy {
  min-width: 0;
}

.meaning-copy h2 {
  margin: 29.8828125px 0 0;
  max-width: 920px;
  color: #fff;
  font-size: clamp(72px, 5.8vw, 102px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.meaning-desc {
  margin: 25px 0 0;
  max-width: 610px;
  opacity: .74;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 31.5px;
  letter-spacing: 0;
}

.meaning-result {
  margin: clamp(48px, 7vh, 72px) 0 0;
}

.meaning-label {
  margin: 0;
  color: var(--lime);
  font-size: 13.76px;
  font-weight: 700;
  line-height: normal;
}

.meaning-value {
  margin: 12px 0 0;
  color: #fff;
  font-size: 43.2px;
  font-weight: 700;
  line-height: 50.976px;
  letter-spacing: -1.728px;
}

.view-toggle {
  width: 440px;
  height: 63px;
  margin-top: clamp(46px, 7vh, 94px);
  padding: 7px 8px 8px;
  border: 1px solid #333;
  border-radius: 999px;
  background: #1a1a1a;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.view-toggle button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #b7b7b7;
  font-size: 16px;
  font-weight: 900;
  line-height: normal;
}

.view-toggle button.active {
  background: var(--lime);
  color: var(--black);
}

.meaning-visual {
  height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meaning-visual img {
  display: block;
  width: min(92%, 620px);
  height: min(68vh, 620px);
  object-fit: contain;
}

.cycle-section {
  width: 100vw;
  height: 100vh;
  padding: clamp(54px, 8vh, 96px) var(--page-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.cycle-section h2 {
  width: min(1306px, 100%);
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: clamp(42px, 3.2vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.cycle-section h2 span {
  color: var(--lime);
}

.cycle-image {
  display: block;
  width: min(560px, 42vw);
  height: clamp(240px, 34vh, 360px);
  margin: clamp(46px, 7vh, 70px) auto 0;
  object-fit: contain;
  transition: opacity .22s ease, transform .28s ease, filter .28s ease;
  will-change: opacity, transform;
}

.cycle-image.is-changing {
  opacity: .18;
  transform: scale(.94);
  filter: blur(2px);
}

.cycle-caption {
  margin: clamp(22px, 3vh, 28px) 0 0;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -1.28px;
  text-align: center;
}

.cycle-tabs {
  margin-top: clamp(34px, 5vh, 46px);
  display: flex;
  gap: 10px;
}

.cycle-tabs button {
  padding: 0 17px;
}

.message-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  padding: clamp(54px, 7vh, 96px) var(--page-pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
  color: var(--black);
  overflow: hidden;
}

.message-section > .eyebrow {
  color: var(--black);
}

.message-section h2 {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: clamp(22px, 3vh, 34px) 0 0;
  color: var(--black);
  font-size: clamp(68px, 5.7vw, 102px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.message-section h2 strong {
  font-weight: 900;
}

.message-section h2 strong:first-of-type {
  position: relative;
  display: inline-block;
}

.message-section h2 strong:first-of-type::after {
  content: "";
  position: absolute;
  left: -30px;
  top: 52%;
  width: min(914px, calc(100vw - 110px));
  height: 20px;
  background: url("./assets/strike-line.svg") center / 100% 100% no-repeat;
  transform: translateY(-50%);
  pointer-events: none;
}

.strike-line {
  display: none;
}

.message-desc {
  width: min(680px, 100%);
  margin: clamp(44px, 6vh, 86px) 0 0;
  opacity: .74;
  color: var(--black);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.72px;
}

.message-display {
  position: relative;
  width: 100%;
  min-height: 71px;
  margin-top: clamp(24px, 3.5vh, 36px);
  background: var(--black);
}

.message-display p {
  position: absolute;
  left: 24px;
  top: 27px;
  margin: 0;
  color: var(--lime);
  font-size: 13.12px;
  font-weight: 700;
  line-height: normal;
}

.message-display strong {
  min-height: 71px;
  padding: 20px 230px 18px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 21.76px;
  font-weight: 700;
  line-height: 30.464px;
}

.message-filters {
  margin: 12px auto 0;
  display: flex;
  gap: 9.7890625px;
}

.message-filters button {
  height: 33px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--paper);
  color: var(--black);
  padding: 9px 19px;
  font-size: 12.48px;
  font-weight: 900;
  line-height: normal;
  text-align: center;
  transition: background .2s ease, transform .2s ease;
}

.message-filters button:hover,
.message-filters button.active {
  background: var(--lime);
}

@media (min-width: 1441px) {
  .hero-copy h1 {
    font-size: 80px;
    line-height: 83px;
  }

  .hero-copy {
    max-width: 800px;
  }

  .meaning-copy h2,
  .message-section h2 {
    font-size: 102px;
  }

  .meaning-desc,
  .message-desc {
    font-size: 19px;
    line-height: 32px;
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-board {
    min-height: auto;
    padding: 28px var(--page-pad) 48px;
  }

  .meaning-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .meaning-visual {
    min-height: 38vh;
    justify-content: flex-start;
  }

  .meaning-visual img {
    width: min(520px, 86vw);
    height: 420px;
  }

  .message-display strong {
    padding-left: 190px;
    padding-right: 38px;
  }
}

@media (max-width: 780px) {
  :root {
    --page-pad: 24px;
  }

  .hero-copy {
    bottom: 52px;
  }

  .hero-copy h1 {
    font-size: 50px;
    line-height: 54px;
  }

  .intro-text {
    font-size: 16px;
    line-height: 27px;
  }

  .article-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-nav {
    width: calc(100% - 48px);
    margin: -59px 24px 24px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .section-nav::-webkit-scrollbar {
    display: none;
  }

  .meaning-section,
  .cycle-section,
  .message-section {
    min-height: auto;
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .meaning-copy h2,
  .message-section h2 {
    font-size: 52px;
    line-height: 1.12;
    letter-spacing: -2px;
  }

  .meaning-value {
    font-size: 32px;
    line-height: 40px;
  }

  .view-toggle {
    width: 100%;
    margin-top: 52px;
  }

  .cycle-section h2 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .cycle-image {
    width: min(88vw, 430px);
    height: 260px;
    margin-top: 46px;
  }

  .cycle-tabs,
  .message-filters {
    flex-wrap: wrap;
    justify-content: center;
  }

  .message-section h2 strong:first-of-type::after {
    left: -18px;
    width: min(560px, calc(100vw - 40px));
    height: 14px;
  }

  .message-desc {
    margin-top: 52px;
  }

  .message-display p {
    position: static;
    padding: 18px 20px 0;
  }

  .message-display strong {
    min-height: auto;
    padding: 10px 20px 20px;
    justify-content: flex-start;
    text-align: left;
    font-size: 18px;
    line-height: 27px;
  }
}
