/* Utildesk — Global Styles (stable baseline)
   Goal: warm light minimal, readable, no JS, no frameworks.
*/

:root{
  --bg: #fbf7f2;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #6b7280;
  --border: rgba(31,35,40,.12);

  --brand: #b45309; /* warm amber */
  --brand-2: #ea580c;

  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);

  --container: 1040px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% 0%, rgba(234,88,12,.10), transparent 55%),
              radial-gradient(1000px 520px at 90% 10%, rgba(180,83,9,.10), transparent 60%),
              var(--bg);
  line-height: 1.6;
}

a{
  color: color-mix(in srgb, var(--brand) 80%, black 0%);
  text-decoration: none;
}
a:hover{ text-decoration: underline; }

main{
  max-width: var(--container);
  margin: 56px auto;
  padding: 0 18px;
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 22px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.8);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.h1{
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  margin: 10px 0 6px;
  letter-spacing: -0.02em;
}
.lead{
  color: var(--muted);
  max-width: 70ch;
  margin: 0;
}

.card{
  background: rgba(255,255,255,.86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.tools-list{
  margin-top: 18px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.tools-list > li{
  grid-column: span 12;
}
@media (min-width: 720px){
  .tools-list > li{ grid-column: span 6; }
}
@media (min-width: 1024px){
  .tools-list > li{ grid-column: span 4; }
}

.tool-item{
  display:flex;
  gap: 14px;
  padding: 14px;
  border-radius: calc(var(--radius) - 4px);
}
.tool-item:hover{
  background: rgba(251,247,242,.7);
}

.tool-thumb{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(180,83,9,.12), rgba(234,88,12,.08));
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex: 0 0 auto;
}
.tool-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-title{
  font-weight: 650;
  margin: 0 0 2px;
}
.tool-meta{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb{
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 10px;
}
.breadcrumb a{ color: inherit; }

.article{
  margin-top: 14px;
  padding: 18px;
}
.article :is(h2,h3){
  margin-top: 22px;
  letter-spacing: -0.01em;
}
.article p{ margin: 0 0 12px; }
.article ul{ margin: 0 0 12px 18px; }
.article code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .95em;
  background: rgba(31,35,40,.06);
  border: 1px solid rgba(31,35,40,.10);
  padding: 0.15em 0.35em;
  border-radius: 8px;
}
.article pre{
  padding: 14px;
  overflow:auto;
  background: rgba(31,35,40,.04);
  border: 1px solid rgba(31,35,40,.10);
  border-radius: 14px;
}

/* Pills (category, price_model, tags) */
.pills{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  color: var(--text);
  font-size: 13px;
  line-height: 1;
}

.pill--tag{
  background: rgba(251,247,242,.75);
}
