:root {
  color-scheme: light;
  --paper: #f8f5ee;
  --paper-dark: #efe6dc;
  --ink: #2a201d;
  --muted: #65564f;
  --wine: #52272e;
  --wine-dark: #3d1c22;
  --line: #d9cdbf;
  --white: #fffdf8;
  --display: "Outwear Serif", "Iowan Old Style", Baskerville, Georgia, serif;
  --body: "Outwear Sans", Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.6 var(--body);
}
html:has(dialog[open]) { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
button:not(:disabled) { cursor: pointer; }
:focus-visible { outline: 2px solid #8d4751; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
h2 { font-size: clamp(2.4rem, 4.1vw, 4.15rem); line-height: 1.04; letter-spacing: -.05em; }
h3 { line-height: 1.12; letter-spacing: -.022em; }
.shell { width: min(100% - 7rem, 83rem); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  background: var(--white);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.announcement {
  padding: .43rem 1rem;
  background: var(--wine-dark);
  color: var(--white);
  font-size: .78rem;
  letter-spacing: .095em;
  text-align: center;
}
.site-header { border-bottom: 1px solid var(--line); }
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 5rem;
}
.wordmark {
  justify-self: start;
  display: inline-block;
  color: var(--ink);
  font: 700 clamp(2.1rem, 3.2vw, 3rem)/1 var(--display);
  letter-spacing: -.092em;
  text-decoration: none;
}
.wordmark span { color: #803944; }
.primary-nav { display: flex; gap: clamp(1.4rem, 3.8vw, 3.9rem); }
.primary-nav a, .site-footer nav a {
  text-decoration: none;
  font-size: .895rem;
  font-weight: 550;
  text-underline-offset: .3em;
}
.primary-nav a:hover, .site-footer nav a:hover { text-decoration: underline; }
.header-social, .icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}
.header-social { justify-self: end; }
.header-social:hover { background-color: var(--paper-dark); }
.header-social svg, .icon-button svg { width: 1.2rem; height: 1.2rem; }
.hero {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  min-height: 35rem;
  margin-top: 1.35rem;
  background: var(--paper-dark);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.34rem;
  padding: clamp(2rem, 4.3vw, 4.5rem);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--wine);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow span { width: 1.55rem; height: 1px; background: currentColor; }
.hero h1 {
  font-size: clamp(4rem, 7.65vw, 8.1rem);
  line-height: .85;
  letter-spacing: -.076em;
}
.hero h1 em { color: var(--wine); font-weight: 400; }
.hero-copy > p:not(.eyebrow) { max-width: 22rem; color: var(--muted); }
.hero-figure {
  position: relative;
  min-width: 0;
  display: grid;
  overflow: hidden;
  background: #b07c68;
}
.hero-figure picture, .hero-figure img { width: 100%; height: 100%; min-height: 0; }
.hero-figure img { object-fit: cover; object-position: 58% 34%; }
.hero-caption {
  position: absolute;
  right: .85rem;
  bottom: .85rem;
  border-radius: 999px;
  padding: .3rem .68rem;
  background: rgb(38 26 23 / .87);
  color: var(--white);
  font-size: .75rem;
  line-height: 1.4;
}
.button {
  display: inline-flex;
  min-height: 3.2rem;
  justify-content: center;
  align-items: center;
  padding: .68rem 1.45rem;
  border: 1px solid transparent;
  text-align: center;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 650;
  transition: background-color .2s ease, color .2s ease;
}
.button-primary { color: var(--white); background: var(--wine); }
.button-primary:hover, .button-primary:focus-visible { background: var(--wine-dark); }
.hero .button { margin-top: .15rem; }

.shop-section { padding-block: 5rem 5.6rem; }
section[id] { scroll-margin-top: 1rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.section-heading p, .ordering p { color: var(--muted); margin-top: .62rem; }
.product-count { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .85rem 1.5rem;
  margin-block: 1.35rem 1.65rem;
  padding-block: .85rem;
  border-block: 1px solid var(--line);
}
.filter-bar { display: flex; flex-wrap: wrap; gap: .55rem; }
.fabric-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: .875rem;
  color: var(--muted);
}
.fabric-picker select {
  appearance: none;
  min-height: 2.75rem;
  padding: .42rem 2rem .42rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.fabric-picker::after {
  position: absolute;
  right: .9rem;
  width: .42rem;
  height: .42rem;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-.125rem) rotate(45deg);
  pointer-events: none;
  content: "";
}
.filter {
  min-height: 2.7rem;
  padding: .4rem 1.05rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: .885rem;
  font-weight: 550;
  transition: background-color .18s ease, color .18s ease;
}
.filter:hover { background: var(--paper-dark); color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--white); border-color: var(--wine); background: var(--wine); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem 1.25rem; }
.product-card { min-width: 0; }
.product-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.product-photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid rgb(42 32 29 / .07);
  background-color: var(--paper-dark);
}
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-open:hover img { transform: scale(1.035); }
.product-collection { display: block; margin-top: .8rem; color: var(--muted); font-size: .825rem; }
.product-name {
  display: block;
  margin-top: .1rem;
  font: 400 clamp(1.3rem, 2.2vw, 1.85rem)/1.16 var(--display);
  letter-spacing: -.034em;
}
.product-open:hover .product-name { text-decoration: underline; text-underline-offset: .17em; }
.product-price { display: block; margin-top: .35rem; font-size: .85rem; color: var(--wine); }

.fabric-section { padding-block: 4.2rem 4.7rem; background: #ede3d7; }
.fabric-section h2 { margin-bottom: 1.8rem; }
.fabric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.fabric-card { background: var(--paper); }
.fabric-card > img { aspect-ratio: 16/8.7; object-fit: cover; }
.fabric-copy {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: .8rem 1rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.fabric-copy h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.text-link {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: .3em;
  font-size: .9rem;
  font-weight: 650;
}
.text-link:hover { color: var(--ink); }
.ordering {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 4rem;
}
.ordering p { max-width: 34rem; }
.ordering .button { flex-shrink: 0; }
.order-questions { max-width: 36rem; margin-top: 1.35rem; }
.order-questions details { padding-block: .67rem; border-top: 1px solid var(--line); }
.order-questions details:last-child { border-bottom: 1px solid var(--line); }
.order-questions summary { cursor: pointer; font-weight: 600; }
.order-questions details p { margin: .38rem 0 .15rem; }
.site-footer { background: var(--wine-dark); color: var(--white); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; align-items: center; padding-block: 2.8rem; }
.footer-wordmark { color: var(--white); }
.footer-wordmark span { color: #e3adad; }
.footer-inner p { margin-top: .7rem; font-size: .9rem; color: #eadad1; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .75rem 1.8rem; }
.site-footer :focus-visible { outline-color: var(--white); }

.product-dialog {
  width: min(55rem, calc(100% - 2rem));
  max-width: 100%;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.product-dialog::backdrop { background: rgb(35 21 19 / .7); }
.detail-layout { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: start; }
.close-form { position: absolute; top: .65rem; right: .65rem; z-index: 1; }
.dialog-close { background: var(--white); }
.dialog-close:hover { background: var(--paper-dark); }
.detail-media { background: var(--paper-dark); }
.detail-media > img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: contain; }
.thumbnail-row { display: flex; flex-wrap: wrap; gap: .5rem; padding: .7rem; }
.thumbnail {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 2.75rem;
  padding: .2rem .45rem .2rem .22rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: .8rem;
  line-height: 1.15;
}
.thumbnail img { width: 2rem; height: 2rem; border-radius: .25rem; object-fit: cover; }
.thumbnail[aria-pressed="true"] { border-color: var(--wine); }
.detail-content { padding: 3.6rem 2rem 2rem; display: grid; align-content: start; gap: .9rem; }
.detail-content h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.detail-description, .detail-order-note { color: var(--muted); }
.detail-price { font-weight: 650; color: var(--wine); }
.detail-styling { padding-block: .7rem; border-block: 1px solid var(--line); }
.detail-styling h3 { margin-bottom: .25rem; font-size: 1.35rem; }
.detail-styling p { color: var(--muted); }
.detail-order-note { font-size: .875rem; }
.detail-content .button, .detail-content .text-link { justify-self: start; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 4rem); }
  .hero { min-height: 29rem; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 2.5rem); }
  .hero { min-height: 25rem; grid-template-columns: .9fr 1.1fr; }
  .hero-copy { padding: 1.6rem; }
  .hero h1 { font-size: clamp(3.35rem, 8.7vw, 5rem); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-section { padding-block: 3.7rem 4rem; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 2rem); }
  .announcement { font-size: .74rem; }
  .masthead { grid-template-columns: 1fr auto; min-height: auto; padding-top: .65rem; }
  .wordmark { font-size: 2.35rem; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-content: start; gap: 1.5rem; }
  .primary-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .85rem; }
  .header-social { grid-column: 2; grid-row: 1; }
  .hero { display: flex; flex-direction: column; margin-top: .85rem; }
  .hero-copy { padding: 1.3rem 1.2rem 1.5rem; gap: .75rem; }
  .hero h1 { font-size: clamp(3rem, 10.6vw, 4.7rem); line-height: .95; }
  .hero-break { display: none; }
  .hero-copy > p:not(.eyebrow) { font-size: .96rem; }
  .hero-figure { order: -1; aspect-ratio: 1.16; }
  .hero-figure picture, .hero-figure img { min-height: 0; }
  .shop-section { padding-block: 2.85rem 3.3rem; }
  .section-heading { flex-wrap: wrap; gap: .45rem; }
  .section-heading p { font-size: .94rem; }
  .catalog-tools { gap: .7rem; margin-block: 1rem 1.1rem; }
  .filter-bar { gap: .4rem; }
  .filter { padding-inline: .62rem; font-size: .84rem; }
  .product-grid { gap: 1.45rem .65rem; }
  .product-collection { font-size: .76rem; }
  .product-name { font-size: 1.38rem; }
  .fabric-section { padding-block: 2.8rem 3rem; }
  .fabric-grid { grid-template-columns: 1fr; gap: .85rem; }
  .fabric-copy { padding: 1rem; }
  .ordering { display: grid; padding-block: 3rem; }
  .ordering .button { justify-self: start; }
  .footer-inner { align-items: start; flex-direction: column; gap: 1.2rem; padding-block: 2.2rem; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-media > img { max-height: 49dvh; }
  .detail-content { padding: 1.3rem 1.15rem 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.empty-catalog { grid-column: 1/-1; color: var(--muted); padding-block: 1rem 3rem; }
.empty-catalog p { margin-bottom: .75rem; }

/* Soft corners and short transitions keep the catalog tactile on desktop and mobile. */
.hero { border-radius: 1.25rem; overflow: hidden; }
.button, .filter { border-radius: 999px; }
.product-photo { border-radius: .9rem; isolation: isolate; }
.fabric-card { border-radius: 1rem; overflow: hidden; }
.product-dialog { border-radius: 1.2rem; }
.thumbnail { border-radius: .45rem; }
.product-open:focus-visible { border-radius: .9rem; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: settle-in .56s cubic-bezier(.22,.7,.25,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .product-dialog[open] { animation: dialog-in .22s cubic-bezier(.22,.7,.25,1) both; }
  .product-card { animation: settle-in .26s ease-out both; }
  @keyframes settle-in {
    from { opacity: 0; transform: translateY(.55rem); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes dialog-in {
    from { opacity: 0; transform: translateY(.65rem) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}

@font-face {
  font-family: "Outwear Serif";
  src: url("outwear-serif.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Outwear Serif";
  src: url("outwear-serif-italic.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Outwear Serif";
  src: url("outwear-serif-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
