:root {
  --accent: #d3484c;
  --ink: #3d3d3f;
  --muted: #777;
  --line: #ececec;
  --rail: 80px;
  --page: 1016px;
  --left: 152px;
}

@font-face {
  font-family: "Unicorn NanumSquare";
  src: url("/assets/nanumsquare-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #fff;
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px;
}

body {
  min-height: 100vh;
  margin: 0;
  padding-right: var(--rail);
  font-weight: 300;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 var(--rail) 0 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 201px,
      var(--line) 201px,
      var(--line) 202px
    );
  background-position-x: max(0px, calc((100vw - var(--page)) / 2));
  z-index: -1;
}

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

.site {
  min-height: 820px;
  width: min(100%, var(--page));
  margin-left: max(0px, calc((100vw - var(--page)) / 2));
  position: relative;
  padding-bottom: 72px;
  border-left: 1px solid var(--line);
}

.brand {
  position: absolute;
  top: 32px;
  left: 20px;
  color: #e13a44;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: 3px;
  font-weight: 400;
}

.nav {
  position: absolute;
  top: 56px;
  left: 420px;
  display: flex;
  gap: 32px;
  align-items: center;
  color: #888;
  font-size: 13px;
  font-weight: 400;
}

.nav a.active,
.nav a:hover {
  color: #e13a44;
}

.menu-toggle {
  display: none;
}

.side-rail {
  position: fixed;
  inset: 0 0 0 auto;
  width: var(--rail);
  background: var(--accent);
  z-index: 10;
}

.rail-product,
.rail-mail {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 700;
}

.rail-product {
  top: 36px;
  width: 34px;
  height: 34px;
}

.rail-product img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.rail-mail {
  bottom: 38px;
  width: 26px;
  height: 18px;
}

.mail-icon {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.main {
  padding-left: 20px;
}

.home {
  padding-top: 392px;
}

.home-title {
  margin: 0;
  color: #3f3f41;
  font-size: 54px;
  line-height: 1.35;
  font-weight: 300;
}

.home-title strong {
  display: block;
  color: var(--accent);
  font-weight: 400;
}

.home-sub {
  margin: 70px 0 0 4px;
  color: #747474;
  font-size: 20px;
  letter-spacing: .5px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 0 8px;
  color: #e13a44;
  font-size: 15px;
  font-weight: 400;
}

.arrow-icon {
  display: block;
  width: 34px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

.page {
  padding-top: 164px;
}

.page-title {
  margin: 0 0 48px;
  font-family: Georgia, "Times New Roman", serif;
  color: #3f3f41;
  font-size: 60px;
  line-height: 1;
  font-weight: 400;
}

.split {
  display: grid;
  grid-template-columns: 260px 1fr;
  column-gap: 142px;
  max-width: 830px;
}

.kicker {
  margin: 0;
  color: #3d3d3f;
  font-size: 24px;
  line-height: 1.55;
  font-weight: 600;
}

.body-copy {
  color: #444;
  font-family: "Unicorn NanumSquare", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  word-break: keep-all;
}

.body-copy p {
  margin: 0 0 28px;
}

.about-row + .about-row {
  margin-top: 84px;
}

.history {
  margin: 0;
  padding-left: 18px;
}

.history li {
  margin: 0 0 8px;
}

.products-intro {
  max-width: 560px;
  margin: 0 0 70px;
  color: #444;
  font-family: "Unicorn NanumSquare", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 22px;
  line-height: 1.65;
  font-weight: 400;
  word-break: keep-all;
}

.product {
  max-width: 785px;
  margin-bottom: 108px;
}

.product-icon {
  display: block;
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
  border-radius: 12px;
}

.product h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 400;
}

.product-desc {
  margin: 0 0 78px;
  max-width: 390px;
  color: #444;
  font-family: "Unicorn NanumSquare", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.platform-group {
  display: contents;
}

.group-title {
  grid-column: span 2;
  margin: 0 0 16px;
  color: #666;
  font-size: 19px;
}

.platform {
  min-width: 0;
}

.platform h3 {
  margin: 0 0 8px;
  color: #555;
  font-size: 15px;
  font-weight: 300;
}

.download {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  height: 44px;
  margin-bottom: 10px;
  background: #f5f5f5;
  color: #555;
  font-size: 15px;
}

.download img {
  width: 24px;
  max-height: 24px;
  justify-self: center;
  filter: grayscale(1) contrast(2.4);
}

.platform p {
  margin: 0;
  color: #8a8a8a;
  font-size: 12px;
  line-height: 1.35;
}

.contact-wrap {
  width: 820px;
  display: grid;
  grid-template-columns: 365px 1fr;
  column-gap: 54px;
  align-items: start;
}

.contact-wrap .page-title,
.contact-wrap .address,
.contact-wrap .contact-form {
  grid-column: 1;
}

.address {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  color: #3f3f41;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 400;
}

.social {
  display: flex;
  gap: 18px;
  margin: 6px 0 36px;
  color: #000;
  font-size: 24px;
  font-weight: 700;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #777;
  border-radius: 0;
  padding: 12px;
  background: transparent;
  color: #333;
  font: inherit;
  font-size: 13px;
  outline: 0;
}

.contact-form textarea,
.contact-form .wide,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form textarea {
  height: 118px;
  resize: vertical;
}

.contact-form button {
  border: 0;
  border-bottom: 1px solid #777;
  background: transparent;
  padding: 4px 0 8px;
  color: #333;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.map-preview {
  display: block;
  grid-column: 2;
  grid-row: 1 / span 4;
  width: 100%;
  height: 443px;
  margin-top: 96px;
  overflow: hidden;
  background: #eef2f1;
  position: relative;
}

.map-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .94);
  color: #2364a0;
  font-family: "Unicorn NanumSquare", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 13px;
  font-weight: 400;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .16);
  z-index: 1;
}

.footer {
  position: absolute;
  left: 20px;
  bottom: 28px;
  color: #9a9a9a;
  font-size: 13px;
}

@media (max-width: 820px) {
  :root {
    --left: 24px;
  }

  body {
    padding-right: 0;
  }

  body::before {
    inset-right: 0;
    background:
      repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc(25vw - 1px),
        var(--line) calc(25vw - 1px),
        var(--line) 25vw
      );
  }

  .site {
    width: auto;
    margin-left: 0;
    min-height: 100vh;
    padding: 0 36px 144px;
    border-left: 0;
  }

  .main,
  .footer {
    padding-left: 0;
  }

  .brand {
    top: 70px;
    left: 31px;
    color: #e13a44;
    font-size: 27px;
    line-height: 1.35;
    letter-spacing: 10px;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    top: 76px;
    right: 60px;
    width: 40px;
    height: 32px;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 30;
    transform-origin: center;
  }

  .menu-toggle span {
    display: block;
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: #111;
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(14.5px) rotate(45deg);
  }

  .menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-14.5px) rotate(-45deg);
  }

  .menu-open .nav {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 20;
    flex-direction: column;
    align-items: flex-end;
    gap: 74px;
    padding: 205px 64px 0 0;
    background: #fff;
    color: #111;
    font-size: 40px;
    box-shadow: none;
  }

  .menu-open .nav a.active {
    color: #ed3341;
  }

  .home {
    padding-top: 356px;
  }

  .home-title {
    font-size: 48px;
    line-height: 1.38;
    font-weight: 400;
    white-space: nowrap;
  }

  .home-title strong {
    font-weight: 500;
  }

  .home-sub {
    margin: 72px 0 0;
    color: #8a8a8a;
    font-size: 27px;
    line-height: 1.25;
    white-space: nowrap;
  }

  .arrow-link {
    gap: 20px;
    margin: 22px 0 0 7px;
    color: #e13a44;
    font-size: 26px;
  }

  .arrow-icon {
    width: 54px;
    height: 32px;
  }

  .page {
    padding-top: 240px;
  }

  .page-title {
    margin-bottom: 76px;
    font-size: 78px;
  }

  .split {
    display: block;
  }

  .kicker {
    margin-bottom: 28px;
    font-size: 38px;
    line-height: 1.55;
  }

  .about-row + .about-row {
    margin-top: 84px;
  }

  .body-copy {
    font-size: 31px;
    line-height: 1.55;
  }

  .body-copy p {
    margin-bottom: 54px;
  }

  .products-intro {
    max-width: 560px;
    margin-bottom: 78px;
    font-size: 36px;
    line-height: 1.55;
  }

  .platforms {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-desc {
    margin-bottom: 66px;
  }

  .product-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 36px;
    border-radius: 18px;
  }

  .product h2 {
    font-size: 48px;
  }

  .product-desc {
    max-width: 560px;
    font-size: 30px;
    line-height: 1.8;
  }

  .platform h3 {
    margin-bottom: 16px;
    font-size: 30px;
  }

  .platform {
    order: 3;
  }

  .platforms > .group-title {
    display: none;
  }

  .platforms > .group-title:first-child {
    display: block;
    grid-column: auto;
  }

  .platforms > .platform:nth-of-type(1) {
    order: 2;
  }

  .platforms > .platform:nth-of-type(2) {
    order: 1;
  }

  .download {
    grid-template-columns: 90px 1fr;
    width: 300px;
    height: 86px;
    font-size: 32px;
  }

  .download img {
    width: 36px;
    max-height: 40px;
  }

  .platform p {
    font-size: 28px;
    line-height: 1.45;
  }

  .contact-wrap {
    width: 100%;
    display: block;
  }

  .address {
    font-size: 43px;
    line-height: 1.35;
  }

  .social {
    gap: 44px;
    margin: 36px 0 48px 14px;
    font-size: 48px;
  }

  .contact-form {
    gap: 34px;
    padding: 0 14px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 18px 24px;
    font-size: 30px;
  }

  .contact-form textarea {
    height: 190px;
  }

  .contact-form button {
    font-size: 30px;
  }

  .footer {
    position: static;
    margin-top: 62px;
    color: #8e8e8e;
    font-size: 25px;
    line-height: 1.25;
    text-align: center;
  }

  .side-rail {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% + 72px);
    height: 104px;
    margin: 390px -36px 0;
    padding: 0 48px;
  }

  .rail-product,
  .rail-mail {
    position: relative;
    left: auto;
    transform: none;
  }

  .rail-product {
    top: auto;
    order: 2;
    width: 44px;
    height: 44px;
  }

  .rail-product img {
    border-radius: 10px;
  }

  .rail-mail {
    bottom: auto;
    order: 1;
    width: 44px;
    height: 28px;
  }

  .map-preview {
    display: block;
    height: 280px;
    margin: 90px 14px 0;
    overflow: hidden;
    background: #eef2f1;
    position: relative;
  }

  .map-preview iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
  }
}

@media (max-width: 520px) {
  .site {
    padding: 0 22px 104px;
  }

  .brand {
    top: 38px;
    left: 22px;
    font-size: 14px;
    letter-spacing: 6px;
  }

  .menu-toggle {
    top: 45px;
    right: 36px;
    width: 34px;
    height: 28px;
  }

  .menu-toggle span {
    width: 34px;
    height: 3px;
    pointer-events: none;
  }

  .menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(12.5px) rotate(45deg);
  }

  .menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-12.5px) rotate(-45deg);
  }

  .menu-open .nav {
    inset: 0;
    gap: 68px;
    padding: 205px 64px 0 0;
    font-size: 34px;
  }

  .home {
    padding-top: 228px;
  }

  .home-title {
    font-size: 34px;
    line-height: 1.35;
  }

  .page-title {
    margin-bottom: 62px;
    font-size: 58px;
  }

  .page {
    padding-top: 150px;
  }

  .kicker {
    font-size: 29px;
  }

  .body-copy {
    font-size: 21px;
    line-height: 1.58;
  }

  .products-intro {
    font-size: 26px;
  }

  .product-icon {
    width: 92px;
    height: 92px;
    margin-bottom: 36px;
    border-radius: 16px;
  }

  .product h2 {
    font-size: 42px;
  }

  .product-desc {
    max-width: none;
    font-size: 21px;
    line-height: 1.65;
  }

  .platform h3 {
    margin-bottom: 16px;
    font-size: 24px;
  }

  .download {
    grid-template-columns: 76px 1fr;
    width: 100%;
    height: 64px;
    font-size: 24px;
  }

  .download img {
    width: 30px;
    max-height: 34px;
  }

  .platform p {
    font-size: 21px;
    line-height: 1.45;
  }

  .address {
    font-size: 36px;
    line-height: 1.35;
  }

  .social {
    gap: 34px;
    margin: 36px 0 48px 14px;
    font-size: 42px;
  }

  .contact-form {
    grid-template-columns: 1fr 1fr;
    gap: 26px 32px;
    padding: 0 14px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 18px 24px;
    font-size: 28px;
  }

  .contact-form textarea {
    height: 190px;
  }

  .contact-form button {
    font-size: 30px;
  }

  .side-rail {
    height: 104px;
    width: calc(100% + 44px);
    margin: 150px -22px 0;
    padding: 0 48px;
  }

  .footer {
    font-size: 25px;
  }

  .map-preview {
    height: 220px;
    margin: 90px 14px 0;
  }

  .map-tabs {
    left: 66px;
    grid-template-columns: 88px 88px;
    height: 58px;
    font-size: 28px;
  }
}
