:root {
  --fg: #1a1a1a;
  --muted: #666;
  --border: #e2e2e2;
  --accent: #7a4a1f;
  --bg: #fdfcf9;
  --max: 70ch;
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

.site-header,
main,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.site-title {
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--fg);
  letter-spacing: 0.01em;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

h1, h2, h3 {
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

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

img { max-width: 100%; height: auto; display: block; }

.brew-header h1 { margin-bottom: 0.2rem; }
.brew-style {
  color: var(--muted);
  margin-top: 0;
  font-style: italic;
}

.brew-stats {
  border-collapse: collapse;
  margin: 1.5rem 0;
  width: 100%;
  font-size: 0.95rem;
}
.brew-stats th,
.brew-stats td {
  text-align: left;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.brew-stats th {
  width: 10rem;
  font-weight: 500;
  color: var(--muted);
}

.brew-body { margin-top: 1.5rem; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.photo-grid figure { margin: 0; }

.brew-index {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 1rem;
}
.brew-index th,
.brew-index td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.brew-index th {
  font-weight: 500;
  color: var(--muted);
}

.page-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.page-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.brew-style-inline,
.brew-abv-inline {
  color: var(--muted);
  font-size: 0.92rem;
}
