/* GoEarthstone — High-Desert Workbench theme
   Palette: juniper green / terracotta clay / sand cream — evolved from the
   original 2004 site (blue links, beige panels, terracotta accents).
   Motif: square-edged "blocks" everywhere, honoring the product itself. */

:root {
  --juniper: #2f5233;
  --juniper-dark: #24402a;
  --juniper-deep: #1a2f1e;
  --terracotta: #c2622e;
  --terracotta-dark: #9c4c20;
  --glassblue: #2d6ca2;
  --sand: #faf6ed;
  --panel: #f1e8d8;
  --panel-edge: #e0d2b8;
  --ink: #2b2a26;
  --ink-soft: #5c594f;
  --white: #ffffff;
  --maxw: 1140px;
  --artw: 820px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Mulish', 'Segoe UI', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sand);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--glassblue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--terracotta-dark); }

h1, h2, h3, .wordmark, .footer-brand {
  font-family: 'Hepta Slab', Georgia, serif;
  color: var(--juniper-deep);
  line-height: 1.2;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; margin: 0 0 .75rem; }
h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 700;
  margin: 2.2rem 0 .7rem; padding-left: .75rem;
  border-left: 6px solid var(--terracotta);
}
h3 { font-size: 1.15rem; font-weight: 600; margin: 1.5rem 0 .4rem; }

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

/* ---------- header ---------- */
.utility-bar {
  background: var(--juniper-deep); color: #cfe0cd;
  font-size: .8rem; letter-spacing: .02em; padding: .35rem 0;
}
.utility-bar i { color: var(--terracotta); margin-right: .4rem; }
.masthead { background: var(--juniper); border-bottom: 6px solid var(--terracotta); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem;
}
.wordmark {
  color: var(--sand); text-decoration: none; font-size: 1.6rem; font-weight: 800;
  display: flex; flex-direction: column; line-height: 1.1;
}
.wordmark-go { color: #e8b88f; }
.wordmark .wordmark-go { display: inline; }
.wordmark { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 0 .75rem; }
.wordmark-tag {
  font-family: 'Mulish', sans-serif; font-weight: 400; font-size: .72rem;
  color: #b9ccb6; letter-spacing: .06em; text-transform: uppercase;
}
.site-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: .45rem .8rem; color: var(--sand);
  text-decoration: none; font-weight: 700; font-size: .92rem;
}
.site-nav a:hover { background: var(--juniper-dark); color: var(--white); }
.site-nav a.active { background: var(--terracotta); color: var(--white); }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--sand);
  color: var(--sand); font-size: 1.1rem; padding: .35rem .65rem; cursor: pointer;
}

/* ---------- hero ---------- */
.page-hero {
  max-height: 420px; overflow: hidden; background: var(--juniper-deep);
  border-bottom: 6px solid var(--panel-edge);
}
.page-hero img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; }

/* ---------- article ---------- */
.article-wrap { padding: 2.5rem 1.25rem 3.5rem; }
.article { max-width: var(--artw); margin: 0 auto; }
.lead {
  font-size: 1.18rem; color: var(--ink-soft); line-height: 1.65;
  border-bottom: 2px solid var(--panel-edge); padding-bottom: 1.2rem;
}
.article ul, .article ol { padding-left: 1.4rem; }
.article li { margin: .35rem 0; }
blockquote {
  margin: 1.5rem 0; padding: 1.1rem 1.4rem; background: var(--panel);
  border-left: 6px solid var(--juniper); font-size: 1.08rem;
}
blockquote footer { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; }

.content-figure { margin: 1.6rem 0; border: 1px solid var(--panel-edge); background: var(--white); padding: .5rem; }
.content-figure img { width: 100%; }

/* ---------- tables ---------- */
.data-table {
  width: 100%; border-collapse: collapse; margin: 1.2rem 0;
  background: var(--white); font-size: .95rem;
}
.data-table th {
  background: var(--juniper); color: var(--sand); text-align: left;
  padding: .55rem .75rem; font-weight: 700;
}
.data-table td { padding: .5rem .75rem; border-bottom: 1px solid var(--panel-edge); }
.data-table tbody tr:nth-child(even) { background: var(--panel); }

/* ---------- recipes ---------- */
.recipe-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.2rem 0;
  background: var(--panel); border: 1px solid var(--panel-edge);
  padding: .7rem 1rem; font-size: .92rem;
}
.ingredients li { margin: .25rem 0; }
.method li { margin: .6rem 0; }
.recipe-nav { margin-top: 2.2rem; font-weight: 700; }

/* ---------- forms ---------- */
.contact-form { max-width: 560px; margin: 1.2rem 0; }
.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .25rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: .6rem .7rem; border: 2px solid var(--panel-edge);
  background: var(--white); font: inherit; color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--juniper);
}
.btn-primary {
  background: var(--terracotta); color: var(--white); border: none;
  font: 700 1rem 'Mulish', sans-serif; padding: .7rem 1.6rem; cursor: pointer;
}
.btn-primary:hover { background: var(--terracotta-dark); }

/* ---------- footer ---------- */
.site-footer { background: var(--juniper-deep); color: #c3d2c0; margin-top: 2rem; border-top: 6px solid var(--terracotta); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem; padding: 2.5rem 1.25rem;
}
.footer-brand { font-size: 1.3rem; font-weight: 800; color: var(--sand); margin: 0 0 .6rem; }
.footer-about p { font-size: .88rem; line-height: 1.6; }
.footer-col h3 {
  color: var(--sand); font-size: .95rem; text-transform: uppercase;
  letter-spacing: .08em; margin: 0 0 .7rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: .3rem 0; }
.footer-col a { color: #c3d2c0; text-decoration: none; font-size: .9rem; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top: 1px solid #32492f; padding: .9rem 0; font-size: .82rem; }
.footer-bottom a { color: #c3d2c0; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { border-top: 1px solid var(--juniper-dark); }
  .wordmark { font-size: 1.3rem; }
  .wordmark-tag { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .data-table { display: block; overflow-x: auto; }
}
