/* ========================================================
   FURNITURE WAREHOUSE HORNSBY — Design System
   Aesthetic: Editorial / Heritage / Warm showroom
   ======================================================== */

:root {
  /* Palette */
  --paper: #f4f0e6;
  --cream: #faf6ec;
  --ink: #1a1612;
  --deep-ink: #0c0a08;
  --rust: #c54320;
  --deep-rust: #8a2f15;
  --gold: #b98e48;
  --soft-gold: #d4b27a;
  --muted: #6e6358;
  --line: #c8c0ad;
  
  /* Spacing */
  --pad: clamp(20px, 5vw, 80px);
  --gutter: clamp(20px, 3vw, 48px);
  
  /* Type */
  --serif: 'Lora', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --mono: 'DM Mono', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  /* Subtle paper texture via radial dots */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(26, 22, 18, 0.04) 1px, transparent 0);
  background-size: 28px 28px;
}

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

/* ===================== TOP BAR ===================== */
.topbar {
  background: var(--ink);
  color: var(--cream);
  padding: 8px var(--pad);
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.topbar .gold { color: var(--soft-gold); }

/* ===================== HEADER / NAV ===================== */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 24px var(--pad);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background-color: rgba(244, 240, 230, 0.95);
}
.site-header .inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}
.site-header .left {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-header .left .gold { color: var(--rust); }
.brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
}
.brand em { color: var(--rust); font-style: italic; }
.site-header .right {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* Nav row */
.site-nav {
  padding: 16px var(--pad);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  background-color: rgba(244, 240, 230, 0.95);
}
.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 56px);
  max-width: 1400px;
  margin: 0 auto;
}
.site-nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
  transition: color 0.3s ease;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--rust);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.site-nav a:hover { color: var(--rust); }
.site-nav a:hover::after { width: 100%; }
.site-nav a.active { color: var(--rust); }
.site-nav a.active::after { width: 100%; }

/* ===================== SECTION HELPERS ===================== */
.section {
  padding: clamp(60px, 10vw, 140px) var(--pad);
  max-width: 1400px;
  margin: 0 auto;
}
.section-tight { padding: clamp(40px, 6vw, 80px) var(--pad); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--rust);
}

.display {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}
.display em {
  color: var(--rust);
  font-style: italic;
}
.display .accent { color: var(--gold); font-style: italic; }

.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 32px;
}
.lede:first-letter { color: var(--ink); font-weight: 700; }

h2.section-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
h2.section-title em { color: var(--rust); }

h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.label-mono {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--rust);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(197, 67, 32, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ===================== CORNERS / DECORATIONS ===================== */
.corner-marks {
  position: relative;
}
.corner-marks::before,
.corner-marks::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid var(--gold);
}
.corner-marks::before {
  top: -2px; left: -2px;
  border-right: none;
  border-bottom: none;
}
.corner-marks::after {
  bottom: -2px; right: -2px;
  border-left: none;
  border-top: none;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--deep-ink);
  color: var(--cream);
  padding: clamp(60px, 8vw, 100px) var(--pad) 40px;
  margin-top: clamp(60px, 10vw, 120px);
}
.site-footer .inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(30px, 4vw, 60px);
}
@media (max-width: 768px) {
  .site-footer .inner { grid-template-columns: 1fr 1fr; }
}
.site-footer .brand-block .brand {
  color: var(--cream);
  text-align: left;
  margin-bottom: 12px;
}
.site-footer .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--soft-gold);
  margin-bottom: 24px;
  max-width: 28ch;
}
.site-footer h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--soft-gold);
  margin-bottom: 16px;
}
.site-footer ul {
  list-style: none;
}
.site-footer li {
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.85;
}
.site-footer a:hover {
  color: var(--soft-gold);
}
.site-footer .bottom {
  max-width: 1400px;
  margin: 60px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(212, 178, 122, 0.2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-up { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.fade-up:nth-child(2) { animation-delay: 0.1s; }
.fade-up:nth-child(3) { animation-delay: 0.2s; }
.fade-up:nth-child(4) { animation-delay: 0.3s; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== UTILITY ===================== */
.grain {
  position: relative;
}
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85'/%3E%3CfeColorMatrix values='0 0 0 0 0.1, 0 0 0 0 0.1, 0 0 0 0 0.1, 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.divider-ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  margin: 40px 0;
}
.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

@media (max-width: 720px) {
  .site-header .inner { grid-template-columns: 1fr; text-align: center; }
  .site-header .left, .site-header .right { display: none; }
  .site-nav ul { gap: 16px; font-size: 10px; }
  .site-nav a { font-size: 10px; letter-spacing: 0.2em; }
}
