:root {
  --cream:#f7f3ed;
  --paper:#fffdf8;
  --ink:#252722;
  --muted:#74766f;
  --sage:#aab9a5;
  --mint:#dfe9e2;
  --peach:#efd6cb;
  --butter:#eee6c9;
  --line:rgba(37,39,34,.16);
  --display:"Gowun Dodum","Noto Sans KR",sans-serif;
  --serif:var(--display);
  --sans:"DM Sans","Noto Sans KR",sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--cream); font-family: var(--sans); font-size: 15px; }
body.menu-open, body.bag-open { overflow: hidden; }
button, input { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 200; padding: 12px 16px; color: #fff; background: var(--ink); text-decoration: none; }
.skip:focus { top: 16px; }

.notice-bar {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 7px 20px;
  color: #f9f7f1;
  background: #30332e;
  font-size: calc(10px + 1pt);
  letter-spacing: .11em;
}
.notice-bar p { margin: 0; }
.notice-bar a { border-bottom: 1px solid currentColor; font-weight: 700; text-decoration: none; }

.cotton-header {
  position: absolute;
  top: 34px;
  right: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 84px;
  align-items: center;
  padding: 12px clamp(20px, 3.8vw, 68px);
  color: #fff;
  transition: color .25s ease, background .25s ease, box-shadow .25s ease;
}
.cotton-header.is-scrolled {
  position: fixed;
  top: 0;
  color: var(--ink);
  background: rgba(247,243,237,.94);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(16px);
}
.header-actions a {
  font-size: calc(11px + 1pt);
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
}
.menu-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-size: calc(11px + 1pt);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.menu-icon { display: grid; width: 22px; gap: 4px; }
.menu-icon i { display: block; width: 100%; height: 1px; background: currentColor; transition: transform .2s ease; }
.menu-button:hover .menu-icon i:nth-child(2) { transform: scaleX(.65); transform-origin: left; }
.cotton-wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
}
.cotton-flower {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(93,76,60,.12);
  border-radius: 50%;
  background: #fff7ef;
}
.cotton-flower img { width: 42px; height: 42px; }
.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: clamp(8px, 1.2vw, 18px);
}
.main-button,
.account-button { white-space: nowrap; }
.account-button {
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
}
.cotton-header.is-scrolled .account-button { border-color: var(--line); background: var(--paper); }
.orders-button { color: inherit; font-size: calc(10px + 1pt); text-decoration: none; }
.bag-button {
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: calc(11px + 1pt);
  font-weight: 600;
}
.bag-button span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-left: 7px;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  font-size: calc(10px + 1pt);
}
.cotton-header.is-scrolled .bag-button span { color: #fff; background: var(--ink); }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  overflow: auto;
  color: var(--ink);
  background: rgba(255,253,248,.985);
  opacity: 0;
  transition: opacity .22s ease;
}
.menu-overlay.open { opacity: 1; }
.menu-overlay-bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 68px);
}
.menu-close {
  position: relative;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-close::before, .menu-close::after {
  position: absolute;
  top: 16px;
  left: 5px;
  width: 24px;
  height: 1px;
  background: currentColor;
  content: "";
}
.menu-close::before { transform: rotate(45deg); }
.menu-close::after { transform: rotate(-45deg); }
.menu-account { padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: calc(11px + 1pt); font-weight: 600; text-decoration: none; }
.menu-panel {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.2vh, 26px);
  padding: 110px 24px 96px;
  text-align: center;
}
.menu-group { width: min(620px, 100%); }
.menu-title {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(36px, 3.6vw, 54px);
  font-weight: 400;
  line-height: 1.05;
  text-decoration: none;
}
.menu-shop .menu-title, .menu-community .menu-title { cursor: default; }
.menu-submenu { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin: 12px auto 0; }
.menu-submenu a { padding: 3px 0; color: var(--muted); font-size: calc(11px + 1pt); letter-spacing: .04em; text-decoration: none; }
.menu-submenu a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.menu-main-link { margin-top: 8px; padding-bottom: 5px; border-bottom: 1px solid currentColor; color: var(--muted); font-size: calc(10px + 1pt); letter-spacing: .05em; text-decoration: none; }
.menu-signature { position: absolute; right: 0; bottom: 28px; left: 0; margin: 0; color: var(--muted); font-family: var(--serif); font-size: calc(11px + 1pt); letter-spacing: .06em; text-align: center; }

.cotton-hero {
  position: relative;
  min-height: min(900px, calc(100vh - 34px));
  margin: 0;
  overflow: hidden;
  background: #c7c8bf;
}
.hero-photo { position: absolute; inset: 0; margin: 0; }
.hero-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(32,31,28,.44) 0%, rgba(32,31,28,.12) 52%, rgba(32,31,28,.03) 100%);
  content: "";
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; filter: saturate(.72) contrast(.96); }
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(1440px, 100%);
  min-height: inherit;
  flex-direction: column;
  justify-content: flex-end;
  margin: auto;
  padding: clamp(44px, 7vw, 110px) clamp(24px, 6vw, 96px);
  color: #fff;
}
.eyebrow { margin: 0 0 18px; font-size: calc(10px + 1pt); font-weight: 700; letter-spacing: .2em; }
.hero-copy h1,
.collection h2,
.story h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.055em;
  word-break: keep-all;
}
.hero-copy h1 { max-width: 820px; font-size: clamp(48px, 7.4vw, 112px); line-height: .94; text-transform: lowercase; }
.hero-copy h1 em { color: #f4dccc; font-style: normal; }
.hero-description { max-width: 500px; margin: 24px 0 0; font-size: clamp(13px, 1.2vw, 16px); line-height: 1.8; word-break: keep-all; }
.round-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  font-size: calc(12px + 1pt);
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
}
.round-link span { font-size: 18px; transition: transform .2s ease; }
.round-link:hover span { transform: translateX(4px); }
.promise-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--mint);
}
.promise-strip p { margin: 0; padding: 18px; border-right: 1px solid var(--line); font-size: calc(9px + 1pt); font-weight: 700; letter-spacing: .13em; text-align: center; text-transform: uppercase; }
.promise-strip p:last-child { border-right: 0; }

.collection { scroll-margin-top: 80px; padding: clamp(82px, 9vw, 138px) clamp(14px, 3.9vw, 50px) clamp(90px, 11vw, 160px); background: #fbfaf7; }
.collection-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 36px; margin-bottom: clamp(50px, 6vw, 82px); }
.collection-heading h2 { margin-top: 10px; font-family: var(--serif); font-size: clamp(19px, 1.7vw, 25px); font-weight: 400; line-height: 1; }
.collection-heading > p { max-width: 340px; margin: 0; color: var(--muted); font-size: calc(10px + 1pt); line-height: 1.65; text-align: right; word-break: keep-all; }
.collection-count { display: block; margin-bottom: 9px; color: var(--ink); font-size: calc(8px + 1pt); font-weight: 700; letter-spacing: .16em; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.filter-row { display: flex; gap: 20px; margin: 0; overflow-x: auto; }
.filter { min-width: auto; padding: 0 0 5px; border: 0; border-bottom: 1px solid transparent; border-radius: 0; color: #8f8a82; background: transparent; cursor: pointer; font-size: calc(9px + 1pt); letter-spacing: .03em; }
.filter.active { border-bottom-color: var(--ink); color: var(--ink); background: transparent; }
.view-switch { display: flex; align-items: center; gap: 12px; color: #8f8a82; font-size: calc(8px + 1pt); letter-spacing: .08em; text-transform: uppercase; }
.view-switch button { padding: 0 0 3px; border: 0; border-bottom: 1px solid transparent; color: inherit; background: transparent; cursor: pointer; font: inherit; text-transform: uppercase; }
.view-switch button.active { border-bottom-color: var(--ink); color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(10px, 1.8vw, 24px); row-gap: clamp(50px, 6vw, 86px); transition: grid-template-columns .3s ease; }
.product-grid[data-columns="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(18px, 3vw, 44px); }
.product { min-width: 0; }
.product[hidden] { display: none; }
.product-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #eeede9; }
.product-detail-link { display: block; width: 100%; height: 100%; }
.product-info h3 a { color: inherit; text-decoration: none; }
.product-info h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.75,.2,1); }
.product:hover .product-photo img { transform: scale(1.018); }
.product-photo > span { position: absolute; top: 12px; left: 12px; z-index: 2; color: #69665f; font-size: calc(7px + 1pt); font-weight: 700; letter-spacing: .16em; }
.product-info { display: flex; flex-direction: column; align-items: center; padding-top: 14px; text-align: center; }
.product-info small { display: none; }
.product-info h3 { margin: 0; font-family: var(--sans); font-size: clamp(calc(11px + 1pt), calc(.95vw + 1pt), calc(13px + 1pt)); font-weight: 500; line-height: 1.4; }
.product-info strong { margin-top: 5px; font-size: calc(10px + 1pt); font-weight: 500; white-space: nowrap; }
.product-colors { margin: 7px 0 0; color: var(--muted); font-size: calc(8px + 1pt); line-height: 1.5; }
.color-swatches { display: flex; justify-content: center; gap: 5px; margin-top: 10px; }
.color-swatches i { width: 7px; height: 7px; border: 1px solid rgba(44,44,40,.1); border-radius: 50%; }
.swatch-sage { background: #b8b7a3; }
.swatch-oat { background: #d9cfbb; }
.swatch-cream { background: #ede9de; }
.swatch-sky { background: #b8cce1; }
.swatch-blue { background: #aabed6; }
.swatch-peach { background: #e9ab87; }
.swatch-butter { background: #e9ddbd; }
.swatch-green { background: #a7b19f; }
.swatch-ivory { background: #f0ede2; }
.swatch-violet { background: #aaa2b0; }
.add { position: absolute; right: 0; bottom: 0; left: 0; z-index: 3; padding: 13px 12px; border: 0; color: var(--ink); background: rgba(250,248,243,.92); cursor: pointer; font-size: calc(9px + 1pt); letter-spacing: .04em; opacity: 0; transform: translateY(100%); transition: opacity .22s ease, transform .22s ease; }
.product:hover .add, .add:focus-visible { opacity: 1; transform: none; }
.product.sold-out .product-photo img { filter: grayscale(.35); opacity: .7; }
.add:disabled { cursor: not-allowed; opacity: 1; transform: none; }

.story { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; min-height: 560px; align-items: end; gap: 80px; overflow: hidden; padding: clamp(70px, 9vw, 130px) clamp(24px, 7vw, 110px); color: #f8f6f0; background: #67796b; }
.story-title, .story-copy { position: relative; z-index: 2; }
.story h2 { font-size: clamp(50px, 7vw, 102px); line-height: .95; text-transform: lowercase; }
.story-copy { max-width: 520px; padding-bottom: 8px; }
.story-copy p { margin: 0; color: #e5ebe4; line-height: 1.9; word-break: keep-all; }
.story-copy a { display: inline-flex; gap: 12px; margin-top: 30px; padding-bottom: 8px; border-bottom: 1px solid currentColor; font-size: calc(11px + 1pt); font-weight: 700; text-decoration: none; }
.story > img { position: absolute; right: -4vw; top: 50%; width: min(36vw, 520px); opacity: .1; transform: translateY(-50%); }

.cotton-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 40px; min-height: 260px; padding: 54px clamp(24px, 5vw, 80px); background: var(--cream); }
.cotton-footer .cotton-wordmark { justify-self: start; }
.footer-tagline { margin: 24px 0 0; color: var(--muted); font-size: calc(11px + 1pt); }
.cotton-footer nav { display: flex; gap: 24px; }
.cotton-footer nav a { font-size: calc(9px + 1pt); font-weight: 700; letter-spacing: .12em; text-decoration: none; }
.footer-copyright { justify-self: end; margin: 0; color: var(--muted); font-size: calc(9px + 1pt); line-height: 1.8; text-align: right; }

.bag-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(20,25,18,.42); backdrop-filter: blur(3px); }
.bag { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; display: flex; width: min(440px,100%); flex-direction: column; padding: 34px; color: var(--ink); background: var(--cream); box-shadow: -30px 0 70px rgba(20,25,18,.2); transform: translateX(105%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.bag.open { transform: none; }
.bag-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.bag-head small { font-size: calc(9px + 1pt); letter-spacing: .2em; }
.bag-head h2 { margin: 6px 0 0; font: 400 38px var(--serif); }
.bag-head button { border: 0; background: transparent; cursor: pointer; font-size: 36px; }
.bag-items { flex: 1; padding: 20px 0; overflow: auto; }
.bag-empty { color: var(--muted); line-height: 1.8; }
.bag-item { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.bag-item > img { width: 76px; height: 96px; object-fit: cover; background: #eeede9; }
.bag-item-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.bag-item-copy strong { font-size: calc(12px + 1pt); font-weight: 600; }
.bag-item-copy small { margin-top: 5px; color: var(--muted); font-size: calc(10px + 1pt); }
.bag-quantity { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; border: 1px solid var(--line); border-radius: 99px; }
.bag-quantity button { width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; }
.bag-quantity span { min-width: 12px; font-size: calc(10px + 1pt); text-align: center; }
.bag-item-side { display: flex; flex-direction: column; align-items: flex-end; font-size: calc(10px + 1pt); white-space: nowrap; }
.bag-item-side button { margin-top: auto; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: calc(9px + 1pt); text-decoration: underline; }
.bag-bottom { padding-top: 20px; border-top: 1px solid var(--line); }
.bag-bottom p { display: flex; justify-content: space-between; margin: 7px 0; color: var(--muted); font-size: calc(11px + 1pt); }
.bag-bottom .bag-grand-total { margin: 16px 0 18px; color: var(--ink); font-size: 14px; }
.checkout-link { display: block; width: 100%; padding: 16px; border-radius: 99px; color: #fff; background: #53675a; font-weight: 600; text-align: center; text-decoration: none; }
.checkout-link.disabled { cursor: not-allowed; opacity: .45; }
.option-dialog { width: min(440px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 22px; color: var(--ink); background: var(--cream); box-shadow: 0 24px 80px rgba(20,25,18,.25); }
.option-dialog::backdrop { background: rgba(20,25,18,.46); backdrop-filter: blur(3px); }
.option-dialog form { position: relative; display: grid; gap: 18px; padding: 34px; }
.option-dialog h2 { margin: -8px 0 4px; font: 400 30px var(--serif); }
.option-dialog form > .eyebrow { min-height: 32px; padding-right: 48px; }
.option-dialog #option-cart-error { margin: 0; }
.option-dialog label { display: grid; gap: 8px; color: var(--muted); font-size: calc(10px + 1pt); }
.option-dialog select, .option-dialog input { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font: 14px var(--sans); }
.option-close { position: absolute; top: 18px; right: 18px; border: 0; background: transparent; cursor: pointer; font-size: 28px; }
.option-submit { min-height: 50px; border: 0; border-radius: 99px; color: #fff; background: #53675a; cursor: pointer; font-weight: 600; }

@media (max-width: 900px) {
  .cotton-header { grid-template-columns: 1fr auto 1fr; min-height: 74px; padding: 10px 16px; }
  .cotton-wordmark { justify-self: center; font-size: calc(11px + 1pt); }
  .header-actions { gap: 8px; }
  .main-button { display: none; }
  .account-button { padding: 8px 11px; font-size: calc(10px + 1pt) !important; }
  .menu-panel { padding-top: 94px; }
  .cotton-hero { min-height: 76vh; }
  .hero-copy { padding: 38px 24px; }
  .hero-copy h1 { font-size: clamp(48px, 12vw, 76px); }
  .collection-heading { grid-template-columns: 1fr; gap: 20px; }
  .collection-heading > p { text-align: left; }
  .view-switch { display: none; }
  .product-grid, .product-grid[data-columns="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story { grid-template-columns: 1fr; align-items: center; gap: 38px; }
  .cotton-footer { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .cotton-footer nav { flex-wrap: wrap; }
  .footer-copyright { justify-self: start; text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 14px; }
  .notice-bar { justify-content: space-between; gap: 8px; padding-inline: 14px; font-size: calc(8px + 1pt); }
  .cotton-flower, .cotton-flower img { width: 36px; height: 36px; }
  .cotton-wordmark > span:last-child { display: none; }
  .header-actions .account-button, .header-actions .orders-button { display: none; }
  .menu-button > span:last-child { display: none; }
  .bag-button { padding: 7px 0; }
  .menu-overlay-bar { min-height: 68px; padding: 12px 16px; }
  .menu-panel { gap: 20px; padding: 88px 20px 96px; }
  .menu-title { font-size: clamp(34px, 10vw, 44px); }
  .menu-submenu { max-width: 340px; gap: 8px 16px; margin-top: 10px; }
  .menu-signature { right: 20px; left: 20px; }
  .cotton-hero { min-height: 70vh; }
  .hero-photo img { object-position: 58% center; }
  .hero-copy h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero-description br { display: none; }
  .promise-strip { grid-template-columns: 1fr 1fr; }
  .promise-strip p:nth-child(2) { border-right: 0; }
  .promise-strip p:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .collection { padding: 66px 8px 100px; }
  .collection-heading { margin-bottom: 36px; }
  .collection-heading h2 { font-size: 22px; }
  .collection-heading > p { max-width: 280px; }
  .catalog-toolbar { margin-bottom: 24px; }
  .filter-row { gap: 18px; }
  .product-grid, .product-grid[data-columns="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 7px; row-gap: 40px; }
  .product-info { padding: 10px 3px 0; }
  .product-info h3 { min-height: 34px; font-size: calc(11px + 1pt); }
  .product-info strong { margin-top: 2px; font-size: calc(9px + 1pt); }
  .color-swatches { margin-top: 8px; }
  .add { padding: 10px 8px; font-size: calc(8px + 1pt); opacity: 1; transform: none; }
  .story { min-height: 580px; padding-inline: 22px; }
  .story h2 { font-size: clamp(48px, 14vw, 70px); }
  .cotton-footer { padding-inline: 22px; }
  .bag { padding: 24px; }
}
@media (hover: none) {
  .add { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-photo img, .round-link span, .menu-overlay { transition: none; }
}
