@font-face {
  font-family: Inter;
  src: url("/static/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #625d58;
  --stone: #f5f4f1;
  --rule: #e5e2de;
  --gutter: clamp(20px, 4.45vw, 64px);
  --gap: clamp(12px, 1.7vw, 24px);
  --section: clamp(52px, 6.4vw, 92px);
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-underline-offset: .22em; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid #2367a2; outline-offset: 4px; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.036em; }
h1 { font-size: clamp(2.15rem, 4.4vw, 4rem); font-weight: 620; }
h2 { font-size: clamp(1.65rem, 3.1vw, 2.8rem); font-weight: 630; }

.shell { width: min(calc(100% - 2 * var(--gutter)), 1440px); margin-inline: auto; }
.skip { position: absolute; transform: translateY(-150%); z-index: 3; padding: .6rem; background: white; }
.skip:focus { transform: translateY(0); }
.muted { color: var(--muted); }

.site-header { border-bottom: 1px solid var(--rule); }
.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto auto minmax(8rem, 1fr) auto;
  gap: clamp(18px, 2.5vw, 36px);
  align-items: center;
}
.wordmark, .desktop-nav a, .mobile-nav a, .site-footer a { text-decoration: none; }
.wordmark { font-size: 1.8rem; font-weight: 750; line-height: 1; letter-spacing: -.07em; }
.wordmark span { margin-left: .045em; }
.desktop-nav { display: flex; gap: clamp(12px, 1.65vw, 24px); font-size: .83rem; font-weight: 590; }
.desktop-nav a:hover, .site-footer a:hover { text-decoration: underline; }
.header-search {
  display: flex;
  align-items: center;
  background: var(--stone);
  border: 1px solid var(--rule);
  border-radius: 100px;
}
.header-search input {
  width: 100%;
  min-width: 0;
  padding: .55rem 1rem;
  background: transparent;
  border: 0;
  border-radius: 100px;
  color: inherit;
}
.header-search input::placeholder { color: var(--muted); }
.icon-button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
}
.icon-button::-webkit-details-marker { display: none; }
.icon { display: block; position: relative; }
.search-icon { width: 12px; height: 12px; border: 1.5px solid; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: currentColor; transform: rotate(45deg); left: 8px; top: 9px; }
.bag-icon { width: 14px; height: 14px; border: 1.5px solid; }
.bag-icon::before { content: ""; position: absolute; width: 5px; height: 6px; border: 1.5px solid; border-bottom: 0; border-radius: 7px 7px 0 0; top: -6px; left: 2.6px; }
.menu-icon { width: 16px; height: 8px; border-block: 1.5px solid; }
.mobile-nav { display: none; }

.home { padding-block: 24px var(--section); }
.hero { display: grid; grid-template-columns: 42% 58%; background: var(--stone); position: relative; }
.hero-copy { align-self: center; padding: clamp(24px, 4.55vw, 72px); }
.hero-copy h1 { font-size: clamp(2.2rem, 4.6vw, 4.5rem); margin-block: .42em .3em; letter-spacing: -.07em; }
.hero-copy h1 a { text-decoration: none; }
.hero-copy h1 a::after { content: ""; position: absolute; inset: 0; }
.hero-copy h1 a:focus-visible::after { outline: 2px solid #2367a2; outline-offset: 4px; }
.hero-copy h1 span { display: inline-block; font-size: .45em; vertical-align: .35em; margin-left: .2em; }
.hero-description { color: var(--muted); font-size: clamp(.93rem, 1.25vw, 1.125rem); }
.eyebrow { font-size: .72rem; font-weight: 730; text-transform: uppercase; letter-spacing: .11em; }
.eyebrow::before { content: ""; width: .45em; height: .45em; background: currentColor; display: inline-block; margin-right: .6em; vertical-align: .12em; }
.hero-image { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 23%; }
.home-section { margin-top: var(--section); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: var(--gap); }
.section-heading a { text-underline-offset: .3em; font-size: .83rem; font-weight: 620; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.category-card { display: block; text-decoration: none; }
.category-card h3 { display: flex; justify-content: space-between; padding: .65rem 0; font-size: clamp(.98rem, 2vw, 1.45rem); }
.category-card:hover h3 { text-decoration: underline; }
.photo { display: block; background-color: var(--stone); background-repeat: no-repeat; }
.category-photo { aspect-ratio: 4 / 3; background-image: url("/static/media/categories.webp"); background-size: 200% auto; }
.category-women { background-position: 0 26%; }
.category-men { background-position: 100% 26%; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(var(--gap) * 1.65) var(--gap); }
.product-card h3 { margin-top: .7rem; font-size: .94rem; letter-spacing: -.02em; }
.product-card h3 a { text-decoration: none; }
.product-card h3 a:hover { text-decoration: underline; }
.card-image { display: block; position: relative; }
.item-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-image: url("/static/media/products.webp");
  background-size: 400% 178%;
  background-position: var(--frame, 0%) center;
}
.item-overshirt { --frame: 0%; }
.item-tee { --frame: 33.3333%; }
.item-trousers { --frame: 66.6667%; }
.item-knit { --frame: 100%; }
.tag { position: absolute; top: .6rem; left: .6rem; background: white; padding: .15rem .45rem; font-size: .69rem; }
.card-price { font-size: .86rem; font-weight: 650; margin-top: .25rem; }
del { font-size: .78em; color: var(--muted); font-weight: 450; white-space: nowrap; }
.card-swatches { display: flex; gap: .35rem; list-style: none; padding: 0; margin: .45rem 0 0; }
.swatch { display: block; width: .75rem; height: .75rem; border: 1px solid #0003; border-radius: 50%; }
.graphite { background: #46484b; }
.sand { background: #c5ad8e; }
.ivory { background: #f1e8d5; }
.grey { background: #a9a49a; }

.listing, .product, .cart, .checkout, .error-page { padding-block: clamp(24px, 4vw, 56px) var(--section); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .8rem; margin-bottom: clamp(20px, 3vw, 35px); }
.breadcrumbs a { color: var(--muted); }
.category-nav { display: flex; flex-wrap: wrap; gap: 1.35rem; border-bottom: 1px solid var(--rule); margin-top: 1.75rem; }
.category-nav a { padding-bottom: .65rem; text-decoration: none; border-bottom: 2px solid transparent; }
.category-nav a[aria-current], .category-nav a:hover { border-bottom-color: var(--ink); }
.results { margin-block: 1rem; font-size: .86rem; }

.product-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(24px, 6vw, 90px); align-items: start; }
.product-media .photo { aspect-ratio: 5 / 6; }
.product-details { padding-block: .1rem; }
.product-details h1 { font-size: clamp(1.85rem, 3.5vw, 3.3rem); }
.product-description { color: var(--muted); margin: 1rem 0 1.5rem; }
.variant-picker { margin-bottom: 1rem; }
.variant-picker fieldset { padding: 0; margin: 0 0 .95rem; border: 0; min-width: 0; }
.variant-picker legend { padding: 0; margin-bottom: .45rem; font-size: .86rem; font-weight: 680; }
.option-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.color-choice, .size-choice { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; gap: .4rem; padding: .4rem .65rem; border: 1px solid #a9a39c; cursor: pointer; font-size: .84rem; }
.color-choice input, .size-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.color-choice:has(:checked), .size-choice:has(:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.color-choice:has(:focus-visible), .size-choice:has(:focus-visible) { outline: 2px solid #2367a2; outline-offset: 3px; }
.color-choice .swatch { width: 1.15rem; height: 1.15rem; }
.offer-price { font-size: 1.3rem; font-weight: 690; }
.stock, .sku { font-size: .87rem; margin-top: .35rem; }
.buy-form { display: flex; gap: .7rem; align-items: end; margin-top: .9rem; }
.quantity-label { display: inline-grid; gap: .2rem; font-size: .78rem; }
.quantity-label input { width: 6.5rem; min-height: 44px; padding: .35rem .65rem; border: 1px solid #a9a39c; color: inherit; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1.15rem; border: 1px solid var(--ink); background: var(--ink); color: white; font-weight: 610; font-size: .85rem; text-decoration: none; }
.button:hover { background: #373431; }
.button.secondary { background: white; color: var(--ink); }
.button.secondary:hover { background: var(--stone); }
.button[hidden] { display: none; }
.guide { margin-top: 1.6rem; border-block: 1px solid var(--rule); padding: .75rem 0; font-size: .87rem; }
.guide summary { font-weight: 650; }
.guide table { width: 100%; text-align: left; border-collapse: collapse; margin-top: .85rem; }
.guide caption { text-align: left; color: var(--muted); margin-bottom: .6rem; }
.guide th, .guide td { border-bottom: 1px solid var(--rule); padding: .35rem; }

.cart h1, .checkout h1, .error-page h1 { margin-bottom: 1.5rem; }
.cart > .button, .error-page .button { margin-top: 1rem; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 1fr); gap: clamp(24px, 5vw, 74px); align-items: start; }
.cart-list { list-style: none; padding: 0; margin: 0; }
.cart-item { display: grid; grid-template-columns: 86px 1fr auto; align-items: start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.cart-item:first-child { padding-top: 0; }
.cart-item h2 { font-size: 1.05rem; margin-bottom: .4rem; }
.cart-item p { font-size: .84rem; }
.cart-item-main { min-width: 0; }
.cart-action { display: inline-flex; flex-wrap: wrap; align-items: end; gap: .45rem; margin: .4rem .4rem 0 0; }
.text-button { background: none; border: 0; min-height: 44px; text-decoration: underline; text-underline-offset: .2rem; font-size: .82rem; }
.cart-price { white-space: nowrap; }
.cart-summary { padding: clamp(1rem, 2.6vw, 2.15rem); background: var(--stone); }
.cart-summary h2 { font-size: 1.55rem; margin-bottom: .85rem; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; }
.summary-line.total { border-top: 1px solid var(--rule); padding-top: .6rem; margin-top: .6rem; }
.cart-summary .button { width: 100%; margin-top: 1.15rem; }
.cart-summary .button + .button { margin-top: .55rem; }

.checkout-form, .order-details { display: grid; gap: 1.45rem; }
.checkout-form fieldset { display: grid; gap: .75rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.checkout-form legend, .order-details h2 { padding: 0; margin-bottom: .75rem; font-size: 1.3rem; font-weight: 630; }
.checkout-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.checkout-form label { display: block; font-size: .86rem; }
.checkout-form input:not([type=hidden]) { display: block; width: 100%; min-height: 44px; margin-top: .25rem; padding: .5rem .65rem; border: 1px solid #a9a39c; color: inherit; }
.checkout-lines { display: grid; gap: .75rem; list-style: none; margin: 0 0 .85rem; padding: 0 0 .85rem; border-bottom: 1px solid var(--rule); }
.checkout-lines .muted, .checkout-note, .order-status dt { font-size: .86rem; }
.checkout-note { margin-top: .9rem; }
.checkout-message { margin-bottom: 1.25rem; padding: .75rem 1rem; border-left: 3px solid #8f312a; background: #f9efec; }
.order-number { margin: -.85rem 0 1.5rem; font-size: .86rem; overflow-wrap: anywhere; }
.order-details { overflow-wrap: anywhere; }
.order-details .button { justify-self: start; }
.order-status { display: flex; flex-wrap: wrap; gap: .75rem 2rem; padding: .8rem 1rem; margin: 0; border: 1px solid var(--rule); }
.order-status dt { color: var(--muted); }
.order-status dd { margin: 0; font-weight: 630; }

.site-footer { background: var(--ink); color: white; padding: clamp(30px, 5vw, 64px) 0; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--gap); }
.footer-inner nav { display: grid; gap: .45rem; align-content: start; }
.footer-inner h2 { font-size: 1rem; letter-spacing: 0; }
.footer-inner nav a { font-size: .87rem; }

@media (max-width: 1050px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 850px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; justify-self: end; position: relative; }
  .mobile-nav nav { position: absolute; right: 0; z-index: 2; display: grid; min-width: 11rem; background: white; border: 1px solid var(--rule); box-shadow: 0 9px 20px #0001; }
  .mobile-nav nav a { padding: .75rem 1rem; }
  .mobile-nav nav a:hover { background: var(--stone); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .header-inner { grid-template-columns: 1fr auto auto; row-gap: 0; column-gap: .15rem; padding-block: .3rem .65rem; }
  .header-search { grid-column: 1 / -1; grid-row: 2; }
  .wordmark { font-size: 1.65rem; }
  .home { padding-top: .8rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 22px 20px 24px; }
  .hero-copy h1 { font-size: clamp(2.05rem, 8.8vw, 3.35rem); }
  .hero-image { aspect-ratio: 1.09; }
  .category-photo { aspect-ratio: 3 / 4; }
  .section-heading a { font-size: .73rem; }
  .product-layout, .cart-layout { grid-template-columns: 1fr; }
  .checkout-fields { grid-template-columns: 1fr; }
  .product-media .photo { aspect-ratio: 4 / 5; }
  .cart-item { grid-template-columns: 66px 1fr; gap: .6rem; }
  .cart-price { grid-column: 2; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .footer-inner .wordmark { grid-column: 1 / -1; }
}

@media (forced-colors: active) {
  .color-choice:has(:checked), .size-choice:has(:checked) { outline: 2px solid Highlight; }
}

.selection-label { font-size: .82rem; margin-bottom: .15rem; color: var(--muted); }
.photo-detail { margin-top: .7rem; font-size: .85rem; }
.photo-detail summary { width: fit-content; min-height: 36px; padding-block: .45rem; }
.product-media .detail-photo {
  aspect-ratio: 16 / 9;
  background-size: 700% 375%;
  background-position: var(--detail-frame, 6%) 43%;
}
.item-tee { --detail-frame: 35%; }
.item-trousers { --detail-frame: 65%; }
.item-knit { --detail-frame: 94%; }
