/* FridgeChef: base layout. Generated file. */

:root {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f4f5f6; --soft: #eef2ff; --soft-hover: #dfe6ff;
  --ink: #0a0b0d; --ink-hover: #2a2b2f; --ink-2: #5b616e; --ink-3: #7c828e;
  --line: #e3e5e8; --line-strong: #cfd3d8;
  --accent: #1f4dff; --accent-hover: #1a3fd6; --accent-shade: #1333a8; --accent-ink: #ffffff; --accent-text: #1f4dff;
  --pop: #fff1b8; --pop-soft: #fff8dc; --pop-line: #f0d56b;
  --ok: #098551; --bad: #cf202f; --focus: rgba(31, 77, 255, 0.16); --shadow: rgba(0, 0, 0, 0.1);
  --font-display: "Instrument Sans", system-ui, sans-serif; --font-body: "Instrument Sans", system-ui, sans-serif; --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --display-weight: 500; --display-tracking: -0.045em; --display-stretch: 100%;
  --dot: #d9dde3;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code { font-family: var(--font-mono); font-size: 0.86em; background: var(--soft); padding: 0.12em 0.4em; border-radius: 6px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--pop); color: var(--ink); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.hand { font-family: "Caveat", cursive; font-weight: 600; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; z-index: 200; }
.skip:focus { left: 12px; }

h1, h2 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-stretch: var(--display-stretch, 100%); line-height: 1.05; }
h3 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--ink-hover); }
.btn-ink.connected { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); font-family: var(--font-mono); font-size: 0.85rem; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 0 var(--accent-shade); }
.btn-accent:hover:not(:disabled) { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { background: var(--soft); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1rem; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--line-strong); padding-bottom: 2px; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { border-color: var(--ink); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch, 100%); letter-spacing: var(--display-tracking); font-size: 1.2rem; text-decoration: none; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.net { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--ink-2); }
.net i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.menu-btn span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-links:empty ~ .nav-actions .menu-btn { display: none !important; }

/* ---------- utilities ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo svg { width: 26px; height: 26px; flex-shrink: 0; }
.logo span { white-space: nowrap; }
.footer-links { flex-wrap: wrap; }
.foot-mono { font-family: var(--font-mono); }

/* ---------- tool core ---------- */
.setup-banner { margin-bottom: 20px; padding: 14px 18px; border-radius: 16px; background: var(--pop-soft); color: var(--ink); font-size: 0.95rem; border: 1.5px dashed var(--pop-line); }
.setup-banner code { background: rgba(0, 0, 0, 0.06); }
.field-label { display: block; font-weight: 700; margin-bottom: 10px; }
.field {
  width: 100%; font: inherit; font-size: 1.02rem; color: var(--ink); background: var(--field-bg, var(--bg));
  border: 1.5px solid var(--line-strong); border-radius: 16px; padding: 15px 16px; resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.field { min-height: 128px; }
.field::placeholder { color: var(--ink-3); }
.field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--focus); }
.field-foot { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin: 12px 0 20px; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.examples-label { font-size: 0.85rem; color: var(--ink-3); margin-right: 2px; }
.example-chip { font-size: 0.85rem; padding: 5px 12px; border-radius: 999px; background: var(--soft); color: var(--ink); transition: background-color 0.15s; }
.example-chip:hover { background: var(--soft-hover); }
.char-count { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-3); padding-top: 6px; flex-shrink: 0; }
.fine { margin-top: 12px; font-size: 0.86rem; color: var(--ink-2); text-align: center; }
.fine a { font-weight: 600; margin-left: 4px; }
.live-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 20px; padding-top: 16px; border-top: 1.5px dashed var(--line); font-size: 0.86rem; color: var(--ink-2); }
.live-stats b { color: var(--ink); font-family: var(--font-mono); font-weight: 600; }
.pending { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--pop-soft); color: var(--ink); font-size: 0.9rem; }

.progress { list-style: none; margin-top: 22px; padding-top: 18px; border-top: 1.5px solid var(--line); display: grid; gap: 14px; text-align: left; }
.pstep { display: flex; gap: 14px; opacity: 0.4; transition: opacity 0.2s; }
.pstep strong { display: block; font-size: 0.95rem; }
.pdetail { font-size: 0.86rem; color: var(--ink-2); word-break: break-word; }
.pdetail a { font-weight: 600; }
.pdot { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line-strong); position: relative; }
.pstep.active, .pstep.done, .pstep.error { opacity: 1; }
.pstep.active .pdot { border-color: var(--ink); border-right-color: transparent; animation: spin 0.8s linear infinite; }
.pstep.done .pdot { border-color: var(--ok); background: var(--ok); }
.pstep.done .pdot::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pstep.error .pdot { border-color: var(--bad); background: var(--bad); }
.pstep.error .pdetail { color: var(--bad); }
@keyframes spin { to { transform: rotate(360deg); } }

.me { display: grid; gap: 9px; font-size: 0.92rem; }
.me div { display: flex; justify-content: space-between; gap: 12px; }
.me dt { color: var(--ink-2); }
.me dd { font-weight: 600; font-family: var(--font-mono); font-size: 0.86rem; text-align: right; }
.history { display: grid; gap: 8px; }
.history-item { text-align: left; display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 0.88rem; transition: background-color 0.15s; }
.history-item:hover { background: var(--soft); }
.history-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item small { color: var(--ink-3); font-size: 0.76rem; }

.result { animation: rise 0.3s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.result-head h3 { margin: 0; }
.result-body { font-size: 1.02rem; }
.result-body h3, .result-body h4, .result-body h5, .result-body h6 { font-weight: 700; font-size: 1.05rem; margin: 18px 0 6px; }
.result-body p { margin: 8px 0; }
.result-body ul, .result-body ol { margin: 8px 0 8px 1.3em; }
.result-body li { margin: 4px 0; }
.result-body hr { border: 0; border-top: 1.5px solid var(--line); margin: 16px 0; }
.result-meta { margin-top: 18px; padding-top: 14px; border-top: 1.5px dashed var(--line); font-size: 0.86rem; color: var(--ink-2); }
.result-meta a { font-weight: 600; }
.disclaimer { margin-top: 6px; font-size: 0.8rem; color: var(--ink-3); }

/* ---------- modal & toast ---------- */
.modal { margin: auto; width: min(420px, calc(100% - 32px)); border: 0; border-radius: 28px; padding: 26px; background: var(--modal-bg, #fff); color: var(--modal-ink, #1a1a1a); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.35); font-family: var(--font-body); }
.modal::backdrop { background: rgba(10, 10, 20, 0.5); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-head h3 { font-size: 1.15rem; }
.dialog-close { width: 36px; height: 36px; border-radius: 50%; opacity: 0.6; }
.dialog-close:hover { opacity: 1; background: rgba(0, 0, 0, 0.06); }
.wallet-list { display: grid; gap: 8px; margin-bottom: 14px; }
.wallet-option { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, 0.04); text-align: left; transition: background-color 0.15s; }
.wallet-option:hover { background: rgba(0, 0, 0, 0.08); }
.wallet-option img { border-radius: 8px; }
.wallet-option small { display: block; opacity: 0.7; font-size: 0.8rem; }
.wallet-option.danger strong { color: #c62828; }
.wallet-icon-fallback { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; background: #1a1a1a; color: #fff; }
.wallet-empty { display: grid; gap: 10px; text-align: center; }
.wallet-empty .btn-ink { background: #1a1a1a; color: #fff; }
.wallet-empty .btn-ghost { background: #fff; color: #1a1a1a; box-shadow: inset 0 0 0 1.5px #d4d4d8; }
.wallet-empty a:not(.btn) { font-weight: 600; }
.modal-foot { font-size: 0.84rem; opacity: 0.7; }
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { padding: 13px 18px; border-radius: 16px; background: #1a1a1a; color: #fff; font-size: 0.92rem; box-shadow: 0 16px 40px -16px rgba(0,0,0,0.5); opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s; }
.toast.show { opacity: 1; transform: none; }
.toast-error { background: #c62828; }

/* ---------- shared responsive ---------- */
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); padding: 6px 20px 14px; box-shadow: 0 12px 24px -16px rgba(0,0,0,0.3); }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1.5px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .menu-btn { display: flex; }
  .net { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand > span:last-child { display: none; }
  .nav-actions .js-connect { padding: 8px 16px; min-height: 40px; }
  .field-foot { flex-direction: column; }
  .pending { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}


/* ===== FridgeChef: blue square, pixel art, dot grid (after base.org) ===== */
.b-strip { text-align: center; padding: 9px 16px; font-size: 0.85rem; color: var(--ink-2); background: var(--surface-2); }
.b-strip a { color: var(--accent); font-weight: 600; text-decoration: none; margin-left: 10px; }
.b-strip a::after { content: " \203A"; }

.b-nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px 28px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.b-nav .logo { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.03em; margin-right: auto; }
.b-links { gap: 28px; }
.b-links a { color: var(--ink); font-weight: 500; }
.b-actions { display: flex; align-items: center; gap: 12px; }
.b-nav .btn-ink { background: var(--accent); color: #fff; min-height: 40px; padding: 8px 16px 8px 18px; }
.b-nav .btn-ink::after { content: "\203A"; font-size: 1.2rem; line-height: 1; }
.b-nav .btn-ink.connected::after { content: ""; }

.b-hero { text-align: center; padding: 90px 20px 50px; }
.b-hero h1 { font-weight: 500; font-size: clamp(2.8rem, 7vw, 5.2rem); letter-spacing: -0.045em; line-height: 1; max-width: 12em; margin: 0 auto; }
.b-sub { color: var(--ink-3); font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 500; margin: 22px auto 30px; max-width: 30em; }
.b-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.b-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); background: #fff; transition: background-color 0.15s; }
.b-btn:hover { background: var(--surface-2); }
.b-btn-blue { background: var(--accent); color: #fff; box-shadow: none; }
.b-btn-blue:hover { background: var(--accent-hover); }
.b-btn-blue i { width: 16px; height: 16px; background: #fff; border-radius: 2px; }

.b-pixels { padding: 30px 20px 70px; background-image: radial-gradient(var(--dot) 1.2px, transparent 1.4px); background-size: 18px 18px; }
.b-pixel-row { display: flex; justify-content: center; align-items: end; gap: clamp(18px, 5vw, 56px); flex-wrap: wrap; }
.b-pixel { display: grid; justify-items: center; gap: 10px; }
.b-pixel svg { width: clamp(60px, 9vw, 104px); height: auto; image-rendering: pixelated; }
.b-pixel span { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); background: #fff; padding: 2px 6px; }

.b-tool { max-width: 1080px; margin: 0 auto; padding: 60px 24px 30px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.b-tool-card { background: #fff; border-radius: 20px; padding: 30px; box-shadow: 0 0 0 1px var(--line); }
.b-tool-head h2 { font-weight: 500; font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -0.04em; }
.b-tool-head p { color: var(--ink-3); margin: 6px 0 22px; }
.b-tool-card .field-label { font-weight: 600; font-size: 0.9rem; }
.b-tool-card .field { border-radius: 12px; border-color: var(--line); background: var(--surface-2); }
.b-tool-card .field:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus); background: #fff; }
.b-tool-row { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0 18px; align-items: center; }
.b-tool-card .example-chip { background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.b-tool-card .example-chip:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.b-tool-card #run-btn { box-shadow: none; }
.b-tool-card .live-stats { border-top: 1px solid var(--line); }
.b-side { display: grid; gap: 16px; }
.b-box:has(> [hidden]:only-child) { display: none; }
.b-box { background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 0 0 1px var(--line); }
.b-box h3 { font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }
.b-box .history-item { background: var(--surface-2); }

.b-result { max-width: 1080px; margin: 0 auto; padding: 0 24px 30px; }
.b-result:has(> .result[hidden]) { display: none; }
.b-result .result { background: #fff; border-radius: 20px; padding: 32px; box-shadow: 0 0 0 2px var(--accent); }
.b-result .result-head h3 { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.b-result .result-body h4 { font-weight: 500; font-size: clamp(1.8rem, 3.6vw, 2.4rem); letter-spacing: -0.04em; line-height: 1.05; margin: 2px 0 10px; }
.b-result .result-body h5 { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-top: 22px; }
.b-result .result-body ul { list-style: none; margin-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.b-result .result-body ul li { padding: 10px 12px; background: var(--surface-2); border-radius: 10px; }
.b-result .result-body ol li::marker { color: var(--accent); font-weight: 700; }

.b-how { max-width: 1080px; margin: 0 auto; padding: 90px 24px 30px; }
.b-how h2, .b-faq h2 { font-weight: 500; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.045em; margin-bottom: 30px; }
.b-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.b-card { border-radius: 16px; padding: 24px; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.b-card svg { width: 36px; height: 36px; margin-bottom: 26px; image-rendering: pixelated; }
.b-card h3 { font-weight: 600; font-size: 1.15rem; margin-bottom: 6px; }
.b-card p { color: var(--ink-3); }

.b-faq { max-width: 860px; margin: 0 auto; padding: 80px 24px 100px; }
.b-faq-list details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.b-faq-list summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; }
.b-faq-list summary::-webkit-details-marker { display: none; }
.b-faq-list summary::after { content: "\2304"; color: var(--accent); }
.b-faq-list details[open] summary::after { content: "\2303"; }
.b-faq-list details p { margin-top: 10px; color: var(--ink-3); }

.b-foot { background: var(--surface-2); padding: 44px 28px 56px; font-size: 0.9rem; color: var(--ink-3); }
.b-foot-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.b-foot-inner > div:first-child { max-width: 420px; }
.b-foot .logo { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.b-foot .footer-links { display: flex; gap: 22px; }
.b-foot a { text-decoration: none; color: var(--ink); font-weight: 500; }

@media (max-width: 900px) {
  .b-tool, .b-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .b-nav { padding: 12px 16px; }
  .b-hero { padding-top: 56px; }
  .b-tool-card, .b-result .result { padding: 22px 18px; }
  .b-tool-row { flex-direction: column; align-items: flex-start; }
  .b-result .result-body ul { grid-template-columns: 1fr; }
}


