:root {
  --ink: #171711;
  --paper: #f2efe6;
  --paper-bright: #faf8f2;
  --muted: #716f66;
  --line: rgba(23, 23, 17, 0.2);
  --citron: #d9ff43;
  --coral: #ff765e;
  --white: #ffffff;
  --container: min(1220px, calc(100vw - 48px));
  --display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial,
    sans-serif;
  --body: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial,
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  translate: 0 -150%;
  color: var(--white);
  background: var(--ink);
}

.skip-link:focus {
  translate: 0;
}

.preview-bar {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 18px;
  color: var(--ink);
  background: var(--citron);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 max(24px, calc((100vw - 1220px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(242, 239, 230, 0.92);
  backdrop-filter: blur(14px);
}

.wordmark {
  font-family: var(--display);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}

.site-header nav a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  scale: 0 1;
  transform-origin: right;
  transition: scale 180ms ease;
}

.site-header nav a:hover::after {
  scale: 1;
  transform-origin: left;
}

.external-link {
  padding: 9px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.hero {
  display: grid;
  width: var(--container);
  min-height: calc(100vh - 110px);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 124px) 0 60px;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  grid-template-rows: 1fr auto;
  gap: 60px 56px;
}

.hero__copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 6vw, 6.4rem);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 1.12;
  word-break: keep-all;
}

.hero h1 span {
  display: inline-block;
  margin-left: 0.32em;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.hero__description {
  max-width: 610px;
  margin: 42px 0 32px;
  color: #3f3e38;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  word-break: keep-all;
}

.primary-link {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 42px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-bright);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, translate 160ms ease;
}

.primary-link:hover {
  translate: 0 -3px;
  background: var(--citron);
  color: var(--ink);
}

.hero__stage {
  position: relative;
  min-height: 510px;
  align-self: center;
}

.stage-card {
  position: absolute;
  display: grid;
  width: min(310px, 70%);
  aspect-ratio: 0.7;
  place-items: center;
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  font-family: var(--display);
  font-size: clamp(6rem, 11vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
}

.stage-card::before,
.stage-card::after {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(23, 23, 17, 0.32);
  content: "";
}

.stage-card::after {
  inset: 42% 0 auto;
  border-width: 1px 0 0;
}

.stage-card--back {
  top: 0;
  right: 0;
  rotate: 8deg;
  background: var(--coral);
}

.stage-card--front {
  bottom: 0;
  left: 5%;
  rotate: -7deg;
  background: var(--citron);
}

.hero__stage > p {
  position: absolute;
  right: 4%;
  bottom: 6%;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(0.76rem, 2vw, 1.05rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.1;
  text-align: right;
}

.hero__facts {
  display: grid;
  margin: 0;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.hero__facts div {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0 0;
}

.hero__facts div + div {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.hero__facts dt {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 900;
}

.hero__facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.products-section {
  padding: clamp(84px, 10vw, 140px) max(24px, calc((100vw - 1220px) / 2));
  background: var(--paper-bright);
}

.section-heading {
  display: grid;
  align-items: end;
  margin-bottom: 52px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 18px 48px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  word-break: keep-all;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(42px, 7vw, 88px);
}

.purchase-sentinel {
  width: 100%;
  height: 1px;
  margin-bottom: -1px;
}

.product-card {
  position: relative;
  display: grid;
  min-height: 560px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 0 0 transparent;
  transition: box-shadow 180ms ease, translate 180ms ease;
}

.product-card.is-selected {
  box-shadow: 9px 9px 0 var(--ink);
  translate: -4px -4px;
}

.product-visual {
  position: relative;
  display: grid;
  min-height: 560px;
  overflow: hidden;
  place-items: center;
  border-right: 1px solid var(--ink);
}

.product-card--citron .product-visual {
  background: var(--citron);
}

.product-card--coral .product-visual {
  background: var(--coral);
}

.product-visual::before {
  width: 38%;
  aspect-ratio: 0.62;
  border: 2px solid var(--ink);
  border-radius: 48% 48% 18% 18% / 28% 28% 8% 8%;
  background: var(--paper-bright);
  box-shadow: 20px 20px 0 rgba(23, 23, 17, 0.14);
  content: "";
  rotate: -5deg;
}

.product-visual:has(img)::before,
.product-visual:has(img)::after {
  display: none;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card--coral .product-visual::before {
  border-radius: 14px 14px 45% 45% / 14px 14px 28% 28%;
  rotate: 6deg;
}

.product-visual::after {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(23, 23, 17, 0.36);
  border-radius: 50%;
  content: "";
}

.product-visual__index {
  position: absolute;
  z-index: 1;
  top: 22px;
  left: 24px;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.product-card__body {
  display: flex;
  padding: clamp(34px, 5vw, 68px);
  flex-direction: column;
  justify-content: center;
}

.product-card h3 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.product-card__summary {
  max-width: 46ch;
  margin: 0 0 28px;
  color: #44423b;
  word-break: keep-all;
}

.product-details {
  margin: 0 0 34px;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.product-details li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.product-details li::before {
  margin-right: 10px;
  content: "↳";
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.product-price {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.select-product {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
}

.select-product[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

.select-product:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.editorial {
  display: grid;
  width: var(--container);
  margin: 0 auto;
  padding: clamp(100px, 13vw, 190px) 0;
  align-items: start;
  grid-template-columns: 0.3fr 1fr 0.58fr;
  gap: 48px;
}

.editorial__number {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.editorial h2 {
  max-width: 700px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.88;
  word-break: keep-all;
}

.editorial > p:last-child {
  margin: 52px 0 0;
  color: var(--muted);
  word-break: keep-all;
}

.guide {
  padding: clamp(84px, 10vw, 140px) max(24px, calc((100vw - 1220px) / 2));
  color: var(--paper-bright);
  background: var(--ink);
}

.section-heading--light {
  grid-template-columns: 1fr;
}

.guide-grid {
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.guide details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
}

.guide summary {
  position: relative;
  padding: 26px 48px 26px 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 800;
  list-style: none;
}

.guide summary::-webkit-details-marker {
  display: none;
}

.guide summary::after {
  position: absolute;
  top: 50%;
  right: 6px;
  content: "+";
  translate: 0 -50%;
}

.guide details[open] summary::after {
  content: "−";
}

.guide details p {
  max-width: 720px;
  margin: -4px 0 28px;
  color: rgba(255, 255, 255, 0.68);
  word-break: keep-all;
}

.purchase-dock {
  position: sticky;
  z-index: 30;
  bottom: 16px;
  display: grid;
  width: min(900px, calc(100vw - 32px));
  min-height: 84px;
  margin: -42px auto 26px;
  padding: 12px 12px 12px 24px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  background: rgba(23, 23, 17, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  color: var(--white);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  translate: 0 calc(100% + 40px);
  transition: opacity 180ms ease, translate 240ms ease;
}

.purchase-dock.is-visible {
  opacity: 1;
  pointer-events: auto;
  translate: 0;
}

.purchase-dock__selection {
  display: grid;
  min-width: 0;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 1px 10px;
}

.purchase-dock__selection p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.purchase-dock__selection strong {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-dock__selection span {
  grid-column: 1 / -1;
  color: var(--citron);
  font-size: 0.76rem;
  font-weight: 700;
}

.quantity-control {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(3, 38px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.quantity-control button,
.quantity-control output {
  display: grid;
  height: 38px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--white);
}

.quantity-control button {
  cursor: pointer;
  font-size: 1.1rem;
}

.quantity-control button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.review-order {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: var(--citron);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.review-order:hover {
  background: var(--coral);
}

.site-footer {
  display: grid;
  width: var(--container);
  margin: 0 auto;
  padding: 80px 0 130px;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 32px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer .wordmark {
  color: var(--ink);
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.order-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper-bright);
  box-shadow: 16px 16px 0 var(--coral);
  color: var(--ink);
}

.order-dialog::backdrop {
  background: rgba(23, 23, 17, 0.72);
  backdrop-filter: blur(5px);
}

.order-dialog h2 {
  max-width: 420px;
  margin: 0 0 34px;
  font-family: var(--display);
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.order-dialog dl {
  margin: 0 0 28px;
  border-top: 1px solid var(--ink);
}

.order-dialog dl div {
  display: grid;
  padding: 12px 0;
  grid-template-columns: 0.4fr 1fr;
  border-bottom: 1px solid var(--line);
}

.order-dialog dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.order-dialog dd {
  margin: 0;
  font-weight: 800;
}

.dialog-notice {
  padding: 18px;
  border: 1px solid var(--ink);
  background: var(--citron);
}

.dialog-notice p {
  margin: 6px 0 0;
  font-size: 0.82rem;
}

.noscript-notice {
  padding: 20px;
  border: 1px solid var(--ink);
  background: var(--coral);
}

.empty-catalog {
  margin: 0;
  padding: 60px 24px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 900;
  text-align: center;
}

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

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero__stage {
    min-height: 470px;
  }

  .stage-card {
    width: min(300px, 50%);
  }

  .stage-card--front {
    left: 22%;
  }

  .section-heading,
  .editorial {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .product-visual {
    min-height: 480px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .section-heading > p:last-child {
    max-width: 580px;
  }

  .editorial {
    gap: 28px;
  }

  .editorial > p:last-child {
    max-width: 540px;
    margin: 12px 0 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --container: calc(100vw - 32px);
  }

  html {
    scroll-padding-top: 90px;
  }

  .preview-bar {
    min-height: 30px;
    gap: 6px;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .site-header {
    min-height: 62px;
    padding: 0 16px;
  }

  .site-header nav a:not(.external-link) {
    display: none;
  }

  .external-link {
    padding: 7px 10px;
    font-size: 0.68rem !important;
  }

  .hero {
    padding-top: 70px;
    gap: 52px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 4.2rem);
    line-height: 1.16;
  }

  .hero h1 span {
    margin-left: 0.16em;
  }

  .hero__description {
    margin-top: 32px;
  }

  .hero__stage {
    min-height: 390px;
    overflow: hidden;
  }

  .stage-card {
    width: min(230px, 66%);
    box-shadow: 7px 7px 0 var(--ink);
  }

  .stage-card--front {
    left: 4%;
  }

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

  .hero__facts div + div {
    padding-left: 0;
    border-left: 0;
  }

  .hero__facts div {
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .product-visual {
    min-height: 340px;
  }

  .product-card.is-selected {
    box-shadow: 6px 6px 0 var(--ink);
    translate: -3px -3px;
  }

  .product-card__footer {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .editorial__number {
    font-size: 2.4rem;
  }

  .purchase-dock {
    bottom: 8px;
    width: calc(100vw - 16px);
    min-height: 0;
    margin-bottom: 12px;
    padding: 10px;
    grid-template-columns: 1fr auto;
    gap: 10px;
    border-radius: 14px;
  }

  .purchase-dock__selection {
    padding-left: 4px;
  }

  .purchase-dock__selection p {
    display: none;
  }

  .purchase-dock__selection strong {
    grid-column: 1 / -1;
    font-size: 0.86rem;
  }

  .quantity-control {
    grid-template-columns: repeat(3, 34px);
  }

  .quantity-control button,
  .quantity-control output {
    height: 34px;
  }

  .review-order {
    min-height: 48px;
    padding: 0 16px;
    grid-column: 1 / -1;
  }

  .site-footer {
    padding-bottom: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
