:root {
  --paper: #f4f1e8;
  --ink: #18211b;
  --muted: #687069;
  --line: #cbc9bf;
  --lime: #c8ff46;
  --green: #123f2a;
  --surface: #fffcf5;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
code, pre { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: auto; }

nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.mark {
  width: 26px; height: 26px; margin-right: 8px; position: relative;
}
.mark:before, .mark:after {
  content: ''; position: absolute; top: 2px; width: 10px; height: 20px;
  border: 2.5px solid var(--ink);
}
.mark:before { left: 1px; border-right: 0; border-radius: 3px 0 0 3px; }
.mark:after { right: 1px; border-left: 0; border-radius: 0 3px 3px 0; }
.navlinks { display: flex; gap: 24px; font-size: 13px; font-weight: 700; }
.navcta {
  background: var(--ink); color: #fff; border-radius: 999px;
  padding: 10px 16px; font-size: 13px; font-weight: 700;
}
.navcta b { color: var(--lime); margin-left: 8px; }

.hero { padding: 64px 0 48px; }
.hero-brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; margin: 0 0 16px;
}
.hero-brand span { color: var(--muted); font-weight: 450; }
.hero h1, .section-head h1, .section-head h2, .recipe-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.1;
}
.hero h1 { font-size: clamp(22px, 3vw, 28px); max-width: 28ch; margin: 0 0 12px; }
.hero p, .section-head p { color: var(--muted); max-width: 52ch; }

.jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 32px; }
.job {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 20px 18px;
}
.job.primary-job { background: var(--lime); border-color: transparent; }
.job strong { display: block; margin-bottom: 6px; }
.job span { display: block; font-size: 13px; color: var(--muted); }
.job.primary-job span { color: #3a4a32; }
.job em { display: inline-block; margin-top: 14px; font-style: normal; font-size: 12px; font-weight: 800; color: var(--green); }

.section { padding: 56px 0; }
.section-head { margin-bottom: 24px; }
.section-head h1, .section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; }

.recipe-list { border-top: 1px solid var(--line); }
.recipe-row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
  gap: 20px; align-items: center; padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.recipe-row:hover { background: #ebe8de; }
.recipe-meta { font-size: 13px; color: var(--muted); }
.recipe-meta b {
  display: block; color: var(--ink); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 4px;
}
.recipe-go { font-size: 12px; font-weight: 800; color: var(--green); white-space: nowrap; }
.muted { color: var(--muted); font-size: 13px; }

.filters-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.search {
  flex: 1; min-width: 200px; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font: inherit; background: #fff;
}
.count-line { margin: 8px 0 16px; }

.copy-btn {
  display: inline-block; background: var(--lime); color: var(--ink); border: 0;
  border-radius: 6px; padding: 9px 14px; font-size: 12px; font-weight: 800; cursor: pointer;
}
.text-link { font-size: 13px; font-weight: 700; color: var(--green); margin-left: 14px; }

.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 20px 0 0; font-size: 12px; font-weight: 700; color: var(--muted);
}
.breadcrumbs a { color: var(--green); }
.recipe-hero { padding: 28px 0 24px; border-bottom: 1px solid var(--line); }
.eyebrow {
  text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--green);
}
.recipe-hero h1 { font-size: clamp(32px, 5vw, 48px); margin: 10px 0 16px; max-width: 18ch; }
.intro { max-width: 62ch; color: #445048; }
.intro p { margin: 0 0 12px; }
.hero-actions { margin-top: 24px; }

.recipe-grid {
  display: grid; grid-template-columns: 1fr 280px; gap: 40px; padding: 40px 0 72px;
}
.code-block {
  background: var(--ink); color: #e8efe6; border-radius: 10px; padding: 16px; margin-bottom: 16px;
}
.code-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #aeb6af;
}
.code-block pre {
  margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.65;
}
.prose h2 {
  font-family: 'Fraunces', Georgia, serif; font-size: 28px; margin: 32px 0 12px;
}
.prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: 8px; }
.faq { margin-top: 40px; }
.faq h2 { font-family: 'Fraunces', Georgia, serif; font-size: 28px; }
.faq details {
  border-top: 1px solid var(--line); padding: 14px 0;
}
.faq summary { font-weight: 700; cursor: pointer; }
.faq details > div { margin-top: 10px; color: var(--muted); }

.aside-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px; margin-bottom: 16px;
}
.aside-card h3 { margin: 0 0 12px; font-size: 14px; }
.aside-card ul { margin: 0; padding-left: 1.1rem; }
.aside-card li { margin-bottom: 6px; font-size: 13px; }
.aside-card li.dest { font-weight: 800; color: var(--green); list-style: none; margin-left: -1.1rem; margin-top: 10px; }
.related { list-style: none; padding-left: 0; }
.related a { font-weight: 700; font-size: 13px; color: var(--green); }

footer {
  padding: 36px 0; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted);
}
footer a { color: var(--green); font-weight: 700; }

.params-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 40px 0 72px;
}
.params-nav h3 { margin-top: 0; }
.params-nav a[aria-current="page"] { text-decoration: underline; }
.params-block { margin-bottom: 48px; }
.params-block h2 { font-family: 'Fraunces', Georgia, serif; font-size: 28px; margin: 0 0 8px; }
.params-block h2 a { color: inherit; }
.params-notes-list { margin: 0 0 16px; padding-left: 1.2rem; color: var(--muted); font-size: 13px; }
.params-notes-list li { margin-bottom: 6px; }
.params-table-wrap {
  border: 1px solid var(--line); border-radius: 10px; overflow: auto; background: var(--surface);
}
.params-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.params-table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f0ede4;
}
.params-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.params-table tr:last-child td { border-bottom: 0; }
.param-code {
  font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 4px 7px; color: var(--green); font-weight: 700;
}
.param-copy {
  border: 1px solid var(--line); background: #fff; border-radius: 6px;
  padding: 5px 10px; font-size: 11px; font-weight: 800; cursor: pointer;
}

@media (max-width: 900px) {
  .navlinks { display: none; }
  .jobs, .recipe-row, .recipe-grid, .params-layout { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}
