:root {
  --background: #ffffff;
  --text: #2d1d19;
  --muted: #8a817d;
  --line: #e9e5e2;
  --soft-background: #f5f3f1;
  --page-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--background);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
}

.page {
  width: min(calc(100% - 48px), var(--page-width));
  margin: 0 auto;
}

.hero {
  min-height: 74vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 88px 0 72px;
  text-align: center;
}

.logo-link {
  display: block;
  line-height: 0;
  transition: opacity 180ms ease;
}

.logo-link:hover,
.logo-link:focus-visible {
  opacity: 0.72;
}

.logo {
  display: block;
  width: min(830px, 88vw);
  height: auto;
}

.tagline {
  margin: 42px 0 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
}

.products {
  padding: 88px 0 108px;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin: 0 0 42px;
}

.section-heading h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.product-category + .product-category {
  margin-top: 76px;
}

.category-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.category-heading h3 {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0;
}

.category-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.product-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(280px, 31vw, 360px);
  gap: 28px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 0 22px;
  scroll-padding-inline: 2px;
  scroll-snap-type: inline mandatory;
}

.product-row:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 8px;
}

.product-row::-webkit-scrollbar {
  height: 8px;
}

.product-row::-webkit-scrollbar-track {
  background: var(--soft-background);
}

.product-row::-webkit-scrollbar-thumb {
  background: #c9c0ba;
}

.product-card {
  min-width: 0;
  scroll-snap-align: start;
}

.carousel {
  position: relative;
  overflow: hidden;
  background: var(--soft-background);
}

.pending-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 43 / 55;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.32)),
    var(--soft-background);
}

.pending-visual img {
  width: min(52%, 190px);
  height: auto;
  opacity: 0.92;
}

.slides {
  position: relative;
  aspect-ratio: 43 / 55;
}

.slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.slide[hidden] {
  display: none;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.slide:hover img {
  transform: scale(1.012);
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 18px rgba(45, 29, 25, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  background: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.carousel-button span {
  display: block;
  margin-top: -4px;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
}

.previous {
  left: 18px;
}

.next {
  right: 18px;
}

.carousel-counter {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  min-width: 64px;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(45, 29, 25, 0.72);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.counter-divider {
  opacity: 0.55;
}

.product-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 2px 0;
}

.product-info h3 {
  min-width: 0;
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
}

.product-info h3 a,
.shop-link {
  transition: opacity 180ms ease;
}

.product-info h3 a:hover,
.product-info h3 a:focus-visible,
.shop-link:hover,
.shop-link:focus-visible {
  opacity: 0.58;
}

.shop-link {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  white-space: nowrap;
}

.shop-link--pending {
  cursor: default;
}

.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-item {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 34px;
  font-style: normal;
  transition: background-color 180ms ease;
}

.contact-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.contact-item:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

a.contact-item:hover,
a.contact-item:focus-visible {
  background: #faf9f8;
}

.label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.value {
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.footer {
  width: min(calc(100% - 48px), var(--page-width));
  margin: 0 auto;
  padding: 28px 0 34px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.11em;
}

.mobile-break {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .page,
  .footer {
    width: min(calc(100% - 28px), var(--page-width));
  }

  .hero {
    min-height: 68vh;
    padding: 68px 0 54px;
  }

  .logo {
    width: min(92vw, 640px);
  }

  .tagline {
    font-size: 17px;
    margin-top: 30px;
  }

  .mobile-break {
    display: initial;
  }

  .products {
    padding: 64px 0 76px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .product-category + .product-category {
    margin-top: 58px;
  }

  .category-heading {
    margin-bottom: 18px;
  }

  .category-heading h3 {
    font-size: 24px;
  }

  .product-row {
    grid-auto-columns: minmax(248px, 82vw);
    gap: 16px;
    padding-bottom: 18px;
  }

  .carousel-button {
    width: 42px;
    height: 42px;
  }

  .carousel-button span {
    font-size: 31px;
  }

  .previous {
    left: 12px;
  }

  .next {
    right: 12px;
  }

  .carousel-counter {
    right: 12px;
    bottom: 12px;
  }

  .product-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 18px;
  }

  .product-info h3 {
    font-size: 21px;
  }

  .shop-link {
    font-size: 11px;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact-item {
    min-height: 118px;
    padding: 25px 21px;
  }

  .value {
    font-size: 15px;
  }

  .contact-item:nth-child(odd) {
    border-right: 0;
  }

  .contact-item:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .footer {
    padding-bottom: 26px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: reveal 700ms ease both;
  }

  .hero .tagline {
    animation-delay: 90ms;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide img,
  .carousel-button {
    transition: none;
  }
}
