/* Recipe Pasta Family — split-screen family notebook */

:root {
  --mauve: #4a2c3d;
  --mauve-2: #5d3a4d;
  --note-bg: #fdf9f0;
  --ink-p: #2e2721;
  --tomato: #c1502e;
  --soft-p: #8a7a6a;
  --hair-p: #e4d6c2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--note-bg);
  color: var(--ink-p);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16.5px;
  line-height: 1.7;
}

h1, h2, h3 { font-family: "Bookman Old Style", "Book Antiqua", Georgia, serif; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.25; margin: 0 0 0.5rem; }
h2 { font-size: 1.2rem; margin: 2.2rem 0 0.8rem; color: var(--tomato); }
h3 { font-size: 1.02rem; margin: 0 0 0.3rem; }

p { margin: 0 0 1rem; }
a { color: var(--tomato); }
a:hover { color: var(--mauve); }

/* split layout */
.split { display: flex; min-height: 100vh; align-items: stretch; }

/* left rail */
.rail {
  flex: 0 0 250px;
  background: var(--mauve);
  color: #f4e9dc;
  padding: 2rem 1.3rem;
  position: sticky; top: 0;
  align-self: flex-start;
  height: 100vh;
  display: flex; flex-direction: column;
}
.rail .mark {
  font-family: "Bookman Old Style", Georgia, serif;
  font-size: 1.15rem; line-height: 1.35; color: #fff;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(244, 233, 220, 0.35);
  padding-bottom: 1rem; margin-bottom: 1.2rem;
}
.rail .mark small { display: block; font-family: Arial, sans-serif; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #e8c9a0; margin-top: 0.35rem; }
.rail nav { display: flex; flex-direction: column; gap: 0.15rem; }
.rail nav a {
  color: #f4e9dc; text-decoration: none; font-size: 0.85rem;
  padding: 0.3rem 0.5rem; border-radius: 4px;
}
.rail nav a:hover { background: var(--mauve-2); color: #ffd9a8; }
.rail .rail-foot { margin-top: auto; font-size: 0.72rem; color: #d9c4ae; line-height: 1.5; }
.rail .rail-foot a { color: #e8c9a0; }
.rail .dl {
  background: rgba(244, 233, 220, 0.12);
  border: 1px dashed rgba(232, 201, 160, 0.6);
  border-radius: 8px; padding: 0.8rem 0.8rem; margin-bottom: 1.2rem;
}
.rail .dl strong { font-size: 0.85rem; color: #ffd9a8; display: block; margin-bottom: 0.4rem; }
.rail .dl a {
  display: block; text-align: center; background: var(--tomato);
  color: #fff; text-decoration: none; padding: 0.5rem 0.6rem;
  border-radius: 6px; font-size: 0.8rem;
}
.rail .dl a:hover { background: #a8442a; }
.rail .dl small { display: block; margin-top: 0.4rem; font-size: 0.68rem; color: #d9c4ae; }

/* content */
.content { flex: 1; min-width: 0; padding: 2.6rem 2.6rem 2rem; }
.content .entry-list { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.entry-list .entry {
  background: var(--mauve-2);
  background: #fff;
  border: 1px solid var(--hair-p);
  border-left: 4px solid var(--tomato);
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.8rem;
}
.entry-list h3 { font-size: 1rem; color: var(--mauve); }
.entry-list p { font-size: 0.9rem; margin: 0.2rem 0 0; }
.entry-list .sauce { color: var(--tomato); font-style: italic; }
.entry-list .built { color: var(--soft-p); font-size: 0.82rem; }

.note {
  background: #f7ecdd; border: 1px solid var(--hair-p); border-left: 4px solid var(--tomato);
  border-radius: 6px; padding: 0.85rem 1rem; font-size: 0.88rem; margin-top: 1.4rem;
}

/* footer strip for small screens and pages */
.page-foot {
  padding: 1.6rem 2.6rem 2.4rem; font-size: 0.83rem; color: var(--soft-p);
  border-top: 1px solid var(--hair-p); margin-top: 2rem;
}
.page-foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; margin: 0.5rem 0 0.7rem; padding: 0; }
.page-foot a { color: var(--mauve); }

@media (max-width: 880px) {
  .split { flex-direction: column; }
  .rail { position: static; height: auto; flex: none; }
}
