/* ==========================================================================
   Marigold Home Co. — shared design system
   Palette: Modern Farmhouse Refined
   Bone (#f4f1eb) + soft charcoal (#2b2b2b) + clay terracotta (#b6633e)
   ========================================================================== */

:root {
  --bg: #f4f1eb;
  --bg-2: #ebe6db;
  --bg-3: #ddd4c1;
  --bg-inverted: #2b2b2b;
  --bg-inverted-soft: #3a3833;

  --ink: #2b2b2b;
  --ink-soft: #575450;
  --ink-mute: #8b857c;
  --ink-on-dark: #ede8dd;

  --line: #2b2b2b12;
  --line-bright: #2b2b2b1f;
  --line-on-dark: #ffffff15;

  --accent: #b6633e;
  --accent-hot: #9a5030;
  --accent-soft: #b6633e12;

  --sage: #7d8c6c;
  --sage-soft: #7d8c6c15;

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 1.75rem; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg, video { max-width: 100%; display: block; }

/* ========= UTILITY BAR ========= */
.utility {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  background: var(--bg);
}
.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  gap: 1rem;
}
.utility-left {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 500;
}
.utility-left::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: beat 1.8s infinite;
}
@keyframes beat {
  0%, 100% { box-shadow: 0 0 0 0 rgba(182, 99, 62, 0); }
  50%      { box-shadow: 0 0 0 5px rgba(182, 99, 62, 0.2); }
}
.utility-right { display: flex; gap: 1.5rem; align-items: center; }
.utility-right a:hover { color: var(--accent); }

/* ========= NAV ========= */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 235, 0.9);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--bg);
}
.brand-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-left: 0.75rem;
  margin-left: 0.5rem;
  border-left: 1px solid var(--line-bright);
}
.nav-right { display: flex; gap: 2rem; align-items: center; }
.nav-links { display: flex; gap: 2rem; list-style: none; font-size: 0.9375rem; font-weight: 500; }
.nav-links a {
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
  padding: 0.5rem 0;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-bright);
  color: var(--ink);
  width: 42px; height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
.mobile-toggle svg { width: 18px; height: 18px; }

/* ========= BUTTONS ========= */
.btn {
  background: var(--accent);
  color: white;
  padding: 0.85rem 1.4rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, background 0.2s, box-shadow 0.3s;
  text-decoration: none;
  font-family: var(--sans);
}
.btn:hover {
  background: var(--accent-hot);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(182, 99, 62, 0.25);
}
.btn svg { width: 16px; height: 16px; }
.btn-lg {
  padding: 1.05rem 1.75rem;
  font-size: 1rem;
  border-radius: 8px;
}
.btn-dark {
  background: var(--ink);
  color: var(--ink-on-dark);
}
.btn-dark:hover {
  background: #1a1a1a;
  box-shadow: 0 8px 20px rgba(43, 43, 43, 0.25);
}

/* ========= TYPOGRAPHY ========= */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}
h1 em, h2 em, h3 em { color: var(--accent); font-style: italic; }

.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-block;
  padding: 0.35rem 0.7rem;
  background: var(--accent-soft);
  border-radius: 4px;
}
.tag-sage {
  color: var(--sage);
  background: var(--sage-soft);
}
.tag-plain {
  background: transparent;
  padding: 0;
  color: var(--ink-mute);
  letter-spacing: 0.2em;
}

/* ========= PAGE HEADS ========= */
.page-head {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--line-bright);
}
.page-head .tag { margin-bottom: 1.5rem; }
.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  line-height: 1;
  max-width: 900px;
  color: var(--ink);
}
.page-head p {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin-top: 1.5rem;
  line-height: 1.6;
}

/* ========= FOOTER (dark inverted) ========= */
footer {
  background: var(--bg-inverted);
  color: var(--ink-on-dark);
  padding: 5rem 0 2rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-on-dark);
}
.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.foot-brand-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.65rem;
  color: var(--ink-on-dark);
  margin-bottom: 0.5rem;
}
.foot-brand p { color: rgba(237, 232, 221, 0.7); line-height: 1.6; }
.foot-brand-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}
.foot-brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-inverted);
}
.foot-col h5 {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 0.6rem; }
.foot-col a { color: rgba(237, 232, 221, 0.8); transition: color 0.2s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(237, 232, 221, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ========= REVEAL ========= */
.r { opacity: 0; transform: translateY(20px); animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.r.d1 { animation-delay: 0.06s; }
.r.d2 { animation-delay: 0.14s; }
.r.d3 { animation-delay: 0.22s; }
.r.d4 { animation-delay: 0.3s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .r { opacity: 1; transform: none; animation: none; } }

/* ========= RESPONSIVE ========= */
@media (max-width: 980px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
  .utility-right { gap: 0.75rem; }
  .brand-tag { display: none; }
}
@media (max-width: 560px) {
  .foot-top { grid-template-columns: 1fr; }
  .page-head { padding: 3rem 0 2rem; }
  .utility-right span:not(:last-child) { display: none; }
}
