/* Madison Fields wireframes — brand-tinted low-fi
   Borrows tokens from The Rose Clubhouse design system.
   ============================================================ */

:root {
  /* Page surfaces */
  --bg-primary:   #FBFBF9;
  --bg-secondary: #F5F2EB;
  --surface:      #ffffff;

  /* Warm-gray neutrals (stone) */
  --neutral-100: #f5f5f4;
  --neutral-150: #ecebe8;
  --neutral-200: #e7e5e4;
  --neutral-300: #d6d3d1;
  --neutral-400: #a8a29e;
  --neutral-500: #78716c;
  --neutral-600: #57534e;
  --neutral-800: #292524;
  --neutral-900: #1c1917;

  /* Sparingly used "marker" pop — used here for status indicators on lots */
  --marker-rust:    #c25a3a;
  --marker-cream:   #f1d9a6;
  --marker-sage:    #8a9a7b;   /* available */
  --marker-amber:   #c89a3a;   /* reserved */
  --marker-stone:   #a8a29e;   /* sold/inactive */

  --font-serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-hand:  'Caveat', 'Bradley Hand', cursive;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.10);
}

/* ============================================================
   Type roles — borrowed from Rose
   ============================================================ */

.t-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.t-eyebrow-lg { font-size: 13px; }

.t-h1 {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--neutral-900);
}
.t-h2 {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--neutral-900);
}
.t-h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--neutral-900);
}
.t-h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--neutral-900);
}
.t-h5 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--neutral-900);
}

.t-wordmark {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--neutral-900);
}

.t-body {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--neutral-800);
}
.t-caption {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--neutral-500);
}
.t-meta {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--neutral-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Designer annotation — italic serif, treated like a margin note */
.t-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--neutral-500);
  line-height: 1.5;
}

/* Handwritten margin note — for "designer-thinking" labels overlaid on wireframes */
.t-hand {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--neutral-500);
  line-height: 1.1;
}
.t-hand-lg { font-size: 22px; }

/* ============================================================
   Wireframe primitives
   ============================================================ */

.wf-screen {
  background: var(--bg-primary);
  color: var(--neutral-800);
  font-family: var(--font-sans);
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.wf-rule {
  height: 1px;
  background: var(--neutral-200);
  width: 100%;
}
.wf-rule-v {
  width: 1px;
  background: var(--neutral-200);
  align-self: stretch;
}

/* Image placeholder — diagonal cross + label */
.wf-img {
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-500);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  text-align: center;
  padding: var(--space-4);
}
.wf-img::before,
.wf-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--neutral-200) calc(50% - 0.5px), var(--neutral-200) calc(50% + 0.5px), transparent calc(50% + 0.5px));
  pointer-events: none;
}
.wf-img::after {
  background: linear-gradient(to bottom right, transparent calc(50% - 0.5px), var(--neutral-200) calc(50% - 0.5px), var(--neutral-200) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}
.wf-img > .wf-img-label {
  position: relative;
  z-index: 2;
  background: var(--bg-primary);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--neutral-200);
  white-space: nowrap;
}
.wf-img.wf-img-dark {
  background: var(--neutral-800);
  color: var(--neutral-300);
  border-color: var(--neutral-800);
}
.wf-img.wf-img-dark > .wf-img-label {
  background: rgba(0,0,0,0.4);
  border-color: var(--neutral-600);
  color: var(--neutral-200);
}
.wf-img.wf-img-dark::before,
.wf-img.wf-img-dark::after {
  opacity: 0.18;
  filter: invert(1);
}

/* Text bar placeholders */
.wf-bar {
  background: var(--neutral-200);
  border-radius: 2px;
  height: 10px;
}
.wf-bar-sm { height: 6px; }
.wf-bar-lg { height: 14px; }

/* Buttons (wireframe style) */
.wf-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 20px;
  border: 1px solid var(--neutral-900);
  background: var(--neutral-900);
  color: var(--bg-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}
.wf-btn-ghost {
  background: transparent;
  color: var(--neutral-900);
}
.wf-btn-light {
  background: var(--bg-primary);
  color: var(--neutral-900);
  border-color: var(--bg-primary);
}

/* Chip / pill */
.wf-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 10px;
  border: 1px solid var(--neutral-300);
  background: var(--bg-primary);
  color: var(--neutral-600);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}
.wf-chip-filled {
  background: var(--neutral-900);
  color: var(--bg-primary);
  border-color: var(--neutral-900);
}

/* Card frame */
.wf-card {
  background: var(--surface);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-sm);
}

/* Top nav bar */
.wf-topnav {
  height: 64px;
  border-bottom: 1px solid var(--neutral-200);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 32px;
  background: var(--bg-primary);
}
.wf-topnav .wf-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wf-topnav .wf-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--neutral-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-700, var(--neutral-600));
}
.wf-topnav .wf-brand-word {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neutral-900);
}
.wf-topnav .wf-navlinks {
  display: flex;
  gap: 28px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral-600);
}

/* Status dots */
.wf-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--neutral-400);
}
.wf-dot-sage { background: var(--marker-sage); }
.wf-dot-amber { background: var(--marker-amber); }
.wf-dot-stone { background: var(--marker-stone); }
.wf-dot-rust { background: var(--marker-rust); }
.wf-dot-cream { background: var(--marker-cream); border: 1px solid var(--neutral-300); }

/* Footer */
.wf-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--neutral-200);
  padding: 32px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--neutral-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Annotation arrow (small pointer) */
.wf-anno {
  position: absolute;
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--neutral-500);
  line-height: 1.05;
  pointer-events: none;
  max-width: 200px;
}
.wf-anno-arrow {
  display: inline-block;
  margin-right: 4px;
}

/* Generic flex helpers */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }
.center { align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.grow { flex: 1; }

/* Form bits */
.wf-input {
  border: 1px solid var(--neutral-300);
  background: var(--surface);
  border-radius: var(--radius-md);
  height: 44px;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--neutral-600);
  display: flex;
  align-items: center;
}
.wf-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
