:root{
  --bg:#FFEEB5;            /* flat beige-yellow */
  --surface:rgba(255,255,255,.86);
  --surfaceSolid:#ffffff;
  --ink:#0f1414;
  --muted:rgba(15,20,20,.62);
  --line:rgba(15,20,20,.18);
  --shadow:0 12px 34px rgba(15,20,20,.06);
  --radius:18px;
  --max:1120px;
  --mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  --sans:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
}

/* Base + footer placement */
*{box-sizing:border-box}
html,body{height:100%}
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--bg);
  display:flex;
  flex-direction:column;
  min-height:100vh;
}
main{flex:1}

a{color:inherit;text-decoration:none}
a:hover{opacity:.9}
small{color:var(--muted)}
img{max-width:100%;height:auto;display:block}

/* Containers */
.wrap{max-width:var(--max);margin:0 auto;padding:0 18px}
.container{max-width:var(--max);margin:0 auto;padding:26px 18px}

/* Header */
.header{
  position:sticky;top:0;z-index:30;
  backdrop-filter:blur(10px);
  background:rgba(246,241,230,.92);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:14px 0;
}
.brand{display:flex;align-items:baseline;gap:10px;min-width:220px}
.brand .mark{
  width:16px;height:16px;border-radius:999px;
  background:linear-gradient(135deg, rgba(15,20,20,.08), rgba(255,255,255,.9));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.brand .name{font-weight:720;letter-spacing:.08em;text-transform:uppercase;font-size:13px}
.menu{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.menu a{
  font-size:12px;letter-spacing:.06em;text-transform:uppercase;
  white-space:nowrap;
  padding:8px 10px;border-radius:999px;border:1px solid transparent;
}
.menu a.active{border-color:var(--line);background:rgba(255,255,255,.55)}

/* Typography + rhythm */
.kicker{
  font-family:var(--mono);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
  color:var(--muted);
  margin:0 0 8px;
}
h1{
  margin:6px 0 10px;
  font-size:clamp(34px, 5.2vw, 64px);
  line-height:1.02;
  letter-spacing:-.02em;
}
h2{margin:0 0 10px;font-size:22px;letter-spacing:-.01em}
h3{margin:0 0 8px;font-size:15px}
p{margin:0;color:var(--muted);line-height:1.65}
.stack-8>*+*{margin-top:8px}
.stack-10>*+*{margin-top:10px}
.stack-14>*+*{margin-top:14px}
.stack-18>*+*{margin-top:18px}

/* Sections */
.section{margin-top:28px}
.section.first{margin-top:0}

/* Cards / frames */
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.card.pad{padding:20px}

/* Hero (restore “first version” feel) */
.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:stretch;
}
.hero.single{grid-template-columns:1fr;}
@media (max-width: 920px){
  .hero{grid-template-columns:1fr}
}

/* Grid */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
  margin-top:14px;
}
.col-4{grid-column: span 4;}
.col-6{grid-column: span 6;}
.col-12{grid-column: span 12;}
@media (max-width: 920px){
  .col-4,.col-6{grid-column: span 12;}
}

/* Category tiles */
.tile{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:168px;
}
.tile .top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}
.tile .desc{
  line-height:.95; /* per your note: only category description blocks */
}
.tile .cta{
  margin-top:auto; /* align View selections across cards */
  padding-top:10px;
}
.icon{
  width:42px;height:42px;border-radius:14px;border:1px solid var(--line);
  background:rgba(255,255,255,.6);
  display:grid;place-items:center;
  flex:0 0 auto;
}
.icon svg{display:block}

/* Blog cards clickable */
.article{padding:16px;display:block}
.article p{font-size:13px}

/* Category tools */
.toolbar{
  display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between;
  margin-top:12px;
}
.search{
  flex:1 1 260px;
  display:flex;align-items:center;gap:10px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.82);
}
.search input{border:0;outline:0;width:100%;background:transparent;font-size:14px}
.select{
  padding:12px 46px 12px 14px;
  border-radius:999px;border:1px solid var(--line);
  background:rgba(255,255,255,.82);
  font-size:14px;
  appearance:none;
  -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23101515' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 18px center;
  background-size:14px 14px;
}

/* Product cards */
.products{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
  margin-top:14px;
}
.product{grid-column: span 4; overflow:hidden; display:flex; flex-direction:column}
@media (max-width: 920px){ .product{grid-column: span 12;} }
.product .img{
  height:170px;
  border-bottom:1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(15,20,20,.04), rgba(255,255,255,.0)),
    #f0ede5;
  position:relative;
}
.product .img .label{
  position:absolute;top:14px;left:14px;
  font-family:var(--mono);
  font-size:11px;letter-spacing:.08em;text-transform:uppercase;
  padding:6px 9px;border-radius:999px;
  background:rgba(255,255,255,.74);
  border:1px solid var(--line);
}
.product .body{padding:16px;display:flex;flex-direction:column;gap:10px;flex:1}
.bullets{margin:0;padding-left:18px;color:var(--muted);font-size:13px;line-height:1.55}
.actions{margin-top:auto;display:flex;gap:10px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  height:38px;
  padding:0 14px;border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.90);
  font-size:12px;letter-spacing:.06em;text-transform:uppercase;
  white-space:nowrap;
  line-height:1;
}
.btn.primary{
  background:rgba(255,255,255,.65);
}
.btn.ghost{background:transparent}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  background:rgba(246,241,230,.92);
}
.footer .row{
  max-width:var(--max);margin:0 auto;padding:18px;
  display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;align-items:flex-start;
}
.footer a{font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase}

/* Blog cards */
.blog-card{grid-column: span 4;}
@media (max-width: 920px){
  .blog-card{grid-column: span 12;}
}

/* Mobile header: keep navigation usable and not vertically "floating" */
@media (max-width: 560px){
  .brand{min-width:0}
  .menu{
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    gap:6px;
    justify-content:flex-end;
  }
  .menu a{padding:8px 9px}
}

/* Mobile header: keep nav in one line (no weird vertical stack) */
@media (max-width: 520px){
  .brand{min-width:unset}
  .menu{
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    justify-content:flex-end;
    gap:6px;
  }
  .menu a{padding:8px 10px}
}

