:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #171717;
  background: #f5f3ef;
  line-height: 1.5;
  color-scheme: light;
  --ink: #171717;
  --muted: #66635d;
  --paper: #fff;
  --line: #d9d5cd;
  --accent: #9b4f2d;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
a,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 10px;
}
.skip-link:focus {
  top: 16px;
}
header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px max(20px, calc((100vw - 1180px) / 2));
  background: #fffffff2;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 850;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: inherit;
}
.brand small {
  font-weight: 500;
  color: var(--muted);
  font-size: 11px;
  margin-left: 6px;
}
nav {
  display: flex;
  gap: 10px;
  align-items: center;
}
button,
nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: inherit;
  padding: 9px 14px;
  text-decoration: none;
  cursor: pointer;
}
button:hover {
  border-color: #999;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #d89062;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 56px 24px 100px;
}
.hero {
  padding: 64px 0 100px;
  max-width: 820px;
}
.hero h1 {
  font-size: clamp(50px, 8vw, 98px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  margin: 10px 0 28px;
}
.hero > p:last-child {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
  max-width: 650px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 850;
  color: var(--accent);
  margin: 0 0 6px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}
.section-title h2 {
  font-size: 36px;
  margin: 0;
}
.filters {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) repeat(2, minmax(130px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}
.filters label,
fieldset label,
dialog > form label,
.return-form > label {
  font-size: 12px;
  font-weight: 700;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  white-space: nowrap;
}
.check input {
  width: auto;
  margin: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  overflow: hidden;
}
.product-card img,
.image-placeholder {
  width: calc(100% + 36px);
  height: 210px;
  object-fit: cover;
  margin: -18px -18px 18px;
  background: linear-gradient(135deg, #ebe6dd, #d8d1c4);
}
.card h3 {
  font-size: 22px;
  margin: 0 0 8px;
}
.card > p:not(.eyebrow) {
  color: var(--muted);
  flex: 1;
}
.link-button {
  border: 0;
  padding: 0;
  border-radius: 0;
  text-align: left;
  font-weight: 800;
  background: transparent;
  color: inherit;
  text-decoration: none;
}
.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.price {
  font-weight: 850;
  font-size: 18px;
}
.primary {
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 11px 17px;
  cursor: pointer;
}
.primary:hover {
  background: #343434;
}
.notice {
  min-height: 28px;
  padding: 0 0 12px;
  color: #9b2c2c;
}
.notice[data-type="success"] {
  color: #217044;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #c9c4bb;
  border-radius: 10px;
  background: #fff;
  padding: 11px;
  margin: 5px 0 9px;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}
legend {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}
dialog {
  width: min(680px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 90px #0005;
}
dialog::backdrop {
  background: #171717aa;
  backdrop-filter: blur(3px);
}
.close {
  float: right;
  border: 0;
  background: transparent;
  font-size: 28px;
  padding: 0 8px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.cart-row input {
  width: 72px;
}
.total {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
}
.product-detail > img {
  width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: cover;
  border-radius: 16px;
}
.product-detail h2 {
  font-size: 38px;
  margin: 6px 0;
}
.variant-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.order-link {
  display: block;
  width: 100%;
  text-align: left;
  margin: 8px 0;
  border-radius: 10px;
}
.order-lines p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.status {
  display: inline-block;
  background: #eee9df;
  border-radius: 999px;
  padding: 3px 9px;
}
.return-line {
  display: grid;
  grid-template-columns: auto 1fr 80px 120px;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.return-line input[type="checkbox"] {
  width: auto;
}
.pagination {
  justify-content: center;
  margin-top: 28px;
}
.pagination span {
  padding: 9px;
}
.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;
}
footer {
  padding: 42px 24px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
@media (max-width: 850px) {
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters label:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 600px) {
  header {
    padding: 12px;
  }
  .brand small {
    display: none;
  }
  main {
    padding: 32px 16px 70px;
  }
  .hero {
    padding: 44px 0 70px;
  }
  .hero h1 {
    font-size: 54px;
  }
  .filters,
  .split {
    grid-template-columns: 1fr;
  }
  .filters label:first-child {
    grid-column: auto;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .cart-row {
    grid-template-columns: 1fr auto;
  }
  .cart-row .remove {
    grid-column: 1/-1;
  }
  .return-line {
    grid-template-columns: auto 1fr;
  }
  .return-line input[type="number"],
  .return-line select {
    grid-column: 2;
  }
  .order-lines p {
    align-items: start;
  }
  dialog {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}
