@import url(./fonts.css);

/* utiles */
.a11y-hidden {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}

:root {
  --main-bg-color: #f2e9d8;
  --dark-bg-color: #263140;
  --icon-bg-color: #f29d52;
  --primary-color: #d97652;

  --text-black: #000;
  --text-gray: #767676;
  --text-white: #fff;
}

/* 공통 */
* {
  box-sizing: border-box;
  line-height: 100%;
}
*:focus-visible {
  outline: 1px solid var(--primary-color);
}

button {
  cursor: pointer;
}

html {
  font-size: 10px;
}

body {
  font-size: 1.6rem;
  font-family: "SpoqaHanSansNeo-Regular", sans-serif;
  color: var(--text-black);
}

a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background-color: inherit;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

[class*="title"] {
  font-family: "SpoqaHanSansNeo-Bold", sans-serif;
  font-weight: 700;
  font-size: max(2.4rem, 5vw);
  line-height: 1.2;
}

[class*="desc"] {
  font-weight: 400;
  font-size: max(1.4rem, 2.5vw);
  line-height: 1.2;
}

[class$="__btn"] {
  color: var(--text-white);

  background-color: var(--primary-color);
  padding: 1.1rem 2.4rem;
  border-radius: 4rem;

  font-family: "SpoqaHanSansNeo-Bold", sans-serif;
  font-weight: 700;
}

[class$="__img"] {
  width: 100%;
  border-radius: 1.8rem;
  box-shadow: 10px 10px 20px 0 rgba(0, 0, 0, 0.25);
}

/* ========== header ========== */
.header {
  padding: 2.4rem 2rem;
  background-color: var(--main-bg-color);

  position: sticky;
  top: 0;
  z-index: 100;

  display: flex;
  justify-content: space-between;
}

/* header - logo */
.header__logo img {
  width: 9.2rem;
  aspect-ratio: 92/28;
}

/* header - nav */
.nav__btn--open,
.nav__btn--close {
  width: 3.2rem;
  height: 3.2rem;
}

.header__nav {
  background-color: var(--dark-bg-color);
  padding: 2.2rem 2rem;
  width: 70vw;
  height: 100vh;
  visibility: hidden;

  position: fixed;
  top: 0;
  right: -100%;
  transition: 1s;

  color: var(--text-white);
}

.header__nav-bg {
  display: none;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  background-color: rgba(0, 0, 0, 0.7);
}

.open-nav {
  visibility: visible;
  right: 0;
}

.open-nav-bg {
  display: block;
}

.nav__list {
  margin-top: 5.6rem;

  display: flex;
  flex-direction: column;
  gap: 1rem;

  font-weight: 700;
}

.nav__item {
  margin-left: 2rem;
}

.nav__item a {
  padding: 1rem;
}

.nav__btn--download {
  font-size: 1.4rem;
  color: var(--text-white);

  margin-top: 4rem;
  background-color: var(--primary-color);
  padding: 1.1rem 2.4rem;
  border-radius: 4rem;
}

/* ========== main ========== */
/* main - intro */
.intro {
  background-color: var(--main-bg-color);
  padding: 4rem 5.8rem 0;

  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;

  overflow: hidden;
}

.intro::after {
  content: "";
  display: block;
  width: max(19.7rem, 40vw);
  height: max(42.2rem, 60vw);
  background: url(../images/box-cat.png) no-repeat center 6rem / contain;
  margin-top: -3rem;
}

.intro__title--mobile {
  display: block;
}

.intro__text {
  width: max(28rem, 50vw);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

/* main - inform */
.inform {
  padding: 4rem 3.2rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}

.inform__desc {
  margin-top: 2rem;
}

/* main - feature */
.feature {
  margin-top: 6rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;

  text-align: center;
}

.feature > * {
  padding: 0 3.2rem;
}

.feature__title,
.feature__desc strong {
  color: var(--primary-color);
}

.feature__desc {
  margin-top: 3rem;
}

.feature__desc strong {
  font-weight: 700;
}

.feature__wrap {
  margin-top: 4rem;
  padding-bottom: 3rem;

  width: 100%;
  overflow-x: scroll;
}

.feature__imgs {
  align-self: self-start;

  display: flex;
  gap: 2rem;
  width: max-content;
}

.feature__item {
  width: 26rem;
}

.feature__post {
  margin-top: 3rem;

  display: flex;
  flex-direction: column;
  gap: 3rem;

  align-items: center;
}

.feature__text {
  text-align: left;
  line-height: 1.2;
}

.more__btn {
  align-self: flex-end;
}

/* main - subscribe */
.subscribe {
  margin: 5rem 3.2rem 0;
  border-radius: 1.8rem;
  padding: 3.6rem 3.2rem 3rem;
  background-color: var(--dark-bg-color);

  color: var(--text-white);

  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 3rem;
}

.subscribe__desc {
  margin-top: 2rem;
}

.subscribe__form {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 2rem;
}

.subscribe__input-wrap {
  font-size: 1.2rem;

  width: 100%;
  padding: 0.6rem;
  padding-left: 4.8rem;
  border-radius: 6rem;
  background-color: var(--text-white);

  position: relative;
}

.subscribe__input-wrap::before {
  content: "";
  display: inline-block;
  width: 1.8rem;
  height: 1.8rem;
  background: url(../images/mail.svg) no-repeat center / contain;
  position: absolute;
  top: 50%;
  left: 1.6rem;
  transform: translateY(-50%);
}

.subscribe__input {
  width: 100%;
  border: none;
  border-radius: 0 20px 20px 0;
  padding: 0.6rem 0;
}

.subscribe__input::placeholder {
  color: var(--text-gray);
}

.subscribe__btn:disabled {
  background-color: var(--text-gray);

  cursor: auto;
}

/* ========== footer ========== */
.footer__cont-wrap {
  padding: 3rem 2rem 2.4rem;

  display: flex;
  justify-content: space-between;
}
.footer::before {
  content: "";
  display: block;
  width: 100%;
  height: 24rem;
  background: url(../images/footer-bg.png) no-repeat center / cover;
  margin-top: -3.6rem;
}

.footer__cont {
  display: flex;
  flex-direction: column;
  gap: 5.8rem;
}

.footer__logo img {
  width: 11.2rem;
  aspect-ratio: 112/34;
}

.sns {
  display: flex;
  gap: 1.6rem;
}

.sns__link {
  background-color: var(--icon-bg-color);
  padding: 0.6rem;
  border-radius: 50%;

  display: flex;
  justify-content: center;
  align-items: center;
}

.sns__link img {
  width: 1.8rem;
  height: 1.8rem;
}

.footer__nav ul {
  text-align: right;
  font-size: 1.4rem;
  color: var(--text-gray);

  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.footer__nav a {
  padding: 0.2rem;
}

/* ========== aside ========== */
/* to-top */
.aside {
  display: none;
}

/* ========== modal ========== */
.modal__wrap {
  display: none;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 300;
}

.modal {
  padding: 3rem 5rem;
  background: var(--main-bg-color) url(../images/modal-bg-img.png) no-repeat top
    center / contain;
  border-radius: 3rem;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
  width: max(30rem, calc(100% - 52rem));

  text-align: center;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.open-modal {
  display: block;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal::before {
  content: "";
  display: inline-block;
  width: max(6rem, 7vw);
  height: max(6.2rem, 7.6vw);
  background: url(../images/cat-subscribe.png) no-repeat center top / cover;
}

.modal__title {
  margin-top: 2.4rem;
  color: var(--primary-color);

  font-size: max(2.4rem, 4vw);
}

.modal__desc {
  margin-top: 1rem;

  font-size: max(1.4rem, 2.1vw);
}

.modal__btn {
  margin-top: 2.8rem;
}
