:root {
  --ink: #2b211b;
  --muted: #74665b;
  --paper: #f8efe1;
  --cream: #ead8c0;
  --wood: #3a241a;
  --walnut: #5b3928;
  --brick: #98624b;
  --eucalyptus: #687963;
  --lavender: #77617b;
  --glow: #c7884e;
  --line: rgba(58, 36, 26, 0.18);
  --shadow: 0 22px 54px rgba(43, 33, 27, 0.18);
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23grain)' opacity='0.18'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 14% 8%, rgba(199, 136, 78, 0.16), transparent 34%),
    radial-gradient(ellipse at 86% 18%, rgba(104, 121, 99, 0.12), transparent 36%),
    radial-gradient(ellipse at 50% 100%, rgba(119, 97, 123, 0.09), transparent 42%),
    var(--paper-grain),
    linear-gradient(180deg, rgba(248, 239, 225, 0.98), rgba(235, 218, 194, 0.9) 52%, rgba(225, 201, 174, 0.84)),
    var(--paper);
  background-blend-mode: normal, normal, normal, soft-light, normal, normal;
  background-size: auto, auto, auto, 180px 180px, auto, auto;
  font-family: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(255, 248, 237, 0.94), rgba(239, 224, 205, 0.92)),
    var(--paper);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(91, 57, 40, 0.35);
  box-shadow: 0 0 0 3px rgba(199, 136, 78, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  text-underline-offset: 6px;
}

.nav a:hover {
  color: var(--wood);
  text-decoration: underline;
  text-decoration-color: rgba(152, 98, 75, 0.42);
}

.nav-action {
  color: var(--walnut);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: min(780px, calc(100vh - 48px));
  display: grid;
  place-items: center;
  padding: clamp(42px, 6vw, 84px) clamp(18px, 4vw, 56px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 18% 12%, rgba(199, 136, 78, 0.18), transparent 34%),
    radial-gradient(ellipse at 82% 18%, rgba(104, 121, 99, 0.14), transparent 32%),
    var(--paper-grain),
    linear-gradient(135deg, rgba(255, 245, 232, 0.98), rgba(234, 216, 197, 0.96) 48%, rgba(207, 178, 153, 0.94));
  background-blend-mode: normal, normal, soft-light, normal;
  background-size: auto, auto, 180px 180px, auto;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: url("assets/rebecca-james-creative-logo.png");
  background-position: center;
  background-size: cover;
  opacity: 0.24;
  filter: saturate(0.92) contrast(0.95);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(58, 36, 26, 0.12), transparent 18%, transparent 82%, rgba(58, 36, 26, 0.12)),
    radial-gradient(ellipse at 50% 42%, rgba(255, 248, 237, 0.88), rgba(255, 248, 237, 0.62) 43%, rgba(91, 57, 40, 0.12)),
    linear-gradient(180deg, rgba(255, 248, 237, 0.22), rgba(91, 57, 40, 0.14));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  color: var(--ink);
  text-align: center;
}

.hero-logo-card {
  width: min(700px, 90vw);
  aspect-ratio: 16 / 9;
  margin: 0 auto clamp(22px, 4vw, 34px);
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(91, 57, 40, 0.3);
  border-radius: 8px;
  box-shadow:
    0 24px 70px rgba(43, 33, 27, 0.22),
    0 0 0 8px rgba(255, 248, 237, 0.22);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--lavender);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--lavender);
}

.hero .eyebrow::before,
.hero .eyebrow::after {
  width: clamp(26px, 6vw, 72px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(119, 97, 123, 0.58));
}

.hero .eyebrow::after {
  background: linear-gradient(90deg, rgba(119, 97, 123, 0.58), transparent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 18px;
  margin-inline: auto;
  font-family: "IM Fell English", Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 6.2vw, 7rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
  color: #4a2c1f;
  text-shadow:
    0 2px 14px rgba(255, 248, 237, 0.82),
    0 12px 28px rgba(58, 36, 26, 0.18);
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 0;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 650;
  font-size: clamp(2rem, 3.4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 720px;
  margin-inline: auto;
  color: #5c4b40;
  font-size: clamp(1.13rem, 1.55vw, 1.36rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.hero-note span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--wood);
  background: rgba(255, 248, 237, 0.78);
  border: 1px solid rgba(91, 57, 40, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 800;
}

.button,
.buy-link,
.filter {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button {
  padding: 0 18px;
}

.primary {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    var(--walnut);
  box-shadow: 0 12px 26px rgba(22, 14, 10, 0.18);
}

.secondary {
  color: var(--wood);
  background: rgba(255, 248, 237, 0.82);
  border-color: rgba(91, 57, 40, 0.28);
}

.shop-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 64px clamp(18px, 4vw, 56px) 22px;
}

.shop-controls {
  display: grid;
  justify-items: end;
  gap: 12px;
  width: min(680px, 100%);
}

.search-wrap {
  display: grid;
  gap: 7px;
  width: min(420px, 100%);
  color: var(--lavender);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-wrap input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 248, 237, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
  font: 650 0.98rem "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
}

.search-wrap input:focus {
  border-color: rgba(119, 97, 123, 0.56);
  box-shadow:
    0 0 0 3px rgba(119, 97, 123, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.54);
  outline: none;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter {
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 248, 237, 0.72);
  border-color: var(--line);
}

.filter.active {
  color: #fff;
  background: var(--lavender);
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0 clamp(18px, 4vw, 56px) 28px;
}

.empty-results {
  margin: 0 clamp(18px, 4vw, 56px) 72px;
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 248, 237, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.55;
}

.pattern-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 58%),
    #fff8ed;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(43, 33, 27, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.pattern-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 57, 40, 0.3);
  box-shadow: 0 16px 34px rgba(43, 33, 27, 0.12);
}

.pattern-card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  text-decoration: none;
}

.pattern-card[hidden] {
  display: none;
}

.pattern-card img {
  width: 100%;
  aspect-ratio: 1.08;
  object-fit: cover;
}

.pattern-content {
  flex: 1;
  padding: 18px;
}

.pattern-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.pattern-meta span,
.bundle-label {
  padding: 5px 8px;
  color: var(--walnut);
  background: rgba(199, 136, 78, 0.18);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
}

.pattern-content p,
.collection-copy p,
.bundle-panel p,
.trust-list p,
.account-strip p {
  color: var(--muted);
  line-height: 1.55;
}

.pattern-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 0 18px 18px;
}

.buy-link {
  min-width: 92px;
  padding: 0 12px;
  color: #fff;
  background: var(--eucalyptus);
  font-size: 0.9rem;
}

.collection-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: 76px clamp(18px, 4vw, 56px);
  background:
    radial-gradient(ellipse at 16% 22%, rgba(255, 248, 237, 0.44), transparent 38%),
    radial-gradient(ellipse at 84% 8%, rgba(104, 121, 99, 0.18), transparent 36%),
    var(--paper-grain),
    linear-gradient(135deg, rgba(104, 121, 99, 0.3), rgba(199, 136, 78, 0.18)),
    #efe3d2;
  background-blend-mode: normal, normal, soft-light, normal, normal;
  background-size: auto, auto, 180px 180px, auto, auto;
  border-block: 1px solid var(--line);
}

.collection-copy p {
  max-width: 720px;
  margin-top: 18px;
  font-size: 1.1rem;
}

.bundle-panel {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent),
    #fff8ed;
  border: 1px solid rgba(91, 57, 40, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.bundle-panel h3 {
  margin: 18px 0 8px;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 650;
  font-size: 2rem;
}

.trust-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 5vw, 72px);
  padding: 80px clamp(18px, 4vw, 56px);
}

.trust-list {
  display: grid;
  gap: 14px;
}

.trust-list article {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.account-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 32px clamp(18px, 4vw, 56px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(58, 36, 26, 0.98), rgba(91, 57, 40, 0.95)),
    var(--wood);
}

.account-strip h2 {
  min-width: max-content;
  font-size: clamp(1.5rem, 2.4vw, 2.6rem);
}

.account-strip p {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: #efe3d2;
}

.footer p {
  margin-bottom: 0;
}

.footer div {
  display: flex;
  gap: 18px;
}

.product-hero {
  padding: clamp(34px, 5vw, 72px) clamp(18px, 4vw, 56px) clamp(48px, 6vw, 84px);
  background:
    radial-gradient(ellipse at 16% 12%, rgba(199, 136, 78, 0.14), transparent 34%),
    radial-gradient(ellipse at 84% 18%, rgba(104, 121, 99, 0.12), transparent 32%),
    var(--paper-grain),
    linear-gradient(135deg, rgba(255, 245, 232, 0.96), rgba(234, 216, 197, 0.9));
  background-blend-mode: normal, normal, soft-light, normal;
  background-size: auto, auto, 180px 180px, auto;
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--walnut);
  font-weight: 850;
  text-decoration-color: rgba(152, 98, 75, 0.42);
  text-underline-offset: 5px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.product-media img {
  width: 100%;
  max-height: 760px;
  object-fit: cover;
  border: 1px solid rgba(91, 57, 40, 0.26);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-summary h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 5vw, 5.8rem);
  line-height: 0.98;
}

.product-lede {
  color: #5c4b40;
  font-size: clamp(1.1rem, 1.45vw, 1.32rem);
  line-height: 1.58;
}

.product-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.product-price-row strong {
  color: var(--wood);
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.product-note {
  max-width: 560px;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.product-details,
.related-products {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(24px, 5vw, 72px);
  padding: 74px clamp(18px, 4vw, 56px);
}

.detail-panel {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 58%),
    #fff8ed;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(43, 33, 27, 0.04);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.spec-grid div {
  padding: 14px;
  background: rgba(248, 239, 225, 0.78);
  border: 1px solid rgba(91, 57, 40, 0.14);
  border-radius: 8px;
}

.spec-grid span,
.related-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--lavender);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spec-grid strong {
  color: var(--wood);
}

.detail-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.related-products {
  grid-template-columns: 1fr;
  padding-top: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.related-card {
  overflow: hidden;
  color: var(--ink);
  background: #fff8ed;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.related-card img {
  width: 100%;
  aspect-ratio: 1.08;
  object-fit: cover;
}

.related-card span,
.related-card strong {
  margin-inline: 16px;
}

.related-card span {
  margin-top: 16px;
}

.related-card strong {
  display: block;
  margin-bottom: 18px;
}

@media (max-width: 980px) {
  h1 {
    font-size: clamp(3.25rem, 7.7vw, 5.2rem);
  }

  .pattern-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-band,
  .trust-layout,
  .product-layout,
  .product-details {
    grid-template-columns: 1fr;
  }

  .shop-tools {
    align-items: start;
    flex-direction: column;
  }

  .shop-controls {
    justify-items: start;
  }

  .filters {
    justify-content: flex-start;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header,
  .footer,
  .account-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
    padding: 36px 18px 48px;
  }

  .hero-logo-card {
    width: min(520px, 90vw);
  }

  .hero .eyebrow {
    gap: 8px;
    font-size: 0.7rem;
  }

  .hero .eyebrow::before,
  .hero .eyebrow::after {
    width: 20px;
  }

  h1 {
    font-size: clamp(2.85rem, 12vw, 4rem);
    line-height: 0.97;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .pattern-grid {
    grid-template-columns: 1fr;
  }

  .spec-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .account-strip h2 {
    min-width: 0;
  }
}
