:root {
  --ink:        #1c1714;
  --ink-soft:   #463830;
  --paper:      #faf5ec;
  --paper-2:    #f1e7d4;
  --paper-warm: #efe2c8;
  --accent:     #8a4a2b;       /* terracotta */
  --accent-2:   #a85d3a;
  --accent-deep:#5c2f17;
  --gold:       #b4894f;
  --rule:       #d6c7a6;
  --rule-soft:  #e6dac0;
  --muted:      #7a6a55;

  --serif:  "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --shadow-card: 0 1px 2px rgba(28,23,20,0.05), 0 6px 16px rgba(28,23,20,0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
}

main { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem 4rem; }

/* ---------- tartan accent band (Kennedy heritage nod) ---------- */
.tartan-band {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #1c1714 0 1px,
    #5c2f17 1px 14px,
    #2f4a35 14px 18px,
    #5c2f17 18px 30px,
    #c2a96b 30px 31px,
    #5c2f17 31px 43px,
    #2f4a35 43px 47px,
    #5c2f17 47px 60px,
    #1c1714 60px 61px,
    #5c2f17 61px 72px
  );
}

/* ---------- header & footer ---------- */
header.site {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 1.25rem 1.25rem 1.1rem;
  border-bottom: 1px solid var(--rule-soft);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: inherit;
}
.brand-mark {
  width: 38px; height: 38px; flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(28,23,20,0.18));
}
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.01em; }
.brand-subtitle { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 0.15rem; }

header.site nav a {
  color: var(--accent); text-decoration: none;
  font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.5rem 0.85rem; border: 1px solid var(--rule); border-radius: 999px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
header.site nav a:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }

footer.site {
  max-width: 1080px; margin: 0 auto; padding: 2.5rem 1.25rem 2rem;
  border-top: 1px solid var(--rule-soft); text-align: center;
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.005em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0 0 0.4rem; line-height: 1.05; }
h2 { font-size: 1.75rem; margin: 1.5rem 0 0.6rem; }
h3 { font-size: 1.2rem; margin: 0.5rem 0 0.3rem; }

.muted { color: var(--muted); font-family: var(--sans); font-size: 0.85rem; }
.eyebrow { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.section-label {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  text-align: center; margin: 0 auto 1.25rem;
  display: flex; align-items: center; gap: 0.75rem; justify-content: center;
}
.section-label::before, .section-label::after {
  content: ""; flex: 0 0 60px; height: 1px; background: var(--rule);
}

/* ---------- title page ---------- */
.title-page {
  max-width: 720px; margin: 0 auto;
  text-align: center;
  padding: 2.75rem 1rem 3.25rem;
  border-bottom: 1px solid var(--rule-soft);
}
.title-page-title {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  margin: 0.5rem 0 0.35rem;
  line-height: 1.05;
  letter-spacing: -0.005em;
}
.title-page-subtitle {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--accent-deep);
  margin: 0 0 1.5rem;
  line-height: 1.3;
}
.title-ornament {
  color: var(--accent);
  font-size: 1.4rem;
  margin: 0 0 1.75rem;
  opacity: 0.7;
  line-height: 1;
}
.title-page-photo {
  margin: 0 auto;
  display: inline-block;
  max-width: 100%;
}
.title-page-photo img {
  display: block;
  width: 100%;
  max-width: 560px;
  max-height: 360px;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  border-radius: 3px;
  box-shadow: 0 12px 28px rgba(28,23,20,0.18), 0 2px 5px rgba(28,23,20,0.1);
}
.title-page-photo figcaption {
  font-family: var(--sans);
  font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-top: 0.9rem; line-height: 1.8;
}

/* ---------- dedication ---------- */
.dedication {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center;
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--rule-soft);
}
@media (max-width: 820px) { .dedication { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0; } }
.dedication-text {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem); line-height: 1.55;
  color: var(--ink-soft);
}
.dedication-text p { margin: 0 0 0.25rem; }
.dedication-text p:last-child {
  font-style: normal; color: var(--accent-deep); font-weight: 500;
  margin-top: 0.75rem;
}
.dedication-photo { margin: 0; }
.dedication-photo img {
  width: 100%; height: auto; display: block;
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(28,23,20,0.15), 0 2px 5px rgba(28,23,20,0.1);
}
.dedication-photo figcaption {
  margin-top: 0.6rem; font-family: var(--sans); font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  text-align: center;
}

/* ---------- album band ---------- */
.album { padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--rule-soft); }
.album-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
@media (max-width: 720px) { .album-grid { grid-template-columns: 1fr; gap: 1.25rem; } }
.album-grid li { margin: 0; }
.album-grid img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: 3px;
  box-shadow: 0 4px 14px rgba(28,23,20,0.12);
}
.album-grid p {
  font-family: var(--sans); font-size: 0.82rem; color: var(--muted);
  margin: 0.55rem 0 0; text-align: center; line-height: 1.4;
}

/* ---------- recipes section ---------- */
.recipes { padding: 3rem 0 1rem; }
.recipes-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem; }
.recipes-header h2 { margin: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; align-items: center; }
.filters input[type=search], .filters select {
  padding: 0.55rem 0.7rem; border: 1px solid var(--rule);
  border-radius: 3px; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 0.92rem;
}
.filters input[type=search] { flex: 1; min-width: 200px; }
.filters button {
  padding: 0.55rem 1.1rem; border: 1px solid var(--accent); border-radius: 3px;
  background: var(--accent); color: var(--paper);
  font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer; transition: background 0.15s;
}
.filters button:hover { background: var(--accent-2); border-color: var(--accent-2); }
.filters .clear { color: var(--muted); font-family: var(--sans); font-size: 0.84rem; text-decoration: none; }
.filters .clear:hover { color: var(--accent); text-decoration: underline; }

.empty {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  color: var(--muted); text-align: center; padding: 2.5rem 1rem; margin: 0;
  background: var(--paper-2); border-radius: 4px; border: 1px dashed var(--rule);
}

.recipe-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem;
}
.recipe-card a { display: block; text-decoration: none; color: inherit; }
.recipe-card .thumb {
  aspect-ratio: 4 / 3; background-size: cover; background-position: center;
  background-color: var(--paper-2); border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-family: var(--serif); font-size: 3rem; font-weight: 700;
  box-shadow: var(--shadow-card);
}
.recipe-card .thumb.thumb-empty { background: linear-gradient(180deg, var(--paper-warm), var(--paper-2)); }
.recipe-card .card-body { padding: 0.85rem 0.15rem 0; }
.recipe-card h3 { font-size: 1.3rem; margin: 0 0 0.4rem; line-height: 1.25; }
.recipe-card:hover h3 { color: var(--accent); }
.card-category {
  font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin: 0.45rem 0 0;
}

/* ---------- contributor pill ---------- */
.contributor-pill {
  display: inline-block; padding: 0.18rem 0.7rem;
  background: var(--paper-warm); color: var(--accent-deep);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1.6;
}
.contributor-pill-large {
  padding: 0.3rem 0.95rem; font-size: 0.78rem;
}
.category-tag {
  display: inline-block; padding: 0.3rem 0.85rem;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}

/* ---------- recipe detail ---------- */
.recipe { padding: 2rem 0 0; }
.recipe .back { margin: 0 0 1.5rem; }
.recipe .back a {
  font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.06em;
  color: var(--accent); text-decoration: none;
}
.recipe .back a:hover { text-decoration: underline; }
.recipe header { padding-bottom: 1.5rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--rule-soft); }
.recipe-meta-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.85rem 0 0.75rem; }
.recipe header .meta { display: flex; flex-wrap: wrap; gap: 1.5rem; font-family: var(--sans); font-size: 0.88rem; color: var(--ink-soft); margin: 0.4rem 0 0; }
.recipe header .meta strong { font-weight: 600; color: var(--accent-deep); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.74rem; margin-right: 0.3rem; }
.recipe .photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.85rem; margin-bottom: 2rem; }
.recipe .photos figure { margin: 0; }
.recipe .photos img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; border-radius: 3px; box-shadow: var(--shadow-card); }
.recipe .photos figcaption { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }
.recipe .story {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.65;
  color: var(--ink-soft); background: var(--paper-2);
  padding: 1.4rem 1.6rem; border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0; margin: 0 0 2rem;
}
.recipe .story p { margin: 0; }
.recipe-body {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; margin-top: 1rem;
}
@media (max-width: 820px) { .recipe-body { grid-template-columns: 1fr; gap: 1.5rem; } }
.recipe-body pre, .recipe .notes pre {
  font-family: var(--serif); font-size: 1.04rem; line-height: 1.7;
  white-space: pre-wrap; margin: 0;
}
.recipe .ingredients pre { background: var(--paper-2); padding: 1.2rem 1.4rem; border-radius: 4px; }
.recipe .notes {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px dashed var(--rule);
}
