:root {
  color-scheme: dark;
  --paper: #f6f2eb;
  --ink: #0d0d0d;
  --muted: #a5a29d;
  --amber: #ffb340;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--ink);
  color: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { width: 100%; max-width: 440px; margin: auto; padding: 32px 24px; }
a { color: inherit; }
header { margin-bottom: 44px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: 23px; font-weight: 700; letter-spacing: -1px; }
.brand img { border-radius: 8px; outline: 1px solid #ffffff14; outline-offset: -1px; }
h1 { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.04em; margin: 0; overflow-wrap: anywhere; }
.description { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 14px 0 28px; text-wrap: pretty; }
.sender { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 4px 20px; overflow-wrap: anywhere; }
.paper { color: var(--ink); background: var(--paper); padding: 24px; border-radius: 28px; margin-bottom: 24px; }
.paper-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; color: #736e66; font-size: 12px; line-height: 1.5; margin-bottom: 10px; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.paper h1 { font-weight: 800; }
dl { margin: 24px 0 0; }
.ingredient { display: flex; align-items: baseline; gap: 10px; min-height: 34px; padding: 6px 0; font-size: 15px; line-height: 1.4; }
.ingredient::after { content: ''; border-bottom: 1px dotted #0d0d0d40; flex: 1; order: 1; }
dt { font-weight: 500; overflow-wrap: anywhere; }
dd { order: 2; margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
#neutral { font-size: 14px; line-height: 1.5; color: #736e66; margin: 20px 0 0; }
.actions { display: flex; flex-direction: column; gap: 8px; }
.button { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 14px 24px; border-radius: 28px; font-size: 16px; font-weight: 600; text-decoration: none; text-align: center; transition: transform 150ms cubic-bezier(.2,0,0,1), background-color 150ms; touch-action: manipulation; }
.primary { background: var(--paper); color: var(--ink); }
.secondary { background: #252423; color: var(--paper); }
.secondary-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 24px; }
.text-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 0; font: inherit; font-size: 13px; font-weight: 500; text-decoration: none; color: var(--muted); background: none; border: 0; cursor: pointer; transition: transform 150ms cubic-bezier(.2,0,0,1), color 150ms; touch-action: manipulation; }
.button:active, .text-action:active { transform: scale(.96); }
a:focus-visible, button:focus-visible, textarea:focus-visible { outline: 2px solid var(--amber); outline-offset: 5px; }
.note { color: var(--muted); text-align: center; font-size: 12px; line-height: 1.6; margin: 0; }
#open-help { padding: 4px 8px; }
.status { margin: 0; text-align: center; color: var(--amber); font-size: 12px; line-height: 1.5; }
.status:empty { display: none; }
#manual-copy label { font-size: 12px; color: var(--muted); }
textarea { display: block; width: 100%; resize: vertical; margin-top: 8px; background: #242321; border: 1px solid #555; border-radius: 12px; color: var(--paper); padding: 12px; font: 12px ui-monospace, monospace; word-break: break-all; }
footer { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin: 32px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; text-decoration: none; }
.home { display: flex; flex-direction: column; min-height: 100svh; }
.home-content { text-align: center; margin: auto; padding-block: 64px 40px; }
.app-icon { display: block; margin: 0 auto 28px; border-radius: 22px; outline: 1px solid #ffffff14; outline-offset: -1px; }
.home h1 { font-size: 52px; letter-spacing: -.055em; }
.home .description { margin: 18px 0 32px; font-size: 17px; line-height: 1.55; }
.home .button { max-width: 240px; margin: auto; }
.home .note { margin-top: 14px; }
.home footer { margin: 0; padding: 12px 20px max(20px, env(safe-area-inset-bottom)); }
.document main { max-width: 560px; }
.document .description { margin-bottom: 20px; }
.document .description a { text-underline-offset: 4px; }
[hidden] { display: none !important; }
@media (hover: hover) { .primary:hover { background: #fffaf2; } .text-action:hover, footer a:hover { color: var(--paper); } }
@media (min-width: 700px) { .recipe-page main, .document main { padding-top: 56px; } }
@media (max-width: 360px) { main { padding-inline: 20px; } .paper { padding: 22px; } .paper h1 { font-size: 30px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (forced-colors: active) { .button, .paper { border: 1px solid CanvasText; } }
