:root {
  --ink: #171917;
  --green: #2d4931;
  --paper: #f6f6f2;
  --white: #fff;
  --line: #d8d9d3;
  --muted: #737871;
  --header-height: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  letter-spacing: 0;
}
body:has(dialog[open]) { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.site-header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 42px;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.28);
  transition: background .25s, color .25s, border-color .25s;
}
.site-header.solid {
  color: var(--ink);
  background: rgba(246,246,242,.96);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}
.wordmark {
  grid-column: 2;
  width: 104px;
}
.wordmark img { filter: none; }
.site-header.solid .wordmark img { filter: invert(1); }
.desktop-nav {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
}
.desktop-nav a { padding: 5px 0; border-bottom: 1px solid transparent; }
.desktop-nav a:hover { border-color: currentColor; }
.cart-button {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}
.cart-button span {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
}
.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}
.mobile-only { display: none; }

.hero {
  position: relative;
  min-height: 94svh;
  color: var(--white);
  background: #6f695c center 22% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.04) 45%, rgba(0,0,0,.4));
}
.hero-foot {
  position: absolute;
  z-index: 2;
  left: 42px;
  right: 42px;
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-size: 10px;
}
.hero-foot a { padding-bottom: 4px; border-bottom: 1px solid; }

.collection-section {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 105px 42px 130px;
}
.simple-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}
.simple-heading h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 500;
}
.simple-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.collection-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.collection-link { display: block; }
.collection-link img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}
.collection-link span {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding-top: 13px;
}
.collection-link b {
  font-size: 13px;
  font-weight: 600;
}
.collection-link em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.featured, .collection-page, .brand-page { padding: 120px 42px; }
.featured { background: var(--white); }
.section-heading {
  width: min(1356px, 100%);
  margin: 0 auto 42px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.section-heading h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}
.section-heading p { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.text-link {
  padding-bottom: 5px;
  border-bottom: 1px solid;
  font-size: 11px;
}
.floating-contact {
  position: fixed;
  z-index: 25;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  display: grid;
  place-content: center;
  gap: 2px;
  color: var(--white);
  background: var(--green);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 2px;
  box-shadow: 0 8px 30px rgba(20,30,22,.18);
  text-align: center;
}
.floating-contact span { display: none; }
.floating-contact strong { font-size: 9px; font-weight: 500; }
.product-grid {
  width: min(1356px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 58px;
}
.product-card { min-width: 0; cursor: pointer; }
.product-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e7e7e2;
}
.product-image img {
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .65s cubic-bezier(.22,.61,.36,1);
}
.product-card:hover .product-image img { transform: scale(1.018); }
.quick-add {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: rgba(255,255,255,.9);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  opacity: 0;
  transform: translateY(5px);
  transition: .2s;
}
.product-card:hover .quick-add { opacity: 1; transform: translateY(0); }
.product-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 13px 1px 0;
}
.product-meta h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}
.product-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.brand-banner {
  min-height: 86svh;
  display: grid;
  place-items: center;
  padding: 54px 42px;
  color: white;
  background: #8c765d center 35% / cover no-repeat;
}
.brand-banner-content { display: grid; justify-items: center; text-align: center; }
.brand-banner-content p { margin: 0 0 28px; font-size: 10px; font-weight: 400; }
.brand-banner-content img { width: min(430px, 58vw); }
.brand-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 38px;
}
.brand-banner-actions a {
  min-width: 220px;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0 18px;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.72);
  font-size: 11px;
  background: rgba(12,16,13,.12);
}
.brand-banner-actions a:hover {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}
.collection-page {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 80px);
  background: var(--white);
}
.collection-heading {
  width: min(1356px, 100%);
  margin: 0 auto 82px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 44px;
}
.collection-heading h1 {
  margin: 28px 0 0;
  font-size: 54px;
  font-weight: 500;
  line-height: 1;
}
.collection-heading > p:first-child { margin: 0; color: var(--muted); font-size: 10px; }
.collection-tools {
  width: min(1356px, 100%);
  margin: 0 auto 22px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
.collection-tools select {
  padding: 0 20px 5px 0;
  color: inherit;
  border: 0;
  border-bottom: 1px solid;
  border-radius: 0;
  background: transparent;
}

.brand-page { padding-top: var(--header-height); background: var(--white); }
.brand-hero {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  place-items: center;
  margin: 0 -42px 130px;
  background: center / cover no-repeat;
}
.brand-hero img { width: min(42vw, 520px); }
.brand-story {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9vw;
  align-items: center;
}
.brand-story + .brand-story { margin-top: 150px; }
.brand-story.reverse .brand-image { order: 2; }
.brand-image { min-height: 690px; background: center top / cover no-repeat; }
.brand-copy h2 {
  margin: 0;
  font-size: 35px;
  font-weight: 400;
  line-height: 1.5;
}
.brand-copy p:last-child { margin: 38px 0 0; color: var(--muted); font-size: 13px; line-height: 2.1; }

.drawer {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  width: min(470px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--paper);
  box-shadow: -20px 0 60px rgba(0,0,0,.12);
  transform: translateX(102%);
}
.drawer.open { transform: translateX(0) !important; }
.drawer-header, .dialog-heading { display: flex; align-items: center; justify-content: space-between; }
.drawer-header h2, .dialog-heading h2 { margin: 0; font-size: 24px; font-weight: 500; }
.cart-items { flex: 1; overflow: auto; padding: 20px 0; }
.cart-empty { padding: 80px 0; color: var(--muted); text-align: center; font-size: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img { height: 112px; object-fit: cover; object-position: top; }
.cart-item h3 { margin: 2px 0 8px; font-size: 12px; font-weight: 400; }
.cart-item p { margin: 0; color: var(--muted); font-size: 11px; }
.remove-button { align-self: start; padding: 3px; border: 0; background: none; cursor: pointer; }
.cart-footer { border-top: 1px solid var(--ink); padding-top: 20px; }
.total-row { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 12px; }
.primary-button {
  width: 100%;
  min-height: 54px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  font-size: 12px;
}
.primary-button:hover { background: var(--green); border-color: var(--green); }

dialog {
  width: min(1120px, calc(100% - 40px));
  max-height: calc(100svh - 40px);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
}
dialog::backdrop { background: rgba(15,17,15,.68); backdrop-filter: blur(5px); }
.product-dialog {
  width: min(1480px, calc(100% - 24px));
  max-width: none;
  height: calc(100svh - 24px);
  max-height: none;
  margin: auto;
  overflow: auto;
  background: var(--white);
}
.product-detail-page { position: relative; min-height: 100%; }
.product-close {
  position: fixed;
  z-index: 5;
  top: 27px;
  right: max(28px, calc((100vw - 1480px) / 2 + 20px));
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
}
.product-detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  min-height: calc(100svh - 24px);
  border-bottom: 1px solid var(--line);
}
.product-main-image { min-height: 780px; background: #ecece8; }
.product-main-image img {
  width: 100%;
  height: 100%;
  max-height: calc(100svh - 24px);
  object-fit: cover;
  object-position: top;
}
.product-detail-copy {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  min-height: calc(100svh - 24px);
  flex-direction: column;
  padding: 72px 52px 46px;
}
.product-detail-copy h2 {
  margin: 25px 0 15px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
}
.product-price { margin: 0; font-size: 13px; font-weight: 500; }
.product-features {
  margin: 52px 0 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.product-features li {
  position: relative;
  padding-left: 12px;
  color: #555a54;
  font-size: 12px;
  line-height: 1.9;
}
.product-features li::before { content: ""; position: absolute; left: 0; top: 10px; width: 3px; height: 3px; background: currentColor; }
.product-actions { margin-top: auto; padding-top: 36px; }
.product-content { width: min(980px, calc(100% - 48px)); margin: 0 auto; padding: 100px 0 120px; }
.product-content > header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
}
.product-detail-gallery { display: grid; gap: 0; }
.product-detail-gallery img { height: auto; }
.product-information {
  display: grid;
  grid-template-columns: 220px 1fr;
  margin-top: 90px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}
.product-information h3 { margin: 0; font-size: 11px; font-weight: 500; }
.product-information p {
  margin: 0;
  color: #555a54;
  white-space: pre-line;
  font-size: 12px;
  line-height: 1.95;
}
.secondary-button {
  width: 100%;
  min-height: 54px;
  display: grid;
  place-items: center;
  margin-top: 8px;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-size: 12px;
}
.secondary-button:hover { color: var(--white); background: var(--green); border-color: var(--green); }
.checkout-dialog { width: min(680px, calc(100% - 32px)); }
.checkout-dialog form { padding: 34px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 34px 0; }
.checkout-grid label { display: grid; gap: 8px; font-size: 11px; }
.checkout-grid .wide { grid-column: 1 / -1; }
input, textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  outline: none;
}
input:focus, textarea:focus { border-color: var(--ink); }
fieldset { margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 12px; font-size: 11px; }
.payment-option { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); font-size: 12px; }
.payment-option + .payment-option { border-top: 0; }
.payment-option input { width: auto; }
.payment-option span { display: grid; gap: 3px; }
.payment-option small { color: var(--muted); }
.payment-option.disabled { opacity: .45; }
.checkout-total { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ink); }

.mobile-menu {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: none;
  padding: 24px;
  color: white;
  background: var(--green);
}
.mobile-menu.open { display: block; }
.mobile-menu .close-button { position: absolute; right: 20px; top: 16px; }
.mobile-menu nav { display: grid; gap: 13px; margin-top: 18vh; }
.mobile-menu nav a { font-size: 38px; font-weight: 400; line-height: 1.15; }
.mobile-menu p { position: absolute; left: 24px; bottom: 24px; font-size: 11px; line-height: 1.8; }
.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 26px;
  padding: 12px 18px;
  color: white;
  background: var(--ink);
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: .2s;
  font-size: 11px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 58px 42px;
  color: white;
  background: var(--green);
}
.footer-mark { font-size: 18px; font-weight: 500; }
footer div { display: flex; gap: 22px; font-size: 10px; }
footer p { grid-column: 1 / -1; margin: 48px 0 0; color: rgba(255,255,255,.58); font-size: 11px; }

@media (max-width: 900px) {
  :root { --header-height: 62px; }
  .site-header { padding: 0 17px; }
  .desktop-nav { display: none; }
  .mobile-only {
    display: grid;
    place-items: center;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .mobile-only span { display: block; width: 21px; height: 1px; background: currentColor; }
  .mobile-only span + span { margin-top: 6px; }
  .wordmark { width: 78px; }
  .cart-button { font-size: 0; }
  .cart-button span { font-size: 9px; }
  .hero { min-height: 86svh; background-position: 59% 25%; }
  .floating-contact { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .hero-foot { left: 17px; right: 17px; bottom: 19px; }
  .hero-foot span { display: none; }
  .hero-foot a { margin-left: auto; }
  .collection-section { padding: 72px 18px 90px; }
  .simple-heading { display: block; margin-bottom: 24px; }
  .simple-heading h2 { font-size: 20px; }
  .simple-heading p { margin-top: 10px; }
  .collection-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px;
  }
  .collection-link b { font-size: 12px; }
  .collection-link em { font-size: 10px; }
  .featured, .collection-page, .brand-page { padding-left: 18px; padding-right: 18px; }
  .featured { padding-top: 78px; padding-bottom: 90px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading h2 { font-size: 20px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 8px; }
  .product-meta { grid-template-columns: 1fr; gap: 5px; }
  .product-meta h3 { min-height: 38px; font-size: 11px; }
  .product-meta p { font-size: 10px; }
  .quick-add { opacity: 1; transform: none; width: 31px; height: 31px; font-size: 17px; }
  .brand-banner { min-height: 76svh; padding: 34px 18px; background-position: 55% top; }
  .brand-banner-actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }
  .brand-banner-actions a {
    width: min(320px, 100%);
    min-width: 0;
  }
  .collection-page { padding-top: calc(var(--header-height) + 48px); }
  .collection-heading { margin-bottom: 42px; padding-bottom: 28px; }
  .collection-heading h1 { margin-top: 24px; font-size: 38px; }
  .brand-page { padding-top: var(--header-height); }
  .brand-hero { min-height: 70svh; margin: 0 -18px 80px; }
  .brand-hero img { width: 72vw; }
  .brand-story, .brand-story.reverse { grid-template-columns: 1fr; gap: 42px; }
  .brand-story.reverse .brand-image { order: 0; }
  .brand-story + .brand-story { margin-top: 100px; }
  .brand-image { min-height: 122vw; }
  .brand-copy h2 { font-size: 28px; }
  .product-dialog { width: 100vw; height: 100svh; max-height: none; margin: 0; }
  .product-close { top: 12px; right: 12px; }
  .product-detail-top { grid-template-columns: 1fr; min-height: 0; }
  .product-main-image { min-height: 0; aspect-ratio: 4 / 5; }
  .product-main-image img { max-height: none; }
  .product-detail-copy { position: static; min-height: 0; padding: 34px 20px 28px; }
  .product-detail-copy h2 { margin: 20px 0 12px; font-size: 23px; }
  .product-features { margin-top: 34px; }
  .product-actions { padding-top: 34px; }
  .product-content { width: 100%; padding: 72px 0 90px; }
  .product-content > header { margin: 0 18px 18px; }
  .product-information { grid-template-columns: 1fr; gap: 30px; margin: 70px 18px 0; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-grid .wide { grid-column: auto; }
  .checkout-dialog form { padding: 22px; }
  footer { padding: 45px 18px; }
}
