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

/* ── Reset ───────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  user-select: none;
  -webkit-user-drag: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--t-fast) var(--ease);
}

a:hover { opacity: 0.72; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

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

ul, ol { list-style: none; }

svg { display: block; flex-shrink: 0; }

dialog { border: none; }

:focus-visible {
  outline: 1.5px solid var(--color-ink);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Typography ─────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-ink);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); font-weight: var(--fw-medium); }

p { max-width: 68ch; }

strong { font-weight: var(--fw-semi); }

small { font-size: var(--text-sm); }

/* ── Layout helpers ─────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--narrow-w);
}

.container--wide {
  max-width: var(--max-w);
}

.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;
}

/* ── Section spacing ────────────────────────────────── */

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

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

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

/* ── Page wrapper ───────────────────────────────────── */

#main-content {
  min-height: calc(100vh - var(--header-h));
  padding-top: var(--header-h);
}

body.has-marquee #main-content {
  padding-top: calc(var(--header-h) + 2.25rem);
}

@media (min-width: 1024px) {
  #main-content {
    padding-top: var(--header-h-lg);
  }

  body.has-marquee #main-content {
    padding-top: calc(var(--header-h-lg) + 2.25rem);
  }
}

/* ── Loading skeleton ───────────────────────────────── */

.skeleton {
  background: linear-gradient(90deg, var(--color-border) 25%, var(--color-canvas) 50%, var(--color-border) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Utility label ──────────────────────────────────── */

.label {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Price ──────────────────────────────────────────── */

.price {
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  color: var(--color-ink);
}

.price--sale { color: var(--color-sale); }

.price--original {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: var(--fw-regular);
}

/* ── Badge ──────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.6em;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  border-radius: var(--radius-xs);
}

.badge--new  { background: var(--color-ink);   color: var(--color-paper); }
.badge--sale { background: var(--color-sale);  color: var(--color-paper); }
.badge--sold { background: var(--color-stone); color: var(--color-paper); }

/* ── Divider ────────────────────────────────────────── */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: var(--sp-4);
}

/* ── Overlay ────────────────────────────────────────── */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease);
  z-index: calc(var(--z-drawer) - 1);
}

.overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

/* ── Body scroll lock ───────────────────────────────── */

body.no-scroll {
  overflow: hidden;
  touch-action: none;
}
