:root {
  color-scheme: light;
  font-family: system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: #182033;
  background: #f4f6fb;
}

* { box-sizing: border-box; }

body { margin: 0; }

main {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 9vw, 7rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  font-weight: 780;
}

.brand span {
  width: .75rem;
  aspect-ratio: 1;
  background: #4051bc;
  border-radius: .2rem;
  transform: rotate(45deg);
}

h1, h2, p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -.06em;
  word-break: keep-all;
}

.intro {
  margin: 1rem 0 0;
  color: #4e586e;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
  word-break: keep-all;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.125rem;
  padding: 0;
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  list-style: none;
}

.card {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: white;
  border: 1px solid #d8dfec;
  border-radius: 1.25rem;
  overflow: hidden;
}

.card:hover { border-color: var(--accent); }
.card:hover .domain { text-decoration: underline; }
.card:focus-visible { outline: .2rem solid var(--accent); outline-offset: .25rem; }

.saju { --wash: #e9e6ff; --accent: #483397; }
.face { --wash: #ffe7e6; --accent: #922f4d; }
.qr { --wash: #d9f5e9; --accent: #00634c; }

.art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 8.75rem;
  overflow: hidden;
  background: var(--wash);
  color: var(--accent);
}

.orbit {
  position: absolute;
  width: 10.5rem;
  height: 3.3rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: rotate(-22deg);
  opacity: .65;
}

.moon {
  width: 4.1rem;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset -.9rem -.55rem 0 currentColor;
  transform: translateX(-.4rem);
}

.star {
  position: absolute;
  top: 25%;
  left: 57%;
  font-size: 1.5rem;
}

.frame {
  position: absolute;
  width: 6.2rem;
  height: 5.5rem;
  border: 1px solid currentColor;
  border-radius: 1rem;
}

.portrait {
  position: relative;
  width: 3.3rem;
  height: 3.8rem;
  border: 2px solid currentColor;
  border-radius: 45% 45% 50% 50%;
}

.portrait::before {
  position: absolute;
  top: 39%;
  left: 27%;
  width: .3rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 1.1rem 0 currentColor;
  content: "";
}

.portrait::after {
  position: absolute;
  left: 35%;
  bottom: 23%;
  width: 30%;
  height: .35rem;
  border-bottom: 2px solid currentColor;
  border-radius: 50%;
  content: "";
}

.qr-symbol {
  width: 1.35rem;
  aspect-ratio: 1;
  transform: translate(-.95rem, -.95rem);
  border: .25rem solid var(--wash);
  outline: .15rem solid currentColor;
  background: currentColor;
  box-shadow: 1.9rem 0 0 -.25rem currentColor, 0 1.9rem 0 -.25rem currentColor,
    1.9rem 0 0 0 var(--wash), 0 1.9rem 0 0 var(--wash),
    1.9rem 0 0 .15rem currentColor, 0 1.9rem 0 .15rem currentColor,
    1.55rem 1.55rem 0 -.42rem currentColor, 2.25rem 1.7rem 0 -.42rem currentColor,
    1.85rem 2.25rem 0 -.42rem currentColor, 2.55rem 2.35rem 0 -.48rem currentColor;
}

.details {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.35rem;
}

h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.03em; }

.details p {
  color: #4e586e;
  line-height: 1.65;
  word-break: keep-all;
  margin: .55rem 0 1.25rem;
}

.domain {
  margin-top: auto;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (max-width: 47rem) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .art { min-height: 7rem; }
}
