/* Base reset */
:root { color-scheme: light; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Layout concept: a tailor's fitting room. A bottle-green hero and cloth room frame a 4 x 3 wall of
   colour-blocked tiles, where each shirt hangs against its own painted backdrop. Square corners throughout.
   A single deliberate look, so it stays the same in light and dark viewer themes. */
:root {
  --loden: #16291f;
  --loden-soft: #21392c;
  --oyster: #e9e8e1;
  --oyster-deep: #dcdbd2;
  --ink: #15201a;
  --muted: #535c55;
  --pale: #e8e6db;
  --pale-muted: #aeb6ab;
  --brass: #c4a264;
  --brass-deep: #7d5f2a;
  --rule: rgba(21, 32, 26, .18);
  --rule-pale: rgba(232, 230, 219, .2);
  --error: #8c1f24;
  --display: "Italiana", "Didot", "Bodoni MT", Georgia, serif;
  --body: "Jost", "Century Gothic", "Avenir Next", "Segoe UI", sans-serif;
  --gutter-l: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 56px), env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html { background: var(--loden); scroll-padding-top: 76px; }
body {
  background: var(--oyster); color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--loden);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.wrap { max-width: 1480px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.price { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 32px; text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--pale); }
.btn-ink { background: var(--ink); color: var(--pale); width: 100%; }
.btn-ink:hover { background: var(--loden-soft); }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--loden); color: var(--pale); border-bottom: 1px solid var(--rule-pale); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.mark { font-family: var(--display); font-size: 26px; letter-spacing: .24em; text-decoration: none; }
.site-nav { display: flex; gap: 36px; font-size: 14px; letter-spacing: .08em; }
.site-nav a { text-decoration: none; padding-block: 10px; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--brass); }
.bag-btn { min-height: 44px; padding-inline: 4px; font-size: 14px; letter-spacing: .08em; }
.bag-btn:hover { color: var(--brass); }
.bag-count { font-variant-numeric: tabular-nums; color: var(--brass); }
@media (max-width: 680px) {
  html { scroll-padding-top: 116px; }
  .site-head .wrap { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-block: 8px 2px; }
  .mark { font-size: 22px; }
  .site-nav { order: 3; width: 100%; gap: 8px; justify-content: space-between; font-size: 13px; letter-spacing: .02em; }
}

/* Hero */
.hero { background: var(--loden); color: var(--pale); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 32px; padding-block: clamp(40px, 6vw, 88px); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; min-width: 0; }
.hero .eyebrow { color: var(--brass); }
.hero h1 { font-size: clamp(76px, 14.5vw, 232px); line-height: .9; margin-left: -.03em; }
.hero h1 span { display: block; }
.hero-lede { max-width: 30em; font-size: clamp(18px, 1.6vw, 22px); font-weight: 300; line-height: 1.5; }
.hero-art { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; width: 100%; }
.hero-art svg { width: 100%; max-width: 600px; }
.hero-art:hover .shirt-name { color: var(--brass); }
.hero-caption { font-size: 14px; color: var(--pale-muted); letter-spacing: .04em; }
.shirt-name { color: var(--pale); transition: color .2s; }
.shirt { display: block; height: auto; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .3)); }
@media (prefers-reduced-motion: no-preference) {
  .hero-art svg { animation: settle 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes settle { from { transform: translateY(22px) scale(.97); } to { transform: none; } }
}
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-art svg { max-width: 440px; }
}

/* Offers */
.promo { background: var(--brass); color: var(--ink); font-size: 14px; line-height: 1.4; text-align: center; }
.promo .wrap { padding-block: 9px; }
.promo strong { font-weight: 500; letter-spacing: .08em; }
.offers { background: var(--oyster-deep); padding-block: clamp(48px, 6vw, 88px); }
.offer-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.offer { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; padding: 28px clamp(16px, 2.4vw, 36px); border-left: 1px solid var(--rule); }
.offer:first-child { border-left: 0; padding-left: 0; }
.offer h3 { font-size: clamp(38px, 4.2vw, 60px); line-height: 1; }
.offer p { color: var(--muted); max-width: 26em; }
.offer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: auto; padding-top: 10px; }
.offer-code { font-size: 15px; font-weight: 500; letter-spacing: .14em; padding: 8px 12px; border: 1px dashed var(--brass-deep); user-select: all; }
.use-code { min-height: 44px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--brass-deep); }
.use-code:hover { text-decoration-color: var(--ink); }
.use-code[aria-pressed="true"] { color: var(--brass-deep); text-decoration: none; }
.offers-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 820px) {
  .offer-list { grid-template-columns: minmax(0, 1fr); }
  .offer, .offer:first-child { border-left: 0; border-bottom: 1px solid var(--rule); padding: 24px 0; }
}

/* Collection */
.section-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px 32px; align-items: end; padding-bottom: clamp(24px, 3vw, 44px); }
.section-head h2 { font-size: clamp(42px, 6vw, 88px); line-height: 1; }
.section-head p { max-width: 34em; color: var(--muted); }
@media (max-width: 820px) { .section-head { grid-template-columns: minmax(0, 1fr); } }
.collection { padding-block: clamp(56px, 7vw, 104px); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(32px, 3.4vw, 52px) clamp(12px, 1.6vw, 24px); }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid > li { display: flex; min-width: 0; }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; width: 100%; min-width: 0; }
.tile { position: relative; aspect-ratio: 4 / 5; max-width: 100%; display: flex; align-items: center; justify-content: center; padding: 8% 5%; overflow: hidden; }
.tile .shirt { width: 100%; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card:hover .tile .shirt { transform: translateY(-6px) scale(1.035); }
.tile-no { position: absolute; top: 12px; left: 14px; font-size: 13px; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.card-body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 { font-size: clamp(21px, 1.9vw, 27px); line-height: 1.2; min-width: 0; }
.card-open { text-align: left; font-family: inherit; }
.card-open::after { content: ""; position: absolute; inset: 0; }
.card-open:focus-visible { outline: 0; }
.card-open:focus-visible::after { outline: 2px solid var(--brass-deep); outline-offset: 3px; }
.card-price { font-size: 16px; }
.card-meta { font-size: 15px; line-height: 1.45; color: var(--muted); }
.card-cta { margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.card-cta span { border-bottom: 1px solid var(--brass-deep); padding-bottom: 2px; transition: border-color .2s; }
.card:hover .card-cta span { border-bottom-color: var(--ink); }

/* Cloth room */
.cloth { background: var(--loden); color: var(--pale); padding-block: clamp(56px, 7vw, 104px); }
.cloth .section-head p { color: var(--pale-muted); }
.cloth-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 64px); padding-block: 32px; border-top: 1px solid var(--rule-pale); }
.cloth-cols > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cloth-cols h3 { font-size: 30px; line-height: 1.15; }
.cloth-cols p { color: var(--pale-muted); max-width: 32em; }
@media (max-width: 820px) { .cloth-cols { grid-template-columns: minmax(0, 1fr); } }
.weights { border-top: 1px solid var(--rule-pale); padding-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.weights .eyebrow { color: var(--brass); }
.weight-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4px 24px; align-items: baseline; padding-block: 12px; border-bottom: 1px solid var(--rule-pale); }
.weight-row strong { font-weight: 400; font-size: 18px; }
.weight-row strong small { font-size: 14px; color: var(--pale-muted); margin-left: 6px; font-variant-numeric: tabular-nums; }
.weight-row p { color: var(--pale-muted); }
@media (max-width: 680px) { .weight-row { grid-template-columns: minmax(0, 1fr); } }

/* Fit */
.tape { display: flex; overflow: hidden; height: 40px; background: var(--brass); color: var(--ink); }
.tape span {
  flex: 0 0 90px; padding: 15px 0 0 5px; font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 1px 14px no-repeat,
    repeating-linear-gradient(90deg, rgba(21, 32, 26, .75) 0 1px, transparent 1px 9px) 0 0 / 100% 7px no-repeat;
}
.fit { }
.fit .wrap { padding-block: clamp(56px, 7vw, 104px); }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 14px 12px 14px 0; text-align: left; border-bottom: 1px solid var(--rule); }
thead th { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
tbody th { font-size: 17px; font-weight: 500; }
.fit-note { margin-top: 20px; color: var(--muted); max-width: 44em; font-size: 15px; }

/* Footer */
.site-foot { background: var(--loden); color: var(--pale-muted); font-size: 15px; }
.site-foot .wrap { display: flex; flex-direction: column; gap: 40px; padding-block: 56px 40px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 64px); }
.foot-cols h3 { font-family: var(--body); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--pale); margin-bottom: 8px; }
@media (max-width: 960px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .foot-cols { grid-template-columns: minmax(0, 1fr); } }
.foot-word { font-family: var(--display); color: var(--pale); font-size: clamp(56px, 15vw, 220px); line-height: .9; letter-spacing: .06em; overflow-wrap: anywhere; }

/* Dialogs */
dialog { border: 0; padding: 0; background: var(--oyster); color: var(--ink); }
dialog::backdrop { background: rgba(9, 16, 12, .62); }
.product { width: min(1000px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: auto; }
.product-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); position: relative; }
.product .tile { aspect-ratio: auto; min-height: 100%; padding: 8%; }
.product-info { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 4vw, 44px); min-width: 0; }
.product-info h2 { font-size: clamp(36px, 4.4vw, 52px); line-height: 1.05; padding-right: 32px; }
.product-price { font-size: 22px; }
.product-desc { color: var(--muted); }
.specs { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 20px; margin: 0; padding-block: 14px; border-block: 1px solid var(--rule); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-variant-numeric: tabular-nums; }
.sizes { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sizes legend { padding: 0; margin-bottom: 8px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.sizes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sizes label { display: flex; align-items: center; justify-content: center; min-width: 54px; min-height: 46px; padding-inline: 10px; border: 1px solid var(--rule); cursor: pointer; font-size: 15px; transition: background-color .15s, color .15s, border-color .15s; }
.sizes label:hover { border-color: var(--ink); }
.sizes input:checked + label { background: var(--ink); color: var(--pale); border-color: var(--ink); }
.sizes input:focus-visible + label { outline: 2px solid var(--brass-deep); outline-offset: 2px; }
.form-error { color: var(--error); font-size: 15px; }
.size-link { font-size: 14px; color: var(--muted); }
.close-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; font-size: 26px; line-height: 1; font-weight: 300; z-index: 1; display: flex; align-items: center; justify-content: center; }
.close-x:hover { color: var(--brass-deep); }
@media (max-width: 720px) {
  .product-in { grid-template-columns: minmax(0, 1fr); }
  .product .tile { min-height: 0; height: 280px; padding: 16px; }
  .product .tile .shirt { width: auto; height: 100%; max-width: 100%; }
  .close-x { background: var(--oyster); }
}

.bag {
  margin: 0 0 0 auto; width: min(460px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px);
}
.bag[open] { display: flex; flex-direction: column; }
.bag-head { position: relative; padding: 24px 64px 20px 24px; border-bottom: 1px solid var(--rule); }
.bag-head h2 { font-size: 32px; line-height: 1.1; }
.bag-items { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 0 24px; min-height: 0; }
.bag-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding-block: 18px; border-bottom: 1px solid var(--rule); }
.bag-thumb { width: 72px; height: 90px; display: flex; align-items: center; justify-content: center; padding: 6px; }
.bag-thumb .shirt { width: 100%; filter: none; }
.bag-item h3 { font-size: 21px; line-height: 1.2; }
.bag-sub { font-size: 14px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 2px; margin-top: 6px; }
.qty button { width: 34px; height: 34px; border: 1px solid var(--rule); font-size: 17px; line-height: 1; }
.qty button:hover { border-color: var(--ink); }
.qty output { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.bag-line-end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.remove { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; min-height: 34px; }
.remove:hover { color: var(--ink); }
.bag-empty { padding-block: 32px; display: flex; flex-direction: column; gap: 8px; }
.bag-empty strong { font-family: var(--display); font-size: 26px; font-weight: 400; }
.bag-empty p { color: var(--muted); }
.bag-foot { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px 24px; border-top: 1px solid var(--rule); background: var(--oyster-deep); }
.bag-row { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.bag-total { font-size: 20px; }
.bag-note { font-size: 14px; color: var(--muted); }
.bag { overflow-y: auto; }
.bag .bag-items { min-height: 130px; }
.coupon-form { display: flex; flex-wrap: wrap; gap: 8px; }
.coupon-form label { flex: 1 0 100%; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.coupon-form input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; font: 400 16px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--oyster); border: 1px solid var(--rule); border-radius: 0; }
.coupon-form input::placeholder { letter-spacing: 0; text-transform: none; color: var(--muted); }
.coupon-form button { min-height: 44px; padding-inline: 18px; border: 1px solid var(--ink); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.coupon-form button:hover { background: var(--ink); color: var(--pale); }
.coupon-status { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; font-size: 14px; }
.coupon-status.bad { color: var(--error); }
.coupon-status button { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.bag-rows { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--rule); }

/* Store additions */
.todo { background: #ffe27a; color: #15201a; padding: 0 3px; }
.bag-btn { display: inline-flex; align-items: center; text-decoration: none; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--brass); }
.service { border-top: 1px solid var(--rule); }
.service .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 64px); padding-block: clamp(40px, 5vw, 64px); }
.service h2 { font-size: 28px; margin-bottom: 8px; }
.service p { color: var(--muted); max-width: 32em; }
@media (max-width: 720px) { .service .wrap { grid-template-columns: minmax(0, 1fr); } }
.shirt-photo { display: block; width: 100%; height: 100%; object-fit: contain; }
.buy-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.buy-row .btn { width: 100%; padding-inline: 12px; }
.buy-row .btn-brass:hover { background: var(--ink); color: var(--pale); }
.checkout-form { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid var(--rule); }
.checkout-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.checkout-form input, .checkout-form textarea { width: 100%; min-height: 44px; padding: 8px 12px; font: 400 16px var(--body); color: var(--ink); background: var(--oyster); border: 1px solid var(--rule); border-radius: 0; }
#send-order { width: 100%; }
.bag-note.bad { color: var(--error); }
.doc { padding-block: clamp(48px, 6vw, 88px); }
.doc .wrap { display: flex; flex-direction: column; gap: 28px; }
.doc h1 { font-size: clamp(44px, 7vw, 92px); line-height: 1; }
.doc-body { display: flex; flex-direction: column; gap: 14px; max-width: 44em; min-width: 0; }
.doc-body h2 { font-size: 30px; line-height: 1.15; margin-top: 18px; }
.doc-body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.doc-body a { text-underline-offset: 3px; }
.doc-updated { color: var(--muted); font-size: 15px; }
.doc-body .btn { align-self: flex-start; margin-top: 10px; }

/* Brand photos: fabric and mood images, not product shots */
.brand-photo { margin: 0; }
.brand-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.cloth-photo { margin-bottom: 32px; }
.cloth-photo img { aspect-ratio: 21 / 8; }
@media (max-width: 680px) { .cloth-photo img { aspect-ratio: 16 / 10; } }

/* Product photos fill their tile */
.tile:has(.shirt-photo), .bag-thumb:has(.shirt-photo) { padding: 0; }
.tile .shirt-photo { position: absolute; inset: 0; object-fit: cover; object-position: center top; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card:hover .tile .shirt-photo { transform: scale(1.03); }
.bag-thumb .shirt-photo { object-fit: cover; }
.tile-no { z-index: 1; }
.hero-art .shirt-photo { width: 100%; max-width: 560px; height: auto; aspect-ratio: 1; object-fit: cover; }
.tile:has(.shirt-photo) .tile-no { top: 8px; left: 8px; padding: 2px 7px; background: rgba(236, 234, 228, .88); color: #15201a !important; }
