:root {
  color-scheme: light;
  --paper: #f7f3ec;
  --white: #fffcf7;
  --ink: #201b17;
  --soft-ink: #67574a;
  --line: #dbd0bf;
  --tan: #946e56;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}

body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 5;
  inset: .6rem auto auto .6rem;
  transform: translateY(-200%);
  background: var(--white);
  color: var(--ink);
  padding: .6rem 1rem;
}
.skip-link:focus { transform: none; }

.preview-bar { color: #fffaf1; background: var(--ink); font-size: .78rem; }
.preview-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 2.5rem;
}
.preview-inner > span { color: #e5d9ca; }
.preview-inner a, .footer-inner a { text-underline-offset: .28em; }
.preview-inner a span, .footer-inner a span { margin-inline-start: .22rem; }
.store-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 5rem;
}
.store-nav { display: flex; gap: clamp(.5rem, 2vw, 1.75rem); align-items: center; }
.store-nav a, .store-nav button {
  text-decoration: none;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}
.store-nav a:hover, .store-nav button:hover { text-decoration: underline; text-underline-offset: .32em; }
.wordmark { display: grid; gap: .12rem; justify-items: center; text-decoration: none; line-height: 1.03; }
.wordmark strong { font-size: 2.05rem; font-weight: 850; }
.wordmark span { font: .64rem Georgia, serif; letter-spacing: .28em; margin-inline-start: .25em; }
.bag-button {
  min-height: 44px;
  padding: .28rem .65rem;
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: .42rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid transparent;
  font-size: .88rem;
  font-weight: 720;
}
.bag-button:hover { border-color: var(--line); }
.bag-button bdi {
  display: grid;
  place-items: center;
  min-width: 1.38rem;
  height: 1.38rem;
  padding-inline: .15rem;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: .72rem;
}
.bag-icon { display: inline-block; width: .88rem; height: .83rem; border: 1px solid currentColor; position: relative; }
.bag-icon::before {
  content: "";
  position: absolute;
  inset: -.32rem .18rem auto;
  height: .4rem;
  border: 1px solid currentColor;
  border-bottom: none;
  border-radius: 1rem 1rem 0 0;
}

.hero {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 5rem);
  padding-block: clamp(2rem, 4vw, 4rem) clamp(3rem, 6vw, 6.25rem);
}
.hero-copy { padding-block: 1.25rem; }
.eyebrow {
  font-size: .79rem;
  font-weight: 750;
  color: var(--soft-ink);
  letter-spacing: .012em;
}
.hero .eyebrow { display: flex; align-items: center; gap: .85rem; }
.hero .eyebrow::before { content: ""; background: var(--tan); width: 2.75rem; height: 1px; }
.hero h1 {
  font-size: clamp(4.65rem, 8.5vw, 8.65rem);
  font-weight: 850;
  line-height: .99;
  margin-block: .9rem 1.45rem;
}
.hero h1 span { color: var(--tan); }
.hero-text { max-width: 24rem; color: var(--soft-ink); font-weight: 550; font-size: clamp(1rem, 1.5vw, 1.16rem); }
.ink-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 48px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  text-decoration: none;
  padding: .66rem 1.1rem;
  font-size: .9rem;
  font-weight: 760;
  transition: background .2s, color .2s;
}
.ink-button span { font-size: 1.23rem; line-height: 1; }
.ink-button:hover { background: var(--white); color: var(--ink); }
.ink-button:disabled { opacity: .55; }
.hero .ink-button { margin-top: 1.6rem; }
.hero-art {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding-inline-start: 12%;
}
.hero-frame {
  background: #d6c3a8;
  height: clamp(24.5rem, 42vw, 36.25rem);
  overflow: hidden;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-detail {
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: clamp(.9rem, 3.4vw, 2.5rem);
  width: clamp(5rem, 15vw, 13rem);
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  border: clamp(.3rem, .7vw, .58rem) solid var(--paper);
  box-shadow: 0 .75rem 2.4rem #372a1f2a;
}

.collection { border-top: 1px solid var(--line); padding-block: clamp(1.7rem, 3.5vw, 3.25rem) clamp(3rem, 5vw, 5rem); scroll-margin-top: 1.2rem; }
.collection-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.1rem; margin-bottom: 1rem; }
.collection h2 { font-size: clamp(2.2rem, 4.2vw, 3.7rem); line-height: 1.2; }
.search-wrap { position: relative; width: min(100%, 18rem); }
.search-wrap input {
  width: 100%;
  min-height: 46px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: .5rem 2.2rem .5rem .7rem;
  font-size: 1rem;
  border-radius: 0;
}
.search-wrap input::placeholder { color: #746555; opacity: 1; }
.search-icon {
  position: absolute;
  inset: calc(50% - .44rem) .75rem auto auto;
  width: .73rem;
  height: .73rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
}
.search-icon::after { content: ""; position: absolute; bottom: -.17rem; left: -.2rem; width: .31rem; height: 1px; background: var(--ink); transform: rotate(-43deg); }
.filters {
  min-height: 3.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .45rem 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.15rem;
}
.category-list { display: flex; gap: .35rem 1rem; flex-wrap: wrap; }
.category-list button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--soft-ink);
  font-size: .9rem;
  font-weight: 700;
  padding: .38rem .6rem;
  min-height: 44px;
}
.category-list button[aria-pressed="true"], .category-list button:hover { color: var(--ink); border-bottom-color: var(--ink); }
.results { color: var(--soft-ink); font-size: .79rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.8vw, 1.4rem); }
.product-card { min-width: 0; }
.card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: #e5d7c4; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.product-card:hover img { transform: scale(1.025); }
.discount-tag {
  position: absolute;
  inset: .55rem .55rem auto auto;
  padding: .15rem .48rem;
  background: var(--ink);
  color: var(--white);
  font-size: .76rem;
  font-weight: 720;
}
.card-content { padding: .65rem 0 .75rem; }
.card-category { color: var(--soft-ink); font-size: .76rem; }
.product-card h3 { font-size: clamp(.98rem, 1.5vw, 1.16rem); line-height: 1.45; margin-bottom: .28rem; }
.price { display: flex; flex-wrap: wrap; gap: .08rem .52rem; align-items: baseline; line-height: 1.45; }
.price strong { font-size: .97rem; white-space: nowrap; }
.price del { color: var(--soft-ink); font-size: .79rem; white-space: nowrap; }
.detail-button {
  background: transparent;
  color: var(--ink);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: .81rem;
  font-weight: 740;
  margin-top: .38rem;
  padding: .35rem 0;
  text-align: start;
}
.detail-button:hover { border-color: var(--ink); }
.detail-button span { font-size: 1.1rem; }
.empty-state { padding: 1.2rem 0; color: var(--soft-ink); grid-column: 1 / -1; }
.store-footer { color: #fffaf2; background: var(--ink); }
.footer-inner { min-height: 7rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .86rem; }
.footer-inner strong { font-size: 1.4rem; }
.footer-inner p { color: #e6d9c9; }

dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 0; }
dialog::backdrop { background: #251c17a0; }
.product-dialog { width: min(calc(100% - 2rem), 48rem); max-height: calc(100dvh - 2rem); }
.dialog-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.dialog-photo { min-width: 0; background: #e4d5c0; }
.dialog-photo img { width: 100%; height: 100%; object-fit: cover; }
.dialog-content { position: relative; padding: clamp(1.15rem, 3.5vw, 2rem); }
.dialog-content > .close-button { position: absolute; inset-inline-end: .65rem; inset-block-start: .55rem; }
.close-button {
  padding: 0;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  font-size: 1.45rem;
  line-height: 1;
}
.close-button:hover { border-color: var(--ink); }
.dialog-content h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); line-height: 1.25; margin-block: .28rem .55rem; }
.dialog-content .eyebrow { padding-inline-end: 2.65rem; }
.detail-description { font-size: .88rem; color: var(--soft-ink); margin-block: .65rem 1rem; }
fieldset { padding: 0; border: 0; margin: 0 0 .72rem; min-width: 0; }
legend { font-weight: 780; font-size: .84rem; margin-bottom: .32rem; }
.option-list { display: flex; flex-wrap: wrap; gap: .42rem; }
.option-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--ink);
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  padding: .35rem .55rem;
  font-size: .78rem;
  font-weight: 700;
}
.option-label:has(:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option-label:has(:focus-visible) { outline: 2px solid var(--tan); outline-offset: 2px; }
.sizes .option-label { justify-content: center; min-width: 44px; }
.swatch { width: .89rem; height: .89rem; border-radius: 50%; border: 1px solid #45382e55; }
.swatch.ink { background: #221e1d; }
.swatch.cream { background: #e2cba9; }
.swatch.ivory { background: #fff9e9; }
.swatch.navy { background: #27344c; }
.swatch.coffee { background: #75513b; }
.swatch.stone { background: #b3a68e; }
.form-note { color: var(--soft-ink); font-size: .79rem; min-height: 1.4em; margin-bottom: .65rem; }
.add-button, .preview-button { width: 100%; }

.cart-dialog {
  inset: 0 auto 0 0;
  margin: 0;
  width: min(30rem, 100%);
  max-width: none;
  max-height: none;
  height: 100dvh;
  box-shadow: 1.5rem 0 3rem #211b1729;
}
.cart-inner { padding: clamp(.9rem, 3.6vw, 1.55rem); }
.cart-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.cart-heading h2 { font-size: 1.57rem; line-height: 1.3; }
.cart-items { display: grid; }
.cart-item { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: .75rem; padding-block: .9rem; border-bottom: 1px solid var(--line); }
.cart-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cart-item h3 { font-size: .95rem; }
.cart-item p { color: var(--soft-ink); font-size: .81rem; margin-block: .05rem .35rem; }
.cart-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .65rem; }
.quantity { display: inline-flex; align-items: center; gap: .38rem; }
.quantity button, .remove-button {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  padding: 0 .35rem;
  min-height: 44px;
  min-width: 44px;
}
.quantity button:hover, .remove-button:hover { border-color: var(--ink); }
.quantity button:disabled { opacity: .5; }
.remove-button { font-size: .78rem; }
.cart-total { display: flex; justify-content: space-between; gap: .5rem; padding-block: .9rem; font-weight: 700; }
.order-preview { margin-top: 1rem; padding: .85rem; border: 1px solid var(--line); background: var(--white); }
.order-preview h3 { font-size: 1rem; }
.order-preview p { margin-block: .18rem .55rem; color: var(--soft-ink); font-size: .8rem; }
.order-preview textarea { width: 100%; background: var(--paper); color: var(--ink); padding: .55rem; border: 1px solid var(--line); resize: vertical; font-size: .87rem; }
.toast { position: fixed; z-index: 2; inset: auto auto 1rem 1rem; max-width: calc(100% - 2rem); background: var(--ink); color: var(--white); font-size: .85rem; padding: .6rem .9rem; }

@media (max-width: 63rem) {
  .hero { grid-template-columns: .9fr 1.1fr; }
  .hero-frame { height: clamp(22rem, 51vw, 30rem); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 42rem) {
  .wrap { width: min(100% - 1.35rem, 36rem); }
  .header-inner { grid-template-columns: 1fr 1fr; min-height: 4.15rem; }
  .store-nav { display: none; }
  .wordmark { justify-self: start; }
  .wordmark strong { font-size: 1.8rem; }
  .hero { grid-template-columns: 1fr; gap: .5rem; padding-block: 1.2rem 2.7rem; }
  .hero-copy { padding: .35rem .22rem 1rem; }
  .hero h1 { font-size: clamp(3.8rem, 14.5vw, 6rem); margin-block: .55rem .7rem; }
  .hero h1 br { display: none; }
  .hero-text { font-size: .92rem; }
  .hero .ink-button { margin-top: .85rem; }
  .hero-frame { height: clamp(17rem, 81vw, 27rem); }
  .hero-detail { width: clamp(5.25rem, 26vw, 8.2rem); }
  .collection-heading { align-items: stretch; flex-direction: column; margin-bottom: .5rem; }
  .search-wrap { width: 100%; }
  .filters { padding-bottom: .45rem; margin-bottom: .8rem; }
  .category-list { gap: .15rem .27rem; }
  .category-list button { font-size: .83rem; padding-inline: .45rem; }
  .results { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price strong { font-size: .86rem; }
  .price del { font-size: .73rem; }
  .footer-inner { min-height: 0; padding-block: 1.1rem; align-items: flex-start; flex-direction: column; }
  .dialog-grid { grid-template-columns: 1fr; }
  .dialog-photo { height: 11rem; }
  .dialog-photo img { object-position: center 34%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
