:root {
  color-scheme: light dark;
  --ink: #102d48;
  --muted: #345772;
  --surface: #fafcff;
  --quiet: #edf6fd;
  --rule: #c8deee;
  --sky-top: #c0e7ff;
  --sky-bottom: #eaf8ff;
  --art-top: #7cc6f1;
  --art-bottom: #d7effe;
  --cloud: #ffffffa8;
  --action: #075780;
  --focus: #115386;
  --selection: #d4e9fa;
  --shot-edge: #f8fcff;
  --shadow: 0 20px 40px #123b6233, 0 4px 12px #123b6226;
  --measure: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(2.5rem, 6vw, 5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f8ff;
    --muted: #bfd4e8;
    --surface: #101e31;
    --quiet: #152940;
    --rule: #37526e;
    --sky-top: #172f50;
    --sky-bottom: #203c5c;
    --art-top: #284d78;
    --art-bottom: #1b3354;
    --cloud: #597aa66b;
    --action: #aee1ff;
    --focus: #b9e4ff;
    --selection: #345777;
    --shot-edge: #bcd3e8;
    --shadow: 0 20px 40px #050c1e66, 0 4px 12px #050c1e4d;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font: 1rem/1.6 system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  overflow-wrap: anywhere;
}

:lang(ko) {
  word-break: keep-all;
}

::selection {
  background: var(--selection);
  color: var(--ink);
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.18;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.025em;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--action);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(calc(100% - 2 * var(--gutter)), var(--measure));
  margin-inline: auto;
}

.skip {
  position: absolute;
  z-index: 1;
  top: 1rem;
  left: var(--gutter);
  padding: 0.625rem 1rem;
  background: var(--surface);
  transform: translateY(-180%);
}

.skip:focus {
  transform: none;
}

.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.masthead-inner,
.home,
.languages {
  display: flex;
  align-items: center;
}

.masthead-inner {
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4.25rem;
}

.home,
.languages a {
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.home {
  gap: 0.5rem;
  font-weight: 750;
}

.home img {
  object-fit: contain;
}

.languages {
  gap: 0.25rem;
}

.languages a {
  display: grid;
  align-items: center;
  padding-inline: 0.75rem;
  font-size: 0.875rem;
  border-radius: 2rem;
  white-space: nowrap;
}

.languages a[aria-current="page"] {
  background: var(--quiet);
  font-weight: 750;
}

.home:hover,
.languages a:hover,
.footer a:hover {
  text-decoration-thickness: 2px;
  text-decoration-line: underline;
}

.hero {
  background: linear-gradient(165deg, var(--sky-top), var(--sky-bottom) 76%);
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 5.3vw, 4.25rem);
}

.app-icon {
  width: clamp(4rem, 7vw, 5.25rem);
  height: auto;
  border-radius: 24%;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

h1 {
  font-size: clamp(2.125rem, 5.4vw, 4.5rem);
  font-weight: 820;
  letter-spacing: -0.04em;
}

h1 span {
  display: block;
}

.intro {
  margin-top: 1rem;
  font-size: clamp(1.125rem, 2.15vw, 1.375rem);
  color: var(--muted);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-block: 1.5rem 1rem;
}

.stores a {
  border-radius: 0.375rem;
}

.stores img {
  width: auto;
  height: 44px;
}

.availability {
  font-size: 0.9375rem;
  color: var(--muted);
}

.hero-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(1rem, 3.7vw, 2.75rem);
  border-radius: 2rem;
  background: linear-gradient(25deg, var(--art-bottom), var(--art-top));
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  z-index: -1;
  content: "";
  width: 62%;
  height: 18%;
  border-radius: 50%;
  background: var(--cloud);
  filter: blur(16px);
}

.hero-art::before {
  left: -23%;
  top: 26%;
}

.hero-art::after {
  right: -25%;
  bottom: 21%;
}

.hero-shot {
  width: clamp(12.5rem, 23.5vw, 16rem);
  height: auto;
  border: 3px solid var(--shot-edge);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.features {
  padding-block: var(--section-space);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.feature {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

.feature h3 {
  font-size: 1.25rem;
  text-wrap: pretty;
}

.feature p {
  margin-top: 0.5rem;
  color: var(--muted);
  text-wrap: pretty;
}

.gallery {
  padding-block: var(--section-space);
  background: var(--quiet);
  border-block: 1px solid var(--rule);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.shot-grid img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--rule);
}

.footer {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 2rem;
  font-size: 0.875rem;
}

.footer h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer address {
  font-style: normal;
}

.company,
.policies dt {
  color: var(--muted);
}

.policies {
  display: grid;
  gap: 0.5rem;
}

.policies div {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
}

.policies dd {
  display: flex;
  column-gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 62rem) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr);
  }
}

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

  .hero-grid {
    padding-block: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .hero-art {
    border-radius: 1.5rem;
  }

  .hero-shot {
    width: min(61%, 14rem);
  }

  .shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
