/* 37 Capp — Slate #334E5C, Pewter #5E7683, Ink #111110, Porcelain #FAF9F6 */
:root {
  --ink: #111110;
  --porcelain: #faf9f6;
  --slate: #334e5c;
  --pewter: #5e7683;
  --line: #e3ded6;
  --muted: #6b6a66;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--porcelain); color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif; line-height: 1.55;
}
a { color: var(--slate); }
button { font-family: inherit; cursor: pointer; }

/* Sticky header: logo, tabs, and the back button all stay visible. */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--porcelain); border-bottom: 1px solid var(--line);
}
.header-inner { max-width: 1080px; margin: 0 auto; padding: 14px 20px 0; }
.brand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.logo-lockup {
  display: inline-flex; align-items: baseline; gap: 6px;
  border: 2px solid var(--slate); padding: 2px 10px 4px;
  color: var(--slate); text-decoration: none; line-height: 1;
}
.logo-lockup .n37 { font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.logo-lockup .capp { font-size: 26px; font-weight: 300; letter-spacing: 1px; }
.subtitle { color: var(--pewter); font-style: italic; font-size: 15px; }
.header-links { margin-left: auto; display: flex; gap: 16px; font-size: 14px; }
nav.tabs { display: flex; gap: 4px; margin-top: 12px; }
nav.tabs button {
  background: none; border: none; border-bottom: 3px solid transparent;
  padding: 10px 14px; font-size: 16px; color: var(--ink);
}
nav.tabs button[aria-selected="true"] { border-bottom-color: var(--slate); color: var(--slate); font-weight: 700; }
.back-row { min-height: 0; }
.back-row button {
  display: none; background: none; border: none; color: var(--slate);
  font-size: 15px; padding: 8px 0 10px;
}
.back-row button.visible { display: inline-block; }

main { max-width: 1080px; margin: 0 auto; padding: 28px 20px 80px; }
.hero h1 { font-size: 26px; font-weight: 400; margin: 6px 0 4px; color: var(--ink); }
.hero p.lede { color: var(--muted); margin: 0 0 8px; }
section h2 { font-size: 21px; margin: 34px 0 4px; color: var(--slate); }
section p.note { color: var(--muted); margin: 0 0 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); padding: 0;
  text-align: left; overflow: hidden; scroll-margin-top: 170px;
}
.card img, .card .cover-ph {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: #e8e4dc;
}
.card .cover-ph { display: flex; align-items: center; justify-content: center; color: var(--pewter); font-style: italic; padding: 20px; text-align: center; }
.card h3 { font-size: 17px; font-weight: 600; margin: 12px 14px 2px; }
.card .date { color: var(--muted); font-size: 13px; margin: 0 14px 12px; }

/* Detail gallery: full-frame media, never cropped. */
.detail h1 { font-size: 26px; margin: 8px 0 4px; }
.detail .meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.gallery { display: grid; gap: 18px; }
.gallery img, .gallery video { width: 100%; height: auto; display: block; background: #e8e4dc; }
.detail .description { font-size: 17px; max-width: 680px; white-space: pre-wrap; }
.detail .description .inspired { font-style: italic; color: var(--pewter); }
.detail .ig-link { display: inline-block; margin-top: 18px; }

.recipe-list { list-style: none; padding: 0; margin: 0; }
.recipe-list li { border-bottom: 1px solid var(--line); scroll-margin-top: 170px; }
.recipe-list button {
  background: none; border: none; text-align: left; width: 100%;
  padding: 14px 4px; font-size: 17px; color: var(--ink);
}
.recipe-list button:hover { color: var(--slate); }
.recipe { max-width: 680px; }
.recipe h1 { font-size: 26px; margin: 8px 0 12px; }
.recipe h2 { font-size: 18px; color: var(--slate); margin: 22px 0 6px; }
.recipe .lines { white-space: normal; }
.recipe .lines .ln { min-height: 1.2em; }
.recipe .lines .ln.blank { height: 0.9em; }
.about { max-width: 680px; white-space: pre-wrap; font-size: 17px; }

form.request, form.manage-form { max-width: 560px; margin-top: 18px; }
label { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 4px; }
input[type="text"], input[type="email"], input[type="password"], select, textarea {
  width: 100%; padding: 9px 10px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
textarea { min-height: 120px; }
.btn {
  background: var(--slate); color: #fff; border: none;
  padding: 10px 18px; font-size: 15px; margin-top: 16px;
}
.btn.secondary { background: #fff; color: var(--slate); border: 1px solid var(--slate); }
.btn.danger { background: #fff; color: #8a2f2f; border: 1px solid #8a2f2f; }
.hint { color: var(--muted); font-size: 14px; }
.error { color: #8a2f2f; }
.manage-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0 20px; }
.manage-panel { border: 1px solid var(--line); background: #fff; padding: 16px 18px; margin: 18px 0; }
table.requests { width: 100%; border-collapse: collapse; font-size: 15px; }
table.requests td, table.requests th { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
footer.site-footer { border-top: 1px solid var(--line); padding: 26px 20px 40px; text-align: center; color: var(--muted); font-size: 14px; }
footer.site-footer a { color: var(--slate); }
@media (max-width: 640px) {
  .logo-lockup .n37 { font-size: 28px; }
  .logo-lockup .capp { font-size: 21px; }
  .hero h1 { font-size: 22px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}
