/* Lucy's Cafe & Farm Pantry — Esparto, CA */

:root {
  --cream: #f5efe1;
  --cream-deep: #ebe3cf;
  --sage: #7a8b6a;
  --sage-dark: #5d6b50;
  --terracotta: #c46a3d;
  --terracotta-dark: #a8552c;
  --brown: #3d2c1f;
  --brown-soft: #5a4536;
  --butter: #e8d49a;
  --ink: #2a1f15;
  --rule: #d6cdb6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* paper grain — barely-there noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  z-index: 1;
  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.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.24  0 0 0 0 0.18  0 0 0 0 0.12  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

main, header, footer { position: relative; z-index: 2; }

a {
  color: var(--terracotta-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--brown); }

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', 'Cardo', Georgia, serif;
  font-weight: 400;
  color: var(--brown);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.92em;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sage-dark);
  margin: 0 0 1rem;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

.narrow { max-width: 720px; }

/* HEADER */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.4rem 0;
  background: var(--cream);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--brown);
  text-decoration: none;
  line-height: 1;
}
.wordmark .amp { color: var(--terracotta); font-style: italic; }

.site-nav {
  display: flex;
  gap: 1.8rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--brown-soft);
  font-size: 0.96rem;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--brown);
  border-bottom-color: var(--terracotta);
}

/* HERO */
.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--rule);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(3rem, 6.5vw, 5.4rem);
  margin-bottom: 0.6rem;
}
.hero .tagline {
  font-size: 1.2rem;
  color: var(--brown-soft);
  max-width: 30ch;
  margin-bottom: 2rem;
}
.hero-art {
  display: flex;
  justify-content: center;
}
.hero-art svg { width: 100%; max-width: 360px; height: auto; }

/* OPEN-TODAY CARD */
.open-card {
  display: inline-flex;
  align-items: baseline;
  gap: 1rem;
  border: 1px solid var(--brown);
  padding: 0.9rem 1.2rem;
  background: var(--cream);
}
.open-card .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--sage);
  border-radius: 50%;
  margin-right: 0.4rem;
  transform: translateY(-1px);
}
.open-card strong { color: var(--brown); }
.open-card .mono { color: var(--brown-soft); }

/* THREE-UP */
.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 4rem 0;
}
.three-up .cell {
  padding: 2.2rem 1.6rem;
  border-right: 1px solid var(--rule);
}
.three-up .cell:last-child { border-right: none; }
.three-up .icon { width: 64px; height: 64px; margin-bottom: 1rem; color: var(--sage-dark); }
.three-up h3 { margin-bottom: 0.4rem; }
.three-up p { color: var(--brown-soft); font-size: 0.96rem; }

/* WEEK LIST */
.week-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin: 4rem 0;
}
.week-block h2 { margin-top: 0; }
.week-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.week-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.week-list .item { color: var(--ink); }
.week-list .vendor {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-dark);
  text-align: right;
  flex-shrink: 0;
}

/* CTA STRIP */
.cta-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--brown);
  margin: 4rem 0;
}
.cta-strip a {
  padding: 2.2rem 1.8rem;
  text-decoration: none;
  color: var(--brown);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--brown);
  background: var(--cream);
  transition: background 0.15s;
}
.cta-strip a:last-child { border-right: none; }
.cta-strip a:hover { background: var(--butter); }
.cta-strip .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sage-dark);
  margin-bottom: 0.4rem;
}
.cta-strip .arrow { font-family: 'DM Serif Display', serif; font-size: 1.6rem; }

/* PAGE HEADER */
.page-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--rule);
}
.page-header h1 { margin-bottom: 0.6rem; }
.page-header .lede {
  font-size: 1.15rem;
  color: var(--brown-soft);
  max-width: 56ch;
}

/* MENU */
.menu-section {
  margin: 3.5rem 0;
}
.menu-section h2 {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.6rem;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.menu-section h2 .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sage-dark);
  font-weight: 400;
}
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.6rem;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--rule);
  align-items: baseline;
}
.menu-list .name { font-weight: 500; color: var(--brown); }
.menu-list .desc {
  display: block;
  color: var(--brown-soft);
  font-size: 0.95rem;
  margin-top: 0.15rem;
}
.menu-list .price {
  font-family: 'JetBrains Mono', monospace;
  color: var(--terracotta-dark);
  font-size: 0.95rem;
  white-space: nowrap;
}

.menu-note {
  background: var(--cream-deep);
  border-left: 3px solid var(--sage);
  padding: 1rem 1.2rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--brown-soft);
}

/* PANTRY */
.pantry-cat {
  margin: 3rem 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.pantry-cat h2 {
  font-size: 1.6rem;
  margin: 0;
  position: sticky;
  top: 1rem;
}
.pantry-cat .cat-icon {
  width: 56px; height: 56px;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
}
.pantry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.pantry-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.pantry-list .item { font-weight: 500; color: var(--brown); }
.pantry-list .from {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-dark);
  margin-left: 0.5rem;
}
.pantry-list .note { color: var(--brown-soft); font-size: 0.94rem; display: block; margin-top: 0.15rem; }

.callout {
  background: var(--butter);
  border: 1px solid var(--terracotta);
  padding: 1.6rem 1.8rem;
  margin: 3rem 0;
}
.callout h3 { margin-top: 0; }

/* STORY */
.story-body {
  max-width: 640px;
  font-size: 1.08rem;
  line-height: 1.75;
}
.story-body p:first-of-type::first-letter {
  font-family: 'DM Serif Display', serif;
  font-size: 3.6rem;
  float: left;
  line-height: 0.85;
  padding: 0.3rem 0.5rem 0 0;
  color: var(--terracotta);
}
.pull-quote {
  font-family: 'DM Serif Display', serif;
  font-size: 1.7rem;
  line-height: 1.3;
  color: var(--brown);
  border-left: 3px solid var(--terracotta);
  padding: 0.4rem 0 0.4rem 1.4rem;
  margin: 2.5rem 0;
  max-width: 28ch;
}

/* VISIT */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 3rem 0;
}
.visit-card {
  border: 1px solid var(--rule);
  padding: 1.8rem;
  background: var(--cream);
}
.visit-card h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sage-dark);
  font-weight: 400;
  margin-bottom: 0.6rem;
}
.visit-card .big {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--brown);
  display: block;
  margin-bottom: 0.2rem;
}
.visit-map {
  border: 1px solid var(--rule);
  background: var(--cream-deep);
  padding: 1.5rem;
  margin: 2rem 0;
}
.visit-map svg { width: 100%; height: auto; display: block; }

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}
.note-card {
  border-top: 2px solid var(--sage);
  padding-top: 1rem;
}
.note-card h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sage-dark);
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.note-card p { color: var(--brown-soft); margin: 0; font-size: 0.96rem; }

/* FOOTER */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--rule);
  padding: 3rem 0 2rem;
  background: var(--cream-deep);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-grid h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sage-dark);
  font-weight: 400;
  margin-bottom: 0.6rem;
}
.footer-grid p, .footer-grid a {
  font-size: 0.96rem;
  color: var(--brown-soft);
}
.footer-grid a { display: block; margin-bottom: 0.3rem; }

.disclaimer {
  border-top: 1px dashed var(--rule);
  padding-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--brown-soft);
  font-style: italic;
  line-height: 1.5;
}
.disclaimer a {
  font-style: normal;
  color: var(--terracotta-dark);
}

/* RESPONSIVE */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header .container {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .site-nav { gap: 1.2rem; flex-wrap: wrap; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { order: -1; max-width: 240px; }
  .three-up { grid-template-columns: 1fr; }
  .three-up .cell { border-right: none; border-bottom: 1px solid var(--rule); }
  .three-up .cell:last-child { border-bottom: none; }
  .week-block { grid-template-columns: 1fr; gap: 1.5rem; }
  .cta-strip { grid-template-columns: 1fr; }
  .cta-strip a { border-right: none; border-bottom: 1px solid var(--brown); }
  .cta-strip a:last-child { border-bottom: none; }
  .pantry-cat { grid-template-columns: 1fr; gap: 1rem; }
  .pantry-cat h2 { position: static; }
  .visit-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .notes-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .menu-list li { grid-template-columns: 1fr; }
  .menu-list .price { margin-top: 0.2rem; }
}
