:root {
  color-scheme: light;
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: #fafafa;
  color: #2c2c2c;
  --header-grid: minmax(0, 1fr) repeat(4, max-content);
  --header-gap: clamp(18px, 3vw, 48px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  background: #fafafa;
  color: #2c2c2c;
}

.landing-page {
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}

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

button {
  font: inherit;
}

.site-header {
  display: grid;
  grid-template-columns: var(--header-grid);
  column-gap: var(--header-gap);
  align-items: flex-start;
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: 32px 0;
}

.site-title {
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.site-title:hover {
  opacity: 0.65;
}

.site-title:focus-visible {
  outline: 1px solid #2c2c2c;
  outline-offset: 4px;
}

nav {
  display: contents;
  font-size: 1rem;
  font-weight: 400;
}

nav a {
  transition: opacity 160ms ease;
}

nav a:hover,
nav a:focus-visible,
footer a:hover,
footer a:focus-visible {
  opacity: 0.55;
}

main,
footer {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
}

.section {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) minmax(0, 5fr);
  padding: clamp(96px, 13vw, 190px) 0;
  border-bottom: 1px solid rgba(44, 44, 44, 0.18);
}

.intro {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100svh - 97px);
  padding: 0;
}

.intro__visual {
  display: grid;
  place-items: center;
  width: clamp(180px, min(41.54vw, 38.86vh), 395px);
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  margin: 0;
}

.intro__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.intro__visual img.is-visible {
  opacity: 1;
}

.intro__meta-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: var(--header-grid);
  column-gap: var(--header-gap);
  align-items: end;
  padding-bottom: clamp(42px, 6vh, 80px);
  pointer-events: none;
}

.intro__description {
  grid-column: 4 / 6;
  margin: 0;
  color: #2c2c2c;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}

.section-number {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

h2,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(2.3rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
}

.system {
  display: block;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) 2fr 3fr;
  gap: 24px;
  align-items: start;
  margin-bottom: clamp(64px, 10vw, 132px);
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading > p:last-child {
  max-width: 440px;
  line-height: 1.7;
}

.element-list {
  border-top: 1px solid rgba(44, 44, 44, 0.18);
}

.element {
  border-bottom: 1px solid rgba(44, 44, 44, 0.18);
}

.element__button {
  display: grid;
  grid-template-columns: minmax(50px, 1fr) 2fr 2fr auto;
  gap: 24px;
  align-items: center;
  width: 100%;
  min-height: 180px;
  padding: 28px 0;
  border: 0;
  background: #fafafa;
  color: #2c2c2c;
  text-align: left;
  cursor: pointer;
}

.element__button:hover,
.element__button:focus-visible {
  background: #2c2c2c;
  color: #fafafa;
  outline: 0;
}

.element__index {
  font-size: 0.72rem;
}

.element__name {
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  letter-spacing: -0.05em;
}

.element__mark {
  padding-right: 20px;
  font-size: 1.8rem;
  transition: transform 180ms ease;
}

.element__button[aria-expanded="true"] .element__mark {
  transform: rotate(45deg);
}

.shape {
  display: block;
  width: 88px;
  height: 88px;
  background: currentColor;
}

.shape--fire {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.shape--water {
  border-radius: 50%;
}

.shape--air {
  width: 100px;
  height: 44px;
  background: repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 10px);
}

.shape--earth {
  transform: rotate(45deg) scale(0.72);
}

.element__description {
  padding: 30px 20px 52px calc(20% + 24px);
}

.element__description p {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  line-height: 1.6;
}

.placeholder-section > div {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.placeholder-section h2,
.placeholder-section p {
  margin-bottom: 0;
}

.placeholder-section p {
  max-width: 420px;
  line-height: 1.7;
}

.status {
  justify-self: end;
  padding: 8px 12px;
  font-size: 0.72rem;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 30px 0 64px;
  font-size: 0.75rem;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: calc(100% - 32px);
  }

  .site-header {
    display: block;
    padding: 22px 0;
  }

  nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
    margin-top: 36px;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 88px 0;
  }

  .intro {
    display: grid;
    place-items: center;
    min-height: calc(100svh - 145px);
    padding: 0;
  }

  .intro__visual {
    width: clamp(180px, 67%, 308px);
    height: auto;
    min-height: 0;
  }

  .intro__meta-grid {
    grid-template-columns: 1fr;
    padding-bottom: 28px;
  }

  .intro__description {
    grid-column: 1;
    font-size: 0.9375rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 64px;
  }

  .element__button {
    grid-template-columns: 32px 72px 1fr auto;
    gap: 12px;
    min-height: 124px;
  }

  .shape {
    width: 58px;
    height: 58px;
  }

  .shape--air {
    width: 62px;
    height: 34px;
  }

  .element__mark {
    padding-right: 4px;
  }

  .element__description {
    padding: 24px 12px 40px 44px;
  }

  .placeholder-section > div {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .status {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .element__mark {
    transition: none;
  }

  .intro__visual img {
    transition: none;
  }

  nav a {
    transition: none;
  }

  .site-title {
    transition: none;
  }
}
