/* old.solutions — Earthy, archival design system */
/* DaisyUI v4 via CDN; these are project-level overrides and utilities */

:root {
  --color-ochre: #92400e;
  --color-terracotta: #b45309;
  --color-terracotta-light: #d97706;
  --color-parchment: #fef9f0;
  --color-parchment-dark: #fdf0d5;
  --color-ink: #1c1009;
  --color-ink-muted: #5c4a32;
  --color-bark: #78350f;
  --color-moss: #365314;
  --color-sand: #d4a96a;
  --color-sand-light: #e8c98a;
}

/* Base typography */
html { font-size: 16px; }

body {
  font-family: 'Lora', 'Georgia', serif;
  background-color: var(--color-parchment);
  color: var(--color-ink);
  line-height: 1.7;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: var(--color-ink);
  line-height: 1.2;
}

/* Nav */
.site-header {
  background: var(--color-parchment);
  border-bottom: 1px solid var(--color-sand);
  position: sticky;
  top: 0;
  z-index: 40;
}

/* Texture overlay for hero areas */
.texture-bg {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* Card */
.archive-card {
  background: #fffdf7;
  border: 1px solid var(--color-sand);
  border-radius: 4px;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.archive-card:hover {
  box-shadow: 0 4px 20px rgba(146, 64, 14, 0.12);
  transform: translateY(-2px);
}

/* Domain badge */
.domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 11px;
  font-family: 'Lora', serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.domain-badge--health   { background: #fef3c7; color: #92400e; }
.domain-badge--building { background: #fef9c3; color: #713f12; }
.domain-badge--finance  { background: #dcfce7; color: #14532d; }
.domain-badge--food     { background: #ffedd5; color: #9a3412; }
.domain-badge--land     { background: #d1fae5; color: #065f46; }

/* Section divider */
.divider-ornament {
  text-align: center;
  color: var(--color-sand);
  margin: 2rem 0;
  font-size: 1.25rem;
  letter-spacing: 0.5em;
}

/* Pull quote */
.pull-quote {
  border-left: 3px solid var(--color-terracotta);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--color-parchment-dark);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-ink-muted);
}

/* Citation list */
.citation-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.citation-list li {
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-bottom: 1px solid var(--color-sand-light);
  font-size: 0.875rem;
  color: var(--color-ink-muted);
  position: relative;
}
.citation-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-terracotta);
}

/* Buttons */
.btn-ochre {
  background: var(--color-ochre);
  color: #fef3c7;
  border: none;
  padding: 0.625rem 1.5rem;
  border-radius: 3px;
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.btn-ochre:hover { background: var(--color-bark); color: #fef3c7; }

.btn-ghost-ochre {
  background: transparent;
  color: var(--color-ochre);
  border: 1px solid var(--color-ochre);
  padding: 0.625rem 1.5rem;
  border-radius: 3px;
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.btn-ghost-ochre:hover {
  background: var(--color-ochre);
  color: #fef3c7;
}

/* Form fields */
.field-archival {
  width: 100%;
  border: 1px solid var(--color-sand);
  border-radius: 3px;
  padding: 0.625rem 0.875rem;
  background: #fffdf7;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--color-ink);
  transition: border-color 0.2s;
}
.field-archival:focus {
  outline: none;
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.1);
}

/* Filter bar */
.filter-bar {
  background: var(--color-parchment-dark);
  border: 1px solid var(--color-sand);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Hero section */
.hero-archival {
  background: linear-gradient(135deg, #3d1a00 0%, #78350f 50%, #92400e 100%);
  color: var(--color-parchment);
  position: relative;
  overflow: hidden;
}
.hero-archival::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Footer */
.site-footer {
  background: var(--color-bark);
  color: var(--color-sand-light);
  border-top: 3px solid var(--color-terracotta);
}

/* Consent banner */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1c1009;
  color: #e8c98a;
  padding: 1rem 1.5rem;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

/* Responsive prose */
.prose-archival {
  max-width: 72ch;
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-ink);
}
.prose-archival p { margin-bottom: 1.25rem; }
.prose-archival strong { color: var(--color-bark); }

/* Utility */
.text-ochre  { color: var(--color-ochre); }
.text-terracotta { color: var(--color-terracotta); }
.text-bark   { color: var(--color-bark); }
.text-sand   { color: var(--color-sand); }
.text-muted  { color: var(--color-ink-muted); }
.bg-parchment { background: var(--color-parchment); }
.bg-parchment-dark { background: var(--color-parchment-dark); }
