/* matthewfranks.com — black text, white page, the logo. That is the design.
   (The 2009 site: a white page, the logo, one line of small grey caps.) */
html, body { margin: 0; padding: 0; background: #fff; color: #000; }
body {
  font: 13px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  -webkit-font-smoothing: antialiased;
}
a { color: #000; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }

.wrap { width: min(1000px, 92vw); margin: 0 auto; flex: 1; display: flex; flex-direction: column; align-items: center; }
.logowrap { width: min(760px, 80vw); margin: 8vh 0 18px; }
.logo { display: block; width: 100%; height: auto; }
.reflect {
  height: 0; padding-bottom: 14%; overflow: hidden;
  background: url(logo.svg) no-repeat center bottom / 100% auto;
  transform: scaleY(-1);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 8%, rgba(0,0,0,0.5));
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 8%, rgba(0,0,0,0.5));
  opacity: 0.32; filter: blur(2px); pointer-events: none;
}
.logo.small { width: min(360px, 70vw); margin: 9vh 0 40px; }

/* the gallery windows */
.win { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 22px; width: 100%; }
.win li { flex: 0 1 200px; min-width: 0; }
.win a { display: block; text-decoration: none; }
.pane { display: block; position: relative; width: 100%; aspect-ratio: 200 / 520; overflow: hidden; background: #f2f2f2; }
.pane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; display: block; }
.pane iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; display: block; background: #fff; }
.pane video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #0d0221; }
/* Arial has no weight past bold, so "bolder" needs a face that does:
   Segoe UI Black on Windows, the system font's 900 on phones/Macs. */
.win .lab { display: block; margin-top: 16px; text-align: center; font: 900 15px/1.3 system-ui, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 3px; text-transform: uppercase; color: #000; }
.win a:hover .lab, .win a:focus-visible .lab { color: #000; }
.win a:focus-visible { outline: none; }
.win a:focus-visible .pane { outline: 2px solid #000; }

/* the small grey caps line the old site had */
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 52px; }
.nav a { font-size: 15px; letter-spacing: 4px; text-transform: uppercase; color: #8a8a8a; }
.nav a:hover, .nav a:focus-visible { color: #000; text-decoration: none; }

.foot { margin: auto 0 30px; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: #8a8a8a; text-align: center; min-height: 1.5em; }
.foot a { color: #8a8a8a; }
.foot a:hover { color: #000; text-decoration: none; }
.foot b { color: #000; font-weight: normal; }
.foot .sep { margin: 0 10px; }
/* the account line sits right under the reflection — the auto top margin
   is only for the page-bottom footer */
.foot.acctline { margin: -10px 0 36px; }

/* the account page: one narrow column, real form controls, nothing else */
.acct { width: min(320px, 90vw); }
.acct h1 { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; font-weight: normal; color: #8a8a8a; margin: 0 0 22px; text-align: center; }
.acct label { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #8a8a8a; margin: 14px 0 5px; }
.acct input {
  display: block; width: 100%; box-sizing: border-box;
  font: 15px/1.3 inherit; color: #000; background: #fff;
  border: 1px solid #000; border-radius: 0; padding: 9px 10px;
}
.acct input:focus { outline: 2px solid #000; outline-offset: -2px; }
.acct button {
  display: block; width: 100%; box-sizing: border-box; margin-top: 18px;
  font: 12px/1 inherit; letter-spacing: 3px; text-transform: uppercase;
  color: #fff; background: #000; border: 1px solid #000; padding: 13px 10px; cursor: pointer;
}
.acct button.alt { color: #000; background: #fff; }
.acct button:disabled { opacity: .5; cursor: default; }
.acct .links { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.acct .links a { color: #8a8a8a; }
.acct .links a:hover { color: #000; }
.acct .msg { margin: 14px 0 0; min-height: 1.2em; font-size: 12px; letter-spacing: .5px; color: #8a8a8a; text-align: center; }
.acct .msg.err { color: #c00; }
.acct .who { text-align: center; }
.acct .who .name { font-size: 22px; letter-spacing: 1px; margin: 4px 0 2px; }
.acct .who h2 { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; font-weight: normal; color: #8a8a8a; margin: 30px 0 10px; }
.av { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; overflow: hidden; background: #eee; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.big { width: 72px; height: 72px; font-size: 36px; }
.face { display: flex; justify-content: center; margin-bottom: 8px; cursor: pointer; }
.acct .links a#lAvatar { color: #8a8a8a; }
.avdlg { border: 1px solid #000; border-radius: 0; padding: 22px 22px 18px; width: min(360px, 92vw); box-sizing: border-box; background: #fff; color: #000; }
.avdlg::backdrop { background: rgba(255,255,255,.85); }
.avdlg h2 { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; font-weight: normal; color: #8a8a8a; margin: 0 0 12px; text-align: center; }
.avdlg .avgrid { max-height: 46vh; overflow-y: auto; padding: 2px; }
.avdlg button#avDone { display: block; width: 100%; box-sizing: border-box; margin-top: 18px; font: 12px/1 inherit; letter-spacing: 3px; text-transform: uppercase; color: #fff; background: #000; border: 1px solid #000; padding: 13px 10px; cursor: pointer; }
.avgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.avgrid.one { grid-template-columns: repeat(6, 1fr); }
.acct button.avpick { width: auto; margin: 0; border: 2px solid transparent; background: #f4f4f4; padding: 5px; cursor: pointer; display: flex; justify-content: center; }
.acct button.avpick.on { border-color: #000; background: #fff; }
.swrow { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; margin-top: 12px; }
.acct button.sw { width: 100%; aspect-ratio: 1; margin: 0; border: 2px solid transparent; border-radius: 50%; cursor: pointer; padding: 0; }
.acct button.sw.on { border-color: #000; box-shadow: inset 0 0 0 2px #fff; }
.tiny { font-size: 12px; color: #8a8a8a; line-height: 1.5; margin: 6px 0; text-align: left; }
.stline { margin: 4px 0; font-size: 14px; }
.stline a { color: #8a8a8a; font-size: 12px; }
.steambtn { display: inline-block; margin: 8px 0 4px; }
.acct button.small { font-size: 11px; padding: 10px; margin-top: 10px; }
.acct .who p { margin: 6px 0; font-size: 12px; color: #8a8a8a; }
.acct .who p a { color: #000; }
.hidden { display: none !important; }

@media (max-width: 640px) {
  .nav { flex-direction: column; align-items: center; gap: 16px; }
  .nav a { font-size: 12px; letter-spacing: 3px; }
  .logowrap { margin: 8vh 0 10px; }
  .foot.acctline { margin: -4px 0 26px; }
  .foot { font-size: 12px; }
  .win { flex-wrap: wrap; gap: 18px 14px; }
  .win li { flex: 0 1 calc(50% - 7px); }
  .win .lab { font-size: 12px; letter-spacing: 2px; margin-top: 10px; }
}

/* the number over the account name (front page) — unread notifications
   from every project, plus open reports for the admin */
.foot a.who { position: relative; display: inline-block; }
.nbadge { position: absolute; top: -9px; right: -13px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: #000; color: #fff; font-size: 10px; line-height: 16px; letter-spacing: 0; text-align: center; }
.foot a.who:hover { text-decoration: none; }
.foot a.who:hover b { text-decoration: underline; }
.acct h2 .cnt { display: inline-block; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: #000; color: #fff; font-size: 10px; line-height: 16px; letter-spacing: 0; text-align: center; vertical-align: 1px; margin-left: 4px; }

/* notifications and reports: plain rows */
.nlist { list-style: none; margin: 0; padding: 0; text-align: left; font-size: 13px; }
.nlist li { padding: 8px 0; border-top: 1px solid #eee; }
.nlist li:first-child { border-top: 0; }
.nlist li.tiny { border-top: 0; text-align: center; }
.nlist li a { color: #000; }
.nlist li.unread a { font-weight: bold; }
.nlist li.read a { color: #6a6a6a; }
.nlist .when { display: block; font-size: 11px; color: #8a8a8a; letter-spacing: .5px; }
.nlist .when b { color: #000; font-weight: normal; letter-spacing: 1.5px; text-transform: uppercase; font-size: 9px; margin-left: 4px; }
/* a notification row: dot · text · controls. The dot is filled while unread,
   hollow once read; × dismisses it for good (from every project's bell). */
.nlist li[data-nid] { display: flex; align-items: flex-start; gap: 10px; }
.nlist .ndot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #000; }
.nlist li.read .ndot { background: #fff; border: 1px solid #c8c8c8; box-sizing: border-box; }
.nlist .nbody { flex: 1; min-width: 0; }
.nlist .nact { flex: none; display: flex; gap: 4px; }
.acct .nlist .nact button { width: auto; margin: 0; padding: 3px 7px; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: #8a8a8a; background: #fff; border: 1px solid #ddd; line-height: 1.2; }
.acct .nlist .nact button[data-dismiss] { font-size: 14px; letter-spacing: 0; padding: 0 7px; line-height: 1.1; }
.acct .nlist .nact button:hover { color: #000; border-color: #000; }
.acct .links.row { flex-direction: row; justify-content: center; gap: 24px; }
.nlist .fhead { font-size: 12px; }
.nlist .fhead .when { display: inline; margin-left: 4px; }
.nlist .fbody { margin: 6px 0; padding: 8px 10px; background: #f4f4f4; font-size: 13px; white-space: pre-wrap; word-break: break-word; max-height: 8em; overflow: auto; }
.nlist .fact { display: flex; gap: 6px; }
.acct .nlist .fact button { width: auto; flex: 1; margin-top: 6px; font-size: 10px; letter-spacing: 1.5px; padding: 10px 4px; white-space: nowrap; }

/* the user list: a face, a name, four dots (one per project) — the card
   opens on hover, focus, or a tap */
.ulist { list-style: none; margin: 0; padding: 0; text-align: left; }   /* no overflow clip: the card hangs below the row */
.urow { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-top: 1px solid #eee; cursor: default; }
.urow:first-child { border-top: 0; }
.urow .av { width: 26px; height: 26px; font-size: 14px; flex: none; }
.urow .uname { flex: 1; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.urow .dots { display: flex; gap: 4px; flex: none; }
.urow .d { width: 8px; height: 8px; border-radius: 50%; background: #e4e4e4; }
.urow .d.on.ae { background: #7c3aed; } .urow .d.on.rrc { background: #e11d48; } .urow .d.on.lrt { background: #f59e0b; } .urow .d.on.pwm { background: #16a34a; }
.urow:hover, .urow:focus-within, .urow.pin { background: #fafafa; }
.ucard { display: none; position: absolute; z-index: 5; left: 40px; top: 100%; width: 230px; padding: 10px 12px; background: #fff; border: 1px solid #000; box-shadow: 0 6px 20px rgba(0,0,0,.12); font-size: 12px; text-align: left; letter-spacing: 0; }
.urow:hover .ucard, .urow:focus-within .ucard, .urow.pin .ucard { display: block; }
.ucard .row { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.ucard .row span:first-child { color: #8a8a8a; text-transform: uppercase; letter-spacing: 1.5px; font-size: 10px; line-height: 1.8; }
.ucard .row b { font-weight: normal; }
.ucard .usites { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid #eee; }
.ucard .usites li { padding: 2px 0 2px 14px; position: relative; }
.ucard .usites li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: #000; }
.ucard .usites li.off { color: #b0b0b0; }
.ucard .usites li.off::before { background: #e4e4e4; }
