/* Southern Scoville Society. Glass render over studio light, Swiss grid discipline.
   Tokens first, then primitives, then components in page order. No build step. */
:root {
  --bg: #f3f5f8;
  --ink: #14181f;
  --ink-2: #353c47;
  --muted: #5b6472;
  --line: rgba(20, 24, 31, .09);
  --line-2: rgba(20, 24, 31, .16);
  --glass: rgba(255, 255, 255, .66);
  --glass-2: rgba(255, 255, 255, .84);
  --glass-edge: rgba(255, 255, 255, .78);
  --hot: #d7372b;
  --hot-2: #b9301f;
  --hot-soft: #fce9e6;
  --leaf: #1f7a4d;
  --leaf-2: #176b42;
  --leaf-soft: #e3f3ea;
  --amber: #8a5a00;
  --amber-soft: #fbf0d9;
  --accent: var(--leaf);
  --field: var(--leaf);
  --field-soft: var(--leaf-soft);
  --clay: var(--hot);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 14px 36px -18px rgba(16, 24, 40, .22);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 30px 60px -30px rgba(16, 24, 40, .35);
  --edge: 0 0 0 1px rgba(20, 24, 31, .05);
  --sheen: inset 0 1px 0 rgba(255, 255, 255, .9);
  --ring: 0 0 0 3px rgba(215, 55, 43, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ui: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--ui);
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --dock: 94px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font: 16px/1.55 var(--ui); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom));
  min-height: 100vh; position: relative;
}
/* studio light: soft colour pools behind every page, one static layer and one that slowly breathes */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before {
  background:
    radial-gradient(55% 45% at 88% -8%, rgba(215, 55, 43, .17), transparent 62%),
    radial-gradient(48% 42% at -8% 18%, rgba(31, 122, 77, .15), transparent 62%),
    radial-gradient(44% 40% at 62% 108%, rgba(236, 180, 68, .16), transparent 62%),
    linear-gradient(180deg, #f7f8fb 0%, #eff2f6 100%);
}
body::after {
  opacity: 0;
  background:
    radial-gradient(50% 42% at 70% 8%, rgba(215, 55, 43, .12), transparent 62%),
    radial-gradient(44% 40% at 10% 70%, rgba(31, 122, 77, .12), transparent 62%);
  animation: breathe 22s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(140, 193, 82, .55); } 70% { box-shadow: 0 0 0 6px rgba(140, 193, 82, 0); } }

a { color: inherit; text-underline-offset: .15em; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .45em; letter-spacing: -.025em; font-weight: 600; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 5.5vw, 2.9rem); letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); }
h3 { font-size: 1.05rem; letter-spacing: -.015em; }
p { margin: 0 0 .85em; }
ul { margin: 0 0 .85em; }
strong { font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font: 500 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 3px var(--hot-soft); }
.loading, .empty { padding: 3.5rem 1rem; text-align: center; color: var(--muted); }
.loading::before { content: ""; display: block; width: 22px; height: 22px; margin: 0 auto .8rem; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.empty h2 { margin-bottom: .3em; }
.empty a { color: var(--ink); font-weight: 500; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(215, 55, 43, .18); }

[hidden] { display: none !important; }
.preview-bar { background: var(--ink); color: #e8ebf0; font: 500 .74rem/1.3 var(--ui); letter-spacing: .01em; text-align: center; padding: .45rem 2.2rem .45rem .75rem; position: relative; }
.preview-bar::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #8cc152; margin-right: .55rem; vertical-align: 1px; animation: pulse 2.4s ease-out infinite; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .6rem; min-height: 60px;
  padding: .55rem max(1rem, env(safe-area-inset-right)) .55rem max(1rem, env(safe-area-inset-left));
  background: rgba(246, 247, 250, .72); -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7);
  border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset;
}
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 600; font-size: 1rem; letter-spacing: -.02em; min-width: 0; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: url(/favicon.svg) center/cover; flex: none; box-shadow: 0 1px 2px rgba(16, 24, 40, .2), var(--sheen); }
.top-search { flex: 1; max-width: 400px; display: none; position: relative; }
.top-search::before { content: ""; position: absolute; left: .85rem; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6472' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") center/contain no-repeat; pointer-events: none; }
.top-search input { width: 100%; padding: .6rem .9rem .6rem 2.4rem; border-radius: 999px; background: rgba(255, 255, 255, .7); min-height: 40px; }
.top-nav { display: none; gap: .25rem; margin-left: auto; font-weight: 500; font-size: .92rem; }
.top-nav a { text-decoration: none; padding: .45rem .8rem; border-radius: 999px; color: var(--ink-2); transition: background .18s, color .18s; }
.top-nav a:hover { background: rgba(20, 24, 31, .06); color: var(--ink); }
.icon-btn { position: relative; margin-left: auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink-2); flex: none; transition: background .18s; }
.icon-btn:hover { background: rgba(20, 24, 31, .06); }
.icon-btn[hidden] + .account { margin-left: auto; }
.account { font-weight: 600; font-size: .86rem; text-decoration: none; padding: .5rem .95rem; border-radius: 999px; background: var(--ink); color: #fff; white-space: nowrap; max-width: 8rem; overflow: hidden; text-overflow: ellipsis; flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(16, 24, 40, .25); transition: transform .18s var(--ease), background .18s; }
.account:hover { background: #222935; transform: translateY(-1px); }
.with-badge { position: relative; }
.badge { position: absolute; top: -4px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--hot); color: #fff; font: 700 11px/18px var(--ui); text-align: center; box-shadow: 0 0 0 2px rgba(246, 247, 250, .9); }
.icon-btn .badge { top: 3px; right: 1px; }
@media (min-width: 880px) {
  .top { gap: 1rem; padding-inline: 1.5rem; }
  .brand { font-size: 1.05rem; }
  .top-search { display: block; }
  .top-nav { display: flex; }
  .icon-btn { margin-left: 0; }
  .tabbar { display: none !important; }
  body { padding-bottom: 0; }
}

/* ---------- floating dock (mobile) ---------- */
.tabbar {
  position: fixed; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 22px;
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(20, 24, 31, .06), 0 18px 40px -14px rgba(16, 24, 40, .35), var(--sheen);
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: .45rem 0 .4rem; border-radius: 16px; font-size: .66rem; font-weight: 600; letter-spacing: .01em; color: var(--muted); text-decoration: none; transition: color .18s, background .18s; }
.tabbar a.on { color: var(--ink); background: rgba(20, 24, 31, .07); }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.tabbar .badge { top: 4px; right: calc(50% - 22px); }

main { max-width: 1200px; margin: 0 auto; padding: 1rem 1rem 2rem; min-height: 60vh; outline: none; }
main > * { animation: rise .45s var(--ease) both; }
@media (min-width: 760px) { main { padding: 1.5rem 1.5rem 3rem; } }
@media (min-width: 1100px) { main { padding: 2rem 2rem 4rem; } }

/* ---------- footer ---------- */
.foot { max-width: 1200px; margin: 1rem auto 0; padding: 2.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.foot-grid { display: grid; gap: 1.75rem 1rem; grid-template-columns: 1fr 1fr; }
.foot-grid > :first-child { grid-column: 1 / -1; }
.foot-brand { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: 1rem; color: var(--ink); letter-spacing: -.02em; margin-bottom: .6rem; }
.foot-brand .brand-mark { width: 26px; height: 26px; border-radius: 8px; }
.foot h4 { font: 500 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .78rem; }
@media (min-width: 760px) { .foot { padding-inline: 1.5rem; } .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; } .foot-grid > :first-child { grid-column: auto; } }
@media (min-width: 1100px) { .foot { padding-inline: 2rem; } }

/* ---------- forms + buttons ---------- */
input, textarea, select { font: inherit; color: inherit; width: 100%; padding: .7rem .9rem; min-height: 46px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .86); box-shadow: 0 1px 2px rgba(16, 24, 40, .03) inset; transition: border-color .18s, box-shadow .18s, background .18s; }
input::placeholder, textarea::placeholder { color: #8a93a1; }
input:hover, textarea:hover, select:hover { border-color: rgba(20, 24, 31, .26); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--hot); box-shadow: var(--ring); background: #fff; }
input[type=file] { padding: .5rem; background: transparent; border-style: dashed; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; accent-color: var(--ink); margin: 0; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314181f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 16px; }
textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
label { display: block; font-weight: 600; font-size: .84rem; color: var(--ink-2); margin: 1rem 0 .4rem; letter-spacing: .005em; }
label .muted { font-weight: 400; }
.check { display: flex; gap: .65rem; align-items: center; font-weight: 500; color: var(--ink); font-size: .95rem; }
.check input { width: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font: 600 .94rem/1 var(--ui); letter-spacing: -.005em; padding: .75rem 1.2rem; border-radius: 999px; border: 1px solid transparent; background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; min-height: 44px; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(16, 24, 40, .22); transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s; }
.btn:hover { background: #222935; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 18px -8px rgba(16, 24, 40, .45); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:focus-visible { outline: none; box-shadow: var(--ring), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.alt { background: var(--glass-2); color: var(--ink); border-color: var(--line-2); box-shadow: var(--sheen), 0 1px 2px rgba(16, 24, 40, .06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn.alt:hover { background: #fff; border-color: rgba(20, 24, 31, .28); }
.btn.clay { background: linear-gradient(180deg, #cf3526, #ad2b1a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(16, 24, 40, .22); }
.btn.clay:hover { background: linear-gradient(180deg, #c33224, #a02717); }
.btn.ghost { background: transparent; color: var(--ink-2); border-color: transparent; padding-inline: .7rem; box-shadow: none; }
.btn.ghost:hover { background: rgba(20, 24, 31, .06); color: var(--ink); transform: none; box-shadow: none; }
.btn.sm { min-height: 36px; padding: .4rem .9rem; font-size: .84rem; }
.btn.block { width: 100%; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; gap: .9rem; grid-template-columns: 1fr 1fr; }
.err { color: #a12d1a; font-weight: 600; font-size: .9rem; margin-top: .6rem; }
.err:empty { display: none; }
.back { display: inline-flex; align-items: center; gap: .3rem; font-size: .86rem; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: .35rem .7rem .35rem .5rem; margin: 0 0 .8rem -.5rem; border-radius: 999px; transition: background .18s; }
.back:hover { background: rgba(20, 24, 31, .06); color: var(--ink); }

/* ---------- glass surfaces ---------- */
.card { background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--radius); box-shadow: var(--edge), var(--shadow), var(--sheen); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
a.card { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
@media (hover: hover) {
  a.card:hover { transform: translateY(-2px); box-shadow: var(--edge), var(--shadow-lg), var(--sheen); }
}
.pad { padding: 1.1rem; }
@media (min-width: 760px) { .pad { padding: 1.35rem; } }
.section { margin: 2.25rem 0 1rem; }
@media (min-width: 900px) { .section { margin: 3.25rem 0 1rem; } }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 500; font-size: .875rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.section-head a::after { content: " \2192"; display: inline-block; transition: transform .18s var(--ease); }
.section-head a:hover { color: var(--ink); }
.section-head a:hover::after { transform: translateX(3px); }
.chips { display: flex; gap: .45rem; overflow-x: auto; padding: 2px 2px .4rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass-2); font: 600 .84rem/1 var(--ui); color: var(--ink-2); text-decoration: none; cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; gap: .35rem; transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease); }
.chip:hover { background: #fff; border-color: rgba(20, 24, 31, .3); color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.tag { display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: 999px; font: 700 .66rem/1.4 var(--ui); letter-spacing: .06em; text-transform: uppercase; background: var(--leaf-soft); color: var(--leaf-2); white-space: nowrap; }
.tag.sample { background: var(--amber-soft); color: var(--amber); }
.tag.clay { background: var(--hot-soft); color: var(--hot-2); }
.tag.dark { background: var(--ink); color: #fff; }

/* ---------- home hero ---------- */
.hero { display: grid; gap: 1.75rem; padding: 1.25rem 0 .5rem; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 7.2vw, 3.9rem); max-width: 13ch; margin-bottom: .5rem; }
.hero .lede { font-size: clamp(1.02rem, 2.3vw, 1.18rem); color: var(--ink-2); max-width: 36rem; line-height: 1.55; }
.hero .row { margin-top: 1.4rem; gap: .7rem; }
.hero .btn { min-height: 48px; padding-inline: 1.4rem; }
.mosaic { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; grid-auto-rows: 1fr; gap: 8px; padding: 8px; aspect-ratio: 4 / 3; border-radius: 26px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--edge), var(--shadow-lg), var(--sheen); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.mosaic a { position: relative; overflow: hidden; border-radius: 18px; min-height: 0; background: #e6e9ee; }
.mosaic a:first-child { grid-row: span 2; }
.mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) { .mosaic a:hover img { transform: scale(1.03); } }
.mosaic a.mosaic-cap { position: absolute; left: 18px; bottom: 18px; max-width: calc((100% - 24px) * 1.35 / 2.35 - 20px); display: grid; gap: .1rem; padding: .55rem .85rem; border-radius: 14px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 8px 24px -10px rgba(16, 24, 40, .35); font-size: .8rem; color: var(--muted); text-decoration: none; }
.mosaic-cap .nw { white-space: nowrap; }
.mosaic-cap strong { color: var(--ink); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; padding: 3rem 0 1.5rem; }
  .mosaic { aspect-ratio: 1 / 1; }
}
.market-card { --c: var(--leaf); position: relative; overflow: hidden; display: grid; gap: .3rem; padding: 1.35rem; border-radius: var(--radius); text-decoration: none; color: #fff; background: linear-gradient(140deg, color-mix(in srgb, var(--c) 88%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 68%, #000) 100%); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.market-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 15% 0%, rgba(255, 255, 255, .28), transparent 60%); pointer-events: none; }
@media (hover: hover) { a.market-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .35); } }
.market-card h1, .market-card h3 { color: #fff; margin: 0; }
.market-card h3 { font-size: 1.45rem; }
.market-card .meta { opacity: .92; font-size: .9rem; }
.market-card .meta strong { font-weight: 600; }
.market-card.soon { background: var(--glass); color: var(--ink); border: 1px dashed rgba(20, 24, 31, .25); box-shadow: none; }
.market-card.soon::after { display: none; }
.market-card.soon h3 { color: var(--ink); }
.market-card.soon .meta { color: var(--muted); }
.markets { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.value-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.value-grid .card { display: grid; gap: .55rem; align-content: start; }
.value-grid .card h3 { margin: .25rem 0 0; }
.value-grid .card p { margin: 0 0 .35rem; }
.value-grid .btn { justify-self: start; }
.ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: var(--edge), 0 6px 14px -8px rgba(16, 24, 40, .3), var(--sheen); }
.ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico.hot { color: var(--hot-2); }
.ico.leaf { color: var(--leaf-2); }

/* ---------- listing cards ---------- */
.listings { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .listings { gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .listings { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lcard { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; padding: 6px; }
.lcard .thumb { border-radius: 13px; }
.lcard .body { padding: .7rem .5rem .55rem; display: grid; gap: .2rem; }
.lcard .title { font-weight: 600; line-height: 1.25; font-size: .95rem; letter-spacing: -.01em; }
.lcard .farm { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard .price { font-weight: 600; margin-top: .25rem; font-size: .95rem; font-variant-numeric: tabular-nums; }
.lcard .price.ask { color: var(--leaf-2); font-size: .88rem; }
.thumb { aspect-ratio: 1 / 1; background: linear-gradient(135deg, var(--c, #2f5d3a), color-mix(in srgb, var(--c, #2f5d3a) 55%, #000)); display: grid; place-items: center; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(20, 24, 31, .06); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) { a.lcard:hover .thumb img { transform: scale(1.04); } }
.thumb .emoji { font-size: 2.6rem; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
.thumb .corner { position: absolute; left: .5rem; top: .5rem; display: flex; gap: .3rem; }
.thumb .soldout { position: absolute; inset: 0; background: rgba(20, 24, 31, .55); color: #fff; display: grid; place-items: center; font-weight: 700; letter-spacing: .12em; font-size: .8rem; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

/* ---------- farm cards ---------- */
.farms { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.fcard { display: flex; gap: .9rem; align-items: center; padding: .9rem 1rem; text-decoration: none; }
.fcard .name { font-weight: 600; letter-spacing: -.01em; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--c, var(--leaf)); color: #fff; display: grid; place-items: center; font: 600 1.25rem var(--display); letter-spacing: -.02em; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(16, 24, 40, .15); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 92px; height: 92px; border-radius: 26px; font-size: 2rem; border: 4px solid rgba(255, 255, 255, .95); box-shadow: var(--shadow); }

/* ---------- farm page ---------- */
.farm-cover { height: 180px; border-radius: 24px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 85%, #fff), var(--accent) 50%, color-mix(in srgb, var(--accent) 55%, #000)); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.farm-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 10% 0%, rgba(255, 255, 255, .28), transparent 60%); pointer-events: none; }
.farm-cover:has(img)::after { display: none; }
.farm-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .farm-cover { height: 280px; } }
.farm-head { margin: -46px 0 .6rem 1rem; position: relative; }
.farm-title { padding: 0 .25rem; }
.farm-title h1 { margin: 0 0 .15rem; }
.farm-actions { display: flex; gap: .55rem; flex-wrap: wrap; margin: .8rem 0 1.2rem; }
.farm-actions .btn.primary { background: color-mix(in srgb, var(--accent) 80%, #000); }
.farm-actions .btn.primary:hover { background: color-mix(in srgb, var(--accent) 70%, #000); }
.share-bar { display: flex; gap: .45rem; flex-wrap: wrap; }
.owner-strip { background: var(--ink); color: #fff; border-radius: var(--radius); padding: .85rem 1.1rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: 1rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), var(--shadow); }
.owner-strip .btn.alt { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); box-shadow: none; }
.owner-strip .btn.alt:hover { background: rgba(255, 255, 255, .18); }
.two-col { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; align-items: start; } }
.story { white-space: pre-line; }

/* ---------- listing detail ---------- */
.detail { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .detail { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; } }
.detail-media { padding: 8px; border-radius: 26px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--edge), var(--shadow-lg), var(--sheen); }
.detail-media .thumb { border-radius: 18px; aspect-ratio: 4 / 3; }
@media (min-width: 860px) { .detail-media { position: sticky; top: 76px; } .detail-media .thumb { aspect-ratio: 1 / 1; } }
.detail .thumb .emoji { font-size: 5rem; }
.detail-info h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.price-lg { font-size: 1.6rem; font-weight: 600; letter-spacing: -.03em; margin: .3rem 0 .2rem; font-variant-numeric: tabular-nums; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: rgba(20, 24, 31, .06); }
.qty input { width: 56px; min-height: 0; border: 0; text-align: center; padding: 0; box-shadow: none; background: transparent; font-weight: 600; }
.qty input:focus { outline: none; box-shadow: none; }
.farm-line { display: flex; gap: .8rem; align-items: center; text-decoration: none; }

/* ---------- community ---------- */
.composer textarea { min-height: 76px; }
.post { padding: 1.1rem; display: grid; gap: .6rem; }
.post-head { display: flex; gap: .7rem; align-items: center; }
.post-head .avatar { width: 40px; height: 40px; border-radius: 12px; font-size: .95rem; }
.post .who { font-weight: 600; font-size: .92rem; line-height: 1.2; }
.post .who a { text-decoration: none; }
.post .who a:hover { text-decoration: underline; }
.post .text { white-space: pre-line; }
.replies { border-left: 2px solid var(--line-2); padding-left: .9rem; display: grid; gap: .55rem; font-size: .92rem; }
.reply-form { display: flex; gap: .4rem; }
.reply-form input { padding: .5rem .8rem; min-height: 38px; border-radius: 999px; }
.stack { display: grid; gap: .85rem; }

/* ---------- messages ---------- */
.thread-list a { display: flex; gap: .8rem; padding: .9rem 1.1rem; text-decoration: none; border-bottom: 1px solid var(--line); align-items: center; transition: background .18s; }
.thread-list a:hover { background: rgba(255, 255, 255, .55); }
.thread-list a:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.thread-list a:last-child { border-bottom: 0; border-radius: 0 0 var(--radius) var(--radius); }
.thread-list .unread .t-who { font-weight: 700; }
.thread-list .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hot); flex: none; }
.t-main { min-width: 0; flex: 1; }
.t-who { font-weight: 600; }
.t-last { color: var(--muted); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-head { border-bottom: 1px solid var(--line); }
.bubbles { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; min-height: 40vh; max-height: 62vh; overflow-y: auto; }
.bubble { max-width: 80%; padding: .6rem .9rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); white-space: pre-line; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); line-height: 1.45; }
.bubble.mine { align-self: flex-end; background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.bubble.system { align-self: center; background: var(--amber-soft); border-color: #f1dfb5; font-size: .85rem; max-width: 95%; }
.bubble .at { display: block; font-size: .7rem; opacity: .65; margin-top: .2rem; }
.send-row { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--line); }
.send-row input { border-radius: 999px; }

/* ---------- direct pay: order request, pay panels, payment-method editor ---------- */
.pay-list { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .45rem; }
.pay-list li { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; min-width: 0; }
.pay-k { display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: 999px; font: 700 .66rem/1.4 var(--ui); letter-spacing: .06em; text-transform: uppercase; background: var(--leaf-soft); color: var(--leaf-2); white-space: nowrap; }
.pay-list a, .pay-list li > span:not(.pay-k) { font: 500 .84rem/1.4 var(--mono); color: var(--ink); word-break: break-all; min-width: 0; }
.pay-list a { text-decoration-color: rgba(20, 24, 31, .35); }
.pay-list a:hover { text-decoration-color: var(--ink); }
.pay-panel h3 { margin-bottom: .6rem; }
.pay-strip { padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .42); }
.pay-strip > strong { display: block; font-size: .9rem; margin-bottom: .5rem; }
.pay-strip .pay-list { margin-bottom: .45rem; }
.order-form .qty { width: max-content; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line-2); font-size: .92rem; color: var(--ink-2); }
.order-total strong { font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pay-rows { display: grid; gap: .55rem; }
.pay-rows:empty { display: none; }
.pay-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: .45rem; align-items: center; }
.pay-row select { grid-column: 1 / -1; }
.pay-row .btn.ghost { width: 44px; height: 44px; min-height: 0; padding: 0; font-size: .95rem; }
@media (min-width: 560px) { .pay-row { grid-template-columns: 10rem minmax(0, 1fr) 44px; } .pay-row select { grid-column: auto; } }

/* ---------- cart + checkout ---------- */
.support-chips { display: flex; gap: .45rem; flex-wrap: wrap; }
.support-chips .chip { min-width: 64px; justify-content: center; }
.sum { display: grid; gap: .4rem; font-variant-numeric: tabular-nums; }
.sum div { display: flex; justify-content: space-between; gap: 1rem; }
.sum .total { font-weight: 600; font-size: 1.15rem; border-top: 1px solid var(--line-2); padding-top: .6rem; margin-top: .25rem; }
.note-box { background: var(--leaf-soft); color: var(--leaf-2); border-radius: var(--radius-sm); padding: .85rem 1rem; font-size: .9rem; }
.note-box p { margin-bottom: .5em; }
.note-box.small { color: var(--ink-2); background: rgba(20, 24, 31, .05); }
.note-box.err { background: var(--hot-soft); color: #8a2a17; font-weight: 600; }
.note-box a { color: inherit; }

/* ---------- dashboard ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; overflow-x: auto; margin-bottom: 1.25rem; scrollbar-width: none; background: rgba(20, 24, 31, .06); border-radius: 14px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: .5rem .9rem; text-decoration: none; font-weight: 600; font-size: .88rem; color: var(--muted); border-radius: 10px; transition: background .18s, color .18s; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .12), var(--sheen); }
.stats { display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; } }
.stat { padding: .9rem 1rem; }
.stat .n { font: 600 1.55rem/1.1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .l { font-size: .76rem; color: var(--muted); font-weight: 500; margin-top: .25rem; letter-spacing: .01em; }
.mrow { display: flex; gap: .85rem; align-items: center; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.mrow .thumb { width: 56px; height: 56px; aspect-ratio: auto; border-radius: 12px; flex: none; }
.mrow .thumb .emoji { font-size: 1.4rem; }
.swatches { display: flex; gap: .45rem; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; transition: transform .18s var(--ease); }
.swatch:hover { transform: scale(1.08); }
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }
.qr-box { background: #fff; padding: .8rem; border-radius: var(--radius-sm); border: 1px solid var(--line); width: 180px; box-shadow: var(--shadow); }
code.snip { display: block; background: rgba(20, 24, 31, .05); border: 1px solid var(--line); padding: .75rem .9rem; border-radius: var(--radius-sm); font: .76rem/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; color: var(--ink-2); }
.choice { display: grid; gap: .7rem; grid-template-columns: 1fr 1fr; margin: 1rem 0 .25rem; }
.choice button { position: relative; text-align: left; padding: 1rem 1rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .7); cursor: pointer; font: inherit; color: var(--ink); transition: border-color .18s, box-shadow .18s, background .18s; }
.choice button:hover { border-color: rgba(20, 24, 31, .3); background: #fff; }
.choice button.on { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink), var(--shadow); }
.choice button.on::after { content: ""; position: absolute; top: .8rem; right: .8rem; width: 18px; height: 18px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
.choice strong { display: block; font-size: .98rem; margin-bottom: .2rem; padding-right: 1.4rem; }
.auth { max-width: 460px; margin: 1rem auto; }
.auth h1 { font-size: 1.75rem; }
.auth .card { padding: 1.5rem; }
@media (min-width: 760px) { .auth { margin: 2.5rem auto; } .auth .card { padding: 2rem; } }
.auth-mark { width: 44px; height: 44px; border-radius: 13px; background: url(/favicon.svg) center/cover; margin-bottom: 1.1rem; box-shadow: 0 2px 6px rgba(16, 24, 40, .25), var(--sheen); }
.demo-box { background: var(--amber-soft); border: 1px solid #f1dfb5; border-radius: var(--radius); padding: 1rem 1.1rem; margin-top: 1.2rem; }
.demo-box .btn { margin: .3rem .3rem 0 0; }
.prose { max-width: 760px; }
.prose .card ul { padding-left: 1.1rem; display: grid; gap: .45rem; }
.prose .card li::marker { color: var(--hot); }
.prose .card h3 { margin-bottom: .6rem; }

.toast { position: fixed; left: 50%; bottom: calc(var(--dock) + 14px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: .75rem 1.15rem; border-radius: 999px; font-weight: 600; font-size: .9rem; z-index: 50; box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .12); max-width: 90vw; animation: rise .3s var(--ease) both; }
@media (min-width: 880px) { .toast { bottom: 28px; } }

/* ---------- printable market sign ---------- */
.sign { max-width: 640px; margin: 0 auto; text-align: center; background: #fff; border: 3px solid var(--accent); border-radius: 26px; padding: 2rem 1.5rem; box-shadow: var(--shadow-lg); }
.sign h1 { font-size: 2.6rem; }
.sign .qr { width: 300px; max-width: 100%; margin: 1rem auto; }
.sign .url { font-weight: 600; font-size: 1.1rem; word-break: break-all; }
@media print {
  .preview-bar, .top, .tabbar, .foot, .no-print { display: none !important; }
  body { background: #fff; padding: 0; }
  body::before, body::after { display: none; }
  main { padding: 0; }
  .sign { border-width: 4px; box-shadow: none; }
}

/* ---------- preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .loading::before { border-top-color: var(--line-2); }
}
@media (prefers-reduced-transparency: reduce) {
  .card, .top, .tabbar, .mosaic, .detail-media, .mosaic a.mosaic-cap, .btn.alt { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
}
