/* ============================================================
   Lucy Harper Finds — Stylesheet
   ============================================================ */

/* Honeypot field for spam protection on forms — invisible to real
   visitors, but plain-text bots that fill in every field will trip it. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500&family=Caveat:wght@500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */

:root {
  --cream:      #F7F4EE;
  --cream-dark: #EDE9DF;
  --charcoal:   #2F2F2F;
  --charcoal-light: #5A5A5A;
  --green:      #5E7455;
  --green-dark: #4A5C42;
  --terracotta: #B66A4B;
  --mustard:    #C79A3B;
  --border:     #DDD5C4;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-script:  'Caveat', 'Bradley Hand', cursive;

  --max-width: 1200px;
  --gutter: 7vw;
}

/* ── Reset ─────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--terracotta); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 600;
  color: var(--charcoal);
}

h1 { font-size: clamp(42px, 7vw, 88px); line-height: 1.0; }
h2 { font-size: clamp(28px, 4vw, 52px); }
h3 { font-size: clamp(22px, 2.5vw, 32px); font-weight: 400; }
h4 { font-size: 18px; font-weight: 600; }

p { max-width: 68ch; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}

.script {
  font-family: var(--font-script);
  font-size: 1.4em;
  font-weight: 500;
  color: var(--terracotta);
}

.heart { color: var(--terracotta); }

/* ── Layout ────────────────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: 80px var(--gutter);
}

.section-header {
  margin-bottom: 48px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Buttons ───────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--charcoal);
  text-decoration: none;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ── Navigation ────────────────────────────────────────────── */

.site-header {
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo img {
  height: 96px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--green);
}

.nav-cta {
  font-size: 13px !important;
  background: var(--green);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 999px;
}
.nav-cta:hover {
  background: var(--green-dark) !important;
  color: #fff !important;
}

/* ── Footer ────────────────────────────────────────────────── */

.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding: 60px var(--gutter) 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto 48px;
}

.footer-brand img {
  height: 88px;
  width: auto;
  margin-bottom: 16px;
  opacity: 0.9;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 28ch;
  color: rgba(255,255,255,0.6);
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.footer-social a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--terracotta);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
}
.footer-bottom a:hover {
  color: rgba(255,255,255,0.8);
}

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 80vh;
  max-height: 860px;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px var(--gutter);
  background: var(--cream);
}

.hero-content h1 {
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--charcoal-light);
  max-width: 50ch;
}

.hero-image {
  background: var(--cream-dark);
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-light);
  font-size: 14px;
  gap: 12px;
  background: linear-gradient(145deg, #ede9df, #e0d8cb);
}

.hero-image-placeholder span {
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--terracotta);
}

/* ── Cards ─────────────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 32px;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.card-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.card p {
  font-size: 15px;
  color: var(--charcoal-light);
  line-height: 1.65;
}

.card .card-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.04em;
}

.card .card-link:hover {
  text-decoration: underline;
}

/* ── Journal / Article ─────────────────────────────────────── */

.journal-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.journal-feature-image {
  display: block;
  background: var(--cream-dark);
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 1px;
}

.journal-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-feature-content h2 a,
.article-card h3 a {
  color: inherit;
  text-decoration: none;
}

.journal-feature-content h2 a:hover,
.article-card h3 a:hover {
  color: var(--green);
}

/* Portrait crop for About — separate from the 4/3 journal-feature-image
   so Lucy's 3:4 portrait doesn't get squashed into a landscape frame. */
.about-portrait-image {
  background: var(--cream-dark);
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 1px;
}

.about-portrait-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-light);
  font-size: 13px;
  background: linear-gradient(145deg, #ede9df, #e0d8cb);
  font-style: italic;
}

.journal-article-meta {
  font-size: 13px;
  color: var(--charcoal-light);
  margin-bottom: 16px;
}

.journal-feature-content h2 {
  margin-bottom: 16px;
}

.journal-feature-content p {
  color: var(--charcoal-light);
  margin-bottom: 24px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.article-card {
  border-top: 2px solid var(--green);
  padding-top: 20px;
}

.article-card .article-image {
  display: block;
  background: var(--cream-dark);
  aspect-ratio: 3/2;
  margin-bottom: 20px;
  overflow: hidden;
}

.article-card .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.article-card p {
  font-size: 14px;
  color: var(--charcoal-light);
  line-height: 1.6;
}

/* ── Market Directory ──────────────────────────────────────── */

.markets-cta {
  background: var(--charcoal);
  color: #fff;
  padding: 80px var(--gutter);
  text-align: center;
}

.markets-cta h2 {
  color: #fff;
  margin-bottom: 16px;
}

.markets-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  margin: 0 auto 32px;
  max-width: 55ch;
}

.markets-cta .btn-primary {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.markets-cta .btn-outline {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.4);
}

.markets-cta .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.markets-cta .btn-group {
  justify-content: center;
}

/* ── Newsletter ────────────────────────────────────────────── */

.newsletter-strip {
  background: var(--green);
  padding: 60px var(--gutter);
  text-align: center;
}

.newsletter-strip h2 {
  color: #fff;
  font-size: clamp(22px, 3vw, 36px);
  margin-bottom: 10px;
}

.newsletter-strip p {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  margin: 0 auto 28px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 13px 20px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  background: #fff;
  color: var(--charcoal);
  outline: none;
}

.newsletter-form input[type="email"]::placeholder {
  color: #aaa;
}

.newsletter-form button {
  padding: 13px 28px;
  background: var(--charcoal);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: #111;
}

/* ── Page hero (inner pages) ───────────────────────────────── */

.page-hero {
  padding: 72px var(--gutter) 60px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 72px);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: var(--charcoal-light);
  max-width: 60ch;
}

/* ── Market listing card ───────────────────────────────────── */

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.market-card {
  border: 1px solid var(--border);
  background: #fff;
  transition: box-shadow 0.2s;
}

.market-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.market-card-image {
  background: var(--cream-dark);
  aspect-ratio: 3/2;
  overflow: hidden;
}

.market-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.market-card-body {
  padding: 24px;
}

.market-card-body h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.market-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--cream);
  color: var(--charcoal-light);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
  margin-right: 6px;
  margin-bottom: 12px;
}

.market-card-body p {
  font-size: 14px;
  color: var(--charcoal-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ── County browse grid ────────────────────────────────────── */

.county-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.county-pill {
  display: block;
  padding: 14px 20px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.county-pill:hover {
  border-color: var(--green);
  color: var(--green);
  text-decoration: none;
}

.county-pill.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ── Form styles ───────────────────────────────────────────── */

.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--charcoal);
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-max {
  max-width: 560px;
}

/* ── Breadcrumb ────────────────────────────────────────────── */

.breadcrumb {
  font-size: 13px;
  color: var(--charcoal-light);
  margin-bottom: 28px;
}

.breadcrumb a {
  color: var(--charcoal-light);
}

.breadcrumb a:hover { color: var(--green); }

.breadcrumb span { margin: 0 8px; }

/* ── Utility ───────────────────────────────────────────────── */

.cream-section { background: var(--cream-dark); }

.text-center { text-align: center; }
.text-muted { color: var(--charcoal-light); }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-40 { margin-bottom: 40px; }

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; max-height: none; }
  .hero-image { min-height: 360px; }
  .hero-image-placeholder { min-height: 360px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .journal-feature { grid-template-columns: 1fr; gap: 32px; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .market-grid { grid-template-columns: 1fr 1fr; }
  .county-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  :root { --gutter: 5vw; }
  section { padding: 56px var(--gutter); }
  .site-nav { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .county-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
