:root {
  --bg: #0b0c0f;
  /* tweak if you prefer light by default */
  --fg: #e8eaed;
  --muted: #9aa0a6;
  --accent: #8ab4f8;
  --surface: #15171b;
  --radius: 14px;
  --space: clamp(12px, 2.5vw, 20px);
}

html {
  color-scheme: dark light;
}

/* enables native form styles */
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  line-height: 1.65;
  font-size: clamp(16px, 1.1vw + 12px, 19px);
  background: var(--bg);
  color: var(--fg);
}

.container {
  max-width: 100ch;
  /* ~ideal line length */
  padding: 0 var(--space);
  margin: 0 auto;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 1.2em 0 .4em;
}

h1 {
  font-size: clamp(28px, 2.2vw + 16px, 42px);
}

h2 {
  font-size: clamp(22px, 1.4vw + 14px, 30px);
}

p,
li {
  max-width: 65ch;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 4px);
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(120%) blur(8px);
  background: color-mix(in oklab, var(--bg), transparent 30%);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.header-inner {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 56px;
}

.brand {
  font-weight: 650;
  letter-spacing: .2px;
}

.recipe-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recipe-list li+li {
  margin-top: 6px;
}

.recipe-link {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset;
}

.flow>*+* {
  margin-top: clamp(10px, 2.2vw, 18px);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

a:hover {
  color: color-mix(in oklab, var(--accent), var(--fg) 30%);
  text-decoration: underline;
}

.note {
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  background: color-mix(in oklab, var(--surface), var(--accent) 8%);
  border-radius: 8px;
}

@media (hover:hover) {
  .recipe-link:hover {
    transform: translateY(-1px);
  }
}