/* Modest Oven — small personal recipe site
   System fonts only. No external CSS, fonts, or trackers. */

:root {
  --paper: #f3eee4;
  --paper-2: #e9e2d4;
  --card: #faf7f0;
  --ink: #2b261f;
  --muted: #5e564b;
  --rule: #d5ccbc;
  --accent: #8a4633;
  --accent-2: #6c3728;
  --herb: #4a5844;
  --measure: 42rem;
  --wide: 58rem;
}

* { box-sizing: border-box; }

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", Times, serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { max-width: 100%; height: auto; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.7rem;
  z-index: 10;
}

.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--wide), calc(100% - 2.4rem));
  margin-inline: auto;
}

.wrap-narrow { width: min(var(--measure), calc(100% - 2.4rem)); margin-inline: auto; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.4rem 0 1.15rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover { color: inherit; }

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 2.6rem;
}

.brand-text { display: flex; flex-direction: column; gap: 0.05rem; }

.brand-name {
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  font-weight: normal;
  line-height: 1.15;
}

.brand-tag {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  margin-top: 0.95rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent-2);
}

main { flex: 1; padding: 2rem 0 3.25rem; }

/* Home */
.intro { max-width: var(--measure); margin-bottom: 2.4rem; }

.intro h1 {
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  margin: 0 0 0.7rem;
  line-height: 1.2;
}

.intro p { margin: 0 0 0.9rem; color: var(--ink); }

.kicker {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--herb);
  margin: 0 0 1rem;
}

.recipe-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.recipe-list li {
  border-bottom: 1px solid var(--rule);
}

.recipe-list a {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 1rem;
  padding: 1.05rem 0;
  text-decoration: none;
  color: inherit;
}

.recipe-list a:hover .rtitle { color: var(--accent-2); }

.rdate {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 0.3rem;
}

.rtitle {
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
  font-weight: normal;
}

.rdek { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Recipe article */
.article-head { margin-bottom: 1.4rem; }

.article-head h1 {
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

.meta {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0;
}

.meta span { white-space: nowrap; }

.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }

.recipe-panel {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1.2rem 1.3rem 1.35rem;
  margin: 1.6rem 0;
}

.recipe-panel h2 {
  font-size: 1.15rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  margin: 0 0 0.7rem;
}

.ingredients,
.steps {
  margin: 0;
  padding-left: 1.2rem;
}

.ingredients li,
.steps li { margin: 0 0 0.4rem; }

.note {
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
  padding-top: 1.1rem;
}

.note h2 {
  font-size: 1.15rem;
  font-weight: normal;
  margin: 0 0 0.5rem;
}

.back {
  margin-top: 2.2rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.2rem 0 1.6rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  justify-content: space-between;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent-2); }

/* 404 */
.lost { max-width: var(--measure); padding: 1rem 0 2rem; }
.lost h1 { font-size: 2rem; font-weight: normal; margin: 0 0 0.8rem; }

hr.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 1.8rem 0;
}

@media (max-width: 620px) {
  html { font-size: 17px; }
  .recipe-list a {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.95rem 0;
  }
  .rdate { padding-top: 0; }
  .intro h1, .article-head h1, .lost h1 { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.ingredients li.group {
  list-style: none;
  margin-left: -1.2rem;
  margin-top: 0.7rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
