/* lexfriedman.com/creami */

:root {
  --bg: #fbf7f0;
  --card: #ffffff;
  --ink: #241d15;
  --muted: #8a7d6c;
  --line: #eae1d3;
  --accent: #7a4a21;
  --accent-soft: #f3e9dc;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 90px;
}

/* ---------- Type ---------- */

h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.4rem, 8vw, 3.4rem); margin: 0.15em 0 0.25em; }

h2 { font-size: 1.7rem; margin: 0 0 0.6em; }

h3 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 2.2em 0 0.7em;
}

.overline {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0;
}

.overline a { color: inherit; text-decoration: none; }

.overline a:hover { text-decoration: underline; text-underline-offset: 3px; }

.lede {
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 1.6em;
}

section { margin-top: 72px; }

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

/* ---------- Jump pills ---------- */

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.jump a {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.jump a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Media ---------- */

figure { margin: 1.8em 0; }

figure img, figure video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background: #efe8dc;
}

figcaption {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 0.65em;
}

.hero-img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 42%;
}

.portrait { max-width: 400px; margin-left: auto; margin-right: auto; }

.portrait img, .portrait video { aspect-ratio: 3 / 4; object-fit: cover; }

figure.vid { max-width: 320px; margin-left: auto; margin-right: auto; }

figure.vid video { aspect-ratio: 9 / 16; }

/* ---------- Recipe table ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  font-size: 0.98rem;
}

th, td { text-align: left; padding: 0.75em 1em; }

th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

tr + tr td { border-top: 1px solid var(--line); }

td.g { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }

.formula {
  font-family: var(--serif);
  font-size: 1.25rem;
  text-align: center;
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 0.9em 1em;
  margin: 1.4em 0;
}

/* ---------- Flavor chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0.8em 0; list-style: none; }

.chips li {
  padding: 7px 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
}

.chips a { color: var(--accent); font-weight: 600; }

/* ---------- Batch card ---------- */

.batch-card {
  max-width: 380px;
  margin: 2.4em auto;
  padding: 20px 26px 26px;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 3px 14px rgba(75, 50, 25, 0.13);
  transform: rotate(-1.4deg);
}

.batch-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #b3402a;
  margin: 0 0 0.35em;
  padding-bottom: 0.45em;
  border-bottom: 2px solid #e9b3a7;
}

.batch-card ul { list-style: none; margin: 0; padding: 0; }

.batch-card li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 0.5em 0;
  border-bottom: 1px solid #dce7f0;
}

.batch-card li:last-child { border-bottom: none; }

.batch-card b { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Callouts ---------- */

.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 1em 1.2em;
  margin: 1.6em 0;
  font-size: 0.97rem;
}

.callout.loud { border-left-color: #b3402a; }

/* ---------- Method steps ---------- */

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2.2em 60px;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1em;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 48px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.steps b { font-size: 1.05em; }

.steps figure { margin: 1.1em 0 0.4em; }

/* ---------- Progression strip ---------- */

.strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 12px;
  margin: 1.4em 0 0;
}

.strip figure { margin: 0; }

.strip img { aspect-ratio: 1 / 1; height: auto; object-fit: cover; border-radius: 12px; }

.strip figcaption b { color: var(--ink); }

@media (min-width: 640px) {
  .strip { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Notes ---------- */

.notes { list-style: none; padding: 0; margin: 0; }

.notes li { padding: 0.55em 0 0.55em 1.7em; position: relative; }

.notes li::before { content: "·"; position: absolute; left: 0.3em; color: var(--accent); font-weight: 700; font-size: 1.4em; line-height: 1.1; }

blockquote {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  margin: 1.8em 0;
  padding: 0.2em 0 0.2em 1.2em;
}

/* ---------- Gear cards ---------- */

.gear { display: grid; gap: 14px; margin: 1.4em 0 0.8em; }

.gear-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1em 1.3em;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.gear-thumb {
  width: 90px;
  height: 90px;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: cover;
}

.gear-info { min-width: 0; }

.gear-card:hover { border-color: var(--accent); }

.gear-card.pick { border: 2px solid var(--accent); }

.badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 0.6em;
}

.gear-card strong { display: block; font-size: 1.08rem; margin-bottom: 0.25em; }

.gear-card p { margin: 0 0 0.6em; color: var(--muted); font-size: 0.93rem; line-height: 1.5; }

.gear-card .cta { color: var(--accent); font-weight: 700; font-size: 0.93rem; }

.disclosure { font-size: 0.8rem; color: var(--muted); }

/* ---------- Footer ---------- */

footer {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

footer p { margin: 0.4em 0; }

/* ---------- Transcript page ---------- */

.msgs { margin-top: 2em; }

.msg { display: flex; margin: 6px 0; }

.msg p {
  margin: 0;
  padding: 0.55em 0.9em;
  border-radius: 18px;
  max-width: 82%;
  white-space: pre-wrap;
  font-size: 0.98rem;
}

.msg.me { justify-content: flex-end; }

.msg.me p { background: #2d7ff9; color: #fff; border-bottom-right-radius: 5px; }

.msg.them p { background: #e9e4dc; border-bottom-left-radius: 5px; }

.msg.media { justify-content: flex-end; }

.msg.media figure { margin: 4px 0; max-width: 62%; }

.msg.media img, .msg.media video { border-radius: 18px; border-bottom-right-radius: 5px; }

.stamp {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 2em 0 1em;
}

.back { font-size: 0.9rem; font-weight: 600; text-decoration: none; }
