:root {
  color: #462a34;
  background: #fcf6f4;
  font: 100%/1.55 "Avenir Next", "Segoe UI", sans-serif;
  --berry: #86364c;
  --berry-dark: #632237;
  --muted: #694956;
  --line: #e8ced2;
  --paper: #fffdfa;
  --petal: #f7e5e7;
  --shadow: 0 14px 36px #6a28350c;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 90% 19rem, #f5e3e6, transparent 46rem);
}
[hidden] { display: none !important; }
.site-header { background: #fffdfa; border-bottom: 1px solid var(--line); }
.bar, main { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  padding-block: .3rem;
}
.brand img { display: block; object-fit: contain; mix-blend-mode: multiply; }
.bar nav { display: flex; flex-wrap: wrap; gap: .2rem; }
.bar a { min-height: 44px; display: inline-flex; align-items: center; }
.bar nav a {
  border-radius: 999px;
  padding: .45rem .85rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
}
.bar nav a:hover, .bar nav a[aria-current] { color: var(--berry-dark); background: var(--petal); }

main { padding-block: clamp(1.4rem, 4vw, 3.25rem) 4rem; }
a { color: var(--berry-dark); text-underline-offset: .22em; }
h1, h2 { font-family: Georgia, serif; font-weight: 400; line-height: 1.08; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.35rem, 5.5vw, 4.6rem); letter-spacing: -.045em; margin: .1rem 0 0; }
h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); letter-spacing: -.02em; margin: 0; }

.page-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 1.55rem;
  background:
    radial-gradient(ellipse at 98% 10%, #fff9f055, transparent 58%),
    linear-gradient(112deg, #fff1ee, #f3d9df);
  box-shadow: var(--shadow);
}
.heading-copy {
  align-self: center;
  position: relative;
  padding: clamp(1.65rem, 5vw, 3.2rem);
}
.heading-copy::after {
  content: "";
  display: block;
  height: 2px;
  width: 3.2rem;
  margin-top: 1.15rem;
  background: #ba886a;
}
.heading-collection { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.collection-photo {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  aspect-ratio: 1200 / 520;
  object-fit: cover;
}
.sandbox { color: var(--muted); margin: 0 0 .65rem; font-size: .82rem; }
#status { color: var(--muted); margin: 1.1rem 0 0; }
#status:empty { display: none; }
#content { margin-block-start: 1.4rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr)); gap: 1rem; }
.card {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: clamp(1.25rem, 3.5vw, 1.85rem);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.card + .card { margin-top: .85rem; }
.grid .card { margin: 0; }
.card img {
  width: 100%;
  max-height: 24rem;
  object-fit: contain;
  border-radius: .7rem;
  margin-bottom: 1rem;
}
.card a { overflow-wrap: anywhere; }
.product-card { border-top: 3px solid #cf8b9e; }
.product-card h2 a { color: inherit; text-decoration: none; }
.product-card h2 a:hover { text-decoration: underline; }
.product-description { color: var(--muted); }
.product-price { color: var(--berry-dark); font-size: 1.23rem; font-weight: 650; margin: .8rem 0; }
.product-detail { max-width: 48rem; }
.text-action { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.text-action::after { content: " →"; margin-inline-start: .4rem; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(17rem, 1fr); gap: 1rem; align-items: start; }
.cart-summary { background: #fbebeb; }
.cart-summary button { width: 100%; }
.subtotal { display: flex; justify-content: space-between; gap: .75rem; padding-block: 1rem; border-bottom: 1px solid #dcbac3; }
.empty-cart h2 { margin-bottom: 1rem; }

.heading-success .heading-copy::after { background: #a0775b; }
.access-card { max-width: 48rem; border-left: 4px solid #bc758b; }
.access-code {
  display: grid;
  gap: .25rem;
  width: fit-content;
  max-width: 100%;
  margin-block: 1.1rem;
  padding: .7rem 1rem;
  border: 1px dashed #c38596;
  border-radius: .7rem;
  background: #fbefef;
}
.access-code span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.access-code code { font-size: clamp(.9rem, 3.4vw, 1.15rem); letter-spacing: .045em; overflow-wrap: anywhere; }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .6rem 1.15rem;
  background: var(--berry);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
button:hover:not(:disabled), .button:hover { background: var(--berry-dark); }
button:disabled { opacity: .55; cursor: wait; }
button.secondary-button { border-color: var(--line); color: var(--berry-dark); background: transparent; }
button.secondary-button:hover:not(:disabled) { background: var(--petal); }
:focus-visible { outline: 2px solid var(--berry-dark); outline-offset: 3px; }
label { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .7rem 0; }
input { font: inherit; width: 5rem; min-height: 44px; padding: .4rem .6rem; border: 1px solid #cfaeb7; border-radius: .55rem; }

@media (max-width: 680px) {
  .bar, main { width: calc(100% - 2rem); }
  .bar { justify-content: center; padding-block: .35rem .65rem; }
  .bar nav { justify-content: center; }
  .bar nav a { padding-inline: .66rem; }
  .brand img { width: 128px; height: 61px; }
  .heading-collection, .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .collection-photo { min-height: 0; max-height: 14rem; }
}
