
/* Shared style for /shelf-life/ pages. Mirrors the cream-and-green palette
   used on the marketing site + blog. */
:root {
  --bg: #F0EADC;
  --surface: #F7F3E8;
  --card: #FFFFFF;
  --border: #E2DCCB;
  --text: #1C261C;
  --text-soft: #3A4A38;
  --muted: #6B8264;
  --green: #3E721D;
  --green-soft: rgba(62, 114, 29, 0.08);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 18px;
  color: var(--green);
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 16px; list-style: none; padding: 0; margin: 0; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 14px; }
.nav-links a.is-active { color: var(--green); font-weight: 700; }
.nav-cta { background: var(--green); color: var(--bg) !important; padding: 8px 14px; border-radius: 6px; }
@media (max-width: 720px) {
  nav { flex-direction: column; gap: 12px; padding: 12px 16px; }
  .nav-links { gap: 10px; flex-wrap: wrap; justify-content: center; }
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumbs span { color: var(--text-soft); }

.item-header { margin-bottom: 32px; }
.item-category {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 8px;
}
.item-header h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 0 0 8px;
}
.item-subtitle {
  font-style: italic;
  color: var(--text-soft);
  margin: 0;
}

.storage-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.storage-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.storage-icon { font-size: 32px; }
.storage-body { flex: 1; }
.storage-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 4px;
  font-family: 'DM Mono', ui-monospace, monospace;
}
.storage-range {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}
.storage-sub {
  font-weight: 400;
  color: var(--muted);
  font-size: 16px;
}
.storage-opened {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.tips-card {
  padding: 20px;
  background: var(--green-soft);
  border: 1px solid rgba(62, 114, 29, 0.2);
  border-radius: 12px;
  margin-bottom: 32px;
}
.tips-label {
  font-size: 12px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'DM Mono', ui-monospace, monospace;
  margin: 0 0 8px;
}
.tips-card p { margin: 0; color: var(--text-soft); font-size: 14px; }

.cta-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  margin: 32px 0;
}
.cta-card h2 { margin: 0 0 8px; font-size: 20px; }
.cta-card p { margin: 0 0 20px; color: var(--text-soft); }
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  margin: 4px;
}
.btn-primary { background: var(--green); color: var(--bg); }
.btn-primary:hover { text-decoration: none; opacity: 0.9; }
.btn-secondary {
  background: var(--card);
  color: var(--green);
  border: 1px solid var(--green);
}

.related h2 {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 32px 0 12px;
  font-family: 'DM Mono', ui-monospace, monospace;
}
.related ul { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.related li a {
  display: inline-block;
  padding: 6px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 13px;
}

.source-attribution {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.source-attribution h2 {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'DM Mono', ui-monospace, monospace;
  margin: 0 0 8px;
}

/* Index page */
.shelf-index { max-width: 800px; }
.index-header { text-align: center; margin-bottom: 32px; }
.index-eyebrow {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 8px;
}
.index-header h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 12px;
}
.index-tagline {
  color: var(--text-soft);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}

.search-wrap { margin: 32px 0; }
#shelf-search {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  font-family: inherit;
}
#shelf-search:focus { outline: none; border-color: var(--green); }
.search-msg { font-size: 13px; color: var(--muted); margin: 8px 0 0; min-height: 16px; }

.cat-section { margin-bottom: 32px; }
.cat-section h2 {
  font-size: 14px;
  color: var(--green);
  font-family: 'DM Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.item-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 4px 16px;
}
.item-list li a {
  display: block;
  padding: 6px 0;
  color: var(--text);
  font-size: 14px;
}
.item-list li a:hover { color: var(--green); }

.footer {
  max-width: 720px;
  margin: 64px auto 32px;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.footer .disclaimer {
  text-align: left;
  font-size: 12px;
  background: var(--surface);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  line-height: 1.65;
}
.footer p a { color: var(--green); margin: 0 8px; }
.footer .copy { font-family: 'DM Mono', ui-monospace, monospace; font-size: 11px; opacity: 0.7; margin-top: 16px; }
