:root {
  --paper: #FAFAF7;
  --ink: #14171C;
  --teal: #10454A;
  --mustard: #D89B1C;
  --muted: #6E7379;
  --border: #DEDED6;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}
.wrap { max-width: 780px; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }

/* masthead (shared across pages) */
header.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
h1.sitetitle {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 2.6rem;
  margin: 0;
  letter-spacing: -0.02em;
}
h1.sitetitle a { color: var(--ink); text-decoration: none; }
.masthead .issue {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.breadcrumb {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }

/* banner image on post pages */
img.banner {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 2rem;
  display: block;
}

/* post article */
article.post .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mustard);
}
h1.headline {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 2.4rem;
  margin: 0.5rem 0 0.4rem;
  line-height: 1.15;
}
p.subheadline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--teal);
  margin: 0 0 2rem;
}

.post-body {
  font-size: 1.02rem;
  color: #2A2E33;
}
.post-body p { margin: 0 0 1.2rem; }
.post-body img {
  max-width: 100%;
  border-radius: 4px;
  margin: 1rem 0;
  display: block;
}
.post-body a { color: var(--teal); }
.post-body h2, .post-body h3 {
  font-family: 'Fraunces', serif;
  margin-top: 2rem;
}
.post-body code {
  font-family: 'IBM Plex Mono', monospace;
  background: #F1F0EA;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}
.post-body pre {
  background: #14171C;
  color: #E4E8F1;
  padding: 1rem 1.2rem;
  border-radius: 4px;
  overflow-x: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
}

/* attachments / linked files */
.attachments {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.attachments h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.attachments ul { list-style: none; padding: 0; margin: 0; }
.attachments li { margin-bottom: 0.5rem; }
.attachments a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88rem;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px dotted var(--teal);
}
.attachments a:hover { color: var(--mustard); border-color: var(--mustard); }

/* homepage nav + entries (used by index/category templates too) */
nav.categories {
  display: flex;
  gap: 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
  margin-bottom: 3rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
nav.categories a { color: var(--ink); text-decoration: none; }
nav.categories a:hover { color: var(--mustard); }

footer {
  margin-top: 4rem;
  padding-top: 1.2rem;
  border-top: 3px solid var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}
footer a { color: var(--teal); }

/* homepage-specific */
.tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--teal);
  margin: 0.8rem 0 2.5rem;
}

.featured {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--teal);
  color: var(--paper);
  padding: 1.8rem 2rem;
  margin-bottom: 3rem;
  border-radius: 2px;
}
.featured .num {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 3.6rem;
  line-height: 1;
  color: rgba(255,255,255,0.35);
}
.featured .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mustard);
}
.featured h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0.4rem 0 0.5rem;
}
.featured h2 a { color: var(--paper); text-decoration: none; }
.featured p { margin: 0; font-size: 0.9rem; opacity: 0.85; }

h3.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.entries { position: relative; }
.entry {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}
.entry:last-child { border-bottom: none; }
.entry .num {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.9rem;
  color: var(--border);
  line-height: 1;
}
.entry .title a {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.entry .title a:hover { color: var(--teal); }
.entry .meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  display: block;
  margin: 0.3rem 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.entry .excerpt { margin: 0; font-size: 0.92rem; color: #3C4046; }

/* empty state */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 1px dashed var(--border);
  border-radius: 4px;
}
.empty-state .empty-num {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 3rem;
  color: var(--border);
  margin-bottom: 0.5rem;
}
.empty-state h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
}
.empty-state p { color: var(--muted); max-width: 420px; margin: 0 auto; }

/* recipe posts */
.circles {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 0 0 2.2rem;
}
.circle { text-align: center; }
.circle-num {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 2.3rem;
  color: #fff;
  margin: 0 auto 0.5rem;
}
.circle-unit {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 0.3rem;
}
.circle-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  max-width: 120px;
  margin: 0 auto;
}

.recipe-meta {
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
}
.recipe-meta .meta-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.servings {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.servings select {
  font: inherit;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
}

h2.recipe-h {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.5rem;
  margin: 2.4rem 0 0.8rem;
}

.ingredient-group h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mustard);
  margin: 1.4rem 0 0.2rem;
}
ul.ingredients { list-style: none; padding: 0; margin: 0; }
ul.ingredients li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}
ul.ingredients .qty {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
}
ul.ingredients .unit {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--muted);
}
ul.ingredients .optional {
  font-style: italic;
  font-size: 0.85em;
  color: var(--muted);
}
ul.ingredients .ing-note {
  font-size: 0.9em;
  color: var(--muted);
}

.step h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 1.4rem 0 0.3rem;
}
.step p { margin: 0; }

.faq {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.faq-q { font-weight: 600; margin: 1.2rem 0 0.2rem; }
.faq-a { margin: 0; color: #3C4046; }

.what-i-do {
  margin-top: 2.5rem;
  background: var(--teal);
  color: var(--paper);
  padding: 1.5rem 1.8rem;
  border-radius: 2px;
}
.what-i-do h2 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mustard);
  margin: 0 0 0.6rem;
}
.what-i-do p { margin: 0; }
