/* ============================================================
   Dogma HQ — shared styles
   Brand tokens and components carried from the approved mockups.
   ============================================================ */

:root{
  --navy:#100142;
  --vermilion:#F0522B;
  --card:#F1F1F4;
  --body:#5B586B;
  --dark:#201A52;
  --line:#E4E3EA;
  --page:#FBFBFD;
}

/* Walter Neue — drop woff2 files into shared/fonts/ and these pick them up.
   Falls back to a system sans until they're present. */
@font-face{
  font-family:"Walter Neue";
  src:url("./fonts/WalterNeue-Regular.woff2") format("woff2");
  font-weight:400; font-display:swap;
}
@font-face{
  font-family:"Walter Neue";
  src:url("./fonts/WalterNeue-Bold.woff2") format("woff2");
  font-weight:700; font-display:swap;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background:var(--page);
  color:var(--navy);
  font-family:"Walter Neue","Helvetica Neue",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;}}

a{color:inherit;}
button{font-family:inherit;}

:focus-visible{outline:2px solid var(--vermilion);outline-offset:2px;border-radius:4px;}

/* ---- top bar ---- */
.topbar{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 32px;border-bottom:1px solid var(--line);background:#fff;
  position:relative;z-index:20;
}
.brand{font-weight:700;letter-spacing:-.01em;font-size:15px;display:flex;align-items:center;gap:10px;text-decoration:none;cursor:pointer;}
.brand .mark{width:9px;height:9px;background:var(--vermilion);border-radius:2px;transform:rotate(45deg);}
.brand span{color:var(--body);font-weight:400;}
.topbar-right{display:flex;align-items:center;gap:20px;}
.who{font-size:13px;color:var(--body);}

/* ---- layout ---- */
.wrap{max-width:900px;margin:0 auto;padding:40px 32px 80px;}
.wrap.narrow{max-width:820px;}

h1{font-size:32px;line-height:1.1;font-weight:700;letter-spacing:-.02em;margin:0 0 4px;}
.sub{font-size:15px;color:var(--body);margin:0 0 28px;}

/* ---- buttons ---- */
.btn{
  display:inline-flex;align-items:center;gap:8px;
  font-size:14px;font-weight:600;border-radius:9px;padding:10px 16px;
  border:1px solid var(--line);background:#fff;color:var(--navy);cursor:pointer;
  transition:background .12s,border-color .12s;
}
.btn:hover{background:var(--card);}
.btn.primary{background:var(--navy);border-color:var(--navy);color:#fff;}
.btn.primary:hover{background:var(--dark);}
.btn:disabled{opacity:.5;cursor:default;}

/* ---- status pills ---- */
.pill{font-size:11.5px;font-weight:600;padding:5px 12px;border-radius:100px;white-space:nowrap;}
.pill.done,.pill.ready,.pill.on{background:var(--dark);color:#fff;}
.pill.carry,.pill.due{background:var(--vermilion);color:#fff;}
.pill.open{background:#fff;color:var(--body);border:1px solid var(--line);}
.pill.dropped{background:transparent;color:#A6A4B2;border:1px dashed var(--line);}
.pill.new,.pill.soon{background:#fff;color:var(--body);border:1px solid var(--line);}

/* ---- summary strip ---- */
.summary{
  display:flex;border:1px solid var(--line);border-radius:12px;
  overflow:hidden;background:#fff;margin-bottom:40px;
}
.summary .stat{flex:1;padding:16px 20px;border-right:1px solid var(--line);}
.summary .stat:last-child{border-right:none;}
.summary .stat .n{font-size:24px;font-weight:700;line-height:1;}
.summary .stat .l{font-size:12px;color:var(--body);margin-top:6px;}
.summary .stat.accent .n{color:var(--vermilion);}

/* ---- section heads ---- */
.section-head{
  display:flex;align-items:baseline;justify-content:space-between;
  margin:0 0 16px;padding-bottom:10px;border-bottom:1px solid var(--line);
}
.section-head h2{font-size:18px;font-weight:700;margin:0;letter-spacing:-.01em;}
.section-head .meta{font-size:13px;color:var(--body);}

/* ---- fields (prep) ---- */
.field{
  width:100%;background:#fff;border:1px solid var(--line);border-radius:8px;
  padding:11px 13px;font-size:14.5px;color:var(--navy);font-family:inherit;line-height:1.5;
  resize:vertical;
}
.field::placeholder{color:#B7B5C1;}
.qrow{margin-bottom:14px;}
.qrow label{display:block;font-size:13px;color:var(--body);margin-bottom:5px;}

/* ---- empty / message states ---- */
.empty{
  border:1px dashed var(--line);border-radius:12px;background:#fff;
  padding:40px 28px;text-align:center;color:var(--body);font-size:14.5px;
}

/* ---- utility ---- */
.foot{margin-top:44px;padding-top:20px;border-top:1px solid var(--line);font-size:13px;color:var(--body);}
.hidden{display:none!important;}

@media(max-width:600px){
  h1{font-size:26px;}
  .summary{flex-wrap:wrap;}
  .summary .stat{flex:1 0 50%;border-bottom:1px solid var(--line);}
}
