:root {
  color-scheme: light;
  --paper: #fbf9f6;
  --white: #fff;
  --ink: #292227;
  --muted: #65595e;
  --accent: #63283f;
  --accent-hover: #462034;
  --rose: #f1e2e3;
  --line: #e3d9d6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  font-size: 100%;
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, select { color: inherit; font: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.container {
  width: min(100% - 6rem, 85rem);
  margin-inline: auto;
}

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 5;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  background: var(--white);
}

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.wordmark {
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span { color: #a25368; }
.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 2.75rem);
  font-size: .94rem;
  font-weight: 550;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}

.header-nav a:hover, .footer-top:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.header-search { gap: .65rem; }
.search-icon {
  display: inline-block;
  width: .87rem;
  height: .87rem;
  flex: none;
  position: relative;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  color: var(--accent);
}

.search-icon::after {
  position: absolute;
  right: -.33rem;
  bottom: -.19rem;
  width: .4rem;
  height: 1.6px;
  background: currentColor;
  transform: rotate(48deg);
  content: "";
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1fr);
  margin-block: 2rem clamp(3rem, 6vw, 5.4rem);
  background: var(--rose);
}

.hero:not(:has(.hero-figure:not([hidden]))) { grid-template-columns: minmax(0, 1fr); }
.hero-copy {
  display: flex;
  min-width: 0;
  min-height: clamp(24rem, 36vw, 37rem);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2.2rem, 5.5vw, 6.15rem);
}

.hero h1, .catalog h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.055em;
}

.hero h1 {
  color: var(--accent);
  max-width: 14ch;
  font-size: clamp(2.55rem, 5.45vw, 5.65rem);
  line-height: .99;
  text-wrap: balance;
}

.hero h1 em {
  display: block;
  font-weight: 400;
}

.hero-copy p {
  max-width: 25ch;
  margin: 1.55rem 0 1.8rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.6;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.25rem;
  border: 1px solid transparent;
  text-align: center;
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.button-primary { background: var(--accent); color: var(--white); }
.button-primary:hover { background: var(--accent-hover); }
.button-outline { border-color: var(--accent); background: transparent; color: var(--accent); }
.button-outline:hover { background: var(--rose); }
.hero-figure {
  display: grid;
  min-width: 0;
  grid-template: minmax(0, 1fr) auto / minmax(0, 1fr);
  align-items: stretch;
  margin: 0;
  background: var(--white);
}

.hero-image-link { display: block; position: relative; min-height: 15rem; }
.hero-image-link img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-image-link:focus-visible { outline-offset: -4px; }
.hero-caption {
  padding: .65rem clamp(1.25rem, 2.4vw, 2.2rem);
  border-top: 1px solid var(--line);
  background: var(--paper);
  text-align: end;
}

.hero-caption a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  color: var(--accent);
  font-size: .92rem;
  font-weight: 600;
  text-underline-offset: .2em;
}

.catalog { padding-bottom: clamp(3.25rem, 7vw, 6rem); scroll-margin-top: 1.5rem; }
.catalog-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  margin-bottom: 1.4rem;
}

.catalog h2 { font-size: clamp(2.55rem, 4.5vw, 4.25rem); line-height: 1; }
.results-count { margin: 0; color: var(--muted); font-size: .95rem; white-space: nowrap; }
.category-nav { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: .9rem; }
.subcategory-nav { margin-bottom: 1.25rem; }
.category-button {
  min-height: 2.75rem;
  padding: .48rem .95rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: transparent;
  color: var(--ink);
  font-size: .92rem;
}

.category-button:hover { border-color: var(--accent); }
.category-button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--white); }
.subcategory-nav .category-button { border-radius: .5rem; }
.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: space-between;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.4rem;
}

.search-field, .select-field {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
}

.search-field { flex: 1 1 16rem; max-width: 27rem; }
.search-field .search-icon { pointer-events: none; position: absolute; left: 1rem; }
.search-field input, .select-field select {
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
}

.search-field input {
  width: 100%;
  padding: .55rem .8rem .55rem 2.65rem;
  scroll-margin: 1rem;
}

.search-field input::placeholder { color: var(--muted); opacity: 1; }
.select-field select {
  width: 100%;
  max-width: min(20rem, 100%);
  padding: .55rem 2.15rem .55rem .8rem;
  appearance: none;
}

.select-field::after {
  position: absolute;
  right: 1rem;
  width: .45rem;
  height: .45rem;
  margin-top: -.25rem;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  pointer-events: none;
  content: "";
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.15rem clamp(.9rem, 2vw, 1.7rem);
}

.product-card { display: block; min-width: 0; text-decoration: none; }
.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: var(--white);
}

.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-media img { transition: transform .25s ease; }
.product-card:hover .card-media img { transform: scale(1.045); }
.image-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: .6rem;
  color: var(--muted);
  background: var(--paper);
  text-align: center;
  font-size: .88rem;
}

.card-copy { padding: .8rem .12rem 0; }
.card-category {
  margin: 0 0 .3rem;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.35;
}

.card-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(1.075rem, 1.45vw, 1.32rem);
  font-weight: 600;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card:hover .card-title { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
.card-price { margin: .46rem 0 0; color: var(--accent); font-size: .94rem; font-weight: 650; }
.catalog-message {
  padding: 2.75rem 1.2rem;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.catalog-message p { margin: 0; }
.catalog-message .button { margin-top: 1rem; }
.more-row { margin-top: 2.4rem; text-align: center; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem;
}

.footer-inner p {
  flex: 1 1 15rem;
  max-width: 49ch;
  margin: 0;
  color: var(--muted);
  font-size: .89rem;
  line-height: 1.5;
}

.footer-top { font-size: .9rem; text-underline-offset: .2em; }

@media (max-width: 61rem) {
  .container { width: min(100% - 3.75rem, 85rem); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 41rem) {
  .container { width: calc(100% - 2rem); }
  .header-inner { min-height: 3.9rem; }
  .hero { grid-template-columns: minmax(0, 1fr); margin-top: 1rem; }
  .hero-copy { min-height: 0; padding: 2.25rem 1.25rem; }
  .hero h1 { font-size: clamp(2.55rem, 9.1vw, 4.25rem); }
  .hero-copy p { margin-block: 1rem 1.3rem; }
  .hero-image-link { min-height: 0; aspect-ratio: 1.22; }
  .hero-caption { padding-block: .35rem; }
  .catalog-heading { align-items: end; }
  .catalog-tools { gap: .55rem; }
  .search-field { flex-basis: 100%; max-width: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem .7rem; }
  .footer-inner { align-items: flex-start; }
}

@media (max-width: 24rem) {
  .header-nav { gap: .72rem; }
  .catalog-heading { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
