@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Work+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #1c1a17;
  --paper: #f6f2ea;
  --mist: #ddd5c4;
  --moss: #6b6558;
  --amber: #b8752e;
  --amber-deep: #935c22;
  --white: #fffdf9;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Work Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --max: 1200px;
  --gutter: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--amber); color: var(--white); }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mist);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 40px; width: auto; }
.brand span {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}
.main-nav {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.main-nav a {
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--amber-deep);
  transition: right 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  right: 0;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    height: calc(100vh - 84px);
    background: var(--paper);
    flex-direction: column;
    padding: 32px var(--gutter);
    gap: 24px;
    font-size: 1.1rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-toggle { display: block; }
}

/* ---------- Signature divider: the knot motif ---------- */
.knot-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 8px 0 4px;
}
.knot-divider svg { width: 46px; height: 30px; }
.knot-divider .line {
  height: 1px;
  width: clamp(40px, 12vw, 140px);
  background: var(--mist);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 88px);
  text-align: center;
}
.hero .mark {
  width: clamp(88px, 12vw, 140px);
  margin: 0 auto 28px;
  animation: rise 1.1s ease-out both;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 18px;
  animation: rise 1.1s ease-out 0.1s both;
}
.hero h1 em {
  font-style: italic;
  color: var(--amber-deep);
}
.hero p {
  max-width: 46ch;
  margin: 0 auto 36px;
  color: var(--moss);
  font-size: 1.05rem;
  animation: rise 1.1s ease-out 0.2s both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 2px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: var(--amber-deep); border-color: var(--amber-deep); transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--white); }
.btn.full { width: 100%; justify-content: center; }
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- Section headings ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0;
}
.section-head .eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 8px;
}
.section-head .view-all {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
}

section { padding: clamp(48px, 8vw, 88px) 0; }

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card {
  display: block;
  color: inherit;
}
.card .frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(155deg, #eae3d3, #ddd2b8);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}
.card .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.card:hover .frame img { transform: scale(1.045); }
.card .frame .placeholder-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.28;
}
.card .frame .placeholder-mark img { width: 34%; height: auto; object-fit: contain; }
.card .tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 2px;
  color: var(--moss);
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 4px;
}
.card .price {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--amber-deep);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--mist);
  padding: 56px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-grid .brand span { font-size: 1.3rem; }
.footer-grid p { color: var(--moss); font-size: 0.9rem; max-width: 32ch; }
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.footer-grid ul a:hover { color: var(--amber-deep); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--moss);
  border-top: 1px solid var(--mist);
  padding-top: 20px;
}

/* ---------- Misc shared ---------- */
.eyebrow-standalone {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
