/* Plantain Prompts: dark, minimal. */
:root {
  --bg: #0e0e0f;
  --panel: #18181a;
  --panel-2: #222225;
  --line: #2c2c30;
  --text: #f3f3f2;
  --soft: #c8c8cb;
  --muted: #8d8d93;
  --faint: #616168;
  --swap: #ead66b;
  --swap-ink: #191606;
  --radius: 14px;
  --side: 272px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--swap); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 30; height: 58px; display: flex; align-items: center; gap: 22px;
  padding: 0 16px; background: rgba(14, 14, 15, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -.2px; white-space: nowrap; }
.brand img { width: 30px; height: 30px; display: block; }
.toplinks { display: flex; gap: 20px; }
.toplinks a { font-size: 14px; color: var(--soft); }
.toplinks a:hover, .toplinks a.on { color: var(--text); }
.top-search {
  margin-left: auto; display: flex; align-items: center; gap: 8px; height: 36px; width: min(340px, 42vw);
  padding: 0 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
}
.top-search svg { flex: none; color: var(--muted); }
.top-search input { background: none; border: 0; outline: none; color: var(--text); font-size: 14px; width: 100%; }
.top-search input::placeholder { color: var(--faint); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); padding: 6px; margin-left: -6px; cursor: pointer; }

/* Layout: sidebar + main */
.layout { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: 12px; padding: 6px 16px 48px; }
.sidebar {
  position: sticky; top: 66px; align-self: start; max-height: calc(100vh - 78px); overflow-y: auto;
  background: var(--panel); border-radius: 18px; padding: 22px 20px 18px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
main { min-width: 0; padding: 4px 0 0 14px; }

/* Your product */
.product-box label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.product-field { position: relative; }
.product-field input {
  width: 100%; height: 40px; padding: 0 34px 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-size: 14px; outline: none;
}
.product-field input:focus { border-color: var(--swap); }
.product-field input::placeholder { color: var(--faint); }
.clear-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border: 0; border-radius: 6px;
  background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1;
}
.clear-btn:hover { color: var(--text); background: var(--panel-2); }
.product-box p { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.swap-mini { color: var(--swap); }

/* Navigation */
.nav-group { margin-top: 24px; }
.nav-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.nav-link { display: flex; align-items: baseline; gap: 6px; padding: 3px 0; font-size: 15px; font-weight: 500; letter-spacing: -.1px; color: var(--text); }
.nav-link .n { font-size: 10px; color: var(--faint); font-weight: 400; }
.nav-link:hover { color: #fff; }
.nav-link.on { color: var(--swap); }
.nav-group.top .nav-link { font-size: 16px; }
.nav-group details summary { list-style: none; cursor: pointer; font-size: 12px; color: var(--muted); padding: 3px 0; display: inline-flex; gap: 4px; align-items: center; }
.nav-group details summary::-webkit-details-marker { display: none; }
.nav-group details summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.3px 1.3px 0; transform: rotate(45deg) translate(-2px, -1px); }
.nav-group details[open] summary { display: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.side-foot { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.side-foot a:hover { color: var(--text); }

/* Page heading */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin: 18px 0 30px; }
.page-head h1 { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 500; letter-spacing: -.5px; }
.page-head h1 span { display: block; color: var(--muted); }
.page-head p { margin: 0; max-width: 430px; font-size: 13px; line-height: 1.55; color: var(--muted); text-align: right; }
.result-note { font-size: 13px; color: var(--muted); margin: -14px 0 16px; min-height: 1px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px 12px; }
.card { display: block; min-width: 0; }
.card .ph { border-radius: var(--radius); overflow: hidden; background: var(--panel); aspect-ratio: 1; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .ph img { transform: scale(1.035); }
.card .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 9px; font-size: 13px; }
.card .cap .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .cap .m { font-size: 11px; color: var(--faint); white-space: nowrap; }
.empty { color: var(--muted); font-size: 14px; padding: 40px 0; }

/* Prompt page */
.crumbs { font-size: 12px; color: var(--muted); margin: 14px 0 18px; }
.crumbs a:hover { color: var(--text); }
.prompt-page { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); gap: 32px; align-items: start; }
.hero { border-radius: 18px; overflow: hidden; background: var(--panel); }
.hero img { display: block; width: 100%; height: auto; }
.prompt-side { position: sticky; top: 74px; }
.prompt-side h1 { margin: 0 0 16px; font-size: 26px; line-height: 1.25; font-weight: 500; letter-spacing: -.5px; }
.prompt-box { background: var(--panel); border-radius: 16px; padding: 18px 18px 16px; }
.prompt-text { margin: 0; font-size: 15px; line-height: 1.7; color: var(--soft); }
.swap { background: var(--swap); color: var(--swap-ink); border-radius: 6px; padding: 1px 6px; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.prompt-tools { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.prompt-tools .product-field { flex: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.primary:hover { background: #fff; }
.how { margin: 14px 2px 0; padding: 0; list-style: none; counter-reset: s; font-size: 12px; line-height: 1.5; color: var(--muted); }
.how li { counter-increment: s; display: flex; gap: 8px; margin-top: 4px; }
.how li::before { content: counter(s); flex: none; width: 17px; height: 17px; border-radius: 50%; background: var(--panel-2); color: var(--soft); font-size: 10px; display: grid; place-items: center; transform: translateY(1px); }
.facts { margin-top: 22px; }
.facts h2 { font-size: 12px; font-weight: 400; color: var(--muted); margin: 16px 0 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 4px 11px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--soft); }
a.chip:hover { color: var(--text); border-color: var(--muted); }
.section-title { font-size: 18px; font-weight: 500; letter-spacing: -.3px; margin: 52px 0 16px; }
.about-scene { margin-top: 26px; font-size: 14px; line-height: 1.7; color: var(--soft); max-width: 760px; }
.about-scene h2 { font-size: 18px; font-weight: 500; letter-spacing: -.3px; color: var(--text); margin: 0 0 8px; }

/* Ads */
.ad { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px 12px; background: var(--panel); }
.ad-label { display: block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.ad.wide { grid-column: 1 / -1; }
.ad.placeholder .ad-box { height: 110px; border: 1px dashed var(--line); border-radius: 10px; display: grid; place-items: center; font-size: 12px; color: var(--faint); }
.prompt-side .ad { margin-top: 22px; }

/* Text pages */
.prose { max-width: 720px; font-size: 15px; line-height: 1.75; color: var(--soft); }
.prose h1 { font-size: 26px; font-weight: 500; letter-spacing: -.5px; color: var(--text); line-height: 1.25; margin: 18px 0 18px; }
.prose h2 { font-size: 18px; font-weight: 500; letter-spacing: -.3px; color: var(--text); margin: 34px 0 8px; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--text); }
.prose .swap { font-size: 14px; }

.foot { margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--faint); }
.foot a:hover { color: var(--text); }

/* Phones and small tablets: the sidebar becomes a menu */
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .toplinks { display: none; }
  .top-search { width: auto; flex: 1; margin-left: 4px; }
  .brand span { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr); padding: 6px 16px 40px; }
  main { padding: 0; }
  .sidebar {
    position: fixed; z-index: 25; top: 58px; left: 0; bottom: 0; width: min(320px, 86vw); max-height: none; border-radius: 0 18px 0 0;
    transform: translateX(-102%); transition: transform .25s ease; box-shadow: 20px 0 60px rgba(0, 0, 0, .5);
  }
  .nav-open .sidebar { transform: none; }
  .scrim { position: fixed; inset: 58px 0 0 0; z-index: 20; background: rgba(0, 0, 0, .5); }
  .page-head { flex-direction: column; gap: 10px; margin: 12px 0 22px; }
  .page-head p { text-align: left; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .prompt-page { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .prompt-side { position: static; }
  .prompt-tools { flex-wrap: wrap; }
  .prompt-tools .product-field { flex-basis: 100%; }
}

/* Wordmark, tagline and the highlighted stand-in in headings */
.wordmark b { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.22em; line-height: 1; letter-spacing: .01em; color: var(--swap); }
.brand-tag { font-size: 13px; color: var(--muted); white-space: nowrap; margin-left: -8px; padding-left: 14px; border-left: 1px solid var(--line); line-height: 18px; }
.hl { background: var(--swap); color: var(--swap-ink); border-radius: 7px; padding: 0 7px; font-weight: 500; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.page-head h1 .hl { display: inline; color: var(--swap-ink); }
@media (max-width: 1180px) { .brand-tag { display: none; } }
