/* Cosy Home UK — shared site styles. Warm neutrals, serif type, soft cards. */

:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --text: #292524;
  --muted: #78716c;
  --accent: #9a3412;
  --accent-soft: #f5e9dd;
  --border: #e7e0d8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

/* ── Chrome ─────────────────────────────────────────── */

.masthead {
  text-align: center;
  padding: 2.2rem 1.25rem 0;
  max-width: 56rem;
  margin: 0 auto;
}

.masthead .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.masthead .mark { width: 54px; height: 54px; border-radius: 14px; }

.masthead .wordmark {
  font-size: 2.1rem;
  font-weight: bold;
  color: var(--text);
}
.masthead .wordmark em { color: var(--accent); }

.masthead .tagline {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-style: italic;
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 1.5rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.site-nav a:hover { color: var(--accent); }

main { max-width: 56rem; margin: 0 auto; padding: 0 1.25rem 3rem; }
main.narrow { max-width: 40rem; }

.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.site-footer a { color: var(--muted); margin: 0 0.5rem; }

/* ── Hero ───────────────────────────────────────────── */

.hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin: 1rem 0 2rem;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .overlay {
  position: relative;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(28, 20, 14, 0.75));
  color: #fafaf9;
}

.hero h1 { margin: 0 0 0.4rem; font-size: 2.2rem; }
.hero p { margin: 0; max-width: 34rem; opacity: 0.92; }

/* ── Sections & cards ───────────────────────────────── */

h2 {
  font-size: 1.4rem;
  color: var(--accent);
  margin: 2.4rem 0 0.8rem;
}
h3 { font-size: 1.05rem; margin: 1.6rem 0 0.4rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.card img { width: 100%; height: 190px; object-fit: cover; }

.card .body { padding: 0.9rem 1rem 1rem; }
.card .body strong { display: block; font-size: 1.02rem; }
.card .body span { color: var(--muted); font-size: 0.88rem; }
.card:hover { border-color: var(--accent); }

.note {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* ── Voice & curation ───────────────────────────────── */

.headnote {
  font-size: 1.08rem;
  font-style: italic;
  color: var(--text);
  margin: 0.9rem 0 1.2rem;
  max-width: 34rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.6rem 0 0.4rem;
}

.tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.persona {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0;
  margin: 2.6rem 0 0;
  font-size: 1.02rem;
  max-width: 40rem;
}
.persona strong { color: var(--accent); }

.related {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}
.related h3 { margin-top: 0; }
.related ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
.related li { margin-bottom: 0.45rem; }
.related a { text-decoration: none; }
.related a:hover { text-decoration: underline; }

/* ── Recipe page ────────────────────────────────────── */

.recipe-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 1rem;
}

.recipe-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.8rem 0 0.2rem;
}

.recipe-cols {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}
@media (max-width: 640px) { .recipe-cols { grid-template-columns: 1fr; } }

.ingredients {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  height: fit-content;
}
.ingredients ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.ingredients li { margin-bottom: 0.35rem; }

.method ol { padding-left: 1.2rem; }
.method li { margin-bottom: 0.8rem; }

.kit-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.8rem; }
.kit-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.kit-item .why { color: var(--muted); font-size: 0.88rem; }
