/* ============================================================
   MERROW — Design System
   ============================================================
   To update colors: edit the :root variables below.
   To update fonts: change --font-display or --font-body.
   To update spacing: adjust the --space-* scale.
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors */
  --cream:        #F7F2E8;
  --parchment:    #EDE5D4;
  --linen:        #E6DEC9;
  --forest:       #2C4A3E;
  --forest-mid:   #3A6054;
  --forest-light: #4E7A6A;
  --taupe:        #9B8B78;
  --warm-brown:   #7A5C45;
  --muted-gold:   #C4A068;
  --dark:         #241E1A;
  --medium:       #5A4F45;
  --light:        #9B8F86;
  --pale:         #C8BDB5;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type Scale */
  --text-xs:   0.68rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.375rem;
  --text-xl:   1.75rem;
  --text-2xl:  2.25rem;
  --text-3xl:  3rem;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-xxl: 10rem;

  /* Layout */
  --max-width:    1280px;
  --narrow-width: 780px;

  /* Elevation */
  --shadow-sm: 0 1px 4px rgba(36, 30, 26, 0.06);
  --shadow-md: 0 4px 20px rgba(36, 30, 26, 0.10);
  --shadow-lg: 0 12px 48px rgba(36, 30, 26, 0.14);

  /* Motion */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.4s;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle grain texture over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.018;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

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

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

ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  font-family: var(--font-body);
  font-weight: 300;
}

/* Section label — small uppercase tag */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: var(--space-sm);
}

.section-label--light {
  color: rgba(237, 229, 212, 0.5);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: var(--duration) var(--ease);
  cursor: pointer;
  border: none;
  background: none;
}

.btn-primary {
  background-color: var(--forest);
  color: var(--cream);
  padding: 1rem 2.25rem;
  border: 1px solid var(--forest);
}

.btn-primary:hover {
  background-color: var(--forest-mid);
  border-color: var(--forest-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--cream);
  padding: 1rem 2.25rem;
  border: 1px solid rgba(247, 242, 232, 0.35);
}

.btn-secondary:hover {
  background-color: rgba(247, 242, 232, 0.08);
  border-color: rgba(247, 242, 232, 0.65);
  transform: translateY(-1px);
}

.btn-text {
  color: var(--forest);
  padding: 0;
  border: none;
  position: relative;
}

.btn-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}

.btn-text:hover::after {
  transform: scaleX(1);
}

.btn-coming-soon {
  background-color: transparent;
  color: rgba(237, 229, 212, 0.35);
  padding: 1rem 2.5rem;
  border: 1px solid rgba(237, 229, 212, 0.18);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: default;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.site-header.scrolled {
  background-color: rgba(247, 242, 232, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cream);
  transition: color var(--duration) var(--ease);
}

.site-header.scrolled .nav-logo {
  color: var(--forest);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.75);
  transition: color var(--duration) var(--ease);
}

.nav-links a:hover {
  color: var(--cream);
}

.site-header.scrolled .nav-links a {
  color: var(--medium);
}

.site-header.scrolled .nav-links a:hover {
  color: var(--forest);
}

.nav-links a.nav-cta {
  color: rgba(247, 242, 232, 0.85);
  border: 1px solid rgba(247, 242, 232, 0.3);
  padding: 0.6rem 1.25rem;
}

.nav-links a.nav-cta:hover {
  background-color: rgba(247, 242, 232, 0.08);
  color: var(--cream);
  border-color: rgba(247, 242, 232, 0.6);
}

.site-header.scrolled .nav-links a.nav-cta {
  color: var(--forest);
  border-color: var(--forest);
}

.site-header.scrolled .nav-links a.nav-cta:hover {
  background-color: var(--forest);
  color: var(--cream);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 1px;
  background-color: var(--cream);
  transition: var(--duration) var(--ease);
}

.site-header.scrolled .nav-toggle span {
  background-color: var(--forest);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease);
}

.hero-img.loaded {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(24, 18, 14, 0.50) 0%,
    rgba(24, 18, 14, 0.68) 55%,
    rgba(24, 18, 14, 0.80) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 0 var(--space-md);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(196, 160, 104, 0.85);
  margin-bottom: var(--space-sm);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 15vw, 13rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(237, 229, 212, 0.88);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.hero-body {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 300;
  color: rgba(237, 229, 212, 0.62);
  max-width: 520px;
  margin: 0 auto var(--space-lg);
  line-height: 1.95;
  letter-spacing: 0.02em;
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-6px); }
}

.hero-scroll span {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(237, 229, 212, 0.35);
}

.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(237, 229, 212, 0.35), transparent);
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  background-color: var(--parchment);
  padding: var(--space-xxl) 0;
  position: relative;
}

.manifesto::before,
.manifesto::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(155, 139, 120, 0.4), transparent);
}

.manifesto::before { top: 0; }
.manifesto::after  { bottom: 0; }

.manifesto-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.manifesto-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  color: var(--dark);
  font-style: italic;
  font-weight: 300;
  margin-top: 0.25rem;
}

.manifesto-lines {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.manifesto-line {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-md);
  align-items: baseline;
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(155, 139, 120, 0.18);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.manifesto-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.manifesto-line:last-child {
  border-bottom: none;
}

.line-number {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--muted-gold);
  padding-top: 0.4rem;
}

.manifesto-line p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* ============================================================
   COLLECTIONS
   ============================================================ */
.collections {
  padding: var(--space-xxl) 0;
  background-color: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: var(--text-sm);
  color: var(--taupe);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.85;
}

/* Grid uses gap + background to create hairline borders */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: rgba(155, 139, 120, 0.22);
  border: 1px solid rgba(155, 139, 120, 0.22);
}

.collection-card {
  background-color: var(--cream);
  padding: var(--space-lg) var(--space-md);
  text-decoration: none;
  display: block;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease),
              transform 0.55s var(--ease),
              background-color 0.35s var(--ease);
}

.collection-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.collection-card:hover {
  background-color: var(--parchment);
}

.collection-card:hover .collection-link {
  color: var(--forest);
}

.collection-card:hover .collection-number {
  color: var(--forest);
}

.collection-card-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  height: 100%;
}

.collection-number {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  color: var(--muted-gold);
  letter-spacing: 0.05em;
  transition: color var(--duration) var(--ease);
}

.collection-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.2;
}

.collection-desc {
  font-size: var(--text-sm);
  color: var(--medium);
  line-height: 1.8;
  flex: 1;
}

.collection-link {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe);
  transition: color var(--duration) var(--ease);
  margin-top: var(--space-sm);
}

/* ============================================================
   FEATURED FIELD NOTE
   ============================================================ */
.featured-note {
  background-color: var(--linen);
  overflow: hidden;
}

.featured-note-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
  max-width: 100%;
}

.featured-note-image {
  overflow: hidden;
}

.featured-note-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.9s var(--ease);
}

.featured-note:hover .featured-note-image img {
  transform: scale(1.03);
}

.featured-note-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl);
  gap: var(--space-md);
  max-width: 580px;
}

.featured-note-divider {
  width: 36px;
  height: 1px;
  background-color: var(--muted-gold);
  margin: -0.5rem 0;
}

.featured-note-title {
  font-size: clamp(1.45rem, 2.8vw, 2.4rem);
  color: var(--dark);
  font-weight: 400;
  line-height: 1.28;
}

.featured-note-excerpt {
  font-size: var(--text-base);
  color: var(--medium);
  line-height: 1.9;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: var(--space-xxl) var(--space-md);
  background-color: var(--cream);
  text-align: center;
}

.about .section-label {
  display: block;
  margin-bottom: var(--space-sm);
}

.about-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  color: var(--dark);
  margin-bottom: var(--space-lg);
}

.about-body {
  max-width: var(--narrow-width);
  margin: 0 auto var(--space-xl);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-body p {
  font-size: var(--text-base);
  color: var(--medium);
  line-height: 1.95;
}

.about-body p:first-child {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--dark);
  font-style: italic;
  font-weight: 400;
  line-height: 1.65;
}

.about-image-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.about-image-wrap img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center 40%;
}

.about-image-caption {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: var(--space-sm);
  text-align: center;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  background-color: var(--forest);
  overflow: hidden;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  max-width: 100%;
}

.newsletter-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl);
  gap: var(--space-md);
}

.newsletter-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: var(--cream);
  font-weight: 400;
  line-height: 1.2;
}

.newsletter-body {
  font-size: var(--text-base);
  color: rgba(237, 229, 212, 0.7);
  line-height: 1.85;
  max-width: 380px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.newsletter-note {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(237, 229, 212, 0.4);
}

.newsletter-image {
  overflow: hidden;
  position: relative;
}

.newsletter-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
  mix-blend-mode: luminosity;
  filter: sepia(20%);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--dark);
  padding: var(--space-xl) var(--space-md);
}

.site-footer .container {
  max-width: var(--max-width);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(155, 139, 120, 0.14);
  margin-bottom: var(--space-lg);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.06em;
}

.footer-nav {
  display: flex;
  gap: var(--space-lg);
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
  transition: color var(--duration) var(--ease);
}

.footer-nav a:hover {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(155, 139, 120, 0.6);
}

.footer-copy {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.10em;
  color: rgba(155, 139, 120, 0.4);
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-note-inner {
    grid-template-columns: 1fr;
  }

  .featured-note-image {
    height: 420px;
  }

  .featured-note-content {
    padding: var(--space-lg);
    max-width: 100%;
  }

  .newsletter-inner {
    grid-template-columns: 1fr;
  }

  .newsletter-image {
    height: 320px;
    order: -1;
  }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --space-xl:  4rem;
    --space-xxl: 6rem;
  }

  /* Mobile nav overlay */
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background-color: var(--cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    z-index: 90;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    color: var(--medium);
    font-size: 0.75rem;
  }

  .nav-links a.nav-cta {
    color: var(--forest);
    border-color: var(--forest);
  }

  .nav-links a.nav-cta:hover {
    background-color: var(--forest);
    color: var(--cream);
  }

  .nav-toggle {
    display: flex;
  }

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

  .collection-card {
    padding: var(--space-md);
  }

  .manifesto-line {
    grid-template-columns: 2.5rem 1fr;
    gap: var(--space-sm);
  }

  .featured-note-content {
    padding: var(--space-md);
  }

  .newsletter-content {
    padding: var(--space-md);
  }

  .about-body {
    text-align: left;
  }

  .about-image-wrap img {
    height: 280px;
  }

  .footer-top {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE — Small Mobile
   ============================================================ */
@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
