:root {
  --cream: #faf5ec;
  --paper: #fffdf8;
  --ink: #1f1d24;
  --muted: #655f70;
  --violet: #603d9b;
  --purple: #2f0f7a;
  --wood: #cfb998;
  --line: #e4dccd;
  --lavender: #b9a3dc;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

h1, h2, h3, .logo {
  font-family: Fraunces, Georgia, serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

a { color: var(--violet); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding-top: 56px; padding-bottom: 56px; }
.narrow p { max-width: 720px; }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { font-size: 1.35rem; font-weight: 700; color: var(--purple); text-decoration: none; margin: 0; }
.logo span { color: var(--violet); }
nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
nav a:hover { color: var(--purple); }

/* Hero */
.hero { background: var(--paper); padding-top: 72px; }
.hero h1 { max-width: 16ch; }
.lead { max-width: 56ch; font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; }
.hero .wrap { padding-bottom: 64px; }

/* A row of half-square triangles, like a sawtooth quilt border */
.patchwork {
  height: 28px;
  background:
    linear-gradient(135deg, var(--purple) 50%, transparent 50%) 0 0 / 56px 28px,
    linear-gradient(135deg, var(--violet) 50%, var(--lavender) 50%) 28px 0 / 56px 28px;
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 2px solid var(--purple);
  margin: 0 8px 8px 0;
}
.button:hover { background: #22095c; border-color: #22095c; }
.button-ghost { background: transparent; color: var(--purple); }
.button-ghost:hover { background: var(--purple); color: #fff; }

/* Catalog */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.chip {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(43, 42, 51, 0.1); }
.card-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 16px 18px 18px; }
.card-body h3 { margin-bottom: 6px; }
.card-summary { margin: 0 0 10px; color: var(--muted); font-size: 0.95rem; }

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}
.price { margin: 0; font-weight: 600; color: var(--purple); }
.price-large { font-size: 1.25rem; margin-bottom: 16px; }

/* Shown until a product has a real photo */
.photo-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(96, 61, 155, 0.22) 50%, rgba(207, 185, 152, 0.35) 50%) 0 0 / 50% 50%;
}
.photo-placeholder span {
  background: var(--paper);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* How to order */
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0 0 32px;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--wood);
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
}
.steps p { margin: 0; color: var(--muted); }

/* Product page */
.back { margin: 0 0 24px; }
.product-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: start; }
.product-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.product-description { white-space: pre-line; }
.product-layout h2 { font-size: 1.2rem; margin-top: 24px; }
.options { margin: 0 0 24px; padding-left: 20px; }
.order-note { font-size: 0.9rem; color: var(--muted); }
.not-found { text-align: center; padding: 40px 0; }

/* Order form */
.order-form { display: grid; gap: 18px; max-width: 560px; }
.order-form label { display: grid; gap: 6px; font-weight: 500; }
.order-form input,
.order-form select,
.order-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.order-form .button { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.hint { font-size: 0.9rem; font-weight: 400; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: #e9e6ee; margin-top: 24px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding-top: 36px;
  padding-bottom: 36px;
}
.site-footer .logo { color: #fff; }
.site-footer .logo span { color: var(--wood); }
.site-footer a { color: var(--wood); }
.site-footer p { margin: 0 0 4px; }
.fine { font-size: 0.85rem; color: #a9a5b3; }

/* Logo photo */
.site-header .logo { display: flex; align-items: center; gap: 12px; }
.site-header .logo img { height: 44px; width: auto; border-radius: 6px; }
.hero-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: center; }
.hero-photo {
  width: 100%;
  max-width: 560px;
  height: auto;
  justify-self: center;
  border-radius: var(--radius);
  border: 6px solid var(--paper);
  box-shadow: 0 10px 28px rgba(47, 15, 122, 0.22);
}
.note { margin: -8px 0 20px; color: var(--muted); font-size: 0.95rem; }

/* Photo gallery and About photo */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery figcaption { margin-top: 6px; font-size: 0.9rem; color: var(--muted); }
.about-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; align-items: center; }
.about-layout img { width: 100%; max-width: 420px; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
