:root {
  --bg: #fbfaf7;
  --fg: #1c1b19;
  --muted: #7a756c;
  --line: #e6e2d9;
  --accent: #b4552d;
  --maxw: 820px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--fg); letter-spacing: .01em; }
nav a { margin-left: 1rem; text-decoration: none; font-size: .95rem; }

main { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 2rem 1rem; }

h1 { font-size: 1.6rem; margin: .6rem 0; }
.week { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .75rem; }
.meta { color: var(--muted); margin: .25rem 0 .75rem; }
.desc { max-width: 60ch; }

.featured img, .detail img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}
.grid figure { margin: 0; }
.grid .thumb img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
}
.grid figcaption { font-size: .85rem; margin-top: .4rem; }
.grid figcaption span { color: var(--muted); }

.form { display: grid; gap: 1rem; max-width: 460px; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea {
  font: inherit;
  padding: .55rem .65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
button {
  font: inherit;
  font-weight: 600;
  padding: .6rem 1.2rem;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  justify-self: start;
}
button:hover { filter: brightness(1.05); }

.danger { margin: 1rem 0; }
.danger button { background: #8a2a2a; }

.error { color: #8a2a2a; background: #fbe9e7; padding: .6rem .8rem; border-radius: 6px; }
.empty { color: var(--muted); }
