:root {
  --font-body: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --color-bg: #fff;
  --color-text: #161616;
  --color-muted: #565656;
  --color-link: #0f3d8a;
  --content-width: 42rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

.site-header,
.site-main {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-ui);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-muted);
}

.site-main {
  padding-top: 56px;
  padding-bottom: 3rem;
}

h1,
h2 {
  font-family: var(--font-ui);
  line-height: 1.2;
  margin-block: 0 0.75rem;
}

p {
  margin-block: 0 1rem;
}

a {
  color: var(--color-link);
}

.intro {
  margin-bottom: 2rem;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.recipe-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.recipe-list-thumb-link {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  overflow: hidden;
  display: inline-block;
}

.recipe-list-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.recipe-list-thumb-placeholder {
  background: #eaeaea;
}

.recipe-list-content {
  min-width: 0;
}

.post-meta,
.post-intro,
.post-source {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 0.3rem 0;
}

.post > * + * {
  margin-top: 1rem;
}

.recipe-image {
  display: block;
  width: 100%;
  border-radius: 0.4rem;
}

.ingredients-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.ingredients-list label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ingredients-list input[type="checkbox"]:checked + span {
  color: #666;
  text-decoration: line-through;
}

.ingredients-section h2,
.instructions-section h2 {
  margin-top: 2rem;
}

.instructions-section ol,
.instructions-section ul {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.instructions-section li + li {
  margin-top: 0.35rem;
}
