/* ==========================================================================
   Bransey Jewelry
   Table of contents
   1. Custom properties
   2. Reset and base
   3. Layout and type
   4. Header and navigation
   5. Buttons, badges, links
   6. Home
   7. Cards and grids
   8. Shop
   9. Product page
   10. About, contact, 404
   11. Footer
   12. Motion
   13. Print
   ========================================================================== */

/* 1. Custom properties */
:root {
  --bone: #faf7f2;
  --cream: #f3ede3;
  --ink: #1c1917;
  --ink-soft: #4a423b;
  --gold: #a67c3d;
  --gold-light: #c9a96a;
  --gold-pale: #efe3cf;
  --gold-ink: #6b4f22;
  --line: #ded4c4;
  --paper: #ffffff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3rem, 8vw, 6rem);
  --header-h: 4.25rem;
  --shadow: 0 14px 32px rgba(28, 25, 23, 0.08);
  color-scheme: light;
}

/* 2. Reset and base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--bone);
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(166, 124, 61, 0.06), transparent 46%),
    radial-gradient(ellipse at 100% 100%, rgba(166, 124, 61, 0.05), transparent 42%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  min-width: 320px;
}

body,
h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote,
dl,
dd,
dt {
  margin: 0;
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--gold-pale);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  text-transform: none;
  letter-spacing: normal;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--bone);
  padding: 0.75rem 1rem;
  z-index: 80;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0.75rem);
}

#main:focus {
  outline: none;
}

/* 3. Layout and type */
.container {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.section-cream {
  background: var(--cream);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.12;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.5rem, 1.4rem + 4vw, 4.6rem);
}

h2 {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem);
}

h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.lede,
.prose p,
.card-dek,
.buy-note,
.filter-blurb,
.availability {
  color: var(--ink-soft);
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  max-width: 40rem;
}

.measure {
  max-width: 40rem;
}

.rule {
  border: 0;
  height: 1px;
  width: 4.5rem;
  background: var(--gold);
  margin-block: 1rem 1.25rem;
}

.section-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 40rem;
}

.section-link {
  margin-top: 1.5rem;
}

.page-head {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) 0.5rem;
  display: grid;
  gap: 0.9rem;
}

.page-head h1 {
  max-width: 16ch;
}

.kicker-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.sku {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* 4. Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-width: 0;
  color: var(--ink);
}

.monogram {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  display: block;
}

.wordmark {
  font-family: var(--serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.92rem;
  line-height: 1.1;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.35rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.1rem;
}

.site-nav a[aria-current="page"] {
  color: var(--gold-ink);
  box-shadow: inset 0 -1px 0 var(--gold);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transform-origin: center;
}

.nav-toggle-bar:nth-child(1) { top: 16px; }
.nav-toggle-bar:nth-child(2) { top: 21px; }
.nav-toggle-bar:nth-child(3) { top: 26px; }

.nav-backdrop {
  display: none;
}

@media (min-width: 821px) {
  .site-nav {
    margin-left: auto;
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .wordmark {
    letter-spacing: 0.1em;
    font-size: 0.78rem;
  }

  .site-nav {
    flex-basis: 100%;
    padding-bottom: 0.85rem;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .site-nav a {
    font-family: var(--serif);
    font-size: 1.35rem;
    letter-spacing: 0.01em;
    text-transform: none;
    display: inline-block;
    padding: 0.35rem 0;
  }

  .js .nav-toggle {
    display: inline-block;
    z-index: 70;
  }

  .js .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    flex-basis: auto;
    width: min(20rem, 88vw);
    max-width: 100%;
    background: var(--bone);
    border-left: 1px solid var(--line);
    padding: 5.5rem 1.5rem 2rem;
    visibility: hidden;
    pointer-events: none;
    z-index: 55;
    overflow: auto;
  }

  .js .site-nav.is-open {
    visibility: visible;
    pointer-events: auto;
  }

  .js .site-nav a {
    font-size: 1.6rem;
    padding: 0.55rem 0;
  }

  .js .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(28, 25, 23, 0.4);
    z-index: 50;
    cursor: pointer;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
  }
}

@media (max-width: 380px) {
  .wordmark {
    letter-spacing: 0.06em;
    font-size: 0.72rem;
  }
}

/* 5. Buttons, badges, links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  text-align: center;
}

.btn-solid {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.btn-solid:hover {
  background: #322c28;
  border-color: #322c28;
}

.btn-line {
  color: var(--gold-ink);
  border-color: var(--gold-ink);
  background: transparent;
}

.btn-line:hover {
  background: var(--gold-pale);
}

.btn:disabled,
.btn.is-disabled {
  background: #e7e1d6;
  color: #3f3a36;
  border-color: #e7e1d6;
  cursor: not-allowed;
}

.btn:disabled:hover {
  background: #e7e1d6;
  border-color: #e7e1d6;
}

.hero-actions,
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.text-link {
  color: var(--gold-ink);
  text-underline-offset: 0.18em;
}

.badge,
.flag {
  position: absolute;
  top: 0.75rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.4rem 0.45rem;
}

.badge {
  left: 0.75rem;
  background: var(--gold-pale);
  color: var(--gold-ink);
  border: 1px solid var(--gold-light);
}

.badge-inline {
  position: static;
  display: inline-block;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.flag {
  right: 0.75rem;
  background: var(--ink);
  color: var(--bone);
}

/* 6. Home */
.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 4rem);
}

.hero-copy {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.hero h1 {
  max-width: 11em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
}

.hero-note {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}

.hero-art {
  margin: 0;
}

.hero-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(0.75rem, 2vw, 1.25rem);
  box-shadow: var(--shadow);
}

.hero-frame svg {
  width: 100%;
  height: auto;
  display: block;
}

.statement {
  display: grid;
  gap: 1rem;
}

.trust-grid {
  display: grid;
  gap: 1.5rem;
}

.trust-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.25rem 1.2rem 1.4rem;
  display: grid;
  gap: 0.55rem;
}

.trust-grid h3 {
  font-size: 1.45rem;
}

.cta-band {
  background: var(--ink);
  color: var(--bone);
}

.cta-band .eyebrow {
  color: var(--gold-pale);
}

.cta-inner {
  display: grid;
  gap: 1rem;
  justify-items: start;
  max-width: 40rem;
}

.cta-band .lede {
  color: #efe8dc;
}

.cta-band .btn-solid {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

.cta-band .btn-solid:hover {
  background: var(--gold-pale);
  border-color: var(--gold-pale);
}

.cta-band :focus-visible {
  outline-color: var(--gold-pale);
}

/* 7. Cards and grids */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--cream);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1rem 1.15rem;
  flex: 1;
}

.card-title a {
  text-decoration: none;
}

.card-title a:hover {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.card-price {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0;
}

.card-meta,
.card-dek {
  font-size: 0.95rem;
}

.card .btn {
  width: 100%;
  margin-top: auto;
}

.is-sold .card-media img {
  filter: saturate(0.7);
}

/* 8. Shop */
.shop-layout {
  display: grid;
  gap: 1.5rem;
  padding-bottom: var(--section);
}

.buying-note {
  background: var(--paper);
  border-left: 2px solid var(--gold);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  display: grid;
  gap: 0.6rem;
}

.buying-note h2 {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem);
}

.shop-tools {
  display: grid;
  gap: 1rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-btn {
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.filter-btn.group {
  border-color: transparent;
  background: transparent;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.05rem;
  border-radius: 0;
}

.filter-btn.group[aria-pressed="true"] {
  background: var(--gold-pale);
  color: var(--ink);
  border-color: var(--gold);
  font-style: italic;
}

.search-sort {
  display: grid;
  gap: 0.75rem;
}

.search-form {
  display: grid;
  gap: 0.35rem;
}

.search-controls {
  display: flex;
  gap: 0.5rem;
}

.search-controls input,
.sort-field select,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  min-height: 44px;
  padding: 0.65rem 0.75rem;
}

.search-controls input {
  flex: 1;
  min-width: 0;
}

input[type="search"]::-webkit-search-cancel-button {
  appearance: none;
}

.field-label,
.form-field label,
.sort-field label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.sort-field {
  display: grid;
  gap: 0.35rem;
}

.results-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  align-items: baseline;
}

.results-head h2 {
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem);
}

.result-count {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.empty {
  border: 1px dashed var(--line);
  padding: 2rem 1.25rem;
  display: grid;
  gap: 1rem;
  justify-items: start;
  background: var(--paper);
}

/* 9. Product page */
.breadcrumb {
  padding-top: 1.25rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  font-size: 0.9rem;
}

.breadcrumb li {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.breadcrumb a {
  color: var(--gold-ink);
  text-underline-offset: 0.15em;
}

.crumb-sep {
  color: var(--gold);
}

.product-layout {
  display: grid;
  gap: 1.75rem;
  padding-top: 1.25rem;
}

.product-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--cream);
  border: 1px solid var(--line);
}

.product-summary {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.product-summary h1 {
  font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.5rem);
}

.product-summary .price {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
}

.spec-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.spec-list > div {
  display: grid;
  grid-template-columns: minmax(6.5rem, 9rem) 1fr;
  gap: 0.35rem 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.spec-list dt {
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-copy {
  display: grid;
  gap: 0.8rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  max-width: 42rem;
}

.detail-list {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.1rem;
  list-style: disc;
  color: var(--ink-soft);
}

.honesty {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 1rem 1rem 1.1rem;
  color: var(--ink-soft);
}

.before-buy {
  display: grid;
  gap: 0.75rem;
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 1.15rem 1.15rem 1.25rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

.before-buy h2 {
  font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.85rem);
  color: var(--ink);
}

.before-buy p {
  color: var(--ink-soft);
}

.before-buy strong,
.honesty strong {
  color: var(--ink);
  font-weight: 600;
}

.before-buy a,
.honesty a {
  color: var(--gold-ink);
  text-underline-offset: 0.18em;
}

.status-banner {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
}

.related {
  padding-bottom: var(--section);
}

/* 10. About, contact, 404 */
.prose {
  display: grid;
  gap: 0.9rem;
}

.prose h2 {
  margin-top: 1.2rem;
}

.prose ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.15rem;
  list-style: disc;
}

.prose li {
  padding-left: 0.2rem;
  color: var(--ink-soft);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.pullquote {
  margin: 0.5rem 0 0.25rem;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 1px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 36rem;
}

.grades {
  display: grid;
  gap: 0;
}

.grades > div {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.25rem;
}

.grades dt {
  font-family: var(--serif);
  font-size: 1.3rem;
}

.grades dd {
  color: var(--ink-soft);
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-details {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.contact-details a {
  color: var(--gold-ink);
}

.form {
  position: relative;
  display: grid;
  gap: 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.honeypot input {
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: 0;
}

.form-notice-collection {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.notice {
  background: var(--gold-pale);
  border: 1px solid var(--gold-light);
  padding: 1rem 1.05rem;
}

.notice:focus {
  outline: none;
}

.notice:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
}

.form-sent {
  margin: 0;
  line-height: 1.6;
}

.form-sent a {
  color: var(--gold-ink);
}

.notice[data-state="error"] {
  background: #FBF0EE;
  border-color: #E3B7AE;
}

.notice[data-state="pending"] {
  background: var(--paper);
  border-style: dashed;
}

.form button[type="submit"][disabled] {
  opacity: 0.65;
  cursor: progress;
}

.faq {
  display: grid;
  gap: 0;
  margin-top: 0.5rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.35rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.25rem;
  padding: 0.85rem 1.5rem 0.85rem 0;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.85rem;
  color: var(--gold-ink);
  font-family: var(--serif);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  color: var(--ink-soft);
  padding-bottom: 0.9rem;
  max-width: 42rem;
}

.not-found {
  min-height: 55vh;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding-block: var(--section);
}

.not-found .monogram {
  width: 4.5rem;
  height: 4.5rem;
}

/* 11. Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 1.5rem;
  background: var(--cream);
}

.footer-main {
  display: grid;
  gap: 1.5rem;
}

.footer-brand p,
.footer-note {
  color: var(--ink-soft);
  max-width: 28rem;
}

.footer-nav ul {
  display: grid;
  gap: 0.35rem;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover,
.footer-email:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.35rem;
}

.footer-email {
  color: var(--gold-ink);
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-links {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-identity {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

/* Wider layouts */
@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-sort {
    grid-template-columns: 1fr 14rem;
    align-items: end;
  }
}

@media (min-width: 720px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }

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

  .footer-main {
    grid-template-columns: 1.4fr 0.8fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

@media (min-width: 880px) {
  .product-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: start;
  }

  .product-gallery {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }

  .product-summary .btn {
    width: auto;
    justify-self: start;
    min-width: 12rem;
  }
}

@media (max-width: 879px) {
  .product-summary .btn,
  .not-found .btn {
    width: 100%;
  }

  .hero-actions .btn,
  .not-found-actions .btn {
    width: 100%;
  }
}

@media (min-width: 960px) {
  .product-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

#jewelry,
#estate,
#condition {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.eyebrow a {
  color: inherit;
  text-decoration: none;
}

.eyebrow a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 480px) {
  .spec-list > div {
    grid-template-columns: 1fr;
  }
}

/* 12. Motion */
@media (prefers-reduced-motion: no-preference) {
  .nav-toggle-bar,
  .site-nav,
  .card,
  .btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
  }

  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }

  .js .reveal.is-in {
    animation: rise 0.6s ease both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-toggle-bar,
  .site-nav,
  .card,
  .btn,
  .js .reveal.is-in {
    transition: none;
    animation: none;
  }
}

/* 13. Print */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .nav-backdrop,
  .skip-link,
  .btn,
  .shop-tools,
  .cta-band,
  .hero-art,
  .search-sort,
  .filter-row {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .card,
  .product-gallery {
    break-inside: avoid;
    box-shadow: none;
  }

  .section,
  .hero,
  .page-head {
    padding-block: 1rem;
  }
}
