:root {
  --border: #9fa88c;
  --leaf: #dde5cc;
  --quiet: #4e614d;
  --white: #fff;
  --cream: #f1eddf;
  --error: #7b342a;
}
h1, h2, h3 { text-wrap: balance; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.mast {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
  border-bottom: 1px solid var(--border);
}
.mast nav { display: flex; gap: clamp(.5rem, 3vw, 3rem); align-items: center; }
.nav-right { justify-content: end; }
.mast nav a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  white-space: nowrap;
  font-size: .96rem;
  font-weight: 700;
  text-decoration: none;
}
.mast nav a:hover, .mast nav [aria-current="page"] { text-decoration: underline; }
.bag-link span {
  display: grid;
  place-items: center;
  background: var(--dark);
  color: var(--paper);
  font-size: .73rem;
  padding: 0 .35rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
  border-radius: 30px;
  font-variant-numeric: tabular-nums;
}
.pill {
  display: inline-flex;
  width: fit-content;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.25rem;
  border: 1px solid var(--dark);
  border-radius: 999px;
  color: var(--paper);
  background: var(--dark);
  font: 700 .96rem/1.15 var(--text);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms, color 140ms;
}
.pill:hover { background: #36523a; }
.pill.outline { background: transparent; color: var(--dark); }
.pill.outline:hover { background: var(--leaf); }
.pill.full { width: 100%; }
.site-footer { background: var(--leaf); }
.footer-columns {
  display: grid;
  grid-template-columns: minmax(205px,1.25fr) repeat(3,minmax(0,1fr));
  gap: 2rem 3vw;
  padding-block: 41px 45px;
}
.footer-brand .wordmark { width: min(100%,218px); margin-left: -11px; }
.footer-brand p { margin-top: .72rem; max-width: 22ch; }
.site-footer h2 {
  margin: 0 0 .46rem;
  font: 600 1.27rem/1.18 var(--display);
}
.site-footer h2 a { text-decoration: none; }
.site-footer h2 a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  font-size: .88rem;
  text-decoration: none;
}
.site-footer li a:hover { text-decoration: underline; }
.absolute-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  border-top: 1px solid var(--border);
  padding-block: 18px;
  background: var(--cream);
  font-size: .875rem;
}
.absolute-footer .operator-lines { min-width: 0; max-width: 100%; }
.absolute-footer .operator-lines p { line-height: 1.38; overflow-wrap: anywhere; }
.absolute-footer[data-layout="B"] .operator-lines { display: grid; gap: 4px; }
.absolute-footer .payment-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.absolute-footer .payment-marks img { flex: 0 0 38px; width: 38px; height: 24px; object-fit: contain; }

.featured-action { display: flex; align-items: center; gap: .9rem 1.2rem; margin-top: 1.15rem; }
.featured-action .price { font-size: 1.2rem; }
.table-shelf { border-top: 1px solid var(--border); padding-block: 48px 55px; }
.shelf-intro { display: flex; align-items: end; justify-content: space-between; gap: 1.2rem 3rem; }
.shelf-intro h2, .related > h2 {
  font: 600 clamp(2.7rem,5.1vw,5rem)/.99 var(--display);
  letter-spacing: -.045em;
}
.shelf-intro p { margin-top: .5rem; }
.collection-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px,4vw,58px); margin-top: 24px; }
.collection { display: block; text-decoration: none; }
.collection > div { position: relative; background: var(--white); aspect-ratio: 2.12; overflow: hidden; }
.collection img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: contain; transition: transform 220ms; }
.collection:hover img, .shelf-item:hover img { transform: scale(1.04); }
.collection h3 { font: 600 clamp(1.7rem,3.25vw,3.12rem)/1.01 var(--display); margin: 13px 0 4px; }
.collection:hover h3 { text-decoration: underline; text-underline-offset: .17em; }

.page-heading { text-align: center; background: var(--sage); padding-block: clamp(32px,4.4vw,66px); }
.page-heading h1 { font: italic 600 clamp(3rem,6.7vw,7rem)/.96 var(--display); letter-spacing: -.052em; }
.page-heading p { max-width: 55ch; margin: .75rem auto 0; font-size: clamp(1rem,1.5vw,1.2rem); }
.catalogue { padding-block: 26px 56px; }
.catalogue-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .9rem 1.8rem;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.choices { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.choices a, .choices button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .45rem .85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  font: 700 .9rem/1.2 var(--text);
  text-decoration: none;
}
.choices [aria-current="page"], .choices button[aria-pressed="true"] {
  background: var(--dark);
  color: var(--paper);
  border-color: var(--dark);
}
.choices a:not([aria-current="page"]):hover, .choices button[aria-pressed="false"]:hover { background: var(--leaf); }
.catalogue-inputs { display: flex; gap: 10px; flex-wrap: wrap; }
label { font-weight: 700; font-size: .86rem; }
input, select {
  width: 100%;
  min-height: 45px;
  padding: .55rem .66rem;
  margin-top: 4px;
  background: #fffcf4;
  color: var(--dark);
  border: 1px solid #84947b;
  border-radius: 3px;
  font: 500 1rem/1.25 var(--text);
}
input::placeholder { color: #566450; }
input:user-invalid, select:user-invalid { border-color: var(--error); }
.catalogue-inputs label { display: grid; align-content: start; }
.catalogue-inputs input { width: min(198px,100%); }
.result-count { margin-block: .7rem 1rem; color: var(--quiet); font-size: .88rem; font-weight: 600; }
.goods-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 25px clamp(15px,2.4vw,36px); }
.shelf-item { min-width: 0; border-bottom: 1px solid var(--border); }
.shelf-photo {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--white);
  aspect-ratio: 1.12;
  text-decoration: none;
}
.shelf-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform 220ms; }
.shelf-copy { padding-block: 13px 16px; }
.shelf-copy h2 { font: 700 clamp(1.24rem,2vw,2rem)/1.04 var(--display); letter-spacing: -.022em; }
.shelf-copy h2 a { text-decoration: none; }
.shelf-copy h2 a:hover { text-decoration: underline; }
.shelf-note { font-size: .9rem; margin-block: .42rem; color: var(--quiet); }
.price, .product-price { font-weight: 750; font-variant-numeric: tabular-nums; }

.product { padding-block: 22px 46px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .86rem; margin-bottom: 18px; }
.crumb a { min-height: 30px; display: inline-flex; align-items: center; }
.product-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: clamp(1.55rem,5.7vw,6.5rem); align-items: start; }
.gallery-primary {
  display: grid;
  align-items: center;
  justify-items: center;
  background: var(--white);
  aspect-ratio: 1.17;
}
.gallery-primary img { width: 100%; height: 100%; object-fit: contain; max-height: 590px; }
.product-gallery figcaption { margin-block: .48rem .8rem; color: var(--quiet); font-size: .85rem; }
.gallery-views { display: flex; gap: .45rem; flex-wrap: wrap; }
.thumbnail {
  width: min(115px,30%);
  min-height: 62px;
  display: grid;
  align-content: space-between;
  gap: .4rem;
  padding: 5px 5px 8px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.15;
}
.thumbnail:hover { background: var(--leaf); }
.thumbnail[aria-pressed="true"] { outline: 1px solid var(--dark); border-color: var(--dark); }
.thumbnail img { height: 60px; object-fit: contain; }
.no-photo { display: grid; place-items: center; width: 100%; height: 100%; color: var(--quiet); background: var(--leaf); min-height: 150px; text-align: center; padding: .75rem; font-size: .85rem; }
.purchase h1 {
  font: 700 clamp(2.55rem,4.9vw,5.2rem)/.91 var(--display);
  letter-spacing: -.052em;
}
.product-price { font-size: 1.33rem; margin-block: .62rem .65rem; }
.product-price span { font-size: .74rem; margin-left: .35rem; font-weight: 650; }
.product-intro { max-width: 48ch; }
.product-facts { margin-top: .9rem; }
.product-facts > div { display: grid; grid-template-columns: minmax(90px,.47fr) minmax(0,.53fr); gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--border); }
.product-facts dt { font-weight: 650; font-size: .86rem; }
.product-facts dd { font-weight: 700; overflow-wrap: anywhere; }
.add-form { display: flex; gap: .72rem; align-items: end; margin-top: .95rem; }
.add-form label { width: 93px; }
.add-form .pill { flex: 1; max-width: 325px; }
.add-message:not(:empty) { margin-top: .65rem; color: var(--dark); font-weight: 700; }
.inline-added { display: inline-flex; align-items: center; min-height: 44px; font-weight: 680; }
.product-links { margin-top: 12px; }
.product-links details { border-bottom: 1px solid var(--border); }
.product-links summary { min-height: 44px; align-content: center; cursor: pointer; font-size: .91rem; font-weight: 680; }
.product-links p { font-size: .9rem; margin-bottom: .75rem; }
.related { padding-block: 31px 44px; border-top: 1px solid var(--border); }
.related > h2 { margin-bottom: 20px; font-size: clamp(2.45rem,4.1vw,4.25rem); }
.related-grid { grid-template-columns: repeat(2,minmax(0,275px)); justify-content: start; }

.commerce { padding-block: 35px 55px; min-height: 300px; }
.commerce-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); gap: clamp(1.4rem,5vw,5rem); align-items: start; }
.empty { border-block: 1px solid var(--border); background: var(--cream); padding: 36px clamp(16px,4vw,55px); }
.empty h2, .summary-panel h2, .checkout-left h2, .account-panel h2 {
  font: 700 clamp(1.85rem,3.45vw,3.6rem)/.99 var(--display);
  letter-spacing: -.037em;
}
.empty p { margin-block: .6rem .9rem; }
.bag-items { border-top: 1px solid var(--border); }
.bag-item { display: grid; grid-template-columns: minmax(82px,24%) minmax(0,1fr) auto; align-items: start; gap: .85rem; padding: 16px 0; border-bottom: 1px solid var(--border); }
.bag-item figure { background: var(--white); min-width: 0; }
.bag-item img { aspect-ratio: 1.15; object-fit: contain; }
.bag-item h3 { font: 700 clamp(1.15rem,2vw,1.8rem)/1.04 var(--display); margin-bottom: .25rem; }
.bag-item h3 a { text-decoration: none; }
.bag-item h3 a:hover { text-decoration: underline; }
.bag-item label { display: block; width: 85px; margin-top: .5rem; }
.bag-item label input { min-height: 39px; }
.bag-item button { background: transparent; border: 0; padding: 0; min-height: 35px; text-decoration: underline; font-size: .83rem; }
.bag-item > .price { text-align: right; }
.continue { margin-top: .65rem; display: inline-flex; align-items: center; min-height: 44px; font-weight: 680; }
.summary-panel { padding: clamp(17px,3vw,42px); border: 1px solid var(--border); background: var(--leaf); }
.summary-panel h2 { margin-bottom: .8rem; }
.summary-line, .totals > div { display: flex; justify-content: space-between; align-items: start; gap: .85rem; padding: .57rem 0; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.summary-line span:first-child { max-width: 28ch; }
.summary-line { font-size: .89rem; }
.totals dd { font-weight: 750; white-space: nowrap; }
.totals .total { font-weight: 750; font-size: 1.15rem; }
.small { font-size: .87rem; }
.summary-panel .small { margin-block: .7rem 1rem; color: var(--quiet); }
.summary-panel > a:not(.pill) { display: inline-flex; align-items: center; min-height: 44px; }
.checkout-form { margin-top: 8px; }
.checkout-form section, .order-review { padding: 15px 0 19px; border-bottom: 1px solid var(--border); }
.checkout-form section h2 { margin-bottom: 10px; }
.checkout-form .fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .72rem; }
.fields .wide { grid-column: 1 / -1; }
.checkout-form > .pill { margin-top: 15px; }
.order-review > p { margin-block: .8rem 1rem; }
.preview-note { padding: .55rem .75rem; background: var(--leaf); border-block: 1px solid var(--border); font-size: .87rem; font-weight: 650; }
.account-wrap { padding-block: 38px 54px; }
.account-panel { width: min(100%,575px); margin-inline: auto; border-block: 1px solid var(--border); padding-block: 15px 26px; }
.account-choices { margin-block: 13px 19px; }
.account-panel form { display: grid; gap: .72rem; }
.account-panel [role="status"]:not(:empty) { margin-top: .85rem; font-weight: 680; }

.about-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.4rem,5vw,5.2rem); align-items: start; padding-block: 42px 56px; }
.about-layout img { aspect-ratio: 1.43; object-fit: cover; object-position: 58%; }
.about-layout figcaption { margin-top: .48rem; color: var(--quiet); font-size: .82rem; }
.about-layout h2, .reading h2 { font: 700 clamp(1.8rem,3.8vw,4rem)/.98 var(--display); letter-spacing: -.039em; }
.about-layout p { margin-block: .79rem; }
.policy-directory { padding-block: 32px 52px; }
.policy-directory ul { max-width: 760px; margin: 0 auto; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.policy-directory a { display: flex; align-items: center; min-height: 69px; border-bottom: 1px solid var(--border); font: 700 1.65rem/1.08 var(--display); text-decoration: none; }
.policy-directory a:hover { text-decoration: underline; }
.reading { display: grid; grid-template-columns: minmax(0,1fr) minmax(165px,.35fr); align-items: start; gap: clamp(1.2rem,6vw,6rem); padding-block: 32px 54px; }
.reading-main { max-width: 75ch; }
.reading-main section { padding: 16px 0 24px; border-bottom: 1px solid var(--border); }
.reading-main h2 { font-size: clamp(1.7rem,2.65vw,2.85rem); margin-block-end: .46rem; }
.reading-main p { max-width: 70ch; }
.reading-main .pill { margin-top: 12px; }
.reading-side { padding: 15px 17px; background: var(--leaf); }
.reading-side ul { list-style: none; padding: 0; }
.reading-side a { display: inline-flex; align-items: center; min-height: 36px; }
.section-link { font-weight: 750; }

@media(max-width:960px) {
  .goods-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .related-grid { grid-template-columns: repeat(2,minmax(0,260px)); }
  .footer-columns { grid-template-columns: 1fr 1fr; }
}
@media(max-width:640px) {
  .mast { gap: .05rem .5rem; grid-template-columns: 1fr 1fr; padding-top: 8px; }
  .mast .wordmark { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: min(210px,56vw); }
  .mast nav { gap: clamp(.58rem,3vw,1.3rem); }
  .mast nav a { font-size: .85rem; }
  .table-shelf { padding-block: 32px 38px; }
  .shelf-intro { display: grid; gap: .82rem; }
  .collection-list { gap: 12px; }
  .collection > div { aspect-ratio: 1.17; }
  .collection h3 { font-size: 1.43rem; }
  .collection p { font-size: .83rem; }
  .footer-columns { gap: 1.25rem .8rem; padding-block: 27px 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand .wordmark { width: 176px; }
  .footer-brand p { margin-top: .3rem; max-width: none; }
  .site-footer li a { min-height: 40px; }
  .absolute-footer { flex-direction: column; align-items: flex-start; font-size: .82rem; }
  .page-heading { padding-block: 25px 29px; }
  .page-heading h1 { font-size: clamp(2.75rem,11vw,4.15rem); }
  .catalogue { padding-block: 15px 34px; }
  .catalogue-tools { display: grid; gap: .65rem; }
  .choices a, .choices button { padding-inline: .61rem; font-size: .83rem; }
  .catalogue-inputs { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .catalogue-inputs input { width: 100%; }
  .goods-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .shelf-copy h2 { font-size: 1.22rem; }
  .shelf-note { font-size: .81rem; }
  .product { padding-block: 13px 31px; }
  .crumb { margin-bottom: 10px; }
  .product-layout { grid-template-columns: 1fr; gap: 16px; }
  .gallery-primary { aspect-ratio: 1.25; }
  .purchase h1 { font-size: clamp(2.55rem,9vw,3.6rem); }
  .related { padding-block: 27px 37px; }
  .commerce { padding-block: 23px 37px; }
  .commerce-grid, .about-layout, .reading { grid-template-columns: 1fr; gap: 1.25rem; }
  .bag-item { grid-template-columns: minmax(63px,24%) minmax(0,1fr) auto; gap: .5rem; }
  .bag-item > .price { font-size: .88rem; }
  .about-layout, .reading { padding-block: 24px 36px; }
  .account-wrap { padding-block: 24px 35px; }
}
@media(max-width:350px) {
  .choices { gap: 3px; }
  .choices a, .choices button { padding-inline: .5rem; font-size: .79rem; }
  .catalogue-inputs select { font-size: .9rem; }
}
@media(prefers-reduced-motion:reduce) {
  .pill, .collection img, .shelf-photo img { transition: none; }
}
