/* Featbay — Apple-soft niche board. Local faces + system SF feel. */
@font-face{font-family:"Feat Gothic";src:url("fonts/URWGothic-Book.otf") format("opentype");font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:"Feat Gothic";src:url("fonts/URWGothic-Demi.otf") format("opentype");font-weight:600;font-style:normal;font-display:swap;}
@font-face{font-family:"Feat Condensed";src:url("fonts/NimbusSansNarrow-Regular.otf") format("opentype");font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:"Feat Condensed";src:url("fonts/NimbusSansNarrow-Bold.otf") format("opentype");font-weight:700;font-style:normal;font-display:swap;}
@font-face{font-family:"Feat Serif";src:url("fonts/P052-Roman.otf") format("opentype");font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:"Feat Serif";src:url("fonts/P052-Italic.otf") format("opentype");font-weight:400;font-style:italic;font-display:swap;}

:root{
  --ink:#1d1d1f;
  --ink-soft:#424245;
  --mist:#86868b;
  --hair:rgba(0,0,0,.06);
  --hair-strong:rgba(0,0,0,.1);
  --canvas:#f5f5f7;
  --surface:#ffffff;
  --surface-2:#fbfbfd;
  --blue:#0071e3;
  --blue-press:#0077ed;
  --gold:#8a7350;
  --gold-soft:#c4a574;
  --graphite:#5c5c60;
  --danger:#d70015;
  --sf:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Segoe UI",system-ui,"Feat Gothic",sans-serif;
  --sf-display:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",system-ui,"Feat Gothic",sans-serif;
  --cond:"Feat Condensed","Nimbus Sans Narrow",var(--sf);
  --serif:"Feat Serif","Palatino Linotype",Georgia,serif;
  --ease:cubic-bezier(.25,.1,.25,1);
  --radius:18px;
  --radius-sm:12px;
  --shadow-soft:0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-featured:0 2px 4px rgba(0,0,0,.04), 0 18px 48px rgba(0,0,0,.1), 0 0 0 1px rgba(0,0,0,.04);
  --max:980px;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{font-size:16px;}
html,body{min-height:100%;}
body{
  font-family:var(--sf);
  font-weight:400;
  line-height:1.47;
  letter-spacing:-.01em;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  background:var(--canvas);
  color:var(--ink);
}
button,input,textarea,select{font:inherit;color:inherit;background:none;border:0;border-radius:0;-webkit-appearance:none;appearance:none;}
button{cursor:pointer;}
textarea{resize:vertical;}
a{color:var(--blue);text-decoration:none;}
a:hover{text-decoration:underline;}
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.86em;color:var(--graphite);}
.is-hidden,[hidden]{display:none !important;}
em{font-family:var(--serif);font-style:italic;letter-spacing:0;}
.opt{opacity:.55;font-weight:400;text-transform:none;letter-spacing:0;}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;}

/* Public share — desk chrome off */
html.boot-public .chrome,
body.mode-public .chrome{display:none !important;}
html.boot-public .mast,
body.mode-public .mast{
  padding-top:48px;
  padding-bottom:8px;
  max-width:var(--max);
  margin:0 auto;
}
html.boot-public .mast-side,
body.mode-public .mast-side{display:none !important;}
body.mode-public .foot-public{display:block;}
.foot-public{display:none;}
body.mode-public .foot-chrome{display:none;}

/* Desk bar */
.desk-bar{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding:10px 28px;
  background:rgba(255,255,255,.72);
  backdrop-filter:saturate(180%) blur(16px);
  -webkit-backdrop-filter:saturate(180%) blur(16px);
  border-bottom:1px solid var(--hair);
  position:sticky;top:0;z-index:40;
}
.desk-mark{
  font-family:var(--cond);font-weight:700;font-size:11px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--ink-soft);
}
.desk-sep{color:var(--mist);}
.desk-studio{font-family:var(--serif);font-style:italic;font-size:13px;color:var(--mist);}
.desk-grow{flex:1;}
.desk-product{
  font-size:12px;font-weight:600;letter-spacing:-.01em;
  color:var(--ink);margin-right:10px;
}
.desk-quiet{font-size:12px;color:var(--mist);}

/* Mast */
.mast{
  display:grid;grid-template-columns:minmax(220px,1.05fr) minmax(260px,1fr);
  gap:28px 56px;align-items:end;
  padding:36px 28px 28px;
  max-width:calc(var(--max) + 56px);
  margin:0 auto;
}
.mast-kicker{
  font-size:12px;font-weight:600;letter-spacing:.06em;
  text-transform:uppercase;color:var(--mist);
}
.mast-word{
  font-family:var(--sf-display);
  font-weight:700;font-size:clamp(32px,5vw,48px);
  letter-spacing:-.035em;line-height:1.05;
  margin-top:10px;color:var(--ink);
}
.mast-lede{
  font-size:17px;line-height:1.5;color:var(--ink-soft);max-width:34em;
}
.mast-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px;}

/* Privacy */
.privacy{
  display:flex;align-items:center;gap:12px;
  max-width:calc(var(--max) + 56px);margin:0 auto;
  padding:12px 28px 4px;
}
.privacy-dot{
  width:7px;height:7px;border-radius:50%;flex-shrink:0;
  background:#34c759;box-shadow:0 0 0 3px rgba(52,199,89,.18);
}
.privacy p{font-size:13px;color:var(--mist);}

/* Sponsor + share strips */
.sponsor-strip,.share-strip{
  max-width:calc(var(--max) + 56px);margin:0 auto;
  padding:18px 28px;
}
.sponsor-strip{
  display:grid;grid-template-columns:minmax(200px,.9fr) minmax(240px,1.1fr);
  gap:16px 32px;align-items:end;
  margin-top:8px;
}
.sponsor-title{
  font-size:15px;font-weight:600;letter-spacing:-.01em;color:var(--ink);
}
.sponsor-lede{margin-top:4px;font-size:13px;color:var(--mist);line-height:1.45;max-width:36em;}
.field-label,.share-label{
  display:block;font-size:12px;font-weight:600;color:var(--mist);
  margin-bottom:8px;letter-spacing:.01em;
}
.sponsor-row,.share-row{display:flex;gap:10px;align-items:stretch;}
.field-input,.share-url{
  flex:1;min-width:0;
  padding:12px 14px;border-radius:12px;
  border:1px solid var(--hair-strong);
  background:var(--surface);color:var(--ink);
  box-shadow:0 1px 0 rgba(255,255,255,.8) inset;
  transition:border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.share-url{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:var(--graphite);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.field-input:focus,.share-url:focus{
  outline:none;border-color:rgba(0,113,227,.45);
  box-shadow:0 0 0 4px rgba(0,113,227,.12);
}
.honest-line{margin-top:10px;font-size:12px;color:var(--mist);line-height:1.4;}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  padding:10px 18px;border-radius:980px;
  font-size:14px;font-weight:500;letter-spacing:-.01em;
  border:1px solid transparent;
  transition:background .15s var(--ease), transform .12s var(--ease), box-shadow .15s var(--ease), color .15s var(--ease);
  white-space:nowrap;
}
.btn:hover{transform:translateY(-.5px);}
.btn:active{transform:translateY(0);}
.btn-primary{
  background:var(--blue);color:#fff;
  box-shadow:0 1px 2px rgba(0,113,227,.25);
}
.btn-primary:hover{background:var(--blue-press);}
.btn-ghost{
  background:rgba(0,0,0,.04);color:var(--ink);
  border-color:transparent;
}
.btn-ghost:hover{background:rgba(0,0,0,.07);}
.btn.danger{color:var(--danger);background:rgba(215,0,21,.06);}
.btn.danger:hover{background:rgba(215,0,21,.1);}

/* Filter */
.filter-bar{
  max-width:calc(var(--max) + 56px);margin:0 auto;
  padding:8px 28px 4px;
  display:flex;flex-direction:column;gap:12px;
}
.filter-input{
  width:100%;max-width:420px;
  padding:12px 16px;border-radius:12px;
  border:1px solid var(--hair-strong);background:var(--surface);
  box-shadow:var(--shadow-soft);
}
.filter-input:focus{
  outline:none;border-color:rgba(0,113,227,.4);
  box-shadow:0 0 0 4px rgba(0,113,227,.1);
}
.filter-input::placeholder{color:var(--mist);}
.tag-chips{display:flex;flex-wrap:wrap;gap:8px;}
.tag-chip{
  padding:7px 14px;border-radius:980px;
  font-size:13px;font-weight:500;color:var(--ink-soft);
  background:transparent;border:1px solid var(--hair-strong);
  transition:background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.tag-chip:hover{background:rgba(0,0,0,.03);}
.tag-chip.is-active{
  background:var(--ink);color:#fff;border-color:var(--ink);
}

/* Board */
.board{
  max-width:calc(var(--max) + 56px);margin:0 auto;
  padding:20px 28px 64px;
  display:flex;flex-direction:column;gap:40px;
}
.zone-head{margin-bottom:16px;}
.zone-title{
  font-size:21px;font-weight:600;letter-spacing:-.02em;color:var(--ink);
}
.zone-meta{margin-top:4px;font-size:14px;color:var(--mist);}

/* Featured glass card */
.featured-card{
  position:relative;
  display:grid;grid-template-columns:minmax(0,1fr) auto;
  gap:20px;align-items:center;
  padding:28px 30px;
  border-radius:22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,255,255,.72)),
    linear-gradient(180deg, #fff, #f7f7f9);
  border:1px solid rgba(255,255,255,.7);
  box-shadow:var(--shadow-featured);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  overflow:hidden;
}
.featured-card::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse at 12% 0%, rgba(196,165,116,.14), transparent 48%);
}
.featured-main{position:relative;min-width:0;}
.featured-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px;}
.feat-chip{
  display:inline-flex;align-items:center;gap:6px;
  padding:5px 11px;border-radius:980px;
  font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;
  color:#5c4a32;background:rgba(196,165,116,.22);
  border:1px solid rgba(138,115,80,.22);
}
.feat-chip::before{
  content:"";width:5px;height:5px;border-radius:50%;
  background:var(--gold-soft);box-shadow:0 0 0 2px rgba(196,165,116,.35);
}
.featured-name{
  font-family:var(--sf-display);
  font-size:28px;font-weight:700;letter-spacing:-.03em;line-height:1.1;
  color:var(--ink);
}
.featured-blurb{
  margin-top:8px;font-size:16px;line-height:1.45;color:var(--ink-soft);max-width:36em;
}
.featured-meta{
  margin-top:14px;display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;
  font-size:13px;color:var(--mist);
}
.featured-tag{
  padding:3px 10px;border-radius:980px;
  background:rgba(0,0,0,.04);color:var(--graphite);font-weight:500;
}
.featured-actions{
  position:relative;display:flex;flex-direction:column;gap:8px;align-items:stretch;
}
.featured-actions .btn{min-width:112px;}
.featured-empty{
  padding:36px 28px;border-radius:22px;text-align:center;
  border:1px dashed var(--hair-strong);background:rgba(255,255,255,.5);
  color:var(--mist);font-size:14px;
}

/* Listing grid */
.listing-grid{
  list-style:none;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.card{
  display:flex;flex-direction:column;gap:10px;
  padding:20px 20px 16px;
  background:var(--surface);
  border:1px solid var(--hair);
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
  transition:transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
  cursor:default;
}
body:not(.mode-public) .card{cursor:pointer;}
body:not(.mode-public) .card:hover{
  transform:translateY(-2px);
  box-shadow:0 2px 4px rgba(0,0,0,.04), 0 14px 32px rgba(0,0,0,.08);
  border-color:rgba(0,0,0,.08);
}
.card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.card-name{
  font-size:17px;font-weight:600;letter-spacing:-.02em;color:var(--ink);line-height:1.25;
}
.card-tag{
  flex-shrink:0;padding:3px 9px;border-radius:980px;
  font-size:11px;font-weight:600;color:var(--graphite);
  background:rgba(0,0,0,.04);
}
.card-blurb{
  font-size:14px;line-height:1.45;color:var(--ink-soft);
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.card-foot{
  margin-top:auto;padding-top:6px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.card-link{
  font-size:13px;font-weight:500;color:var(--blue);
}
.card-desk{
  display:flex;gap:6px;
}
.card-desk .btn{padding:6px 12px;font-size:12px;}
body.mode-public .card-desk{display:none;}

.listing-grid:empty::after{
  content:"No listings match.";
  grid-column:1 / -1;
  display:block;padding:28px;text-align:center;
  border:1px dashed var(--hair-strong);border-radius:var(--radius);
  color:var(--mist);font-size:14px;
}

/* Footer */
.foot{
  max-width:calc(var(--max) + 56px);margin:0 auto;
  padding:8px 28px 48px;
  text-align:center;color:var(--mist);font-size:13px;
}
.foot p{font-family:var(--serif);font-style:italic;}

/* Modal */
.modal{
  position:fixed;inset:0;z-index:80;
  display:flex;align-items:center;justify-content:center;padding:20px;
}
.modal-backdrop{
  position:absolute;inset:0;background:rgba(0,0,0,.28);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
}
.modal-card{
  position:relative;z-index:1;width:min(440px,100%);
  background:var(--surface);color:var(--ink);
  border-radius:20px;padding:26px 26px 20px;
  box-shadow:0 24px 64px rgba(0,0,0,.22);
  border:1px solid rgba(0,0,0,.06);
}
.modal-card h2{
  font-size:22px;font-weight:700;letter-spacing:-.025em;margin-bottom:18px;
}
.field{margin-bottom:14px;}
.field label{
  display:block;font-size:12px;font-weight:600;color:var(--mist);margin-bottom:6px;
}
.field input,.field textarea{
  width:100%;padding:11px 12px;border-radius:10px;
  border:1px solid var(--hair-strong);background:var(--surface-2);color:var(--ink);
}
.field input:focus,.field textarea:focus{
  outline:none;border-color:rgba(0,113,227,.45);
  box-shadow:0 0 0 4px rgba(0,113,227,.12);
}
.field-check{margin-top:4px;}
.check-label{
  display:flex !important;align-items:center;gap:10px;
  font-size:14px !important;font-weight:500 !important;color:var(--ink) !important;
  cursor:pointer;
}
.check-label input{
  width:18px;height:18px;border-radius:5px;border:1px solid var(--hair-strong);
  background:var(--surface);flex-shrink:0;
  appearance:auto;-webkit-appearance:checkbox;
}
.field-hint{margin-top:6px;font-size:12px;color:var(--mist);padding-left:28px;}
.modal-actions{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-top:8px;padding-top:14px;border-top:1px solid var(--hair);
}
.modal-actions-right{display:flex;gap:8px;}

/* Shot helpers */
body.shot-share .board,
body.shot-share .filter-bar,
body.shot-share .sponsor-strip{opacity:.28;pointer-events:none;}
body.shot-share .share-strip{
  outline:2px solid rgba(0,113,227,.35);
  outline-offset:6px;border-radius:14px;
  background:rgba(255,255,255,.9);
}
body.shot-desk .share-strip,
body.shot-desk .filter-bar{opacity:.45;}
body.shot-desk .sponsor-strip,
body.shot-desk .mast-actions{
  outline:2px solid rgba(0,113,227,.28);
  outline-offset:6px;border-radius:14px;
}

/* Responsive */
@media (max-width:860px){
  .mast{grid-template-columns:1fr;padding:28px 20px 20px;gap:18px;}
  .sponsor-strip{grid-template-columns:1fr;padding:14px 20px;}
  .desk-bar,.privacy,.share-strip,.filter-bar,.board,.foot{padding-left:20px;padding-right:20px;}
  .listing-grid{grid-template-columns:1fr;}
  .featured-card{grid-template-columns:1fr;padding:22px;}
  .featured-actions{flex-direction:row;flex-wrap:wrap;}
}
@media (max-width:480px){
  .mast-word{font-size:30px;}
  .featured-name{font-size:24px;}
  .share-row,.sponsor-row{flex-direction:column;}
  .desk-bar{padding-top:8px;padding-bottom:8px;}
}
