:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #212018;
  --muted: #656257;
  --line: #e5e1d6;
  --yellow: #ffe170;
  --display: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-family: var(--display);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #665020; outline-offset: 4px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand, .instagram { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.brand { font-size: 1.13rem; font-weight: 800; letter-spacing: -.065em; }
.brand img { object-fit: contain; border-radius: 50%; }
.instagram {
  min-height: 40px;
  padding: 0 13px;
  font-size: .9rem;
  font-weight: 650;
  border: 1px solid var(--line);
  border-radius: 99px;
}
.instagram:hover { background: var(--paper); border-color: #b4ad9c; }
.instagram-icon { display: inline-block; width: 15px; height: 15px; border: 1.5px solid; border-radius: 4px; position: relative; }
.instagram-icon::before, .instagram-icon::after { content: ""; position: absolute; border-radius: 50%; }
.instagram-icon::before { width: 5px; height: 5px; border: 1.4px solid; inset: 50% auto auto 50%; transform: translate(-50%, -50%); }
.instagram-icon::after { width: 2px; height: 2px; top: 2px; right: 2px; background: currentColor; }

.hero {
  margin-top: 30px;
  min-height: 390px;
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  isolation: isolate;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid #ebcf62;
  background: var(--yellow);
}
.hero-copy { align-self: center; padding: 48px 0 49px 57px; position: relative; z-index: 1; }
.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5.05vw, 4.45rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.095em;
  word-break: keep-all;
}
.hero p { margin: 16px 0 24px; font-size: 1rem; color: #50441b; font-weight: 550; word-break: keep-all; }
.search {
  width: min(100%, 422px);
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 17px;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 4px 0 #b5952d;
}
.search-icon { position: relative; width: 15px; height: 15px; border: 1.8px solid; border-radius: 50%; flex: 0 0 15px; margin: 0 3px 3px 0; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.8px; background: currentColor; transform: rotate(47deg); right: -5px; bottom: -2px; border-radius: 2px; }
.search:focus-within { box-shadow: 3px 4px 0 var(--ink); }
.search input { width: 100%; min-width: 0; flex: 1 1 auto; border: 0; outline: 0; background: #fff; color: var(--ink); font-size: 1rem; }
.search input::placeholder { color: #6d6b61; opacity: 1; }
.search button, .original-post {
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  font-weight: 750;
  white-space: nowrap;
}
.search button:hover, .original-post:hover { background: #474233; }

.hero-photo { position: relative; display: grid; place-items: center; padding: 19px 0; }
.sun {
  position: absolute;
  width: min(85%, 374px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #b89129;
  background: repeating-radial-gradient(circle at 50% 50%, #ffffff00 0 25px, #c297351f 26px 27px);
}
.spark { width: 36px; aspect-ratio: 1; position: absolute; transform: rotate(16deg); }
.spark::before, .spark::after { content: ""; display: block; position: absolute; inset: 0 46%; background: var(--ink); border-radius: 50%; }
.spark::after { transform: rotate(90deg); }
.spark-large { right: 14%; top: 21%; }
.spark-small { width: 22px; left: 14%; bottom: 17%; transform: rotate(32deg); }
.featured {
  position: relative;
  display: block;
  width: clamp(192px, 20.8vw, 257px);
  padding: 8px 8px 0;
  border: 1px solid #27231a;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  box-shadow: 9px 10px 0 #80632133;
  transform: rotate(5deg);
  transition: transform .18s ease;
}
.featured:hover, .featured:focus-visible { transform: rotate(1deg) translateY(-3px); }
.featured-photo { border-radius: 6px 6px 3px 3px; }
.featured-name { display: block; padding: 12px 2px; font-size: .86rem; font-weight: 800; letter-spacing: -.043em; }
.featured-name span { margin-right: 5px; color: #615d51; font-variant-numeric: tabular-nums; }
.featured-tag { display: block; font-size: .78rem; color: #68560e; margin-bottom: 3px; }
.featured { text-align: center; }
.hero:has(.hero-photo[hidden]) { grid-template-columns: 1fr; }
.shop-banner { margin-top: 22px; }
.banner-slides { display: grid; gap: 8px; }
.banner-slides img { width: 100%; aspect-ratio: 3 / 1; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.banner-controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; font-size: .88rem; }
.banner-controls button { color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; min-height: 36px; }

.catalog { padding: 35px 0 44px; scroll-margin-top: 16px; }
.catalog-header, .catalog-title { display: flex; align-items: center; gap: 12px; }
.catalog-header { justify-content: space-between; margin-bottom: 17px; }
.catalog h2 { margin: 0; font-size: 1.58rem; font-weight: 850; letter-spacing: -.065em; }
.result-count { font-size: .91rem; color: var(--muted); white-space: nowrap; }
.sort { position: relative; white-space: nowrap; }
.sort::after { content: ""; position: absolute; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; right: 14px; top: 42%; transform: rotate(45deg); pointer-events: none; }
.sort select { appearance: none; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; min-height: 42px; max-width: 100%; padding: 0 30px 0 11px; font-size: .88rem; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.product:hover, .product:focus-visible { border-color: #b0a78f; box-shadow: 0 9px 23px #211d1311; }
.product-image, .featured-photo, .preview-photo {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; width: 100%; overflow: hidden; background: #fff;
}
.product-image img, .featured-photo img, .preview-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
.photo-placeholder { color: var(--muted); font-size: .85rem; text-align: center; }
.product-number {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 5px 8px;
  font-size: .82rem;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px #0001;
}
.product-info { width: 100%; min-height: 67px; display: flex; align-items: center; justify-content: space-between; padding: 11px 17px; gap: 12px; }
.product-name { font-size: 1.08rem; font-weight: 800; letter-spacing: -.052em; word-break: keep-all; }
.product-action { white-space: nowrap; color: #564708; background: #fff2b9; border-radius: 7px; font-size: .85rem; font-weight: 750; padding: 7px 10px; }
.empty { border: 1px dashed #bfb9ab; border-radius: 16px; padding: 37px 12px; text-align: center; color: var(--muted); }
.empty p { margin: 0 0 12px; }
.empty button { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 0 13px; }
.footer { display: flex; justify-content: space-between; gap: 12px; padding: 20px 0 32px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

.preview { border: 0; border-radius: 19px; width: min(450px, calc(100% - 32px)); max-height: calc(100% - 24px); padding: 0; color: var(--ink); }
.preview::backdrop { background: #191815aa; }
.preview .close { position: absolute; z-index: 1; top: 9px; right: 9px; width: 44px; height: 44px; font-size: 1.6rem; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); }
.preview-copy { padding: 21px 24px 24px; }
.preview-copy h2 { margin: 4px 0 12px; line-height: 1.3; font-size: 1.5rem; letter-spacing: -.055em; }
.preview-copy p { margin: 0 0 15px; color: var(--muted); line-height: 1.55; }
.preview-copy .preview-number { margin: 0; font-size: .85rem; font-weight: 800; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 44px); }
  .hero-copy { padding-left: 34px; padding-right: 9px; }
}

@media (max-width: 660px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { min-height: 61px; }
  .brand { font-size: 1rem; gap: 7px; }
  .brand img { width: 34px; height: 34px; }
  .instagram { padding-inline: 10px; min-height: 36px; font-size: .81rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; margin-top: 14px; border-radius: 17px; }
  .hero-copy { padding: 27px 18px 24px; }
  .hero h1 { font-size: clamp(2.1rem, 10.2vw, 3.2rem); letter-spacing: -.086em; }
  .hero p { margin: 12px 0 17px; font-size: .94rem; }
  .hero-photo { display: block; padding: 0 18px 18px; }
  .hero-photo .sun, .hero-photo .spark { display: none; }
  .hero-copy:has(+ .hero-photo:not([hidden])) { padding-bottom: 15px; }
  .featured, .featured:hover, .featured:focus-visible { display: flex; gap: 10px; align-items: center; width: 100%; padding: 5px 10px 5px 5px; text-align: left; transform: none; box-shadow: none; border-color: #bba145; border-radius: 10px; }
  .featured-photo { width: 44px; flex: 0 0 44px; border-radius: 6px; }
  .featured-name { padding: 0; }
  .featured-tag { margin: 0 0 1px; }
  .shop-banner { margin-top: 14px; }
  .search { width: 100%; min-height: 54px; gap: 9px; padding-left: 11px; box-shadow: 2px 3px 0 #b5952d; }
  .search button { padding-inline: 13px; min-height: 40px; }
  .catalog { padding-top: 23px; padding-bottom: 27px; }
  .catalog-header { gap: 8px; margin-bottom: 11px; }
  .catalog-title { gap: 7px; }
  .catalog h2 { font-size: 1.28rem; }
  .result-count { font-size: .84rem; }
  .sort select { min-height: 37px; padding-left: 8px; padding-right: 22px; font-size: .81rem; max-width: 147px; }
  .sort::after { right: 9px; }
  .products { gap: 9px; }
  .product { border-radius: 11px; }
  .product-number { top: 7px; left: 7px; padding: 4px 5px; font-size: .77rem; }
  .product-info { align-items: flex-start; flex-direction: column; justify-content: space-between; min-height: 91px; padding: 9px 8px; gap: 7px; }
  .product-name { font-size: .97rem; line-height: 1.35; }
  .product-action { font-size: .82rem; padding: 4px 7px; }
  .footer { padding-block: 14px 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
